/* ==========================================================================
   COMPONENTS — reusable parts. Each block is self-contained and can be
   dropped into any section without carrying layout assumptions with it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Logo — mark + two-line wordmark, as set in logo.png.
   Deliberately inert: the brand book files a rotated lockup under Incorrect
   Usage ("Keep the logo straight"), and forbids changing its opacity, so the
   logo never animates, tilts or fades anywhere on the site.
   -------------------------------------------------------------------------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: .58em;
  font-size: clamp(.9rem, .82rem + .28vw, 1.0625rem);
}

.logo__mark {
  width: 2.18em; height: 2.18em;
  flex: none;
  fill: currentColor;
}

.logo__word {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1em;
  line-height: 1.06;
  letter-spacing: -.028em;
  white-space: nowrap;
}

/* On black the brand book (p8) sets the mark in Soft Lavender and keeps the
   wordmark white. */
.section--ink .logo__mark { fill: var(--c-lilac); }


/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
  padding-block: clamp(1.25rem, .925rem + 1.33vw, 2.125rem);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, .4rem + 1.7vw, 2rem);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: var(--ls-normal);
}

/* The underline draws in from the left rather than fading — reads as motion. */
.nav__link {
  position: relative;
  padding-block: .3em;
  color: var(--c-text);
  transition: color var(--d-fast) var(--e-soft);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-base) var(--e-out);
}
.nav__link:hover::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); }

/* Mobile disclosure */
.nav__toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  margin-right: -.6rem;
  /* place-content (not place-items) so the three bars stay packed at their
     6.5px pitch; stretched rows would break the cross on open. */
  place-content: center;
  justify-items: center;
}
.nav__toggle span {
  display: block; width: 20px; height: 1.5px;
  background: currentColor;
  transition: transform var(--d-base) var(--e-inout), opacity var(--d-fast) linear;
}
.nav__toggle span + span { margin-top: 5px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--c-lilac);
  --btn-fg: var(--c-paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .55em 1.2em .6em;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .8125rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: var(--ls-normal);
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--d-base) var(--e-soft),
              transform var(--d-base) var(--e-out);
}

/* A wash rises from the bottom on hover — the fill moves, it does not blink. */
.btn::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--c-ink-900);
  transform: translateY(101%);
  transition: transform var(--d-base) var(--e-out);
}
.btn:hover, .btn:focus-visible { color: var(--c-paper); transform: translateY(-1px); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: translateY(0); }

.btn--lg { padding: .85em 1.7em .9em; font-size: var(--t-small); }

.btn--wa { gap: .6em; }
.btn__glyph { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }

.btn--ink   { --btn-bg: var(--c-ink-900); --btn-fg: var(--c-paper); }
.btn--ink::before { background: var(--c-lilac); }
.btn--ink:hover, .btn--ink:focus-visible { color: var(--c-ink); }

.btn--paper { --btn-bg: var(--c-paper); --btn-fg: var(--c-ink); }
.btn--paper::before { background: var(--c-lilac); }
.btn--paper:hover, .btn--paper:focus-visible { color: var(--c-ink); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1px var(--c-rule);
}
.btn--ghost::before { background: var(--c-ink-900); }

/* Text link with a travelling arrow. */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: var(--t-small); font-weight: 500;
  padding-bottom: .25em;
  box-shadow: inset 0 -1px 0 0 var(--c-rule);
  transition: box-shadow var(--d-base) var(--e-soft);
}
.link-arrow svg {
  width: .85em; height: .85em;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  transition: transform var(--d-base) var(--e-out);
}
.link-arrow:hover { box-shadow: inset 0 -1px 0 0 currentColor; }
.link-arrow:hover svg { transform: translate(.25em, -.25em); }


/* --------------------------------------------------------------------------
   Pill / badge — the "+10M views" chip from the hero.
   -------------------------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .48em .85em .53em;
  border-radius: var(--r-pill);
  background: var(--c-lilac);
  color: var(--c-ink);
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: var(--ls-normal);
  line-height: 1.3;
}
.pill--soft    { background: var(--c-lilac-200); }
.pill--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--c-rule); color: var(--c-text-muted); }

/* Eyebrow — small tracked label that opens a section. */
.eyebrow {
  display: flex; align-items: center; gap: .75em;
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.eyebrow::before {
  content: ""; flex: none;
  width: 1.5rem; height: 1px;
  background: currentColor; opacity: .5;
}


/* --------------------------------------------------------------------------
   Media frame — every still on the site sits in one of these, so hover,
   ratio and grain behave identically everywhere.
   -------------------------------------------------------------------------- */

.frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--c-lilac-100);
  aspect-ratio: var(--ratio, 16 / 10);
}
.frame > img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.1s var(--e-out), filter var(--d-slow) var(--e-soft);
}
.frame--hover:hover > img { transform: scale(1.045); }

