/* ============================================================
   SIGNAL — base.css
   Structure, components & motion. Theme-agnostic: every colour,
   font and treatment comes from CSS variables defined in the
   active theme file (theme-a / theme-b / theme-c).
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

/* ---------- Global tokens (constant across themes) ---------- */
:root {
  --font-wordmark: "Helvetica Neue", "Neue Haas Grotesk Text Pro", Helvetica, "Inter", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --gutter: clamp(24px, 5vw, 72px);
  --maxw: 1400px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .45s ease, color .45s ease;
}

::selection { background: var(--accent); color: var(--accent-contrast); }

/* ---------- Type helpers ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(40px, 5.6vw, 82px);
  line-height: 1.02;
  margin-top: 18px;
  color: var(--text);
}

.section-intro {
  margin-top: 22px;
  max-width: 52ch;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-2);
}

/* The word each theme gets to treat differently */
.tw { color: var(--accent); }

/* ---------- Reveal-on-scroll ---------- */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--rv-delay, 0s);
}
.rv.visible { opacity: 1; transform: translateY(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px var(--gutter);
  transition: padding .35s ease, background-color .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 13px var(--gutter);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo lockup — dot-square mark + wordmark, all code */
.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  color: var(--text);
}
.logo-mark {
  width: 26px;
  height: 26px;
  color: var(--mark-dot);
  flex: none;
}
.logo-mark svg { display: block; width: 100%; height: 100%; }
.logo-word {
  font-family: var(--font-wordmark);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .015em;
  line-height: .82;
  transform: translateY(1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links > a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--text-2);
  transition: color .25s ease;
}
.nav-links > a:hover { color: var(--text); }
.nav-links > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav-links > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px 2px;
  z-index: 120;
}
.nav-toggle span {
  width: 26px;
  height: 1.5px;
  background: var(--text);
  transition: transform .35s var(--ease-out), opacity .3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1.25;
  color: var(--text-2);
  transform: translateY(16px);
  opacity: 0;
  transition: transform .5s var(--ease-out), opacity .5s ease, color .25s ease;
}
.mobile-menu.open a { transform: translateY(0); opacity: 1; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu.open a:nth-child(1) { transition-delay: .05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: .1s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .2s; }
.mobile-menu.open a:nth-child(5) { transition-delay: .25s; }

/* ---------- Hero — the logo, recreated at stage scale ----------
   A square field of fine dots with the wordmark overlapping its
   bottom-left, exactly like the supplied artwork. Scroll (--hx)
   drifts and fades the whole composition — keynote style. */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--hero-bg, var(--bg));
  padding: 120px var(--gutter) 100px;
}
.hero-lockup {
  --sq: min(56vmin, 540px);
  position: relative;
  width: var(--sq);
  aspect-ratio: 1;
  transform: translateY(calc(var(--hx, 0) * -7vh)) scale(calc(1 - var(--hx, 0) * 0.05));
  opacity: calc(1 - var(--hx, 0) * 1.15);
  will-change: transform, opacity;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-wordmark {
  position: absolute;
  left: 5%;
  bottom: 5%;
  z-index: 2;
  font-family: var(--font-wordmark);
  font-weight: 400;
  font-size: calc(var(--sq) * 0.215);
  line-height: .78;
  letter-spacing: -.018em;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  user-select: none;
}
.hero-wordmark .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(.3em);
  animation: char-in 1s var(--ease-out) forwards;
}
@keyframes char-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  margin-top: 52px;
  max-width: 44ch;
  text-align: center;
  font-size: clamp(15px, 1.3vw, 17.5px);
  font-weight: 300;
  color: var(--text-2);
  transform: translateY(calc(var(--hx, 0) * -4vh));
  opacity: calc(1 - var(--hx, 0) * 1.7);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  transform: translateY(calc(var(--hx, 0) * -3vh));
  opacity: calc(1 - var(--hx, 0) * 1.9);
}

.hero-meta {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter) 30px;
  max-width: var(--maxw);
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: calc(1 - var(--hx, 0) * 2.2);
}

/* ---------- Story — moments that slot into the formula tray ----------
   Engine vars (inline, per element): --dock on .story-head-wrap;
   --mv (enter) & --fly (depart) on each .moment; --tv pops each .seg;
   --fuse (on .story-tray) joins the segments; --fv reveals the payoff. */
.story { position: relative; }
.story-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.story-head-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% - var(--dock, 0) * 37vh));
  width: min(1100px, calc(100% - 2 * var(--gutter)));
  text-align: center;
  z-index: 3;
}
.story-head {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.08;
  transform: scale(calc(1 - var(--dock, 0) * 0.6));
  will-change: transform;
}
.story-headsub {
  margin-top: 20px;
  font-size: clamp(15px, 1.3vw, 17.5px);
  font-weight: 300;
  color: var(--text-2);
  opacity: calc(1 - var(--dock, 0) * 2.4);
}

