/* Delta V — page styles */
@import url('tokens.css');

/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes dv-draw { to { stroke-dashoffset: 0; } }
@keyframes dv-fill { to { opacity: 1; } }
@keyframes dot-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .4; transform: scale(0.7); }
}


/* ── Utility ───────────────────────────────────────────────── */
.paper-dim  { color: var(--paper-dim); }
.paper-mute { color: var(--paper-mute); }
.ra { text-align: right; }
.u-link {
  display: inline-block; color: var(--accent);
  border-bottom: 1px solid color-mix(in oklch, var(--accent) 40%, transparent);
  padding-bottom: 1px; transition: border-color .3s, color .3s;
}
.u-link:hover { border-color: var(--accent); }

.dot { display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); vertical-align: middle; margin-right: 6px; }
.dot.pulse { animation: dot-pulse 2.2s infinite var(--ease); }

/* Section head */
.section { padding: clamp(80px, 10vw, 180px) 0; position: relative; }
.sect-head { display: flex; align-items: center; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); margin-bottom: clamp(40px, 6vw, 96px); }
.sect-head-lg { display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; column-gap: 24px; row-gap: 32px; padding-bottom: 40px; margin-bottom: clamp(48px, 7vw, 120px); align-items: start; }
.sect-num { color: var(--paper-mute); }
.sect-title { grid-column: 3 / 4; grid-row: 1 / 2; font-size: clamp(44px, 6vw, 96px); margin: 0; }
.sect-head-lg .sect-num, .sect-head-lg .tag-paren { padding-top: 14px; }
.sect-lede { grid-column: 3 / 4; grid-row: 2 / 3; max-width: 58ch; font-size: var(--fs-lead); color: var(--paper-dim); margin: 0; }

/* ── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-block: 18px;
  background: color-mix(in oklch, var(--ink) 70%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease), padding .4s var(--ease);
}
.nav-scrolled { border-bottom-color: var(--rule-soft); padding-block: 12px; }
.nav-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.nav-brand-txt { letter-spacing: 0.14em; font-weight: 600; }
.nav-links { display: flex; gap: 32px; justify-content: center; }
.nav-links a { display: inline-flex; align-items: baseline; color: var(--paper-dim); transition: color .2s; }
.nav-links a:hover { color: var(--paper); }
.nav-cta { color: var(--accent); transition: opacity .2s; }
.nav-cta:hover { opacity: .7; }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  padding-top: 120px;
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  z-index: 3;
}

/* Bloom iframe wrapper */
.hero-bloom {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  overflow: hidden;
}
.hero .hero-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 48px;
  z-index: 20;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}

.hero-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; color: var(--paper-dim); padding-bottom: 20px; }
.hero-meta-col { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-status { justify-content: flex-end; flex-direction: row; align-items: center; }

.hero-h {
  font-size: clamp(32px, 5vw, 88px);
  margin: 0 0 28px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  position: relative;
  will-change: transform;
}
.hero-line { display: block; position: relative; }
.hero-line.l1 { padding-left: 0; font-size: 0.55em; letter-spacing: 0.02em; margin-bottom: 0.2em; color: var(--paper-dim); }
.hero-line.l2 { padding-left: 0; }
.hero-line.l3 { padding-left: 6vw; }
.hero-line.l4 { padding-left: 2vw; }
.hero-line.l5 { padding-left: 14vw; }
.hero-kicker {
  position: absolute; left: -2px; top: -12px; font-size: var(--fs-tag);
  color: var(--paper-mute); letter-spacing: 0.1em;
}
.hero-ul {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 2px; background-position: 0 96%; background-repeat: no-repeat;
  padding-bottom: 6px;
}
.period { color: var(--accent); }

.hero-foot {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  gap: 40px; padding-top: 24px; border-top: 1px solid var(--rule-soft);
}
.hero-lede p { max-width: 52ch; font-size: var(--fs-lead); color: var(--paper-dim); margin: 0; }
.hero-cta { display: flex; gap: 16px; align-items: center; }
.cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink);
  padding: 16px 22px; border-radius: 999px;
  font-size: var(--fs-body); font-weight: 500;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.cta-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 40px color-mix(in oklch, var(--accent) 35%, transparent); }
.cta-ghost { color: var(--paper-dim); padding: 14px 0; transition: color .2s; }
.cta-ghost:hover { color: var(--paper); }

