/* ============================================================================
   Cervantes Motion: page theme + the smartphone-distribution grammar.
   The engine (scrollcraft.css / scrollcraft.js) is unmodified. Everything here
   is this page's own markup, plus the six brand tokens.
   ========================================================================== */

:root {
  --sc-canvas:     #171A1F;
  --sc-surface:    #1E232A;
  --sc-ink:        #F4F1EB;
  --sc-ink-soft:   #ABA69C;
  --sc-accent:     #F35335;
  --sc-accent-ink: #1A0E0A;

  --sc-font-display: "Space Grotesk", system-ui, sans-serif;
  --sc-font-text:    "Inter", system-ui, sans-serif;

  --ink-line: color-mix(in oklab, var(--sc-ink) 14%, transparent);
  --ink-line-2: color-mix(in oklab, var(--sc-ink) 26%, transparent);
}

body { overflow-x: clip; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; top: var(--sc-3); left: var(--sc-3); z-index: 200;
  transform: translateY(-160%);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  padding: var(--sc-2) var(--sc-4); border-radius: var(--sc-r-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus-visible { transform: none; }

/* ------------------------------------------------------------------ bar -- */
.bar {
  position: fixed; inset-inline: 0; top: 0; z-index: var(--sc-z-chrome);
  display: flex; align-items: center; gap: var(--sc-5);
  padding: var(--sc-3) var(--sc-gutter);
  background: color-mix(in oklab, #171A1F 78%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.act, [id] { scroll-margin-top: 4.5rem; }
.bar__mark {
  font-family: var(--sc-font-display); font-weight: 700;
  letter-spacing: var(--sc-track-snug); text-decoration: none;
  font-size: var(--sc-t-sm); text-transform: uppercase;
}
.bar__mark span { color: var(--sc-accent); margin-left: 0.35em; }
.bar__mark { text-transform: none; font-size: 1.15rem; }
.bar__mark span { margin-left: 0; }
.bar__nav { display: flex; gap: var(--sc-5); margin-left: auto; }
.bar__nav a {
  font-size: var(--sc-t-sm); color: var(--sc-ink-soft);
  text-decoration: none; padding-block: var(--sc-1);
  border-bottom: 1px solid transparent;
}
.bar__nav a:hover { color: var(--sc-ink); border-bottom-color: var(--sc-accent); }
.bar__cta {
  font-size: var(--sc-t-sm); font-weight: 600; text-decoration: none;
  color: var(--sc-accent-ink); background: var(--sc-accent);
  padding: var(--sc-2) var(--sc-4); border-radius: var(--sc-r-sm);
}
.cta__short { display: none; }
.bar__cta:hover { background: color-mix(in oklab, var(--sc-accent) 88%, #fff); }
/* The "Why now" anchor is a desktop-only convenience. */
@media (max-width: 1040px) { .bar__nav-extra { display: none; } }

@media (max-width: 700px) {
  .bar { gap: var(--sc-3); padding-inline: var(--sc-4); }
  .bar__nav { gap: var(--sc-4); }
  .bar__nav a:last-child { display: none; }
  .bar__cta { padding: var(--sc-2) var(--sc-3); font-size: var(--sc-t-xs); white-space: nowrap; }
  .bar__nav a:nth-last-child(2) { display: none; }
  .cta__long { display: none; }
  .cta__short { display: inline; }
}

/* ------------------------------------------------------- shared elements -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; text-decoration: none;
  padding: 0.9rem 1.5rem; border-radius: var(--sc-r-sm);
  box-shadow: var(--sc-e1);
  transition: transform var(--sc-d-fast) var(--sc-ease-out),
              background-color var(--sc-d-fast) var(--sc-ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--sc-accent); color: var(--sc-accent-ink); }
.btn--quiet {
  background: transparent; color: var(--sc-ink);
  box-shadow: none; border: 1px solid var(--ink-line-2);
}
.btn--ink { background: #1A0E0A; color: #F4F1EB; }

.lede {
  color: var(--sc-ink-soft); font-size: var(--sc-t-lg);
  max-width: 40ch; text-wrap: pretty;
}

/* Every media frame starts as a readable typographic tile. The official still
   is layered on top only once it actually loads, so a blocked or expired
   thumbnail degrades instead of leaving a hole. */
.frame, .clip__frame {
  position: relative; overflow: hidden; margin: 0;
  background:
    linear-gradient(160deg, #23282F 0%, #191D23 60%, #202531 100%);
  border: 1px solid var(--ink-line);
  border-radius: var(--sc-r-sm);
  box-shadow: var(--sc-e2);
}
.frame__fallback, .clip__fallback {
  position: absolute; inset: auto var(--sc-3) var(--sc-3) var(--sc-3);
  font-family: var(--sc-font-display); font-weight: 600;
  font-size: var(--sc-t-sm); color: var(--sc-ink-soft);
  letter-spacing: var(--sc-track-wide); text-transform: uppercase;
}
.frame > img, .clip__frame > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 480ms var(--sc-ease-out);
}
.frame > img.is-on, .clip__frame > img.is-on { opacity: 1; }
.frame:has(img.is-on) .frame__fallback,
.clip__frame:has(img.is-on) .clip__fallback { opacity: 0; transition: opacity 240ms var(--sc-ease-out); }

/* ----------------------------------------------------------------- hero -- */
.act--hero .sc-stage { display: block; }
.hero { position: sticky; }
.hero__far { position: absolute; inset: -10%; }
.hero__rules {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, var(--ink-line) 0 1px, transparent 1px 9vw);
  opacity: 0.5;
  filter: blur(0.3px);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(100deg,
    color-mix(in oklab, #171A1F 96%, transparent) 0%,
    color-mix(in oklab, #171A1F 88%, transparent) 34%,
    color-mix(in oklab, #171A1F 40%, transparent) 56%,
    transparent 76%);
}
.hero__frames { position: absolute; inset: 0; }
.frame--rear {
  position: absolute;
  width: 15vw; aspect-ratio: 9 / 16;
  filter: blur(1.6px) saturate(0.7) brightness(0.62);
  box-shadow: var(--sc-e1);
}
.frame--rear-a { right: 27vw; top: 12vh; transform: rotate(-4deg) scale(0.9); }
.frame--rear-b { right: 6vw;  top: 26vh; transform: rotate(5deg) scale(0.82); }

.frame--subject {
  position: absolute; z-index: 2;
  right: 12vw; top: 50%; margin-top: -29svh;
  width: 33svh; height: 58svh;
  border-color: var(--ink-line-2);
  box-shadow: var(--sc-e3);
}
.frame__cap {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: var(--sc-5) var(--sc-3) var(--sc-2);
  font-size: var(--sc-t-xs); color: #E8E3DA;
  background: linear-gradient(to top,
    color-mix(in oklab, #0E1013 92%, transparent), transparent);
}
.frame__cap a { color: var(--sc-accent); }

/* Near plane: a partial film edge that crosses the subject's boundary. */
.hero__near {
  position: absolute; z-index: 4; left: 0; top: 0; bottom: 0;
  width: 3.4rem; display: flex; flex-direction: column;
  justify-content: space-around; align-items: center;
  background: linear-gradient(90deg, #101317 0%, #101317 62%, transparent 100%);
  border-right: 1px solid var(--ink-line);
}
.hero__near span {
  width: 1.1rem; height: 1.6rem; border-radius: 3px;
  background: #22262C; box-shadow: var(--sc-edge);
}

.hero__copy {
  position: absolute; z-index: 10;
  left: var(--sc-gutter); right: auto;
  bottom: clamp(3rem, 14vh, 9rem);
  max-width: min(46rem, 58vw);
  padding-left: 3.4rem;
}
.hero__copy { max-width: min(44rem, 58vw); }
.hero .sc-display--xl { font-size: clamp(3.4rem, 7.2vw, 6.5rem); line-height: 0.99; }
.hero__sub { font-size: clamp(1rem, 1.5vw, 1.25rem); }
.frame--subject { right: 9vw; width: 36svh; height: 64svh; margin-top: -31svh; }
.frame--rear-a { right: 28vw; top: 14vh; }
.frame--rear-b { right: 3vw; top: 27vh; }
.hero__play {
  position: absolute; z-index: 5; left: 50%; top: 50%;
  transform: translate(-50%, -50%); white-space: nowrap;
  padding: 0.8rem 1.1rem; border: 1px solid #F4F1EB55;
  background: #171A1Fe6; color: #F4F1EB; border-radius: 4px;
  font-weight: 600; cursor: pointer;
}
.hero__play:hover { background: #F35335; color: #171A1F; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; border: 0; }
@media (prefers-reduced-motion: no-preference) and (min-width: 601px) {
  .frame--rear-a { transform: translate3d(calc(var(--sc-p, 0) * -100px), calc(var(--sc-p, 0) * -75px), 0) rotate(calc(-9deg + var(--sc-p, 0) * 6deg)); }
  .frame--rear-b { transform: translate3d(calc(var(--sc-p, 0) * 65px), calc(var(--sc-p, 0) * 80px), 0) rotate(calc(10deg - var(--sc-p, 0) * 5deg)); }
  .frame--subject { transform: translate3d(calc(var(--sc-p, 0) * -30px), calc(var(--sc-p, 0) * 32px), 0) rotate(calc(4deg - var(--sc-p, 0) * 7deg)) scale(calc(1 + var(--sc-p, 0) * 0.08)); }
}
.sc-display--xl { font-size: var(--sc-t-4xl); font-weight: 700; margin: 0; }
.hero__sub {
  margin: var(--sc-5) 0 0; max-width: 34ch;
  font-size: var(--sc-t-lg); color: #DCD7CE;
}
.hero__acts { display: flex; flex-wrap: wrap; gap: var(--sc-3); margin: var(--sc-6) 0 0; }

/* ----------------------------------------------------------------- work -- */
/* The curved media rail is self-contained: every selector below is scoped to
   .rail or .clip, nothing here touches the hero or the #reel phone. */
.act--work { background: linear-gradient(180deg, #171A1F, #14171C); }
.work__head { max-width: 52rem; margin-inline: auto; text-align: center; }
.sc-display--lg { font-size: var(--sc-t-3xl); font-weight: 700; margin: 0; }
.work__head .lede { margin-top: var(--sc-4); margin-inline: auto; }

.clip h3 {
  font-family: var(--sc-font-display); font-size: var(--sc-t-lg);
  margin: var(--sc-4) 0 0; letter-spacing: var(--sc-track-snug);
}
.clip__frame { aspect-ratio: 9 / 16; border-radius: var(--sc-r-md, 14px); }
.clip--playing .clip__frame { aspect-ratio: 9 / 16; }
.clip__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.clip__play {
  position: absolute; inset: auto var(--sc-3) var(--sc-3) auto; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 var(--sc-4);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  border: 0; border-radius: var(--sc-r-pill);
  font-weight: 600; font-size: var(--sc-t-sm); cursor: pointer;
  box-shadow: var(--sc-e2);
}
.clip__play:hover { background: color-mix(in oklab, var(--sc-accent) 88%, #fff); }
.clip__close {
  position: absolute; inset: var(--sc-3) var(--sc-3) auto auto; z-index: 4;
  min-height: 2.75rem; min-width: 2.75rem; padding: 0 var(--sc-3);
  background: color-mix(in oklab, #171A1F 82%, transparent);
  color: var(--sc-ink); border: 1px solid var(--ink-line-2);
  border-radius: var(--sc-r-pill); cursor: pointer; font-size: var(--sc-t-sm);
}
.clip__kind {
  margin: var(--sc-2) 0 0; font-size: var(--sc-t-xs);
  letter-spacing: var(--sc-track-wide); text-transform: uppercase;
  color: var(--sc-ink-soft);
}
.clip__kind--own { color: var(--sc-accent); }
.clip__note {
  margin: var(--sc-2) 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
}
.clip__src { display: inline-block; margin-top: var(--sc-2); font-size: var(--sc-t-sm); }

/* -- the rail ------------------------------------------------------------ */
.rail {
  --rail-card-w: clamp(168px, 17vw, 244px);
  --rail-meta-h: 12.5rem;
  margin-top: var(--sc-8);
  position: relative;
  width: 100%;
}
.rail__stage {
  position: relative;
  width: 100%;
  overflow-x: clip;
  padding-block: var(--sc-2);
}
.rail__track {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--sc-6);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--sc-gutter, 1.25rem); padding-bottom: var(--sc-4);
}
.rail__slot { flex: 0 0 var(--rail-card-w); scroll-snap-align: center; }
.rail__slot--echo { display: none; }
.rail__ui[hidden] { display: none; }

/* Live (JavaScript succeeded): a shallow concave cylinder. */
.rail.is-live .rail__stage {
  height: calc(var(--rail-card-w) * 16 / 9 + var(--rail-meta-h));
  perspective: 1400px;
  perspective-origin: 50% 42%;
  touch-action: pan-y;
}
.rail.is-live .rail__track {
  position: absolute; inset: 0;
  display: block; overflow: visible; padding: 0;
  transform-style: preserve-3d;
}
.rail.is-live .rail__slot {
  position: absolute; top: 0; left: 50%;
  width: var(--rail-card-w); margin-left: calc(var(--rail-card-w) / -2);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.rail.is-live .rail__slot--echo { display: block; }
/* Title and attribution are computed straight off the slot's own detail value
   with no transition, so a real card and its echo match exactly at the wrap. */
.rail.is-live .rail__slot .clip__meta {
  opacity: calc(0.45 + 0.55 * var(--rail-detail, 1));
  transition: none;
}
/* Only the real cards carry these three. They are driven straight off the
   slot's own --rail-detail with no transition, so they have already reached
   zero by the time a real card and its echo swap places: at that distance the
   two are visually identical, and the metadata keeps its space either way. */
.rail.is-live .rail__slot .clip__play,
.rail.is-live .rail__slot .clip__note,
.rail.is-live .rail__slot .clip__src {
  opacity: var(--rail-detail, 1);
  transition: none;
}
.rail.is-live .rail__slot:not([data-near]) .clip__play,
.rail.is-live .rail__slot:not([data-near]) .clip__src { pointer-events: none; }
.rail.is-live .rail__slot--echo { pointer-events: none; }

.rail.is-live.is-dragging { cursor: grabbing; }
.rail.is-live .rail__card { user-select: none; }

.rail__ui {
  display: flex; align-items: center; justify-content: center; gap: var(--sc-2);
  margin: var(--sc-5) auto 0; width: max-content;
  padding: 0.35rem; border-radius: var(--sc-r-pill);
  border: 1px solid var(--ink-line-2);
  background: color-mix(in oklab, #1E232A 70%, transparent);
}
.rail__btn {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--sc-ink);
  border: 0; border-radius: var(--sc-r-pill); cursor: pointer;
  font-size: 1.25rem; line-height: 1;
}
.rail__btn:hover { background: color-mix(in oklab, var(--sc-ink) 12%, transparent); }
.rail__btn[aria-pressed="true"] .rail__ico { color: var(--sc-accent); }
.rail__dots { display: flex; align-items: center; gap: 0.35rem; padding-inline: 0.35rem; }
.rail__dot {
  min-width: 44px; min-height: 44px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.rail__dot::before {
  content: ""; display: block; height: 6px; width: 6px; border-radius: 999px;
  background: color-mix(in oklab, var(--sc-ink) 40%, transparent);
  transition: width 220ms var(--sc-ease-out), background 220ms var(--sc-ease-out);
}
.rail__dot[aria-current="true"]::before { width: 24px; background: var(--sc-accent); }

/* Below ~320px the control pill can exceed the viewport by a few px. Narrow
   the gaps/padding only — every button keeps its 44px target. */
@media (max-width: 359px) {
  .rail__ui { gap: 0.15rem; padding: 0.15rem; }
  .rail__dots { gap: 0.15rem; padding-inline: 0.15rem; }
}

@media (max-width: 860px) {
  .rail { --rail-card-w: clamp(160px, 52vw, 230px); --rail-meta-h: 13.5rem; }
}
@media (max-height: 640px) and (orientation: landscape) {
  .rail { --rail-card-w: clamp(108px, 14vw, 148px); --rail-meta-h: 9rem; }
}


/* --------------------------------- the peak: smartphone distribution ------
   --a (arrival of the phone), --o (organic wiring), --d (paid wiring) are
   written by motion.js from the act's own --sc-p. The engine is untouched. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.feed {
  --a: 0; --o: 0; --d: 0;
  display: block;
  padding: max(5.5rem, 10vh) var(--sc-gutter) var(--sc-6);
  text-align: center;
}
.feed__copy h2 { margin: 0; font-size: clamp(2.6rem, 4.6vw, 4rem); }
.feed__copy .lede { margin: 0.75rem auto 0; font-size: 1.1rem; }

.feed__stage {
  position: relative;
  /* The centre column is an explicit width, and it is also the phone width.
     Before, the middle track was `auto` (sized by the caption's intrinsic
     width) while the screen took its cross-axis width from flex height plus
     aspect-ratio, so the screen hung outside its own track and covered the
     Organic and Paid groups. Width now drives everything. */
  --phone-w: min(18rem, 28vw, calc((100svh - 19rem) * 9 / 16));
  margin: var(--sc-6) auto 0;
  max-width: 1080px;
  height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--phone-w) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 6rem);
  text-align: left;
}

/* ---- the creative is the star ---- */
.phone {
  position: relative; z-index: 3; margin: 0;
  width: 100%; min-width: 0; max-width: 100%; height: auto;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sc-2);
  opacity: calc(0.12 + 0.88 * var(--a));
  transform: translateY(calc((1 - var(--a)) * 42px)) scale(calc(0.93 + 0.07 * var(--a)));
}
.phone__screen {
  position: relative; overflow: hidden;
  flex: none; width: 100%; height: auto; min-height: 0;
  aspect-ratio: 9 / 16;

  background: linear-gradient(160deg, #23282F 0%, #191D23 60%, #202531 100%);
  /* the subtle smartphone silhouette: a soft bezel, not a wireframe toy */
  border: 3px solid #0E1013;
  border-radius: 26px;
  box-shadow: 0 0 0 1px var(--ink-line-2), var(--sc-e3, 0 30px 70px rgba(0,0,0,0.5));
}
.phone__screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 480ms var(--sc-ease-out); }
.phone__screen > img.is-on { opacity: 1; }
.phone__screen:has(img.is-on) .clip__fallback { opacity: 0; }
.phone__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2; display: inline-flex; align-items: center; gap: 0.55em;
  min-height: 2.9rem; padding: 0.7rem 1.05rem;
  width: max-content; white-space: nowrap;
  font-family: var(--sc-font-text); font-size: var(--sc-t-sm); font-weight: 600;
  color: var(--sc-accent-ink); background: var(--sc-accent);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}
.phone__play:hover { filter: brightness(1.06); }
.phone__tri {
  width: 0; height: 0; border-style: solid;
  border-width: 0.42em 0 0.42em 0.66em;
  border-color: transparent transparent transparent currentColor;
}
.phone__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.phone__cap {
  flex: 0 0 auto; max-width: 100%; min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--sc-t-xs); color: var(--sc-ink-soft); text-align: center;
}

/* ---- the two distribution groups ---- */
.grp {
  position: relative; z-index: 2; min-width: 0;
  display: flex; flex-direction: column; gap: var(--sc-4);
}

.grp--organic { align-items: flex-end; text-align: right; }
.grp--paid { align-items: flex-start; }
/* Organic sits left of the phone, so its marks face inward. */
.grp--organic .mark { flex-direction: row-reverse; }
.grp--organic .grp__act { border-left: 0; border-right: 2px solid var(--sc-accent); }
.grp__act {
  display: block; text-decoration: none;
  padding: var(--sc-2) var(--sc-3);
  border-left: 2px solid var(--sc-accent);
  opacity: calc(0.4 + 0.6 * var(--g, 0));
  transform: translateY(calc((1 - var(--g, 0)) * 14px));
}
.grp--organic .grp__act { --g: var(--o); }
.grp--paid .grp__act { --g: var(--d); }
.grp__act strong {
  display: block; font-family: var(--sc-font-display);
  font-size: var(--sc-t-lg); letter-spacing: var(--sc-track-snug);
}
.grp__act span { display: block; margin-top: 0.15rem; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.grp__act:hover strong { color: var(--sc-accent); }

.marks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sc-4); }
.grp--organic .marks { --w: var(--o); }
.grp--paid .marks { --w: var(--d); }
.mark {
  --p: clamp(0, (var(--w, 0) - var(--i, 0) * 0.15) / 0.4, 1);
  display: flex; align-items: center; gap: 0.7rem; min-width: 0;
  opacity: var(--p);
  transform: translateX(calc((1 - var(--p)) * var(--in, -14px)));
}

.grp--paid .mark { --in: 14px; }
.mark__i {
  flex: 0 0 auto; width: 1.55rem; height: 1.55rem;
  padding: 0.42rem; box-sizing: content-box;
  background: #12151A; border: 1px solid var(--ink-line-2); border-radius: 10px;
}
.mark__n {
  font-family: var(--sc-font-display); font-weight: 600;
  font-size: var(--sc-t-base); letter-spacing: var(--sc-track-snug);
  line-height: 1.15;
}
.mark__n em {
  display: block; font-family: var(--sc-font-text); font-style: normal;
  font-weight: 400; font-size: var(--sc-t-xs); color: var(--sc-ink-soft);
  letter-spacing: 0.02em; margin-top: 0.1rem;
}
/* Intentional brand accents in an otherwise ink scene. Platform identification
   only: these marks are not partner badges and are not interactive. */
.mark--tiktok    .mark__i { fill: #FFFFFF; background: #000000; }
.mark--instagram .mark__i { fill: #FF0069; }
.mark--youtube   .mark__i { fill: #FF0000; }
.mark--meta      .mark__i { fill: #0467DF; }
.mark--snapchat  .mark__i { fill: #171A1F; background: #FFFC00; border-color: #FFFC00; }

/* ---- the connections ---- */
.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.wires path, .wires use {
  fill: none; stroke: var(--sc-accent); stroke-width: 1.4px;
  vector-effect: non-scaling-stroke; stroke-linecap: round;
}
.wires__organic path { --w: var(--o); }
.wires__paid path { --w: var(--d); }
.wires path {
  --p: clamp(0, (var(--w, 0) - var(--i, 0) * 0.15) / 0.4, 1);
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p));
  opacity: calc(0.22 + 0.5 * var(--p));
}
.sig { --w: var(--o); }
.sig--d { --w: var(--d); }
.sig {
  --p: clamp(0, (var(--w, 0) - var(--i, 0) * 0.15) / 0.4, 1);
  stroke: color-mix(in oklab, var(--sc-accent) 55%, #F4F1EB);
  stroke-width: 2.4px;
  stroke-dasharray: 0.07 0.93;
  opacity: calc(0.9 * var(--p) * var(--p));
  animation: sig-run 3.2s linear infinite;
  animation-delay: calc(var(--i, 0) * -0.5s);
}
@keyframes sig-run { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (max-width: 1100px) {
  .feed__stage { gap: 0.5rem; }
  .mark__n { font-size: var(--sc-t-sm); }
}

/* ---- purpose-made small-screen composition: video, then two groups ----
   Same condition as FEED_FLOW in motion.js: narrow screens, and also short
   ones, where the pinned three-column composition cannot fit at all. */
@media (max-width: 820px), (max-height: 640px) {
  .act--feed { height: auto !important; }
  .feed { position: relative !important; height: auto !important; overflow: visible !important; }
  /* Small screens scroll naturally, so the diagram is delivered complete: no
     mark is ever present-but-invisible while it sits in the viewport. */
  .feed { --a: 1 !important; --o: 1 !important; --d: 1 !important; }
  .phone, .grp__act, .mark { opacity: 1; transform: none; }
  .feed { padding: max(5.5rem, 9vh) var(--sc-gutter) var(--sc-7); }
  .feed__stage {
    display: flex; flex-direction: column; height: auto;
    margin-top: var(--sc-5); text-align: left; max-width: none;
  }
  /* The creative leads the column, then Organic, then Paid. */
  .phone { order: -1; }
  .grp--organic { align-items: flex-start; text-align: left; }
  .grp--organic .mark { flex-direction: row; }
  .grp--organic .grp__act { border-right: 0; border-left: 2px solid var(--sc-accent); }
  .wires { display: none; }
  .phone { height: auto; width: min(62vw, 250px); margin: 0 auto; }
  .phone__screen { flex: none; width: 100%; }
  .grp { margin-top: var(--sc-6); }
  .grp__act { width: 100%; }
  .marks { flex-direction: row; flex-wrap: wrap; gap: var(--sc-3) var(--sc-5); }
  /* Narrow screens keep the routing idea with a short accent lead-in per mark
     instead of long curves. */
  .mark { transform: none; }
  .mark::before {
    content: ""; flex: 0 0 auto; height: 2px; border-radius: 2px;
    background: var(--sc-accent);
    width: calc(0.65rem * var(--p));
  }
}

/* ----------------------------------------------- services: contact sheet -- */
#services { background: #14171C; padding-block: clamp(3rem, 6vw, 4.5rem); }
#services .services__h {
  margin: 0; font-family: var(--sc-font-display); font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 3.5rem); line-height: 1.05;
}
#services .services__sheet { margin-top: 2rem; }
#services .production {
  display: grid; grid-template-columns: minmax(0, 1fr) 9rem;
  min-height: 0; border-block: 1px solid var(--ink-line-2);
  background: color-mix(in oklab, var(--sc-surface) 64%, transparent);
}
#services .production__copy {
  display: grid; align-content: center; padding: 1.5rem 2rem;
}
#services .services__index {
  margin: 0 0 0.75rem; color: var(--sc-accent);
  font-family: var(--sc-font-display); font-size: var(--sc-t-xs);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
}
#services h3 {
  margin: 0; font-family: var(--sc-font-display); font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 1.85rem); line-height: 1.12;
}
#services .production h3 { color: var(--sc-accent); font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
#services .production__intro {
  margin: var(--sc-3) 0 0; color: var(--sc-ink);
  font-size: 1.05rem; line-height: 1.5; text-wrap: pretty;
}
#services .production__scope,
#services .offer__platforms,
#services .offer__scope {
  list-style: none; padding: 0; margin: 1rem 0 0;
}
#services .production__scope {
  display: flex; flex-wrap: wrap; gap: var(--sc-2) var(--sc-5);
  color: var(--sc-ink-soft); font-size: var(--sc-t-sm);
}
#services .production__scope li::before {
  content: "—"; color: var(--sc-accent); margin-right: var(--sc-2);
}
#services .production__still {
  position: relative; overflow: hidden; margin: 0; min-height: 0;
  border-left: 1px solid var(--ink-line-2); background: var(--sc-canvas);
}
#services .production__still > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 480ms var(--sc-ease-out);
}
#services .production__still > img.is-on { opacity: 0.8; }
#services .production__still > span {
  position: absolute; inset: auto var(--sc-3) var(--sc-3); z-index: 1;
  color: var(--sc-ink-soft); font-family: var(--sc-font-display);
  font-size: var(--sc-t-xs); font-weight: 600; text-transform: uppercase;
}
#services .production__still:has(img.is-on) > span { opacity: 0; }
#services .offers {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--ink-line-2);
}
#services .offer {
  display: flex; flex-direction: column; min-width: 0;
  padding: 1.75rem 1.5rem 1.5rem; border-right: 1px solid var(--ink-line-2);
}
#services .offer:first-child { padding-left: 0; }
#services .offer:last-child { border-right: 0; padding-right: 0; }
#services .offer > p:not(.services__index) {
  margin: var(--sc-3) 0 0; color: var(--sc-ink-soft); max-width: 31ch;
  font-size: var(--sc-t-sm); line-height: 1.55; text-wrap: pretty;
}
#services .offer__platforms {
  display: flex; flex-wrap: wrap; gap: var(--sc-3) var(--sc-4);
  min-height: 4.5rem; align-content: flex-start;
}
#services .offer__platforms li {
  display: inline-flex; align-items: center; gap: var(--sc-2);
  color: var(--sc-ink-soft); font-size: var(--sc-t-xs);
}
#services .service-mark { width: 1rem; height: 1rem; flex: 0 0 auto; fill: currentColor; }
#services .service-mark--tiktok { color: #FFFFFF; }
#services .service-mark--instagram { color: #FF0069; }
#services .service-mark--youtube { color: #FF0000; }
#services .service-mark--meta { color: #0467DF; }
#services .service-mark--snapchat { color: #FFFC00; }
#services .offer__scope {
  display: grid; gap: var(--sc-2); min-height: 4.5rem;
  color: var(--sc-ink-soft); font-size: var(--sc-t-xs);
}
#services .offer__scope li { padding-left: var(--sc-3); border-left: 1px solid var(--sc-accent); }
#services .services__link {
  width: fit-content; margin-top: auto; padding-top: 1rem;
  color: var(--sc-ink); font-size: var(--sc-t-sm); font-weight: 600;
  text-decoration: none; border-bottom: 1px solid var(--sc-accent);
}
#services .services__link span { color: var(--sc-accent); }
#services .services__link:hover { color: var(--sc-accent); }
#services .services__link:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 4px; }