/* The formula assembling under the docked heading.
   --tv pops each segment in; --fuse (set on the tray) closes the gaps,
   squares the inner corners and docks the mark cap — one complete piece. */
.story-tray {
  position: absolute;
  left: 50%;
  top: 19.5vh;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  gap: calc((1 - var(--fuse, 1)) * 12px);
  max-width: calc(100% - 2 * var(--gutter));
  z-index: 3;
  white-space: nowrap;
}
.seg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: clamp(16px, 1.7vw, 23px) clamp(24px, 2.8vw, 42px);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
  opacity: var(--tv, 1);
  transform: translateY(calc((1 - var(--tv, 1)) * 18px)) scale(calc(.7 + var(--tv, 1) * .3));
  will-change: transform, opacity;
}
.seg i { font-style: normal; color: var(--accent-2); }
.seg-1 { border-radius: 16px calc(16px * (1 - var(--fuse, 1))) calc(16px * (1 - var(--fuse, 1))) 16px; }
.seg-2 { border-radius: calc(16px * (1 - var(--fuse, 1))); }
.seg-3 { border-radius: calc(16px * (1 - var(--fuse, 1))); }
.seg-cap {
  padding: 0;
  width: calc(76px * var(--fuse, 1));
  justify-content: center;
  overflow: hidden;
  border-color: var(--accent);
  border-radius: calc(16px * (1 - var(--fuse, 1))) 16px 16px calc(16px * (1 - var(--fuse, 1)));
}
.seg-cap .logo-mark {
  width: 28px;
  height: 28px;
  color: var(--mark-dot);
  display: block;
  flex: none;
}
.seg-cap .logo-mark svg { display: block; width: 100%; height: 100%; }
.tray-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(30px * (1 - var(--fuse, 1)));
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 21px;
  color: var(--text-3);
  opacity: calc(var(--tv, 1) * (1 - var(--fuse, 1)));
  overflow: hidden;
}

/* Each ingredient's own centre-stage moment */
.moment {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, calc(100% - 2 * var(--gutter)));
  text-align: center;
  z-index: 2;
  opacity: calc(var(--mv, 1) * (1 - var(--fly, 0)));
  transform: translate(-50%, -50%)
             translate(calc(var(--fly, 0) * var(--slotx, 0px)), calc((1 - var(--mv, 1)) * 46px + var(--fly, 0) * -30vh))
             scale(calc(1 - var(--fly, 0) * 0.62));
  will-change: transform, opacity;
  pointer-events: none;
}
.moment-1 { --slotx: -240px; }
.moment-2 { --slotx: 0px; }
.moment-3 { --slotx: 240px; }
.mo-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 22px;
}
.mo-figure {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(58px, 8vw, 112px);
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}
.mo-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
}
.mo-desc {
  margin: 18px auto 0;
  max-width: 52ch;
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 300;
  color: var(--text-2);
}
.mo-meta {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* The combined payoff */
.story-final {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 4vh)) scale(calc(0.92 + var(--fv, 1) * 0.08));
  width: min(860px, calc(100% - 2 * var(--gutter)));
  text-align: center;
  opacity: var(--fv, 1);
  pointer-events: none;
  z-index: 2;
}
.story-final.on { pointer-events: auto; }
.sf-line {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.08;
}
.sf-sub {
  margin-top: 20px;
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 300;
  color: var(--text-2);
}
.sf-cta { margin-top: 32px; }

/* ---------- How we work — timeline that draws itself ---------- */
.how-track {
  position: relative;
  margin-top: 10px;
}
.how-line {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.how-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--p, 1));
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 72px);
}
.how-step {
  position: relative;
  padding-top: 40px;
  opacity: var(--p, 1);
  transform: translateY(calc((1 - var(--p, 1)) * 60px));
  will-change: transform, opacity;
}
.how-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent);
}
.hs-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.hs-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
}
.hs-desc {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 40ch;
}

/* ---------- Statement — scroll-illuminated keynote copy ---------- */
.statement {
  position: relative;
  height: 160vh;
}
.statement-inner {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3em;
  padding: 0 var(--gutter);
}
.statement-line {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(34px, 4.8vw, 72px);
  line-height: 1.12;
  text-align: center;
}
.statement-line .w {
  color: var(--text-3);
  transition: color .35s ease;
}
.statement-line .w.lit { color: var(--text); }
.statement-line .w-accent.lit { color: var(--accent); }

/* ---------- Offers — editorial chapters, one per audience ----------
   --p is scrubbed 0 → 1 by the scroll engine on each .offer. */