.hero-scroll {
  position: fixed; left: var(--pad-x); bottom: 24px;
  display: flex; flex-direction: row; align-items: center; gap: 14px;
  color: var(--paper-mute);
  transition: color .3s var(--ease), opacity .5s var(--ease);
  z-index: 50;
}
.hero-scroll:hover { color: var(--paper); }
.scroll-label { font-size: 10px; letter-spacing: 0.18em; }
.scroll-line { position: relative; display: inline-block; width: 72px; height: 1px; background: var(--rule); overflow: hidden; }
.scroll-line-fill {
  position: absolute; top: 0; left: -30%; width: 30%; height: 100%;
  background: var(--accent);
  animation: scroll-sweep 2.4s var(--ease) infinite;
}
@keyframes scroll-sweep {
  0%   { left: -30%; }
  60%  { left: 100%; }
  100% { left: 100%; }
}

/* ── HERO → CONTENT BLEND ──────────────────────────────────── */
/* Two-stage smooth transition from hero into page content:
   1) Hero-side: eased gradient overlay fading to full --ink at the
      hero's bottom edge. Sits above the bloom (z:3), below text (z:5).
   2) Content-side: a full-bleed ::before on the animated separator
      extends that same ink band past the hero boundary, then fades
      into SpaceBG. Because both halves meet at solid --ink, the seam
      at the hero's edge is invisible. */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to bottom,
    transparent 0%,
    color-mix(in oklch, var(--ink) 14%, transparent) 22%,
    color-mix(in oklch, var(--ink) 42%, transparent) 46%,
    color-mix(in oklch, var(--ink) 76%, transparent) 72%,
    var(--ink) 92%,
    var(--ink) 100%);
}

.hero-end-sep::before {
  content: '';
  position: absolute;
  left: calc(50% - 50vw);
  width: 100vw;
  top: -40px;
  height: 280px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    var(--ink) 0%,
    var(--ink) 30%,
    color-mix(in oklch, var(--ink) 70%, transparent) 58%,
    color-mix(in oklch, var(--ink) 30%, transparent) 82%,
    transparent 100%);
}

/* ── MANIFESTO ─────────────────────────────────────────────── */
.manifesto { border-top: 1px solid var(--rule-soft); }
.manifesto-body {
  font-size: clamp(32px, 4.4vw, 72px);
  max-width: 22ch;
  margin: 24px 0 40px;
  line-height: 1.05;
  color: var(--paper);
}
.manifesto-body em { color: var(--accent); font-family: var(--f-display); }
.manifesto-sign { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--rule-soft); }

/* ── SERVICES ──────────────────────────────────────────────── */
.svc-list { border-top: 1px solid var(--rule); }
.svc { border-bottom: 1px solid var(--rule); position: relative; }
.svc-head {
  display: grid; grid-template-columns: 80px 56px 1fr;
  align-items: center; gap: 32px;
  width: 100%; padding: 36px 8px; text-align: left;
  transition: padding .3s;
}
.svc-num { color: var(--paper-mute); font-size: var(--fs-tag); }
.svc-title-wrap { display: flex; flex-direction: column; gap: 6px; }
.svc-title { font-size: clamp(32px, 3.2vw, 56px); margin: 0; line-height: 1; }
.svc-lede { margin: 0; color: var(--paper-dim); font-size: var(--fs-body); max-width: 32ch; }
.svc-sub { color: var(--paper-mute); font-size: var(--fs-tag); }

.svc-toggle { display: inline-flex; color: var(--paper-dim); transition: color .3s, transform .4s var(--ease); }
.svc-open .svc-toggle { color: var(--accent); transform: rotate(45deg); }
.svc:hover .svc-toggle { color: var(--paper); }

.svc-body { padding-bottom: 32px; }
.svc-body[hidden] { display: none; }
.svc-items { padding: 0 8px; display: flex; flex-direction: column; }

/* Plus icon: vertical bar hides when open, making a minus */
.svc-plus-v { transition: transform .25s var(--ease), opacity .25s var(--ease); transform-origin: 11px 11px; }
.svc-open .svc-plus-v { transform: scaleY(0); opacity: 0; }

.svc-item {
  display: grid; grid-template-columns: 80px 1fr auto;
  align-items: center; gap: 24px;
  padding: 20px 0;
  border-top: 1px dashed var(--rule-soft);
}
.svc-item-num { font-size: 10px; }
.svc-item-name { font-size: var(--fs-lead); }
.svc-item-price { font-family: var(--f-display); font-size: 22px; color: var(--paper-dim); text-align: right; }