@media (max-width: 900px) {
  #services .production { grid-template-columns: minmax(0, 1fr) 8rem; }
  #services .production__copy { padding: var(--sc-5); }
  #services .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #services .offer:nth-child(2) { border-right: 0; padding-right: 0; }
  #services .offer--launch {
    grid-column: 1 / -1; border-top: 1px solid var(--ink-line-2);
    padding-left: 0; display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 1fr);
    column-gap: var(--sc-6);
  }
  #services .offer--launch .services__index,
  #services .offer--launch h3,
  #services .offer--launch > p { grid-column: 1; }
  #services .offer--launch .offer__scope { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; align-self: center; }
  #services .offer--launch .services__link { grid-column: 1; }
}

@media (max-width: 600px) {
  #services .services__sheet { margin-top: var(--sc-6); }
  #services .production { grid-template-columns: minmax(0, 1fr); }
  #services .production__copy { padding: 1.25rem; }
  #services .production__still { display: none; }
  #services .production__scope { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
  #services .offers { grid-template-columns: 1fr; }
  #services .offer,
  #services .offer:first-child,
  #services .offer:last-child {
    padding: var(--sc-5) 0; border-right: 0; border-top: 1px solid var(--ink-line-2);
  }
  #services .offer:first-child { border-top: 0; }
  #services .offer--launch { display: flex; grid-column: auto; }
  #services .offer--launch .offer__scope { margin-top: var(--sc-5); }
  #services .offer__platforms,
  #services .offer__scope { min-height: 0; }
}