.offers { display: flex; flex-direction: column; gap: clamp(70px, 9vw, 150px); }
.offer {
  --p: 1;
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.offer--flip .offer-media { order: 2; }
.offer--flip .offer-content { order: 1; }
.offer-media {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  overflow: hidden;
  clip-path: inset(calc((1 - var(--p)) * 8%) calc((1 - var(--p)) * 26%) calc((1 - var(--p)) * 8%) 0 round var(--radius-lg));
  will-change: clip-path;
}
.offer--flip .offer-media {
  clip-path: inset(calc((1 - var(--p)) * 8%) 0 calc((1 - var(--p)) * 8%) calc((1 - var(--p)) * 26%) round var(--radius-lg));
}
.offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-filter);
  transform: scale(calc(1.14 - var(--p) * 0.14));
  transition: filter .6s ease;
  will-change: transform;
}
.offer-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--img-wash);
  mix-blend-mode: var(--img-blend);
  opacity: .55;
  pointer-events: none;
  transition: opacity .6s ease;
}
.offer:hover .offer-media img { filter: none; }
.offer:hover .offer-media::after { opacity: 0; }
.offer-media--dots {
  background: var(--surface);
  border: 1px solid var(--line);
}
.offer-media--dots::after { content: none; }
.offer-media--dots canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.offer-content {
  position: relative;
  padding-top: clamp(64px, 7vw, 110px);
  opacity: calc(0.05 + var(--p) * 0.95);
  transform: translateY(calc((1 - var(--p)) * 60px));
  will-change: transform, opacity;
}
.offer-index {
  position: absolute;
  top: 0;
  left: -0.03em;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(96px, 11vw, 170px);
  line-height: 1;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
  user-select: none;
  opacity: calc(var(--p) * .9);
}
.offer-kicker {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.offer-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.05;
}
.offer-desc {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 46ch;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.scroll-cue::before {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .5; }
  50%      { transform: scaleY(1);  transform-origin: top; opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--btn-radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: transform .3s var(--ease-out), box-shadow .3s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn .arr { transition: transform .3s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary {
  background: var(--btn-bg);
  color: var(--accent-contrast);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow);
}
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Section shells — generous keynote spacing ---------- */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(110px, 13vw, 210px) var(--gutter);
}
.section-head { margin-bottom: clamp(56px, 7vw, 100px); }

.divider {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.divider-line { height: 1px; background: var(--line); }

/* ---------- Plus list (offer capabilities) ---------- */
.plus-list {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.plus-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-2);
  transition: color .25s ease, padding-left .35s var(--ease-out);
}
.plus-list li:hover { color: var(--text); padding-left: 10px; }
.plus-list li::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  flex: none;
}
.plus-list strong { font-weight: 500; color: var(--text); }

/* ---------- Partners ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 22px;
  min-height: 118px;
  background: var(--tile-bg);
  border: 1px solid var(--tile-line);
  border-radius: var(--radius);
  transition: transform .45s var(--ease-out), box-shadow .45s ease, border-color .3s ease;
}
.partner-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
  border-color: var(--line-strong);
}
.partner-tile img {
  max-height: 52px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: saturate(.92);
  transition: filter .3s ease, transform .45s var(--ease-out);
}
.partner-tile:hover img { filter: saturate(1); transform: scale(1.05); }

/* ---------- Contact ---------- */
.contact-section { text-align: center; }
.contact-section .section-label { justify-content: center; }
.contact-section .section-label::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.contact-desc {
  margin: 20px auto 0;
  max-width: 46ch;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-2);
}
.contact-email {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(26px, 4.2vw, 54px);
  line-height: 1.15;
  color: var(--text);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 96%;
  background-size: 0% 2px;
  transition: background-size .5s var(--ease-out), color .3s ease;
  padding-bottom: 6px;
}
.contact-email:hover { background-size: 100% 2px; color: var(--accent); }
.contact-socials {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 44px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.contact-socials a {
  color: var(--text-2);
  transition: color .25s ease;
}
.contact-socials a::after { content: " ↗"; color: var(--accent); }
.contact-socials a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--footer-bg, transparent);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--gutter) 36px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer .logo-mark { width: 34px; height: 34px; }
.footer .logo-word { font-size: 22px; }
.footer-tag {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--text-3);
  max-width: 34ch;
}
.footer-cols {
  display: flex;
  gap: clamp(40px, 6vw, 110px);
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-2);
  padding: 4px 0;
  transition: color .25s ease, transform .25s ease;
}
.footer-col a:hover { color: var(--accent); transform: translateX(3px); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.footer-socials { display: flex; gap: 18px; }
.footer-socials a {
  color: var(--text-3);
  transition: color .25s ease, transform .25s ease;
}
.footer-socials a:hover { color: var(--accent); transform: translateY(-2px); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-3);
}