.svc-open .svc-head { padding-bottom: 24px; }

/* ── Service row scroll reveal ─────────────────────────────── */
/* Row slides in from the left while an accent line sweeps across the
   bottom border and the inner pieces cascade in after. */
.svc.reveal {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.svc.reveal.is-in { opacity: 1; transform: none; }

.svc::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in oklch, var(--accent) 55%, transparent) 50%,
    transparent 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1) 200ms;
  pointer-events: none;
}
.svc.is-in::after { transform: scaleX(1); }

/* Use a one-shot animation (not a transition) so hover interactions on
   .svc-title etc. keep their own fast transitions after entrance. */
.svc .svc-num,
.svc .svc-title,
.svc .svc-lede,
.svc .svc-items {
  opacity: 0;
  transform: translateY(16px);
}
.svc.is-in .svc-num   { animation: svc-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 140ms both; }
.svc.is-in .svc-title { animation: svc-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 220ms both; }
.svc.is-in .svc-lede  { animation: svc-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 300ms both; }
.svc.is-in .svc-items { animation: svc-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 380ms both; }

@keyframes svc-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .svc.reveal, .svc .svc-num, .svc .svc-title, .svc .svc-lede, .svc .svc-items {
    opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
  }
  .svc::after { transform: scaleX(1) !important; transition: none !important; }
}

/* ── WHY ───────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.pillar { padding: 48px 40px; background: var(--ink); display: flex; flex-direction: column; gap: 20px; position: relative; transition: background .4s; }
.pillar:hover { background: var(--ink-2); }
.pillar-top { display: flex; justify-content: space-between; align-items: center; }
.pillar-num { font-size: var(--fs-tag); color: var(--accent); }
.pillar-tag { font-size: 10px; }
.pillar-title { font-size: clamp(32px, 2.6vw, 48px); margin: 0; line-height: 1; }
.pillar-body { color: var(--paper-dim); max-width: 44ch; margin: 0; font-size: var(--fs-body); }
.pillar-stat {
  margin-top: auto; display: flex; align-items: baseline; gap: 12px;
  padding-top: 32px; border-top: 1px solid var(--rule-soft);
}
.pillar-stat-k { font-size: 48px; color: var(--accent); line-height: 1; letter-spacing: -0.03em; }
.pillar-stat-v { color: var(--paper-mute); }

/* ── WORK ──────────────────────────────────────────────────── */
.work-table { border-top: 1px solid var(--rule); }
.work-row {
  display: grid;
  grid-template-columns: 60px 1.6fr 2fr 1.2fr 80px 80px;
  gap: 24px; align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--rule-soft);
  transition: background .3s, color .3s;
}
.work-head { color: var(--paper-mute); font-size: 10px; padding: 14px 4px; border-bottom: 1px solid var(--rule); }
.work-item:hover { background: color-mix(in oklch, var(--accent) 5%, transparent); color: var(--paper); }
.work-client { font-family: var(--f-display); font-size: 22px; }
.work-tag { color: var(--paper-dim); }
.work-foot { display: flex; justify-content: space-between; padding-top: 24px; }

/* ── ENGAGE ────────────────────────────────────────────────── */
.engage-title { font-size: clamp(56px, 8vw, 128px); }
.engage-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 40px; }
.channel { padding: 32px 32px; background: var(--ink); display: flex; flex-direction: column; gap: 14px; position: relative; transition: background .4s; min-height: 320px; }
.channel-primary { background: color-mix(in oklch, var(--accent) 8%, var(--ink)); }
.channel-primary:hover { background: color-mix(in oklch, var(--accent) 14%, var(--ink)); }
.channel-signal:hover { background: var(--ink-2); }
.channel-label { color: var(--paper-mute); font-size: 10px; }
.channel-value { font-size: clamp(28px, 2.5vw, 44px); line-height: 1; margin: 0; letter-spacing: -0.02em; font-weight: 600; }
.channel-meta { color: var(--paper-dim); font-size: var(--fs-body); max-width: 42ch; }
.channel-arrow { color: var(--accent); margin-top: auto; }
.channel-qr {
  width: 340px; height: 340px; border-radius: 20px;
  margin-top: auto; align-self: flex-start;
  background: white; padding: 12px;
  box-shadow: 0 10px 40px color-mix(in oklch, var(--accent) 18%, transparent);
}

