/* ============================================================
   Deckingg — Portfolio
   Aesthetic: dark editorial agency, brand blue #4F7CFF,
   serif display + tight sans, large kinetic type
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-2: #111114;
  --ink: #f4efe6;
  --ink-dim: #a8a39a;
  --ink-mute: #6b6862;
  --line: #1f1f23;
  --blue: #4f7cff;
  --blue-deep: #3358e6;
  --blue-soft: #6b8fff;
  --cream: #f4efe6;
  --cream-2: #ebe4d6;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Bricolage Grotesque", "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --max: 1440px;
  --gut: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  cursor: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: none; }

::selection { background: var(--blue); color: white; }

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease);
}
.cursor--ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(244,239,230,0.4);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .35s var(--ease), height .35s var(--ease), border-color .25s var(--ease);
}
body.cursor-link .cursor { width: 6px; height: 6px; background: var(--blue); }
body.cursor-link .cursor--ring { width: 64px; height: 64px; border-color: var(--blue); }
body.cursor-view .cursor { opacity: 0; }
body.cursor-view .cursor--ring {
  width: 96px; height: 96px;
  background: var(--blue);
  border-color: var(--blue);
  mix-blend-mode: normal;
  color: white;
  display: grid; place-items: center;
  font: 600 11px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cursor--ring::after { content: attr(data-label); }

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor--ring { display: none; }
  button, a { cursor: pointer; }
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--gut);
  display: flex; align-items: center; justify-content: space-between;
  mix-blend-mode: difference;
  color: white;
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  font: 500 19px/1 var(--sans);
  letter-spacing: -0.02em;
}
.nav__brand img { width: 26px; height: 26px; }
.nav__links {
  display: flex; gap: 36px;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative;
  padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform .4s var(--ease);
}
.nav__links a:hover::after { transform-origin: left; transform: scaleX(1); }

.nav__cta {
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .3s var(--ease);
}
.nav__cta:hover { gap: 14px; }
.nav__cta::after { content: "→"; }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ============================================================
   Hero — layered editorial composition
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--gut) 60px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(79,124,255,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 80% at 100% 100%, rgba(79,124,255,0.10) 0%, transparent 50%),
    var(--bg);
}

/* Mega "D" mark background */
.hero__mark {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(72vh, 780px);
  height: min(72vh, 780px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
  will-change: transform;
}
.hero__mark svg { width: 100%; height: 100%; overflow: visible; }
.hero__mark .dmark {
  fill: var(--blue);
  animation: markPulse 7s var(--ease) infinite;
  transform-origin: center;
}
.hero__mark .underline {
  fill: var(--blue);
  animation: markUnderline 7s var(--ease) infinite;
  transform-origin: left center;
}
@keyframes markPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes markUnderline {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.82); }
}

/* background grid */
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(244,239,230,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,239,230,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 40%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 40%, black 30%, transparent 90%);
  z-index: 1;
}

.hero__grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 2;
}

/* Top bar below nav */
.hero__bar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero__bar .left { display: flex; align-items: center; gap: 12px; }
.hero__bar .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5fe39a; box-shadow: 0 0 10px rgba(95,227,154,.7);
  animation: pulse 2s var(--ease) infinite;
}
.hero__bar .right { display: flex; gap: 28px; }
@media (max-width: 720px) {
  .hero__bar .right { display: none; }
}

/* Main hero content */
.hero__content {
  position: relative;
  z-index: 3;
  align-self: center;
  max-width: 1100px;
  margin-top: 40px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(68px, 13vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.hero__title .row { display: block; overflow: hidden; }
.hero__title .row > span {
  display: inline-block;
  transform: translateY(110%);
  animation: heroRise 1.1s var(--ease-out) forwards;
}
.hero__title .row:nth-child(2) > span { animation-delay: .12s; }
.hero__title .row:nth-child(3) > span { animation-delay: .24s; }
.hero__title .row:nth-child(4) > span { animation-delay: .36s; }
.hero__title em { font-style: italic; color: var(--blue); position: relative; }
@keyframes heroRise { to { transform: translateY(0); } }

/* Live strip in title: cycles words */
.hero__flip {
  display: inline-block;
  position: relative;
  min-width: 6ch;
  color: var(--blue);
  font-style: italic;
  vertical-align: baseline;
}
.hero__flip .word {
  display: block;
  position: absolute;
  top: 0; left: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(40%);
  animation: flipWord 12s cubic-bezier(.6,0,.2,1) infinite;
}
.hero__flip .word:nth-child(1) { animation-delay: 0s; }
.hero__flip .word:nth-child(2) { animation-delay: 3s; }
.hero__flip .word:nth-child(3) { animation-delay: 6s; }
.hero__flip .word:nth-child(4) { animation-delay: 9s; }
/* reserve width */
.hero__flip .sizer { visibility: hidden; display: block; }
@keyframes flipWord {
  0%   { opacity: 0; transform: translateY(60%); }
  4%   { opacity: 1; transform: translateY(0); }
  22%  { opacity: 1; transform: translateY(0); }
  26%  { opacity: 0; transform: translateY(-40%); }
  100% { opacity: 0; transform: translateY(-40%); }
}

/* Floating category chips that drift with mouse */
.hero__chips {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(244,239,230,0.06);
  border: 1px solid rgba(244,239,230,0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
  transform: translate3d(0,0,0);
  animation: chipFloat 8s var(--ease) infinite;
}
.chip::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}
.chip.c1 { top: 14%;  left: 6%;   animation-delay: 0s; }
.chip.c2 { top: 22%;  right: 22%; animation-delay: -2s; }
.chip.c3 { bottom: 36%; left: 10%; animation-delay: -4s; }
.chip.c4 { top: 58%;  right: 8%;  animation-delay: -1s; }
.chip.c5 { bottom: 22%; right: 28%; animation-delay: -3s; }
.chip.c6 { top: 40%;  left: 52%;  animation-delay: -5s; background: var(--blue); color: white; border-color: var(--blue); }
.chip.c6::before { background: white; box-shadow: 0 0 8px white; }
@keyframes chipFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}
@media (max-width: 900px) {
  .chip.c2, .chip.c4, .chip.c5 { display: none; }
}

/* Running thumbnail strip on the right edge */
.hero__reel {
  position: absolute;
  right: var(--gut);
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 440px;
  z-index: 3;
  overflow: hidden;
  border-radius: 8px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  border: 1px solid rgba(244,239,230,0.08);
  background: rgba(10,10,11,0.3);
}
.hero__reel__track {
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 14px;
  animation: reelScroll 28s linear infinite;
}
.hero__reel__track img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
}
@keyframes reelScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@media (max-width: 1100px) { .hero__reel { display: none; } }