/* Chromatic split: the RGB fringing seen on the dark card in the mockup. */
.frame--split { background: var(--c-ink-700); }
.frame--split::before,
.frame--split::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 3px;
  pointer-events: none;
  filter: blur(1.5px);
  z-index: 2;
}
.frame--split::before { top: 0;    background: linear-gradient(90deg, #bf3725, #ff3b1f 40%, #bf3725); }
.frame--split::after  { bottom: 0; background: linear-gradient(90deg, #32abf5, #1658fd 55%, #32abf5); }

/* Play affordance — a disc that grows out of the corner on hover. */
.play {
  position: absolute;
  right: var(--s-4); bottom: var(--s-4);
  z-index: 3;
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--c-paper);
  color: var(--c-ink);
  transform: scale(.6);
  opacity: 0;
  transition: transform var(--d-base) var(--e-out), opacity var(--d-base) var(--e-out);
}
.play svg { width: .8rem; height: .8rem; fill: currentColor; margin-left: 2px; }
.frame:hover .play { transform: scale(1); opacity: 1; }


/* --------------------------------------------------------------------------
   Offer row — numbered list used by "Our offers".
   -------------------------------------------------------------------------- */

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  gap: var(--s-6) clamp(1.5rem, 4vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2rem, 3.4vw, 3rem);
  border-top: 1px solid var(--c-rule);
}
.offer:last-child { border-bottom: 1px solid var(--c-rule); }

.offer__num {
  font-family: var(--font-display);
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
  color: var(--c-text-faint);
  padding-top: .5em;
  transition: color var(--d-base) var(--e-soft), transform var(--d-slow) var(--e-out);
}
.offer__title { font-size: var(--t-h3); }
.offer__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.offer:hover .offer__num { color: var(--c-indigo); transform: translateY(-2px); }


/* --------------------------------------------------------------------------
   Accordion — the panel height animates through grid-template-rows, so it is
   smooth without any JS measurement.
   -------------------------------------------------------------------------- */

.acc__item { border-top: 1px solid var(--c-rule); }
.acc__item:last-child { border-bottom: 1px solid var(--c-rule); }

.acc__trigger {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6);
  width: 100%;
  padding-block: clamp(1.35rem, 2.4vw, 1.9rem);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--t-h4);
  letter-spacing: var(--ls-tight);
  transition: color var(--d-base) var(--e-soft);
}
.acc__trigger:hover { color: var(--c-indigo); }

.acc__icon { position: relative; width: 1rem; height: 1rem; flex: none; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1.5px; background: currentColor;
  transform: translateY(-50%);
  transition: transform var(--d-base) var(--e-inout), opacity var(--d-fast) linear;
}
.acc__icon::after { transform: translateY(-50%) rotate(90deg); }
[aria-expanded="true"] .acc__icon::after { transform: translateY(-50%); opacity: 0; }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--d-base) var(--e-inout);
}
.acc__panel > div { overflow: hidden; }
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel p {
  padding-bottom: clamp(1.35rem, 2.4vw, 1.9rem);
  color: var(--c-text-muted);
  max-width: 58ch;
}


/* --------------------------------------------------------------------------
   Footer wordmark — an outline so it sits behind the content, not on it.
   -------------------------------------------------------------------------- */

.footer__device {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: min(140%, 62rem);
  aspect-ratio: 1;
  /* Filled, not stroked: at this scale the outline of a traced shape shows
     every artifact in the trace. A watermark cannot wobble. */
  fill: rgba(255, 255, 255, .04);
  stroke: none;
  pointer-events: none;
}


/* --------------------------------------------------------------------------
   Reveal — the one scroll behaviour on the site. Elements lift and fade once.
   -------------------------------------------------------------------------- */