.channel-qr {
  position: absolute; right: 32px; top: 32px;
  width: 168px; height: 168px; padding: 10px;
  background: var(--paper); border-radius: 8px;
  display: flex;
}
.qr-inner {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 0; width: 100%; height: 100%; position: relative;
}
.qr-px { background: transparent; }
.qr-px.on { background: var(--ink); }
.qr-corner { position: absolute; width: 20px; height: 20px; border: 4px solid var(--ink); background: var(--paper); }
.qr-corner::after { content: ''; position: absolute; inset: 4px; background: var(--ink); }
.qr-tl { top: 6px; left: 6px; }
.qr-tr { top: 6px; right: 6px; }
.qr-bl { bottom: 6px; left: 6px; }

.engage-steps { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 14px; }
.engage-steps li { font-size: var(--fs-body); color: var(--paper-dim); display: flex; gap: 10px; }
.engage-steps li .mono { color: var(--accent); }
.channel-sign { margin-top: auto; display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--rule-soft); }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer { padding: 80px 0; border-top: 1px solid var(--rule); position: relative; overflow: hidden; }
.footer-mega-wrap { overflow: hidden; }
.footer-mega {
  font-size: clamp(120px, 22vw, 420px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--rule);
  text-stroke: 1px var(--rule);
  margin: 0 0 60px;
  white-space: nowrap;
  font-weight: 300;
  will-change: transform;
  transition: transform 120ms linear;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; padding-top: 40px; border-top: 1px solid var(--rule-soft); align-items: center; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--paper-dim); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper) !important; }
.footer-col:nth-child(2) { flex-direction: row; gap: 28px; justify-content: center; }
.footer-col-meta { color: var(--paper-dim); justify-content: flex-end; align-items: flex-end; flex-direction: row; }

/* ── Grid overlay (Tweak) ──────────────────────────────────── */
body.show-grid::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--accent) 20%, transparent) 1px, transparent 1px);
  background-size: calc((100vw - 2 * var(--pad-x)) / 12) 100%;
  background-position: var(--pad-x) 0;
  mix-blend-mode: screen;
}

/* ── Motion variants ───────────────────────────────────────── */
body.motion-minimal .reveal { transition-duration: 300ms; transform: translateY(8px); }
body.motion-minimal .reveal.is-in { transform: none; }
body.motion-minimal .hero-h { transform: none !important; }
body.motion-minimal .dot.pulse, body.motion-minimal .scroll-dot { animation: none; }