/* Right edge vertical label */
.hero__vtext {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  z-index: 4;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
@media (max-width: 1100px) { .hero__vtext { display: none; } }

/* Hero footer row */
.hero__foot {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 40px;
  margin-top: 60px;
}
.hero__lede {
  max-width: 460px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.hero__lede strong { color: var(--ink); font-weight: 500; }

.hero__scroll {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero__scroll svg {
  width: 14px; height: 24px;
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: .8; }
  50% { transform: translateY(6px); opacity: .3; }
}

.hero__meta {
  display: flex; flex-direction: column; gap: 4px;
  text-align: right;
  font: 500 12px/1.4 var(--mono);
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.hero__meta b { color: var(--ink); font-weight: 500; }

@media (max-width: 720px) {
  .hero__foot { grid-template-columns: 1fr; text-align: left; }
  .hero__meta { text-align: left; }
  .hero__scroll { align-items: flex-start; }
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 28px 0;
  position: relative;
}
.marquee__track {
  display: flex;
  gap: 56px;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 56px;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--ink);
}
.marquee__item .star {
  display: inline-block;
  width: 0.5em; height: 0.5em;
  color: var(--blue);
}
.marquee__item em { color: var(--blue); font-style: italic; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Sections
   ============================================================ */
section { position: relative; }

.sec__head {
  padding: 100px var(--gut) 40px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: end;
}
.sec__num {
  font: 500 12px/1 var(--mono);
  color: var(--blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.sec__num::before {
  content: ""; width: 28px; height: 1px; background: var(--blue);
}
.sec__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 96px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  max-width: 13ch;
}
.sec__title em { color: var(--blue); font-style: italic; }

@media (max-width: 720px) {
  .sec__head { grid-template-columns: 1fr; padding: 70px var(--gut) 30px; gap: 16px; }
}

/* ============================================================
   Services strip
   ============================================================ */
.services {
  padding: 0 var(--gut) 0;
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 80px 1fr 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease);
  cursor: none;
  position: relative;
}
.service:hover { padding-left: 24px; }
.service__num {
  font: 500 13px/1 var(--mono);
  color: var(--ink-mute);
}
.service__name {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.02em;
  transition: color .3s var(--ease);
}
.service:hover .service__name { color: var(--blue); }
.service__desc {
  font-size: 15px;
  color: var(--ink-dim);
  max-width: 38ch;
}
.service__count {
  font: 500 12px/1 var(--mono);
  color: var(--ink-mute);
  text-align: right;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.service__count b { color: var(--ink); font-weight: 500; font-size: 18px; display: block; margin-bottom: 6px; }

@media (max-width: 720px) {
  .service { grid-template-columns: 40px 1fr; }
  .service__desc, .service__count { display: none; }
}

/* ============================================================
   Work showcase — large image strips per category
   ============================================================ */
.work {
  padding: 60px 0 120px;
}

.work__rail {
  margin-top: 24px;
  display: flex;
  gap: 28px;
  padding: 0 var(--gut);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  padding-bottom: 24px;
}
.work__rail::-webkit-scrollbar { display: none; }
.work__rail--auto {
  overflow: hidden;
  position: relative;
  padding: 0;
  margin: 0;
}
.work__rail--auto .work__track {
  display: flex; gap: 28px;
  animation: rail 60s linear infinite;
  width: max-content;
  padding: 0 14px;
}
.work__rail--auto:hover .work__track { animation-play-state: paused; }
@keyframes rail {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.work__card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #15151a;
  transition: transform .5s var(--ease);
}
.work__card:hover { transform: translateY(-6px); }
.work__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.work__card:hover img { transform: scale(1.04); }

.work__card--deck { width: 580px; aspect-ratio: 16/9; }
.work__card--brand { width: 520px; aspect-ratio: 16/9; }
.work__card--pack { width: 380px; aspect-ratio: 4/5; }
.work__card--social { width: 320px; aspect-ratio: 1/1; }
.work__card--fin { width: 620px; aspect-ratio: 4/3; }
.work__card--op  { width: 360px; aspect-ratio: 1/1.4; }

.work__card__meta {
  position: absolute; left: 16px; bottom: 16px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.work__card:hover .work__card__meta { opacity: 1; transform: translateY(0); }

@media (max-width: 720px) {
  .work__card--deck { width: 86vw; }
  .work__card--brand { width: 86vw; }
  .work__card--pack { width: 70vw; }
  .work__card--social { width: 70vw; }
  .work__card--fin { width: 90vw; }
  .work__card--op { width: 70vw; }
}

/* ============================================================
   Work index list — case studies
   ============================================================ */
.cases {
  padding: 60px 0 120px;
  border-top: 1px solid var(--line);
}
.case {
  display: grid;
  grid-template-columns: 80px 1.5fr 1fr 1fr 80px;
  gap: 32px;
  padding: 32px var(--gut);
  border-bottom: 1px solid var(--line);
  align-items: center;
  position: relative;
  transition: background .4s var(--ease);
}
.case:hover { background: rgba(79,124,255,0.04); }
.case__num { font: 500 12px/1 var(--mono); color: var(--ink-mute); }
.case__title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex; align-items: center; gap: 16px;
}
.case__title .arrow {
  display: inline-block;
  width: 0; opacity: 0;
  font-family: var(--sans);
  color: var(--blue);
  transition: width .4s var(--ease), opacity .4s var(--ease), margin .4s var(--ease);
  overflow: hidden;
}
.case:hover .case__title { color: var(--blue); }
.case:hover .case__title .arrow { width: 1.2em; opacity: 1; margin-right: 4px; }
.case__tag {
  font: 500 11px/1 var(--mono);
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.case__year { font: 500 13px/1 var(--mono); color: var(--ink-dim); }
.case__cta { font: 500 11px/1 var(--mono); color: var(--ink-mute); text-align: right; letter-spacing: 0.06em; text-transform: uppercase; }

.case__preview {
  position: fixed;
  pointer-events: none;
  z-index: 50;
  width: 320px;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity .25s var(--ease), transform .35s var(--ease);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.case__preview img {
  width: 100%; height: 100%; object-fit: cover;
}
.case__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

@media (max-width: 720px) {
  .case { grid-template-columns: 1fr; gap: 6px; padding: 22px var(--gut); }
  .case__num, .case__cta { display: none; }
  .case__preview { display: none; }
}

/* ============================================================
   Logo wall — scrolling
   ============================================================ */
.clients {
  background: var(--cream);
  color: #0a0a0b;
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.clients__head {
  padding: 0 var(--gut) 50px;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 40px;
  align-items: end;
}
.clients .sec__num { color: var(--blue-deep); }
.clients .sec__num::before { background: var(--blue-deep); }
.clients__title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.02em;
  line-height: .95;
  max-width: 14ch;
}
.clients__count {
  font: 500 12px/1.4 var(--mono);
  color: rgba(0,0,0,0.5);
  text-align: right;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.clients__count b { color: #0a0a0b; font-weight: 500; font-size: 56px; font-family: var(--serif); display: block; margin-bottom: 4px; line-height: 1; }

.clients__rail {
  overflow: hidden;
  position: relative;
  padding: 24px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.clients__track {
  display: flex; align-items: center; gap: 80px;
  animation: rail 50s linear infinite;
  width: max-content;
  padding: 0 40px;
}
.clients__track img {
  height: 56px; width: auto;
  filter: grayscale(1) brightness(0);
  opacity: 0.6;
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.clients__track img:hover { opacity: 1; filter: grayscale(0) brightness(1); }

.clients__rail + .clients__rail .clients__track { animation-direction: reverse; animation-duration: 65s; }

@media (max-width: 720px) {
  .clients__head { grid-template-columns: 1fr; }
  .clients__count { text-align: left; }
}

/* ============================================================
   Testimonials — Draggable card stack
   ============================================================ */
.quotes {
  padding: 120px var(--gut) 140px;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.quotes::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 18% 30%, rgba(79,124,255,.08), transparent 60%),
    radial-gradient(600px 320px at 85% 70%, rgba(168,108,255,.05), transparent 60%);
  pointer-events: none;
}
.quotes > * { position: relative; z-index: 1; }

.quotes__head {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 0 80px;
  gap: 22px;
}
.quotes__lede {
  font: 500 12px/1.6 var(--mono);
  letter-spacing: .04em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.quotes__stage {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  min-height: 460px;
}

.quotes__glyph {
  position: absolute;
  top: -60px;
  left: -10px;
  font-family: var(--serif);
  font-size: 280px;
  line-height: 0.8;
  color: var(--blue);
  opacity: 0.10;
  pointer-events: none;
  user-select: none;
  font-style: italic;
  z-index: 0;
}

/* deck (card pile) */
.quotes__deck {
  position: relative;
  height: 460px;
  grid-column: 1 / -1;
  width: 100%;
  perspective: 1400px;
  touch-action: pan-y;
}

.qcard {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(640px, 92%);
  height: 100%;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #181820 0%, #101015 100%);
  border: 1px solid var(--line-2);
  box-shadow:
    0 24px 60px rgba(0,0,0,.5),
    0 2px 0 rgba(255,255,255,.03) inset;
  transition:
    transform .55s cubic-bezier(.22, 1, .36, 1),
    opacity .45s ease,
    box-shadow .45s ease;
  will-change: transform, opacity;
  transform-origin: 50% 90%;
  cursor: grab;
}
.qcard.is-dragging {
  transition: none;
  cursor: grabbing;
}
.qcard.is-flying {
  transition:
    transform .6s cubic-bezier(.5, .1, .8, .2),
    opacity .5s ease;
}

/* stack positions — set via data-pos */
.qcard[data-pos="0"] { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); z-index: 3; opacity: 1; }
.qcard[data-pos="1"] { transform: translate3d(0, 22px, -40px) rotate(-1.6deg) scale(.96); z-index: 2; opacity: .85; }
.qcard[data-pos="2"] { transform: translate3d(0, 44px, -80px) rotate(1.2deg) scale(.92); z-index: 1; opacity: .55; }
.qcard[data-pos="3"] { transform: translate3d(0, 60px, -120px) rotate(-2deg) scale(.88); z-index: 0; opacity: 0; pointer-events: none; }

.qcard__inner {
  position: relative;
  height: 100%;
  padding: 48px 52px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.qcard__corner {
  position: absolute;
  top: 24px;
  right: 28px;
  font: 500 11px/1 var(--mono);
  letter-spacing: .14em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.qcard__rule {
  width: 36px;
  height: 1px;
  background: var(--blue);
  margin-bottom: 24px;
  margin-top: 4px;
}

.qcard__body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: pretty;
  margin: 0;
  flex: 1;
}
.qcard__body em {
  font-style: italic;
  color: var(--blue);
}

.qcard__by {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.qcard__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 500 13px/1 var(--mono);
  letter-spacing: .04em;
  color: #0a0a0b;
  background: linear-gradient(135deg, #4f7cff, #7ea0ff);
  flex: 0 0 44px;
}
.qcard__avatar[data-tone="amber"]  { background: linear-gradient(135deg, #f0a14a, #d97757); }
.qcard__avatar[data-tone="rose"]   { background: linear-gradient(135deg, #ff7a8b, #c45b75); }
.qcard__avatar[data-tone="indigo"] { background: linear-gradient(135deg, #4f7cff, #7ea0ff); }

.qcard__who b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.qcard__who span {
  display: block;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: .04em;
  color: var(--ink-mute);
  margin-top: 4px;
}
.qcard__who span i {
  color: var(--ink-dim);
  font-style: normal;
}

/* controls row */
.quotes__controls {
  position: absolute;
  bottom: -64px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
}
.qbtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-dim);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.qbtn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.quotes__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line-2);
  cursor: pointer;
  padding: 0;
  transition: all .25s var(--ease);
}
.qdot.is-on {
  background: var(--blue);
  border-color: var(--blue);
  width: 28px;
  border-radius: 6px;
}

@media (max-width: 720px) {
  .quotes { padding: 80px var(--gut) 100px; }
  .quotes__deck { height: 520px; }
  .qcard__inner { padding: 36px 32px 28px; }
  .qcard__body { font-size: 19px; }
  .quotes__glyph { font-size: 200px; top: -40px; }
}

/* ============================================================
   Process / numbered
   ============================================================ */
.process {
  padding: 100px var(--gut) 120px;
  border-top: 1px solid var(--line);
}
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  position: relative;
}
.step__num {
  font-family: var(--serif);
  font-size: 80px;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.04em;
}
.step__name {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 24px 0 14px;
}
.step__desc { font-size: 14px; color: var(--ink-dim); line-height: 1.55; }

@media (max-width: 980px) { .process__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Big stats
   ============================================================ */
.stats {
  padding: 100px var(--gut);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(64px, 8vw, 120px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.stat__num em { font-style: italic; color: var(--blue); }
.stat__label {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 18px;
  max-width: 22ch;
}
@media (max-width: 980px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   CTA / Footer
   ============================================================ */
.cta {
  padding: 140px var(--gut) 60px;
  border-top: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__pre { font: 500 12px/1 var(--mono); color: var(--blue); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 32px; }
.cta__title {
  font-family: var(--serif);
  font-size: clamp(56px, 12vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.cta__title em { color: var(--blue); font-style: italic; }
.cta__btn {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 60px;
  padding: 22px 36px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font: 500 15px/1 var(--sans);
  letter-spacing: -0.01em;
  transition: gap .4s var(--ease), background .3s var(--ease), transform .4s var(--ease);
}
.cta__btn:hover { gap: 22px; background: var(--blue-deep); transform: translateY(-2px); }
.cta__btn .arrow { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: white; color: var(--blue); font-size: 14px; }

.foot {
  padding: 60px var(--gut) 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.foot__brand { display: flex; flex-direction: column; gap: 18px; max-width: 32ch; }
.foot__brand img { width: 36px; height: 36px; }
.foot__brand h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -0.02em; }
.foot__brand p { color: var(--ink-dim); font-size: 14px; }

.foot__col h4 {
  font: 500 11px/1 var(--mono);
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.foot__col a, .foot__col p {
  display: block;
  font-size: 15px;
  color: var(--ink);
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.foot__col a:hover { color: var(--blue); }

.foot__sub {
  grid-column: 1 / -1;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font: 500 12px/1 var(--mono);
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.foot__sub b { color: var(--ink); font-weight: 500; }
.foot__bigword {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(140px, 26vw, 420px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--ink);
  text-align: center;
  padding: 60px var(--gut) 0;
  overflow: hidden;
}
.foot__bigword em { color: var(--blue); font-style: italic; }

@media (max-width: 980px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .foot { grid-template-columns: 1fr; }
  .foot__sub { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ============================================================
   Reveal animation utility
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

.reveal--up > * {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal--up.is-in > * { opacity: 1; transform: translateY(0); }
.reveal--up > *:nth-child(2) { transition-delay: .08s; }
.reveal--up > *:nth-child(3) { transition-delay: .16s; }
.reveal--up > *:nth-child(4) { transition-delay: .24s; }

/* ============================================================
   Image lightbox
   ============================================================ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,10,11,0.92);
  backdrop-filter: blur(20px);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 60px;
}
.lightbox.is-on { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}
.lightbox__close {
  position: fixed; top: 24px; right: 24px;
  font: 500 12px/1 var(--mono);
  color: white;
  border: 1px solid white;
  padding: 12px 18px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   Section labels
   ============================================================ */
.label-blue {
  display: inline-block;
  background: var(--blue);
  color: white;
  font: 500 11px/1 var(--mono);
  padding: 6px 10px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   Tweaks panel
   ============================================================ */
.tweaks {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 500;
  width: 300px;
  background: rgba(17,17,20,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(244,239,230,0.1);
  border-radius: 12px;
  padding: 18px;
  color: var(--ink);
  font-family: var(--sans);
  display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.tweaks.is-on { display: block; }
.tweaks h5 {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.tweaks__row {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.tweaks__row label {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.tweaks__row input[type="text"] {
  background: rgba(244,239,230,0.06);
  border: 1px solid rgba(244,239,230,0.12);
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 6px;
  font: 400 13px/1.3 var(--sans);
  outline: none;
  cursor: auto;
}
.tweaks__row input[type="text"]:focus { border-color: var(--blue); }
.tweaks__swatches {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.tweaks__swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: none;
  transition: transform .2s var(--ease);
}
.tweaks__swatch:hover { transform: scale(1.1); }
.tweaks__swatch.is-on { border-color: var(--ink); }
.tweaks__toggle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
}
.tweaks__toggle button {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(244,239,230,0.08);
  color: var(--ink);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.tweaks__toggle button.is-on { background: var(--blue); border-color: var(--blue); }

/* ============================================================
   Hero category — Pitch Deck flagship section
   ============================================================ */
.hero-cat {
  position: relative;
  padding: 140px var(--gut) 60px;
  overflow: hidden;
  isolation: isolate;
}
.hero-cat::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(79,124,255,0.18), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(79,124,255,0.10), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero-cat::after {
  content: "PITCH DECKS";
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(140px, 22vw, 360px);
  line-height: 0.85;
  color: rgba(79,124,255,0.06);
  letter-spacing: -0.04em;
  white-space: nowrap;
  pointer-events: none;
  z-index: -1;
}
.hero-cat__bar {
  display: flex; justify-content: space-between; align-items: center;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 36px;
}
.hero-cat__pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(79,124,255,0.4);
  background: rgba(79,124,255,0.08);
  color: var(--blue);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.hero-cat__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(79,124,255,0.55);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(79,124,255,0.55); }
  50% { box-shadow: 0 0 0 9px rgba(79,124,255,0); }
}
.hero-cat__index { color: var(--blue); }
.hero-cat__index::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 28px; height: 1px; background: var(--blue); margin-right: 12px;
}
.hero-cat__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 180px);
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-bottom: 28px;
}
.hero-cat__title em { color: var(--blue); font-style: italic; }
.hero-cat__lede {
  max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 22px);
  color: var(--ink-dim);
  line-height: 1.5;
  margin-bottom: 56px;
}
.hero-cat__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  border-top: 1px solid rgba(244,239,230,0.12);
  padding-top: 32px;
}
.hero-cat__stats > div {
  display: flex; flex-direction: column; gap: 8px;
}
.hero-cat__stats b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.2vw, 60px);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.hero-cat__stats span {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 720px) {
  .hero-cat { padding: 90px var(--gut) 40px; }
  .hero-cat__bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-cat__stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ============================================================
   HERO X — Coverflow Deck Showcase
   ============================================================ */
.heroX {
  position: relative;
  min-height: 100vh;
  padding: 92px var(--gut) 36px;
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 50% at 78% 55%, rgba(79,124,255,0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 12% 30%, rgba(79,124,255,0.04), transparent 60%),
    var(--bg);
}

/* Top utility bar */
.heroX__bar {
  display: flex; justify-content: space-between; align-items: center;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.heroX__bar .left { display: flex; align-items: center; gap: 12px; }
.heroX__bar .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5fe39a; box-shadow: 0 0 12px rgba(95,227,154,.7);
  animation: pulse 2s var(--ease) infinite;
}
.heroX__bar .right { display: flex; gap: 28px; }
@media (max-width: 720px) { .heroX__bar .right { display: none; } }

/* Vertical side label */
.heroX__side {
  position: absolute;
  left: 22px; top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 1100px) { .heroX__side { display: none; } }

/* Main grid */
.heroX__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 60px;
  align-items: center;
  padding: 56px 0 32px;
}
@media (max-width: 1024px) {
  .heroX__grid { grid-template-columns: 1fr; gap: 40px; padding: 36px 0 24px; }
}

/* ---------- Left copy ---------- */
.heroX__copy { display: flex; flex-direction: column; gap: 28px; max-width: 580px; }

.heroX__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
}
.heroX__eyebrow .num {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}
.heroX__eyebrow .lbl::before {
  content: ""; display: inline-block;
  width: 18px; height: 1px;
  background: var(--ink-mute);
  vertical-align: middle;
  margin-right: 12px;
}

.heroX__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 7.5vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.heroX__title .row { display: block; overflow: hidden; }
.heroX__title .row > span {
  display: inline-block;
  transform: translateY(110%);
  animation: heroRise 1s var(--ease-out) forwards;
}
.heroX__title .row:nth-child(1) > span { animation-delay: .05s; }
.heroX__title .row:nth-child(2) > span { animation-delay: .15s; }
.heroX__title .row:nth-child(3) > span { animation-delay: .28s; }
.heroX__title .row:nth-child(4) > span { animation-delay: .40s; }
.heroX__title em { font-style: italic; color: var(--blue); }

/* Word flipper */
.heroX__flip {
  position: relative;
  display: inline-block;
  font-style: italic;
  color: var(--blue);
  vertical-align: top;
}
.heroX__flip .sizer { visibility: hidden; }
.heroX__flip .word {
  position: absolute; left: 0; top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(40%);
  animation: flipWord 8s var(--ease) infinite;
}
.heroX__flip .word:nth-child(2) { animation-delay: 0s; }
.heroX__flip .word:nth-child(3) { animation-delay: 2s; }
.heroX__flip .word:nth-child(4) { animation-delay: 4s; }
.heroX__flip .word:nth-child(5) { animation-delay: 6s; }
@keyframes flipWord {
  0%, 22% { opacity: 0; transform: translateY(40%); }
  4%, 20% { opacity: 1; transform: translateY(0); }
  24%, 100% { opacity: 0; transform: translateY(-40%); }
}

.heroX__lede {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 50ch;
}
.heroX__lede strong { color: var(--ink); font-weight: 500; }

.heroX__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.heroX__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  font: 500 14px/1 var(--sans);
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.heroX__btn--primary { background: var(--ink); color: var(--bg); }
.heroX__btn--primary:hover { background: var(--blue); color: white; transform: translateY(-2px); }
.heroX__btn--primary svg { width: 16px; height: 16px; }
.heroX__btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.heroX__btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.heroX__stats {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.heroX__stats > div { display: flex; flex-direction: column; gap: 4px; }
.heroX__stats b {
  font-family: var(--serif); font-weight: 400;
  font-size: 36px; line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.heroX__stats span {
  font: 500 10px/1.3 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
  max-width: 14ch;
}
@media (max-width: 480px) { .heroX__stats { gap: 20px; } .heroX__stats b { font-size: 28px; } }

/* ---------- Right: Coverflow Stage ---------- */
.heroX__stage {
  position: relative;
  height: 560px;
  perspective: 2200px;
  perspective-origin: 50% 50%;
  user-select: none;
}
@media (max-width: 1024px) { .heroX__stage { height: 480px; } }
@media (max-width: 600px)  { .heroX__stage { height: 400px; } }

.heroX__rail {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  cursor: grab;
}
.heroX__rail:active { cursor: grabbing; }

/* Each card */
.cf {
  --offset: 0; /* set by JS: distance from active (signed) */
  --abs: 0;     /* abs(offset) */
  position: absolute;
  left: 50%; top: 50%;
  width: min(640px, 56vw);
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  background: #111114;
  box-shadow:
    0 40px 90px rgba(0,0,0,0.55),
    0 0 0 1px rgba(244,239,230,0.06);
  transform-origin: 50% 50%;
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--offset) * 26%))
    translateZ(calc(var(--abs) * -160px))
    rotateY(calc(var(--offset) * -22deg))
    scale(calc(1 - var(--abs) * 0.08));
  opacity: calc(1 - var(--abs) * 0.18);
  transition:
    transform .85s cubic-bezier(.22,.84,.34,1),
    opacity .6s var(--ease),
    filter .6s var(--ease);
  will-change: transform, opacity;
  z-index: calc(100 - var(--abs));
}
.cf img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}
.cf:not(.is-active) { filter: brightness(0.62) saturate(0.85); }
.cf.is-active {
  box-shadow:
    0 60px 140px rgba(0,0,0,0.7),
    0 0 0 1px rgba(244,239,230,0.10);
}

/* Hide cards too far away (cleaner stack) */
.cf.is-far { opacity: 0; pointer-events: none; }

/* Floor reflection */
.heroX__stage::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4%;
  transform: translateX(-50%);
  width: 70%; height: 60px;
  background: radial-gradient(ellipse at center, rgba(79,124,255,0.22), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Meta panel below stage ---------- */
.heroX__meta {
  position: absolute;
  left: 50%; bottom: -14px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(560px, 92%);
  padding: 16px 18px;
  background: rgba(244,239,230,0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10;
}
.heroX__metaNum {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 4px;
}
.heroX__metaNum i {
  font: 500 11px/1 var(--mono);
  font-style: normal;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}
.heroX__metaBody { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.heroX__client {
  font: 500 16px/1.1 var(--sans);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.heroX__detail {
  font: 500 10px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.heroX__nav { display: flex; gap: 8px; }
.heroX__navBtn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid; place-items: center;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.heroX__navBtn:hover {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.heroX__navBtn svg { width: 18px; height: 18px; }

/* Bottom strip */
.heroX__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  gap: 24px;
}
.heroX__scroll {
  display: flex; align-items: center; gap: 10px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim);
}
.heroX__scroll svg { width: 11px; height: 18px; animation: scrollDown 2.4s var(--ease) infinite; }
.heroX__creds {
  font: 500 11px/1.5 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
}
.heroX__creds b { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  .heroX__foot { flex-direction: column; align-items: flex-start; }
  .heroX__creds { font-size: 9px; }
}

/* Live badge on financial dashboard card */
.live-badge {
  position: absolute;
  top: 14px; left: 14px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.16em;
  background: var(--blue);
  color: #fff;
  padding: 7px 10px 6px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(79,124,255,0.4);
}
.live-badge::before {
  content: "●";
  margin-right: 6px;
  color: #fff;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Live dashboard CTA card */
.live-dash {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  margin: 60px var(--gut) 0;
  border: 1px solid rgba(244,239,230,0.14);
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(79,124,255,0.10), rgba(10,10,11,0));
  position: relative;
  cursor: pointer;
  transition: border-color .4s var(--ease), background .4s var(--ease);
  text-decoration: none;
  color: inherit;
}
.live-dash:hover { border-color: var(--blue); }
.live-dash__left { padding: 56px 56px 56px; display: flex; flex-direction: column; gap: 22px; }
.live-dash__pill {
  display: inline-flex; align-items: center; gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.16em;
  color: var(--blue);
}
.live-dash__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
  animation: blink 1.4s ease-in-out infinite;
}
.live-dash__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.live-dash__title em { color: var(--blue); font-style: italic; }
.live-dash__desc { color: var(--ink-dim); font-size: 15px; line-height: 1.55; max-width: 48ch; }
.live-dash__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 14px;
  border-top: 1px solid rgba(244,239,230,0.12);
}
.live-dash__cta span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--blue);
  transition: transform .4s var(--ease);
}
.live-dash:hover .live-dash__cta span { transform: translateX(8px); }
.live-dash__right {
  position: relative;
  background: #0c0c0d;
  display: flex; flex-direction: column;
  border-left: 1px solid rgba(244,239,230,0.08);
}
.live-dash__chart {
  flex: 1;
  background:
    linear-gradient(transparent 24%, rgba(79,124,255,0.18) 24%, rgba(79,124,255,0.18) 25%, transparent 25%) 0 0/100% 25%,
    linear-gradient(90deg, transparent 49.5%, rgba(244,239,230,0.06) 49.5%, rgba(244,239,230,0.06) 50%, transparent 50%) 0 0/14.28% 100%;
  position: relative;
  overflow: hidden;
}
.live-dash__chart::before {
  content: "";
  position: absolute;
  inset: 24px 24px 32px 24px;
  background:
    radial-gradient(circle at 8% 78%, rgba(79,124,255,0.5) 0 4px, transparent 5px),
    radial-gradient(circle at 22% 60%, rgba(79,124,255,0.5) 0 4px, transparent 5px),
    radial-gradient(circle at 36% 50%, rgba(79,124,255,0.5) 0 4px, transparent 5px),
    radial-gradient(circle at 50% 38%, rgba(79,124,255,0.5) 0 4px, transparent 5px),
    radial-gradient(circle at 64% 30%, rgba(79,124,255,0.5) 0 4px, transparent 5px),
    radial-gradient(circle at 78% 18%, rgba(79,124,255,0.5) 0 4px, transparent 5px),
    radial-gradient(circle at 92% 8%, rgba(79,124,255,0.5) 0 4px, transparent 5px);
}
.live-dash__chart::after {
  content: "";
  position: absolute;
  left: 24px; right: 24px; bottom: 32px; top: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(79,124,255,0.12) 100%);
  clip-path: polygon(0 80%, 8% 78%, 22% 60%, 36% 50%, 50% 38%, 64% 30%, 78% 18%, 92% 8%, 100% 6%, 100% 100%, 0 100%);
  border-top: 2px solid var(--blue);
  border-radius: 0;
}
.live-dash__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(244,239,230,0.08);
}
.live-dash__kpis > div {
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid rgba(244,239,230,0.08);
}
.live-dash__kpis > div:last-child { border-right: none; }
.live-dash__kpis span {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.live-dash__kpis b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
@media (max-width: 880px) {
  .live-dash { grid-template-columns: 1fr; margin: 40px var(--gut) 0; }
  .live-dash__left { padding: 40px 32px; }
  .live-dash__right { min-height: 280px; }
}


/* ============================================================ */
/* SECTION SUBHEAD                                              */
/* ============================================================ */
.sec__sub {
  grid-column: 1 / -1;
  font: 400 16px/1.5 var(--sans);
  color: var(--ink-dim);
  max-width: 56ch;
  margin-top: 4px;
  letter-spacing: -0.005em;
}


/* ============================================================ */
/* REELS — continuous vertical-tile rail                        */
/* ============================================================ */
.reels-rail {
  position: relative;
  margin: 8px 0 60px;
  padding: 24px 0 30px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(79,124,255,.08), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.012), rgba(0,0,0,.35));
}
.reels-rail::before,
.reels-rail::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 14vw;
  pointer-events: none; z-index: 4;
}
.reels-rail::before { left: 0; background: linear-gradient(90deg, var(--ink-bg), transparent); }
.reels-rail::after  { right: 0; background: linear-gradient(270deg, var(--ink-bg), transparent); }

.reels-rail__track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 0 22px;
  animation: reelsRail 90s linear infinite;
  will-change: transform;
}
.reels-rail:hover .reels-rail__track { animation-play-state: paused; }
@keyframes reelsRail {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.reels-tile {
  position: relative;
  flex: 0 0 auto;
  width: 280px;
  aspect-ratio: 9 / 16;
  background: #0d0d0f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.55);
  transition: transform .45s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.reels-tile:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: var(--blue);
  box-shadow: 0 36px 90px rgba(0,0,0,.65), 0 0 0 1px var(--blue) inset;
}
.reels-tile video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #0d0d0f;
}
.reels-tile__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  z-index: 2;
  pointer-events: none;
}
.reels-tile__meta span {
  display: block;
  font: 500 10px/1 var(--mono);
  letter-spacing: .14em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.reels-tile__meta b {
  display: block;
  font: 500 16px/1.2 var(--sans);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 2px;
}
.reels-tile__meta i {
  font: 400 12px/1.3 var(--sans);
  font-style: normal;
  color: var(--ink-dim);
}
@media (max-width: 720px) {
  .reels-tile { width: 220px; }
  .reels-rail__track { gap: 16px; padding: 0 14px; }
}

/* ============================================================ */
/* LANDSCAPE FILMS — auto-rail of 16:9 hover-play tiles         */
/* ============================================================ */
.vidsrail {
  position: relative;
  margin: 8px 0 70px;
  padding: 36px 0 44px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(79,124,255,.06), transparent 70%);
}
.vidsrail::before,
.vidsrail::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 14vw;
  pointer-events: none; z-index: 4;
}
.vidsrail::before { left: 0; background: linear-gradient(90deg, var(--ink-bg), transparent); }
.vidsrail::after  { right: 0; background: linear-gradient(270deg, var(--ink-bg), transparent); }

.vidsrail__track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: vidsRail 90s linear infinite;
  will-change: transform;
  padding: 8px 0;
}
.vidsrail:hover .vidsrail__track { animation-play-state: paused; }
@keyframes vidsRail {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.vidtile {
  position: relative;
  flex: 0 0 auto;
  width: clamp(420px, 38vw, 620px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0c0c0e;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 70px rgba(0,0,0,.55);
  transition: transform .45s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.vidtile:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 0 1px var(--blue) inset;
}
.vidtile__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
  transition: transform .8s var(--ease), filter .35s var(--ease);
}
.vidtile:hover .vidtile__video {
  transform: scale(1.03);
  filter: saturate(1.1) contrast(1.05);
}
.vidtile__cover {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex; flex-direction: column;
  justify-content: space-between; align-items: flex-start;
  padding: 22px 24px;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.85) 100%);
  transition: background .35s var(--ease);
}
.vidtile:hover .vidtile__cover {
  background:
    linear-gradient(180deg, transparent 25%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.9) 100%);
}
.vidtile__meta {
  display: flex; flex-direction: column; gap: 2px;
  pointer-events: none;
  align-self: stretch;
  margin-top: auto;
}
.vidtile__num {
  font: 500 10px/1 var(--mono);
  letter-spacing: .14em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.vidtile__meta h4 {
  font: 400 26px/1.15 var(--serif);
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 2px;
}
.vidtile__meta p {
  font: 400 12px/1.4 var(--sans);
  color: var(--ink-dim);
  margin: 0;
  letter-spacing: .02em;
}
.vidtile__play {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  align-self: flex-end;
  margin-left: auto;
  transition: background .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.vidtile__play svg { width: 18px; height: 18px; margin-left: 2px; }
.vidtile:hover .vidtile__play {
  background: var(--blue);
  color: #fff;
  transform: scale(1.08);
}

@media (max-width: 740px) {
  .vidtile { width: 84vw; }
  .vidtile__meta h4 { font-size: 20px; }
  .vidtile__play { width: 48px; height: 48px; }
}

/* ============================================================ */
/* VIDEO LIGHTBOX                                               */
/* ============================================================ */
.vbox {
  position: fixed; inset: 0;
  background: rgba(8,8,10,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: 5vh 5vw;
}
.vbox.is-open { display: flex; }
.vbox__close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: 1px solid rgba(255,255,255,.2);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 100px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 2;
}
.vbox__close:hover { background: var(--blue); border-color: var(--blue); }
.vbox__frame {
  width: 100%; max-width: 1280px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
}
.vbox__frame video {
  width: 100%; height: 100%;
  display: block;
  background: #000;
}

/* ============================================================ */
/* LIVE DASHBOARD — inlined interactive prototype               */
/* ============================================================ */
.dx {
  --dx-bg:#0a0a0b; --dx-panel:#101012; --dx-panel2:#15151a;
  --dx-line:rgba(244,239,230,.10); --dx-line2:rgba(244,239,230,.18);
  --dx-ink:#f4efe6; --dx-dim:#a8a39b; --dx-mute:#65615a;
  --dx-blue:#4f7cff; --dx-blue2:#7ea0ff; --dx-green:#4fe0a4; --dx-red:#ff5f7a;
  position: relative;
  margin: 8px var(--gut) 60px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--dx-bg);
  color: var(--dx-ink);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}
.dx * { box-sizing: border-box; }
.dx__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--dx-line);
  background: rgba(255,255,255,.02);
}
.dx__pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11px/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase; color: var(--dx-ink);
}
.dx__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,.18);
  animation: liveDot 1.6s ease-in-out infinite;
}
.dx__open {
  font: 500 11px/1 var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--dx-ink); padding: 9px 14px;
  border: 1px solid var(--dx-line2); border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.dx__open:hover { background: var(--dx-blue); border-color: var(--dx-blue); color: #fff; }
.dx__open .arrow { font-size: 14px; }

.dx__head {
  padding: 32px 28px 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  border-bottom: 1px solid var(--dx-line);
}
.dx__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.025em; line-height: 1;
  color: var(--dx-ink);
}
.dx__title em { color: var(--dx-blue); font-style: italic; }
.dx__lede { color: var(--dx-dim); max-width: 60ch; margin-top: 12px; font-size: 14px; line-height: 1.5; }
.dx__meta { display: flex; flex-direction: column; gap: 4px; text-align: right; font: 500 10px/1.5 var(--mono); letter-spacing: .1em; color: var(--dx-mute); text-transform: uppercase; }
.dx__meta b { color: var(--dx-ink); font-family: var(--serif); font-weight: 400; font-size: 15px; letter-spacing: 0; text-transform: none; }

.dx__wrap {
  padding: 24px;
  display: grid; grid-template-columns: 260px 1fr; gap: 20px;
}

/* sidebar */
.dx-assump {
  background: var(--dx-panel); border: 1px solid var(--dx-line);
  border-radius: 6px; padding: 22px;
  display: flex; flex-direction: column; gap: 20px;
  align-self: start;
}
.dx-assump h4 {
  font: 500 10px/1 var(--mono); letter-spacing: .18em;
  text-transform: uppercase; color: var(--dx-blue);
  margin: 0;
}
.dx-field { display: flex; flex-direction: column; gap: 8px; }
.dx-field__label {
  display: flex; justify-content: space-between; align-items: baseline;
  font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--dx-dim);
}
.dx-field__label b {
  color: var(--dx-ink); font-family: var(--serif); font-weight: 400;
  font-size: 17px; letter-spacing: -.01em; text-transform: none;
}
.dx-field input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: var(--dx-line2); border-radius: 2px; outline: none;
}
.dx-field input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--dx-blue); cursor: pointer;
  border: 3px solid var(--dx-bg); box-shadow: 0 0 0 1px var(--dx-blue);
}
.dx-field input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--dx-blue); cursor: pointer;
  border: 3px solid var(--dx-bg); box-shadow: 0 0 0 1px var(--dx-blue);
}
.dx-field__hint { font: 500 10px/1.4 var(--mono); color: var(--dx-mute); letter-spacing: .04em; }

.dx-scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.dx-scenarios button {
  padding: 9px 8px; border: 1px solid var(--dx-line2); border-radius: 4px;
  font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--dx-dim); background: none; cursor: pointer;
  transition: all .25s;
}
.dx-scenarios button:hover { color: var(--dx-ink); border-color: var(--dx-dim); }
.dx-scenarios button.is-on { background: var(--dx-blue); border-color: var(--dx-blue); color: #fff; }

/* main */
.dx-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.dx-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dx-kpi {
  background: var(--dx-panel); border: 1px solid var(--dx-line);
  border-radius: 6px; padding: 20px;
  position: relative; overflow: hidden;
}
.dx-kpi__label {
  font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--dx-mute); margin-bottom: 12px;
}
.dx-kpi__val {
  font-family: var(--serif); font-weight: 400;
  font-size: 36px; letter-spacing: -.03em; line-height: 1;
  color: var(--dx-ink); transition: color .3s;
}
.dx-kpi__delta {
  margin-top: 8px;
  font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--dx-green);
}
.dx-kpi__delta.neg { color: var(--dx-red); }
.dx-kpi__spark {
  position: absolute; right: 0; bottom: 0;
  width: 90px; height: 48px; opacity: .55;
}
.dx-kpi--accent .dx-kpi__val { color: var(--dx-blue); }