/* ---------- Sub-pages ---------- */
.page-hero {
  position: relative;
  padding: clamp(150px, 18vh, 210px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.page-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 34px;
  transition: color .25s ease;
}
.back-link:hover { color: var(--accent); }
.back-link .arr { transition: transform .3s var(--ease-out); }
.back-link:hover .arr { transform: translateX(-4px); }
.page-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(42px, 7vw, 96px);
  line-height: 1.02;
  margin-top: 18px;
}
.page-subtitle {
  margin-top: 22px;
  max-width: 54ch;
  font-size: 16.5px;
  font-weight: 300;
  color: var(--text-2);
}

.page-content { padding: clamp(30px, 4vw, 60px) 0 clamp(90px, 10vw, 150px); }
.page-content-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.content-block { margin-bottom: clamp(48px, 6vw, 72px); }
.content-heading {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  margin-bottom: 20px;
}
.content-block > p {
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 14px;
}
.content-block a.inline-link,
.content-block p a[data-u] {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: border-color .25s ease;
}
.content-block a.inline-link:hover,
.content-block p a[data-u]:hover { border-bottom-color: var(--accent); }

.feature-list { margin-top: 8px; }
.feature-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.feature-item:last-child { border-bottom: 1px solid var(--line); }
.feature-number {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--accent);
  padding-top: 5px;
}
.feature-item h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: 19px;
  margin-bottom: 8px;
}
.feature-item p {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-2);
}

/* ---------- Theme switcher (dev tool) ---------- */
.theme-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
.theme-switcher button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .18);
  transition: transform .25s var(--ease-out);
  position: relative;
}
.theme-switcher button:hover { transform: scale(1.18); }
.theme-switcher button.active::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
}
.ts-a { background: linear-gradient(135deg, #0A0A0C 52%, #8AB4FF 52%, #C77DFF 100%); }
.ts-b { background: linear-gradient(135deg, #08130E 52%, #D9B36A 52%, #2E8B62 100%); }
.ts-c { background: linear-gradient(135deg, #161210 52%, #F26E4F 52%, #E8A45E 100%); }
.ts-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  min-width: 74px;
  text-align: left;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .offer { grid-template-columns: 1fr; gap: 30px; min-height: 0; }
  .offer--flip .offer-media { order: 0; }
  .offer--flip .offer-content { order: 0; }
  .offer-content { padding-top: clamp(56px, 9vw, 90px); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .story-head { font-size: clamp(30px, 8vw, 44px); }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .partner-tile { min-height: 96px; }
  .hero-lockup { --sq: min(76vw, 420px); }
  .hero-sub { margin-top: 40px; }
  .hero-meta .meta-domain { display: none; }
  .statement { height: 150vh; }
  .how-line { display: none; }
  .how-grid { grid-template-columns: 1fr; gap: 34px; }
  .how-step { padding-top: 0; padding-left: 26px; }
  .how-step::before { top: 6px; }
  .feature-item { grid-template-columns: 34px 1fr; gap: 12px; }
  .footer-top { flex-direction: column; }
  .theme-switcher .ts-name { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-wordmark .char { opacity: 1; transform: none; animation: none; }
  .hero-lockup, .hero-sub, .hero-ctas, .hero-meta { transform: none; opacity: 1; }
  .offer-media { clip-path: none !important; }
  .offer-media img { transform: none; }
  .offer-content { transform: none; opacity: 1; }
  .story-pin { position: static; height: auto; padding: 12vh 0; }
  .story-head-wrap, .moment, .story-final {
    position: static; transform: none !important; opacity: 1 !important;
    width: min(760px, calc(100% - 2 * var(--gutter))); margin: 0 auto;
  }
  .story-headsub { opacity: 1 !important; }
  .story-head { transform: none !important; }
  .story-tray { display: none; }
  .moment { margin-top: 9vh; pointer-events: auto; }
  .story-final { margin-top: 10vh; pointer-events: auto; }
  .statement { height: auto; padding: 20vh 0; }
  .statement-line .w { color: var(--text); }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* Static story layout — mobile and __signalSnap captures */
body.story-static .story-pin { position: static; height: auto; padding: 9vh 0; }
body.story-static .story-head-wrap,
body.story-static .moment,
body.story-static .story-final {
  position: static; transform: none !important; opacity: 1 !important;
  width: min(760px, calc(100% - 2 * var(--gutter))); margin: 0 auto;
}
body.story-static .story-head { transform: none !important; }
body.story-static .story-headsub { opacity: 1 !important; }
body.story-static .story-tray { display: none; }
body.story-static .moment { margin-top: 8vh; pointer-events: auto; }
body.story-static .story-final { margin-top: 9vh; pointer-events: auto; }