body.motion-rich .reveal { transition-duration: 1200ms; }
body.motion-rich .cta-primary:hover { transform: translateY(-2px) scale(1.02); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .sect-head-lg { grid-template-columns: auto 1fr; }
  .sect-title { grid-column: 1 / 3; grid-row: 2 / 3; font-size: clamp(40px, 8vw, 72px); }
  .sect-lede { grid-column: 1 / 3; grid-row: 3 / 4; }
  .svc-head { grid-template-columns: 50px 40px 1fr; gap: 14px; }
  .svc-sub { display: none; }
  .svc-item { grid-template-columns: 1fr auto; gap: 12px; }
  .svc-item-num, .svc-item-tag { display: none; }
  .why-grid, .engage-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .work-row { grid-template-columns: 40px 1fr 1fr 60px; }
  .work-row > :nth-child(4), .work-row > :nth-child(5) { display: none; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-line.l1, .hero-line.l2, .hero-line.l3, .hero-line.l4 { padding-left: 0; }
}

/* ── Mobile refinements ────────────────────────────────────── */
@media (max-width: 720px) {
  /* Signal card: QR drops below the text and centers on the card. */
  .channel { min-height: 0; padding: 24px; }
  .channel-qr {
    position: static;
    width: 144px; height: 144px;
    margin: 8px auto 0; align-self: center;
    padding: 8px;
  }

  /* Footer: stack cols centered, and tame the mega wordmark so it
     doesn't force horizontal overflow. */
  .footer { padding: 56px 0; text-align: center; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px; padding-top: 28px;
    justify-items: center;
  }
  .footer-col { align-items: center; }
  .footer-col:nth-child(2) {
    flex-direction: row; gap: 20px;
    justify-content: center;
  }
  .footer-col-meta {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .footer-mega {
    font-size: clamp(56px, 22vw, 140px);
    margin-bottom: 36px;
    text-align: center;
  }
}

/* ── Scroll progress bar ───────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 200; pointer-events: none;
  background: color-mix(in oklch, var(--accent) 6%, transparent);
}
.scroll-progress-fill {
  height: 100%; width: 100%; transform-origin: 0 50%;
  background: linear-gradient(90deg,
    color-mix(in oklch, var(--accent) 80%, transparent) 0%,
    var(--accent) 50%,
    color-mix(in oklch, var(--accent) 60%, transparent) 100%);
  transition: transform 120ms linear;
  box-shadow: 0 0 24px color-mix(in oklch, var(--accent) 60%, transparent);
}

/* ── LineReveal (mask-based line-by-line rise) ─────────────── */
.lr-wrap { display: block; }
.lr-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;     /* room for descenders */
  line-height: inherit;
}
.lr-inner {
  display: block;
  transform: translate3d(0, 115%, 0);
  opacity: 0;
  transition:
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.lr-line.is-in .lr-inner { transform: translate3d(0, 0, 0); opacity: 1; }

/* ── WordReveal (word stagger) ─────────────────────────────── */
.wr-wrap { display: inline; }
.wr-word {
  display: inline-block;
  transform: translate3d(0, 0.5em, 0);
  opacity: 0;
  transition:
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.wr-word.is-in { transform: translate3d(0, 0, 0); opacity: 1; }

/* ── Magnetic wrapper ──────────────────────────────────────── */
.magnetic { will-change: transform; transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1); }

/* ── Pillar hover/trace line ───────────────────────────────── */
.pillar { position: relative; overflow: hidden; }
.pillar-trace {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pillar.is-in .pillar-trace { transform: scaleX(1); transition-delay: 400ms; }
.pillar { transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), background 300ms; }
.pillar:hover { transform: translateY(-4px); }

/* ── Refined service row hover ─────────────────────────────── */
.svc-head { transition: background 300ms ease; }
.svc-title { transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.svc:hover .svc-title { transform: translateX(8px); }
.svc-num { transition: color 300ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.svc:hover .svc-num { color: var(--accent); }

/* ── Hero headline tweaks for LineReveal ───────────────────── */
.hero-h .hero-line { will-change: transform; }

/* ── Channel card refined hover ────────────────────────────── */
.channel {
  transition:
    background 400ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 400ms ease;
}
.channel-primary:hover { transform: translateY(-3px); }

/* ── Reduced-motion: kill the big stuff ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lr-inner, .wr-word { transition: none !important; transform: none !important; opacity: 1 !important; }
  .scroll-progress-fill { transition: none !important; }
  .footer-mega { transform: none !important; transition: none !important; }
  .pillar:hover, .channel-primary:hover { transform: none !important; }
}

/* ── Hero → Services separator (scroll-linked vertical stroke) ── */
.hero-end-sep {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 0 20px; margin-top: -5px;
  position: relative; z-index: 2;
}
.hero-end-sep-line {
  display: block; width: 1px; height: 120px;
  background: linear-gradient(to bottom,
    transparent,
    color-mix(in oklch, var(--accent) 80%, transparent) 20%,
    color-mix(in oklch, var(--accent) 80%, transparent) 80%,
    transparent);
  transform: scaleY(0); transform-origin: 50% 0;
  transition: transform 120ms linear;
  will-change: transform;
}
.hero-end-sep-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  box-shadow: 0 0 16px color-mix(in oklch, var(--accent) 70%, transparent);
  transition: opacity 200ms ease;
}

/* ── Transition band (hero → services) ─────────────────────── */
.transition-band {
  padding: 48px 0 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%,
      color-mix(in oklch, var(--accent) 6%, transparent),
      transparent 70%);
}

/* Divider rule with centered label — draws from center outward */
.div-rule {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 20px;
  padding: 0 var(--pad-x);
  max-width: 100%;
}
.div-rule:not(:has(.div-rule-label)) { grid-template-columns: 1fr; }
.div-rule-line {
  display: block; height: 1px;
  background: var(--rule);
  transform: scaleX(0);
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.div-rule-l { transform-origin: 100% 50%; }
.div-rule-r { transform-origin: 0% 50%; }
.div-rule.is-in .div-rule-line { transform: scaleX(1); }
.div-rule-label {
  font-size: 11px; letter-spacing: .22em; color: var(--paper-mute);
  text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translateY(4px);
  transition: opacity 600ms 400ms ease, transform 600ms 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.div-rule.is-in .div-rule-label { opacity: 1; transform: translateY(0); }

/* Marquee band */
.mq-band {
  padding: 56px 0;
  margin: 20px 0;
  overflow: hidden;
  position: relative;
}
.mq-track {
  display: flex; flex-wrap: nowrap; will-change: transform;
}
.mq-group { display: flex; flex-shrink: 0; gap: 0; }
.mq-item {
  display: inline-flex; align-items: center; gap: 40px;
  padding-right: 40px;
  flex-shrink: 0;
}
.mq-mark {
  color: var(--accent); font-size: 12px;
  transform: rotate(45deg); display: inline-block;
  opacity: 0.8;
}
.mq-text {
  font-size: clamp(44px, 5.2vw, 88px);
  line-height: 1; letter-spacing: -0.02em;
  color: var(--paper);
  font-weight: 300;
  white-space: nowrap;
}
.mq-item:nth-child(even) .mq-text {
  color: transparent;
  -webkit-text-stroke: 1px var(--rule);
  text-stroke: 1px var(--rule);
  font-style: italic;
}

/* ── Side rail (sticky section indicator) ──────────────────── */
.side-rail {
  position: fixed; left: 24px; top: 50%;
  transform: translateY(-50%);
  z-index: 50; pointer-events: none;
  opacity: 0; transition: opacity 600ms ease;
}
.side-rail.is-in { opacity: 1; }
.side-rail-inner {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px 14px;
  background: color-mix(in oklch, var(--paper) 4%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
}
.side-rail-item {
  display: flex; align-items: center; gap: 10px;
  opacity: 0.35; transition: opacity 400ms ease, gap 400ms ease;
  position: relative;
}
.side-rail-item.is-active { opacity: 1; }
.side-rail-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--paper-mute);
  transition: background 400ms ease, transform 400ms ease, box-shadow 400ms ease;
  flex-shrink: 0;
}
.side-rail-item.is-active .side-rail-dot {
  background: var(--accent);
  transform: scale(1.4);
  box-shadow: 0 0 12px color-mix(in oklch, var(--accent) 70%, transparent);
}
.side-rail-num {
  font-size: 10px; letter-spacing: .18em; color: var(--paper-mute);
  white-space: nowrap;
  max-width: 0; overflow: hidden;
  transition: max-width 500ms cubic-bezier(0.22, 1, 0.36, 1), color 400ms ease;
}
.side-rail-label {
  font-size: 10px; letter-spacing: .18em; color: var(--paper);
  white-space: nowrap; text-transform: uppercase;
  max-width: 0; overflow: hidden;
  transition: max-width 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.side-rail-item.is-active .side-rail-num { max-width: 60px; color: var(--accent); }
.side-rail-item.is-active .side-rail-label { max-width: 140px; }

/* ── Service glyphs (stroke-drawn on reveal) ───────────────── */
.svc-glyph-wrap {
  display: flex; align-items: center; justify-content: center;
  color: var(--paper-mute);
  transition: color 400ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.svc:hover .svc-glyph-wrap { color: var(--accent); transform: translateX(-4px); }
.svc-glyph { overflow: visible; }
.svc-glyph-p {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  transition: stroke-dashoffset 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-glyph.is-in .svc-glyph-p { stroke-dashoffset: 0; }
/* Stagger the strokes within a glyph */
.svc-glyph .svc-glyph-p:nth-child(2) { transition-delay: 120ms; }
.svc-glyph .svc-glyph-p:nth-child(3) { transition-delay: 240ms; }
.svc-glyph .svc-glyph-p:nth-child(4) { transition-delay: 360ms; }

/* ── Responsive for new pieces ─────────────────────────────── */
@media (max-width: 1100px) {
  .side-rail { display: none; }
  .mq-item { gap: 28px; padding-right: 28px; }
  .mq-text { font-size: clamp(36px, 9vw, 64px); }
  .svc-glyph-wrap { display: none; }
  .svc-head { grid-template-columns: 50px 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .mq-track { transform: none !important; }
  .hero-end-sep-line { transform: scaleY(1) !important; }
  .svc-glyph-p { stroke-dashoffset: 0 !important; transition: none !important; }
  .div-rule-line { transform: scaleX(1) !important; transition: none !important; }
}