.dx-panel {
  background: var(--dx-panel); border: 1px solid var(--dx-line);
  border-radius: 6px; padding: 24px;
  position: relative; overflow: hidden;
}
.dx-panel__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px; gap: 16px;
}
.dx-panel__title {
  font-family: var(--serif); font-weight: 400;
  font-size: 24px; letter-spacing: -.02em; line-height: 1.1;
  color: var(--dx-ink);
}
.dx-panel__sub {
  font: 500 10px/1.5 var(--mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--dx-mute); margin-top: 6px;
}
.dx-panel__legend {
  display: flex; gap: 16px;
  font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--dx-dim);
}
.dx-panel__legend span { display: inline-flex; align-items: center; gap: 8px; }
.dx-panel__legend i { display: block; width: 14px; height: 2px; background: var(--dx-blue); border-radius: 2px; }
.dx-panel__legend i.alt { background: transparent; border-bottom: 2px dashed var(--dx-dim); height: 6px; }

.dx-chart { position: relative; height: 320px; }
.dx-chart svg { width: 100%; height: 100%; display: block; }

.dx-lower { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }

/* segment bars */
.dx-bars { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.dx-bar-row {
  display: grid; grid-template-columns: 110px 1fr 80px;
  gap: 14px; align-items: center;
  font: 500 12px/1 var(--mono); color: var(--dx-dim); letter-spacing: .04em;
}
.dx-bar-row b {
  font-family: var(--serif); font-weight: 400; font-size: 17px;
  color: var(--dx-ink); text-align: right; letter-spacing: -.01em;
}
.dx-bar-row .dx-track {
  height: 10px; background: var(--dx-line); border-radius: 2px;
  overflow: hidden; position: relative;
}
.dx-bar-row .dx-fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: linear-gradient(90deg, var(--dx-blue), var(--dx-blue2));
  border-radius: 2px;
  transition: width .8s cubic-bezier(.16,1,.3,1);
}