/* Every rule that hides something is gated on .js, so with scripting off the
   page renders complete and static rather than blank.

   Three entrances, each doing a different job — not one fade repeated down
   the page. Text rises. Media uncovers. The process draws itself, and that
   is the page's authored moment. */

/* 1. Text: a short rise, used only on the headings that open a block. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s var(--e-out), transform .7s var(--e-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* "lines" opts out of the group fade: an opacity below 1 would create a
   stacking context and cut mix-blend-mode off from its backdrop. */
.js [data-reveal="lines"] { opacity: 1; transform: none; }

.reveal-line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.reveal-line > span { display: block; }
.js .reveal-line > span {
  transform: translateY(105%);
  transition: transform 1.05s var(--e-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.is-in .reveal-line > span { transform: none; }

/* 2. Media: the frame uncovers from its own bottom edge. A still should be
   revealed, not faded up like a paragraph. */
.js .film .mount,
.js .hero__media .mount {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s var(--e-out);
}
.js .film.is-in .mount,
.js .hero__media.is-in .mount { clip-path: inset(0 0 0 0); }

/* 3. Process: each rule is ruled, then the stage settles under it. */
.js .stage::before { transform: scaleX(0); transition: transform 1s var(--e-out); }
.js .stage.is-in::before { transform: scaleX(1); }
.js .stage > * {
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s var(--e-out), transform .7s var(--e-out);
}
.js .stage.is-in > * { opacity: 1; transform: none; }
.js .stage.is-in .stage__name { transition-delay: .09s; }
.js .stage.is-in .stage__body { transition-delay: .16s; }

/* The rail fills with the scroll through the six stages. */
.process__rail i { transition: transform .18s linear; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .reveal-line > span { transform: none; }
  .js .film .mount, .js .hero__media .mount { clip-path: none; }
  .js .stage::before { transform: scaleX(1); }
  .js .stage > * { opacity: 1; transform: none; }
}


/* --------------------------------------------------------------------------
   Mount — the frame every film sits in: a black surround with a generous
   rounded curve, and the picture inset inside it at a matching smaller
   radius, the way a screen sits in a bezel.
   -------------------------------------------------------------------------- */

.mount {
  display: block;
  padding: clamp(10px, 1.05vw, 17px);
  background: var(--c-ink);
  border-radius: clamp(22px, 2.4vw, 36px);
}
.mount--wide { border-radius: clamp(24px, 2.8vw, 42px); }

.mount__screen {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--ratio, 16 / 9);
  border-radius: clamp(13px, 1.5vw, 22px);
  background: var(--c-ink-700);
}
.mount__screen > img,
.mount__screen > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.mount__screen > img { z-index: 1; transition: opacity .6s var(--e-soft), transform 1.3s var(--e-out); }
.mount__screen > video { z-index: 1; transition: opacity .6s var(--e-soft); }
.mount__screen > video[data-src] { opacity: 0; }
.mount__screen.is-playing > video { opacity: 1; }
.mount__screen.is-playing > img { opacity: 0; }

a.mount:hover .mount__screen > img { transform: scale(1.02); }


/* --------------------------------------------------------------------------
   Film — one work in the reel. The name sits under its frame rather than on
   it: over a moving picture it was competing with the work.
   -------------------------------------------------------------------------- */

.film { display: block; }

.film__meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-rule);
}
.film__title {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  letter-spacing: var(--ls-tight);
  transition: color var(--d-base) var(--e-soft);
}
.film:hover .film__title { color: var(--c-indigo); }
.film__kind {
  font-size: var(--t-micro);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-text-faint);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Marquee — one continuous pass naming the six stages, doubled in the markup
   so the loop has no seam. It is the process section's title card.
   -------------------------------------------------------------------------- */

.marquee {
  --marquee-duration: 38s;
  display: flex;
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex; flex: none; align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-right: clamp(1.5rem, 3vw, 3rem);
  animation: marquee var(--marquee-duration) linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 3vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
  white-space: nowrap;
}
.marquee__item--outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--c-text-faint);
}
.marquee__dot {
  width: .38em; height: .38em; flex: none;
  border-radius: 50%; background: var(--c-lilac);
}

/* The band the marquee sits in. Kept separate from .marquee so the edge mask
   fades the type only, never the background. */
.marquee-band { padding-block: clamp(2rem, 4vw, 3.25rem); }

@keyframes marquee { to { transform: translateX(-100%); } }