/* ---------------------------------------------------------------- close --
   The accent canvas lives on .close itself, not on the engine's .sc-stage:
   the engine only adds that class to pinned acts, so without JS, and in phone
   flow, an .sc-stage-only rule leaves dark close text on the dark page. */
.act--close .sc-stage { background: var(--sc-accent); }
.close {
  --sc-ink: #1A0E0A;
  --sc-ink-soft: #4A241B;
  background: var(--sc-accent);
  color: var(--sc-ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: max(7rem, 14vh) var(--sc-gutter) var(--sc-5);
}

.close__inner { max-width: 44rem; }
.close h2 { font-size: var(--sc-t-3xl); }
.close .btn--ink { margin-top: var(--sc-7); }
.close__mail { margin: var(--sc-5) 0 0; font-size: var(--sc-t-lg); }
.close__mail a { color: #1A0E0A; }
.foot {
  border-top: 1px solid color-mix(in oklab, #1A0E0A 26%, transparent);
  padding-top: var(--sc-4);
}
.foot nav { display: flex; flex-wrap: wrap; gap: var(--sc-2) var(--sc-5); }
.foot nav a { font-size: var(--sc-t-sm); font-weight: 500; color: #1A0E0A; }
.foot__note {
  margin: var(--sc-3) 0 0; max-width: 62ch;
  font-size: var(--sc-t-xs); color: #4A241B;
}
@media (max-width: 860px) {
  .close { padding-top: max(6rem, 12vh); }
  .close .btn--ink { margin-top: var(--sc-5); }
}

/* -------------------------------------------------- phone art direction -- */
@media (max-width: 860px) {
  .hero { display: block; }
  .hero__copy {
    position: absolute; top: max(5.5rem, 11vh); bottom: auto;
    left: var(--sc-gutter); right: var(--sc-gutter);
    max-width: none; padding-left: 0;
  }
  .sc-display--xl { font-size: var(--sc-t-2xl); }
  .hero__sub { font-size: var(--sc-t-base); margin-top: var(--sc-4); max-width: 40ch; }
  .hero__acts { margin-top: var(--sc-5); }
  .hero__acts .btn { flex: 1 1 auto; }
  /* The subject stays fully visible and centred under the type. */
  /* Centred with auto margins, not a transform: the engine owns transform. */
  .frame--subject {
    right: 0; left: 0; top: auto; bottom: max(2.5rem, 5vh);
    margin-top: 0; margin-inline: auto;
    width: min(52vw, 27svh); height: min(92vw, 48svh);
  }
  .hero__frames .frame--rear-a { right: auto; left: 4vw; top: auto; bottom: 16vh; width: 24vw; }
  .hero__frames .frame--rear-b { right: 4vw; top: auto; bottom: 22vh; width: 20vw; }
  .hero__near { width: 1.6rem; }
  .hero__near span { width: 0.6rem; height: 1rem; }
  .hero__scrim {
    background: linear-gradient(to bottom,
      color-mix(in oklab, #171A1F 96%, transparent) 0%,
      color-mix(in oklab, #171A1F 80%, transparent) 42%,
      color-mix(in oklab, #171A1F 24%, transparent) 62%,
      transparent 82%);
  }
}
@media (max-width: 400px) {
  .hero__frames { display: none; }
  .frame--subject { width: min(46vw, 19svh); height: min(82vw, 34svh); bottom: max(1.25rem, 2.5vh); }
}

/* ------------------------------------------------------- reduced motion --
   No pinned travel at all: every act becomes an ordinary block, the hero
   composition keeps its depth statically, and the peak is fully unfolded and
   routed. Nothing is only reachable by scrolling something that moves. */
@media (prefers-reduced-motion: reduce) {
  [data-sc-act] { height: auto !important; }
  [data-sc-stage], .sc-stage { position: relative !important; height: auto !important; overflow: visible !important; }

  /* Anything the engine would otherwise animate off a pinned progress value is
     forced on here, including individual kinetic glyph lines and the closing
     CTA: in reduced motion the acts are short unpinned blocks, so that progress
     never reaches its plateau and the content would never appear. */
  [data-sc-cue], [data-sc-in], [data-sc-stagger] > *, .sc-split__i, .sc-split__l {
    opacity: 1 !important; transform: none !important; pointer-events: auto !important;
    clip-path: none !important; filter: none !important;
  }

  .hero {
    display: flex !important; flex-direction: column; gap: var(--sc-6);
    padding: max(7rem, 14vh) var(--sc-gutter) var(--sc-8);
  }

  .hero__far, .hero__near, .hero__scrim { display: none; }
  /* Decorative external-creator frames are dropped: in normal flow they would
     read as our own content, and the credited copies live in the gallery. */
  .hero__frames { display: none; }
  /* The headline leads the hero column. */
  .hero__copy { position: static; inset: auto; max-width: none; padding-left: 0; order: -1; }

  .frame--rear {
    position: relative; inset: auto; margin: 0; width: 22%;
    filter: saturate(0.8) brightness(0.8); transform: none;
  }

  .frame--subject {
    position: relative; inset: auto; margin: var(--sc-6) 0 0; transform: none;
    width: min(100%, 22rem); height: auto; aspect-ratio: 9 / 16;
  }

  /* Reduced motion: the distribution diagram is delivered fully connected. */
  .feed { --a: 1; --o: 1; --d: 1; display: block; padding-block: var(--sc-9) var(--sc-8); }
  .feed__stage { display: flex; flex-direction: column; height: auto; margin-top: var(--sc-6); }
  .wires { display: none; }
  .phone { order: -1; height: auto; width: min(100%, 20rem); margin: 0 auto; transform: none; opacity: 1; }
  .phone__screen { flex: none; width: 100%; }
  .grp { margin-top: var(--sc-7); }
  .grp--organic { align-items: flex-start; text-align: left; }
  .grp--organic .mark { flex-direction: row; }
  .grp--organic .grp__act { border-right: 0; border-left: 2px solid var(--sc-accent); }
  .grp__act { transform: none; opacity: 1; }
  .mark { transform: none; opacity: 1; }
  .marks { flex-direction: row; flex-wrap: wrap; gap: var(--sc-4) var(--sc-6); }

  .close { padding-block: var(--sc-9) var(--sc-5); }
  .btn:hover { transform: none; }
}

/* Final small-screen composition: natural flow and a complete visual stage. */
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .act--hero, .act--feed, .act--close { height: auto !important; }
  .hero, .feed, .close { position: relative !important; overflow: visible !important; }
  .hero { height: max(640px, 100svh) !important; overflow: clip !important; }
  .hero__copy { top: 5.5rem; max-width: none; }
  .hero .sc-display--xl { font-size: clamp(2.5rem, 10vw, 3.25rem); }
  .hero__sub { font-size: 1rem; margin-top: 1rem; }
  .hero__acts { margin-top: 1.25rem; gap: 0.6rem; }
  .hero__acts .btn { padding: 0.75rem 0.8rem; font-size: 0.86rem; }
  .frame--subject { width: min(49vw, 24svh); height: min(87vw, 43svh); bottom: 1.25rem; right: 0; margin-top: 0; }
  .hero__near { opacity: 0.55; }
  .hero__play { font-size: 0.75rem; padding: 0.65rem 0.8rem; }
  .frame__cap { font-size: 0.6rem; }
  .feed { height: auto !important; padding: 6rem 1.25rem 2.5rem; text-align: left; }
  .feed__copy h2 { font-size: 2.25rem; }
  .feed__copy .lede { font-size: 1rem; margin-left: 0; }
  .feed__stage { margin-top: 1.75rem; }
  .phone { width: min(66vw, 240px); }
  .grp { margin-top: 1.75rem; }
  .marks { gap: 1rem 1.5rem; }
  .mark__n { font-size: 0.95rem; }
  .close { height: auto !important; min-height: 560px; padding-top: 5rem; gap: 4rem; }
  .close h2 { font-size: 2.7rem; }
}
/* Short phones (360x640): the whole peak has to clear the fixed bar. */
@media (max-width: 600px) and (max-height: 700px) and (prefers-reduced-motion: no-preference) {
  .feed { padding-top: 5.25rem; }
  .feed__copy h2 { font-size: 1.9rem; line-height: 1.05; }
  .feed__copy .lede { font-size: 0.95rem; }
  .phone { width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .sc-display--xl { font-size: clamp(2.5rem, 6vw, 5rem); }
  .hero__play { transform: translate(-50%, -50%); }
  .sig { animation: none; }
}

.close .btn:focus-visible { opacity: 1 !important; transform: none !important; }
/* A keyboard user must never land on something invisible. */
.grp__act:focus-visible { opacity: 1 !important; transform: none !important; }
.phone:focus-within { opacity: 1 !important; transform: none !important; }


/* ------------------------------------------------ why now: the paper pause --
   A deliberate light interval between the two dark halves of the page. The
   whole section re-declares the ink tokens, so every child inherits dark text
   without a single hard-coded colour at the call site. No pinning here: this
   act is normal document flow and is complete without JS. */
.act--why {
  --sc-ink: #171A1F;
  --sc-ink-soft: #4E535B;
  --ink-line: color-mix(in oklab, #171A1F 14%, transparent);
  --ink-line-2: color-mix(in oklab, #171A1F 30%, transparent);
  background: var(--sc-paper, #F4F1EB);
  color: var(--sc-ink);
  padding-block: clamp(5rem, 9vw, 8rem);
}
.act--why a { color: inherit; }

.why__eyebrow {
  margin: 0; font-family: var(--sc-font-display); font-weight: 600;
  font-size: var(--sc-t-xs); letter-spacing: 0.22em; text-transform: uppercase;
  color: #BC3520;
}
.why__h {
  margin: var(--sc-4) 0 0; max-width: 24ch;
  font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1;
}
.why__h-accent { display: block; color: var(--sc-accent); }

.why__ambition {
  margin: var(--sc-7) 0 0; max-width: 28ch;
  font-family: var(--sc-font-display); font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.08; letter-spacing: var(--sc-track-snug);
}

/* Native disclosure keeps research available without competing with the thesis. */
.voices { margin: var(--sc-7) 0 0; border-top: 1px solid var(--ink-line-2); padding-top: var(--sc-4); }
.voices summary {
  width: fit-content; cursor: pointer; font-weight: 600; font-size: var(--sc-t-sm);
  color: var(--sc-ink-soft);
}
.voices__grid {
  margin-top: var(--sc-5);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sc-6);
}
.voice { margin: 0; }
.voice blockquote { margin: 0; }
.voice blockquote p {
  margin: 0; font-family: var(--sc-font-display); font-weight: 500;
  font-size: var(--sc-t-lg); line-height: 1.32; max-width: 34ch; text-wrap: pretty;
}
.voice figcaption { margin-top: var(--sc-4); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.voice cite { font-style: normal; font-weight: 600; color: var(--sc-ink); }
.voice figcaption a {
  display: block; margin-top: var(--sc-2); font-weight: 600; color: #BC3520;
  text-decoration: underline; text-underline-offset: 3px;
}

.urge {
  margin: var(--sc-7) 0 0; padding-top: var(--sc-5);
  border-top: 1px solid var(--ink-line-2);
}
.urge__line {
  margin: 0; max-width: 26ch;
  font-family: var(--sc-font-display); font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.05;
}
.urge__sub { margin: var(--sc-4) 0 0; max-width: 52ch; color: var(--sc-ink-soft); text-wrap: pretty; }
.btn--paper { background: var(--sc-accent); color: var(--sc-accent-ink); margin-top: var(--sc-5); }
.act--why :focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }

@media (max-width: 900px) {
  .voices__grid { grid-template-columns: 1fr; gap: var(--sc-6); }
}