/* unit econ table */
.dx-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.dx-tbl th, .dx-tbl td {
  padding: 12px 10px; text-align: right;
  border-bottom: 1px solid var(--dx-line);
}
.dx-tbl th:first-child, .dx-tbl td:first-child { text-align: left; }
.dx-tbl th {
  font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--dx-mute); padding-bottom: 12px; border-bottom-color: var(--dx-line2);
}
.dx-tbl td { color: var(--dx-dim); }
.dx-tbl td:first-child { color: var(--dx-ink); }
.dx-tbl tr:hover td { background: rgba(79,124,255,.04); }
.dx-tbl b { color: var(--dx-blue); font-family: var(--serif); font-weight: 400; font-size: 16px; letter-spacing: -.01em; }

/* tooltip */
.dx-tip {
  position: absolute; background: var(--dx-panel2);
  border: 1px solid var(--dx-line2); border-radius: 4px;
  padding: 10px 14px; pointer-events: none;
  font: 500 11px/1.4 var(--mono); color: var(--dx-ink);
  min-width: 140px; opacity: 0; transition: opacity .15s;
  z-index: 10; box-shadow: 0 12px 40px rgba(0,0,0,.6);
}
.dx-tip b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 17px; letter-spacing: -.01em; margin-bottom: 4px;
}
.dx-tip span {
  color: var(--dx-mute); text-transform: uppercase; letter-spacing: .1em; font-size: 9px;
}
.dx-tip i { color: var(--dx-blue); font-style: normal; display: block; margin-top: 4px; }

@media (max-width: 1080px) {
  .dx__wrap { grid-template-columns: 1fr; }
  .dx-kpis { grid-template-columns: repeat(2, 1fr); }
  .dx-lower { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dx__head { grid-template-columns: 1fr; }
  .dx-kpis { grid-template-columns: 1fr; }
  .dx-panel { padding: 18px; }
}
@keyframes liveDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74,222,128,.2); }
  50%      { box-shadow: 0 0 0 8px rgba(74,222,128,.06); }
}
