@font-face {
  font-family: Onest;
  src: url('assets/fonts/Onest-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #111111;
  --lime: #dfff00;
  --paper: #f7f6f0;
  --radius: 12px;
  font-family: Onest, Arial, sans-serif;
  color: var(--ink);
  background: var(--lime);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, figure { margin: 0; }
main { background: #fff; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

.frame { width: min(100% - clamp(2rem, 7vw, 7rem), 82rem); margin-inline: auto; }
.hero-frame { width: min(94%, 100rem); margin-inline: auto; }
.site-header, .hero-surface { background: #d2fa0a; }
.header-inner { display: flex; min-height: clamp(3.65rem, 4.35vw, 4.75rem); align-items: center; justify-content: space-between; }
.brand { display: inline-block; }
.brand-image {
  position: relative;
  display: block;
  width: clamp(8.5rem, 14vw, 11rem);
  aspect-ratio: 1698 / 386;
  overflow: hidden;
  mix-blend-mode: multiply;
}
.brand-image img {
  position: absolute;
  width: 116.79%;
  height: auto;
  left: -8.48%;
  top: -55.95%;
  filter: contrast(1.30) brightness(1.05);
}
.login {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: clamp(1rem, 1.55vw, 1.65rem);
  font-weight: 750;
  text-underline-offset: .25em;
}
.login:hover { text-decoration-thickness: 2px; }

.hero {
  --heading-row: 8.35cqw;
  container-type: inline-size;
  padding-block: clamp(1.15rem, 1.45vw, 1.65rem) clamp(1.65rem, 1.85vw, 2.75rem);
}
.hero-label {
  display: inline-block;
  padding: .55rem clamp(.9rem, 1.8cqw, 1.9rem);
  border-radius: 999px;
  background: #f8f3dd;
  font-size: clamp(.83rem, 2.05cqw, 2.05rem);
  font-weight: 760;
  line-height: 1.22;
}

.headline { position: relative; margin-top: .42cqw; }
.headline h1 {
  font-size: 9.85cqw;
  font-weight: 900;
  line-height: .93;
  letter-spacing: -.047em;
}
.headline-line { display: flex; align-items: center; height: var(--heading-row); }
.headline-line:nth-child(1) { width: 75.5%; }
.headline-line:nth-child(2) { width: 51%; margin-left: 23.4%; }
.headline-line:nth-child(3) { width: 96%; }
.headline-line > span {
  display: inline-block;
  flex: none;
  white-space: nowrap;
  transform: scaleX(var(--line-scale, 1));
  transform-origin: left center;
}

.headline-video { position: absolute; border-radius: .9cqw; overflow: clip; background: var(--ink); }
.landscape-inset { top: calc(var(--heading-row) * 1.5); left: .4%; width: 21.4%; aspect-ratio: 335 / 116; translate: 0 -50%; }
.portrait-inset { top: .6cqw; left: 76%; height: calc(var(--heading-row) * 2 - .8cqw); aspect-ratio: 9 / 16; }
.headline-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.headline-video:focus-within, .headline-video:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.inset-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background-color: transparent; }
.portrait-play { display: flex; align-items: end; justify-content: space-between; gap: .15rem; padding: .45rem; color: var(--paper); }
.duration { padding: .13em .34em; border-radius: .28em; background: rgb(17 17 17 / 88%); font-size: clamp(.54rem, 1.05cqw, 1.07rem); }
.portrait-play .play-icon { filter: drop-shadow(0 0 2px #111); }

.reference-crop {
  background-image: url('assets/reference/hero_typographic_montage_lime.png');
  background-repeat: no-repeat;
  background-size: calc(100% * 1672 / var(--crop-width)) auto;
  background-position: calc(100% * var(--crop-x) / (1672 - var(--crop-width))) calc(100% * var(--crop-y) / (941 - var(--crop-height)));
}
.landscape-inset .reference-crop { --crop-x: 58; --crop-y: 306; --crop-width: 335; --crop-height: 116; }
.hero-details {
  display: grid;
  grid-template-columns: minmax(0, 37%) minmax(0, 1fr);
  gap: 2.55%;
  margin-top: 2.55cqw;
}
.hero-copy { padding-top: 1.8cqw; }
.hero-description {
  max-width: 44ch;
  font-size: clamp(1rem, 1.68cqw, 1.75rem);
  font-weight: 600;
  line-height: 1.24;
}
.hero-actions { display: grid; grid-template-columns: 56% minmax(0, 1fr); gap: 3.25%; margin-top: 2.22cqw; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.35rem; }
.action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  min-height: 3rem;
  padding: .65rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 750;
  text-decoration: none;
  text-align: center;
}
.primary { color: var(--paper); background: var(--ink); }
.primary:hover { color: var(--ink); background: var(--paper); }
.primary:focus-visible { outline-color: var(--ink); }
.secondary { background: transparent; }
.secondary:hover { background: var(--paper); }
.hero-actions .action {
  min-height: clamp(2.75rem, 4.24cqw, 4.3rem);
  padding: .45em .55em;
  border-radius: clamp(8px, .9cqw, 15px);
  font-size: clamp(.77rem, 1.37cqw, 1.38rem);
}
.play-icon {
  width: .76em;
  height: .82em;
  background: currentColor;
  clip-path: polygon(13% 0, 100% 50%, 13% 100%);
}
.formats { margin-top: 1.7cqw; font-size: clamp(.82rem, 1.34cqw, 1.35rem); font-weight: 600; line-height: 1.35; }
.hero-timeline {
  --crop-x: 673;
  --crop-y: 661;
  --crop-width: 955;
  --crop-height: 249;
  align-self: center;
  aspect-ratio: var(--crop-width) / var(--crop-height);
}

.workflow { padding-block: clamp(1.6rem, 3.5vw, 3rem) clamp(1.75rem, 5vw, 3.5rem); }
.workflow-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.workflow h2 { font-size: clamp(1.25rem, 2.5vw, 2.1rem); font-weight: 820; letter-spacing: -.05em; }
.rotation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .35rem .55rem;
  border: 0;
  background: transparent;
  font-size: .8rem;
  font-weight: 700;
}
.rotation:hover { text-decoration: underline; }
.rotation-icon { display: block; width: .55rem; height: .7rem; border-inline: 2px solid currentColor; }
.rotation.is-paused .rotation-icon { border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.stage-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: .75rem; }
.stage-tabs button {
  min-height: 2.75rem;
  padding: .4rem .8rem;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  font-size: .88rem;
  font-weight: 720;
}
.stage-tabs button:hover { background: var(--paper); }
.stage-tabs button[aria-selected='true'] { color: var(--paper); background: var(--ink); }
.stage-tabs button:focus-visible { outline-color: var(--ink); }

.stage-panel {
  display: grid;
  grid-template-columns: minmax(12rem, .68fr) minmax(0, 1.32fr);
  align-items: start;
  gap: clamp(1.15rem, 3.5vw, 3rem);
  padding: clamp(1rem, 2.2vw, 1.75rem);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}
.stage-copy h3 { font-size: clamp(1.4rem, 3vw, 2.6rem); line-height: 1.06; letter-spacing: -.045em; }
.stage-copy p { max-width: 37ch; margin-top: .65rem; font-size: clamp(.94rem, 1.5vw, 1.1rem); line-height: 1.45; }
.stage-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: white;
}
.stage-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.storyboard img { transform: scale(1.68); transform-origin: 100% 7%; }
.reference-note { margin-top: .6rem; font-size: .81rem; line-height: 1.4; }

dialog {
  width: min(calc(100% - 2rem), 30rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop { background: rgb(17 17 17 / 65%); }
dialog h2 { margin-bottom: .45rem; letter-spacing: -.04em; }
dialog p { line-height: 1.45; }

.workshop-footer { color: var(--paper); background: var(--ink); }
.workshop-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.15rem; padding-block: 1.1rem; }
.workshop-footer a { font-size: .85rem; text-underline-offset: .24em; }
.workshop-footer a:hover { color: var(--lime); }

@media (max-width: 52rem) {
  .hero-frame { width: min(100% - 2rem, 100rem); }
  .hero { --heading-row: 12.2cqw; }
  .headline { margin-top: 1.85cqw; }
  .headline h1 { font-size: 11.2cqw; }
  .headline-line:nth-child(1) { width: 78%; }
  .headline-line:nth-child(2) { margin-left: 26%; width: 58%; }
  .headline-line:nth-child(3) { width: 100%; }
  .landscape-inset { width: 24%; }
  .portrait-inset { left: auto; right: 1%; }
  .headline-video { border-radius: 5px; }
  .hero-details { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .hero-copy { padding-top: .4rem; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .9rem; }
  .hero-actions .action { padding-inline: .8rem; }
  .formats { margin-top: .75rem; }
}

@media (max-width: 43rem) {
  .header-inner { min-height: 3.9rem; }
  .stage-panel { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 23rem) {
  .action { padding-inline: .75rem; }
  .workflow-header { align-items: start; }
  .rotation { min-height: 2.25rem; }
}
