/* ═══ S0 · preloader ═══════════════════════════════ */

.pre {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink-0);
  display: grid;
  place-items: center;
}

.pre__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: min(42vw, 420px);
  aspect-ratio: 6 / 5;
  gap: 2px;
}

.pre__cell {
  background: var(--ink-3);
  opacity: 0;
  transform: scale(0.6);
  filter: saturate(0.2) brightness(1.4) hue-rotate(195deg);
}

.pre__pct {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.3em;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
}

.pre__side {
  position: absolute;
  top: 50%;
  right: 1.4rem;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.42em;
  color: var(--fg-faint);
}

/* ═══ S1 · hero ════════════════════════════════════ */

.stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.stage canvas {
  width: 100%;
  height: 100%;
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  padding: 6.5rem var(--gutter) 5rem calc(var(--gutter) + var(--rail));
}

.hero__top {
  align-self: start;
}

.hero__bottom {
  align-self: end;
  text-align: right;
}

.hero__line {
  display: block;
  font-size: var(--t-mega);
  color: var(--fg);
  text-shadow: 0 0 80px rgba(0, 0, 0, 0.9);
}

.hero__sub {
  max-width: 26rem;
  margin-top: 1.6rem;
  margin-left: clamp(0rem, 8vw, 9rem);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
}

.hero__sub strong {
  color: var(--fg);
  font-weight: 400;
}

.hero__mid {
  display: flex;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 3.2rem;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.3em;
  color: var(--fg-faint);
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.45; }
  50% { transform: translate(-50%, 7px); opacity: 1; }
}

/* ═══ S3 · declaration (light) ═════════════════════ */

.declare {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem var(--gutter);
}

.declare__label {
  margin-bottom: 3rem;
}

.declare__h {
  font-size: var(--t-xl);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--fg-ink);
}

.declare__body {
  margin-top: 2.75rem;
  max-width: 44rem;
  margin-inline: auto;
  font-family: var(--f-serif);
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  line-height: 2;
  color: var(--fg-ink-dim);
}

.declare__body span {
  opacity: 0.12;
  transition: opacity 0.2s;
}

/* ═══ S4 · contrast ════════════════════════════════ */

.contrast__row {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(4rem, 10vh, 8rem);
}

.contrast__div {
  width: 1px;
  height: 100%;
  min-height: 14rem;
  background: var(--line);
  transform-origin: top;
}

.contrast__side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contrast__side--bad {
  filter: grayscale(1);
  opacity: 0.5;
  text-align: right;
  align-items: flex-end;
}

.contrast__ico {
  width: clamp(3.5rem, 7vw, 6rem);
  height: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: 1.2rem;
  color: var(--fg-dim);
}

.contrast__side--good .contrast__ico {
  border-color: var(--gold);
  color: var(--gold);
}

.contrast__t {
  font-size: var(--t-lg);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.03em;
}

.contrast__t mark {
  background: var(--brand);
  color: #fff;
  padding: 0 0.3em;
}

.contrast__side--bad .contrast__t mark {
  background: rgba(255, 255, 255, 0.14);
  color: var(--fg);
}

@media (max-width: 859px) {
  .contrast__row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contrast__div {
    width: 100%;
    height: 1px;
    min-height: 0;
  }
  .contrast__side--bad {
    text-align: left;
    align-items: flex-start;
  }
}

/* ═══ S5 · process (horizontal pin) ════════════════ */

.process {
  background: var(--ink-0);
  overflow: hidden;
}

.process__head {
  padding: clamp(5rem, 11vh, 8rem) var(--gutter) 0;
  max-width: var(--max);
  margin-inline: auto;
}

.process__h {
  font-size: var(--t-xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-top: 1.5rem;
}

.process__track {
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
  width: max-content;
  align-items: stretch;
}

.step {
  position: relative;
  flex: 0 0 clamp(20rem, 32vw, 30rem);
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.step__n {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(5rem, 13vw, 13rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  margin-bottom: 1.5rem;
}

.step.is-on .step__n {
  color: var(--fg);
  -webkit-text-stroke: 0;
}

.step__t {
  font-size: var(--t-lg);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}

.step li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.9375rem;
  color: var(--fg-dim);
}

.step li b {
  color: var(--fg);
  font-weight: 600;
  margin-right: 0.6rem;
}

.step li em {
  display: block;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  margin-top: 0.3rem;
}

@media (max-width: 859px) {
  .process__track {
    flex-direction: column;
    width: auto;
  }
  .step {
    flex: none;
  }
  .step__n {
    color: var(--fg);
    -webkit-text-stroke: 0;
  }
}

/* ═══ S6 · portfolio ═══════════════════════════════ */

.port {
  background: var(--ink-1);
  padding-block: clamp(6rem, 14vh, 11rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-block: clamp(3rem, 7vh, 5.5rem);
}

.stat {
  position: relative;
  text-align: center;
  padding: clamp(2rem, 4vw, 3.25rem) 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.stat__n {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat__n sup {
  font-family: var(--f-sans);
  font-size: 0.3em;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 0.25em;
  /* baseline-aligned: the old superscript offset collided with the figures */
  vertical-align: baseline;
  top: 0;
}

.stat__t {
  margin-top: 0.6rem;
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.24em;
  color: var(--fg-faint);
  text-transform: uppercase;
}

.stat__star {
  position: absolute;
  top: -9px;
  right: 11%;
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 767px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-radius: 2rem;
  }
}

/* ── 3D card field ──────────────────────────────── */

.field {
  position: relative;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  padding-block: clamp(2rem, 5vh, 4rem);
}

.field__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  transform-style: preserve-3d;
}

.card {
  position: relative;
  display: block;
  padding: 1.5rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: border-color 0.4s, background 0.4s;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: var(--ink-3);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card__field {
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

.card__since {
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  color: var(--fg-faint);
}

.card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  min-height: 3em;
}

.card__subs {
  margin-top: 1.25rem;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.card__subs sup {
  font-family: var(--f-sans);
  font-size: 0.3em;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 0.3em;
  vertical-align: baseline;
  top: 0;
  color: var(--fg-dim);
}

.card__meta {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 1.25rem;
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  color: var(--fg-faint);
}

.field__sub {
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.card--own {
  background: transparent;
}

/* ── tax ranking table ──────────────────────────── */

.proof {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: clamp(4rem, 10vh, 7rem);
}

.rank {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.rank th {
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 400;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.rank td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}

.rank tr.is-ours td {
  color: var(--fg);
  font-weight: 700;
  background: rgba(200, 162, 74, 0.1);
  border-bottom-color: var(--gold);
}

.rank tr.is-ours td:first-child {
  color: var(--gold);
}

.proof__h {
  font-size: var(--t-lg);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.03em;
}

.proof__h mark {
  background: var(--gold);
  color: var(--ink-0);
  padding: 0 0.25em;
}

.proof__p {
  margin-top: 1.5rem;
  color: var(--fg-dim);
}

@media (max-width: 859px) {
  .proof {
    grid-template-columns: 1fr;
  }
}

/* ═══ S7 · badges ══════════════════════════════════ */

.badges {
  background: var(--ink-0);
  padding-block: clamp(5rem, 12vh, 9rem);
}

.badges__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 3rem;
}

.badge {
  text-align: center;
  padding: clamp(2.25rem, 4vw, 3.5rem) 1.25rem;
  border: 1px solid rgba(200, 162, 74, 0.32);
  will-change: transform, opacity;
}

.badge__ico {
  font-size: 1.75rem;
  color: var(--gold);
  line-height: 1;
}

.badge__t {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
}

.badge__src {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(200, 162, 74, 0.45);
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  color: var(--gold);
}

@media (max-width: 767px) {
  .badges__grid {
    grid-template-columns: 1fr;
  }
}

/* ═══ S8 · closing CTA ═════════════════════════════ */

.cta {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 7rem var(--gutter);
  overflow: hidden;
  background: var(--ink-0);
}

.cta__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.26;
  filter: grayscale(0.4);
}

.cta__inner {
  position: relative;
  z-index: 2;
}

.cta__h {
  font-size: var(--t-xl);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.04em;
  will-change: transform;
}

.cta__h mark {
  background: var(--fg);
  color: var(--ink-0);
  padding: 0 0.22em;
}

.cta__row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

/* ═══ S9 · footer ══════════════════════════════════ */

.foot {
  background: var(--ink-0);
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 8vh, 6rem);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: start;
}

.foot__logo {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}

.foot__info {
  font-size: 0.875rem;
  line-height: 2.1;
  color: var(--fg-dim);
}

.foot__info a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.foot__links {
  display: flex;
  gap: 1.75rem;
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.foot__copy {
  margin-top: 3rem;
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  color: var(--fg-faint);
}

@media (max-width: 767px) {
  .foot__grid {
    grid-template-columns: 1fr;
  }
}

.card__go {
  margin-left: auto;
  color: var(--fg-dim);
  transition: color 0.3s;
}

.card:hover .card__go {
  color: var(--fg);
}

.card--own {
  border-style: dashed;
}

/* ═══ S4 · vision & mission ════════════════════════ */

.vision {
  padding-block: clamp(6rem, 16vh, 12rem);
}

.vision__grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.vision__h {
  font-size: var(--t-xl);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--fg-ink);
}

.vision__note {
  margin-top: 1rem;
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(11, 13, 18, 0.42);
}

.vision__p {
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  line-height: 1.95;
  color: var(--fg-ink);
}

.vision__p + .vision__p {
  margin-top: 1.9rem;
}

.vision__p--mute {
  color: rgba(11, 13, 18, 0.44);
}

.vision__p--lead {
  font-size: clamp(1.15rem, 2.1vw, 2rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.03em;
  padding-top: 1.9rem;
  border-top: 1px solid var(--line-dark);
}

@media (max-width: 859px) {
  .vision__grid {
    grid-template-columns: 1fr;
  }
}

/* ═══ S6 · research ════════════════════════════════ */

.research {
  background: var(--ink-0);
  padding-block: clamp(6rem, 15vh, 11rem);
}

.research__h {
  font-size: var(--t-xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin-top: 1.5rem;
}

.research__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
  border-bottom: 1px solid var(--line);
}

.research__p {
  color: var(--fg-dim);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.95;
}

.research__q {
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: -0.025em;
}

.research__q em {
  display: block;
  font-style: normal;
  color: var(--gold);
  margin-top: 0.5rem;
}

.research__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--line);
  margin-top: 1px;
}

.research__list li {
  background: var(--ink-0);
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.4s;
}

.research__list li:hover {
  background: var(--ink-2);
}

.research__list span {
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.research__list b {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.research__list em {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--fg-faint);
}

@media (max-width: 859px) {
  .research__grid {
    grid-template-columns: 1fr;
  }
}

/* ═══ S7 · process tail ════════════════════════════ */

/* Lets the last card travel far enough left to become the active one. */
.process__tail {
  flex: 0 0 clamp(2rem, 34vw, 32rem);
}

@media (max-width: 859px) {
  .process__tail {
    display: none;
  }
}

/* ═══ S8 · aftercare flow ══════════════════════════ */

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
  counter-reset: flow;
}

.flow__i {
  position: relative;
  counter-increment: flow;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.1rem, 1.8vw, 1.75rem);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.flow__i::before {
  content: counter(flow, decimal-leading-zero);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--fg-faint);
}

/* chevron linking each step to the next */
.flow__i:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(clamp(0.75rem, 1.6vw, 1.25rem) / -2 - 4px);
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

.flow__i span {
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.flow__i em {
  font-style: normal;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--fg-faint);
}

.aftercare__line {
  margin-top: clamp(3rem, 8vh, 5.5rem);
  font-size: clamp(1.3rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.04em;
  text-align: center;
}

@media (max-width: 859px) {
  .flow {
    grid-template-columns: 1fr;
  }
  .flow__i:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -5px;
    transform: translateX(50%) rotate(135deg);
  }
}

/* ═══ S9 · marquee ═════════════════════════════════ */

.marq {
  background: var(--ink-0);
  border-block: 1px solid var(--line);
  padding-block: clamp(1.5rem, 4vh, 3rem);
  overflow: hidden;
}

.marq__row {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marq__row + .marq__row {
  margin-top: clamp(0.5rem, 1.5vh, 1rem);
}

.marq__set {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  padding-right: clamp(1.25rem, 3vw, 2.75rem);
}

.marq__set span {
  font-size: clamp(1.6rem, 4.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.marq__set i {
  color: var(--gold);
  font-style: normal;
  font-size: clamp(0.7rem, 1.4vw, 1.1rem);
}

/* Outlined type disappeared once the ambient field moved in behind it —
   a 1px stroke at 14% white has nothing to hold against drifting particles.
   Filled white instead, held back by opacity so the first row still leads. */
.marq__row--alt .marq__set span {
  color: var(--fg);
  opacity: 0.8;
  -webkit-text-stroke: 0;
}

/* ═══ S11 · badge emblems ══════════════════════════ */

.emblem {
  width: clamp(4.5rem, 9vw, 7rem);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.75));
  transform-style: preserve-3d;
  animation: emblem-float 5.5s ease-in-out infinite;
}

.emblem svg {
  width: 100%;
  height: auto;
  display: block;
}

.badge:nth-child(2) .emblem { animation-delay: -1.8s; }
.badge:nth-child(3) .emblem { animation-delay: -3.6s; }

@keyframes emblem-float {
  0%, 100% { transform: translateY(0) rotateZ(0deg); }
  50% { transform: translateY(-9px) rotateZ(-2.5deg); }
}

.badge {
  transform-style: preserve-3d;
  transition: border-color 0.4s, background 0.4s;
}

.badge:hover {
  border-color: rgba(200, 162, 74, 0.8);
  background: rgba(200, 162, 74, 0.05);
}

/* ═══ S12 · FAQ ════════════════════════════════════ */

.faq {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--line);
}

.faq__i {
  border-bottom: 1px solid var(--line);
}

.faq__i summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1.2rem, 2.4vw, 1.9rem) 0;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
}

.faq__i summary::-webkit-details-marker {
  display: none;
}

.faq__i summary::before {
  content: "+";
  flex: none;
  width: 1.5rem;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.35s var(--ease-out);
}

.faq__i[open] summary::before {
  transform: rotate(45deg);
}

.faq__i summary:hover {
  color: var(--gold);
}

.faq__i p {
  padding: 0 0 clamp(1.4rem, 2.6vw, 2.1rem) 2.75rem;
  max-width: 58rem;
  color: var(--fg-dim);
  line-height: 1.95;
}

/* ═══ S9b · output in numbers ══════════════════════ */

.out {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.out__i {
  background: var(--ink-1);
  padding: clamp(2rem, 3.5vw, 3.25rem) clamp(1.25rem, 2vw, 2rem);
  transition: background 0.4s;
}

.out__i:hover {
  background: var(--ink-2);
}

.out__n {
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.out__n sup {
  font-size: 0.26em;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 0.25em;
  vertical-align: baseline;
  top: 0;
  color: var(--gold);
}

.out__t {
  margin-top: 0.9rem;
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.out__i p {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--fg-faint);
}

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

@media (max-width: 599px) {
  .out {
    grid-template-columns: 1fr;
  }
}

/* ═══ phone pass ═══════════════════════════════════════════════════
   Desktop leans on full-viewport sections and generous leading. On a phone
   that reads as empty screens and floating fragments, so this tightens the
   vertical rhythm and lets content set its own height. */

@media (max-width: 767px) {
  /* ── hero ───────────────────────────────────────────────────── */
  .hero {
    /* Phones get no cube field — the WebGL scene is skipped — so a tall hero
       is a tall patch of nothing. Measured at 88svh with the copy pinned low
       it left 452px of dead space above the headline. Shorter, and centred. */
    min-height: 72svh;
    grid-template-rows: auto;
    align-content: center;
    gap: 0.9rem;
    padding: 5rem var(--gutter) 4.5rem;
    text-align: left;
  }

  /* Source order puts the sub-copy between the two headline halves, which is
     right on desktop where they sit at opposite corners. Stacked on a phone
     it splits the sentence in two, so the headline closes first. */
  .hero__top { order: 1; }
  .hero__bottom { order: 2; }
  .hero__mid { order: 3; }

  .hero__bottom {
    text-align: left;
  }

  .hero__mid {
    margin-top: 0.9rem;
  }

  .hero__line {
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
  }

  .hero__sub {
    margin-left: 0;
    margin-top: 0.5rem;
    max-width: none;
    font-size: 0.8125rem;
    line-height: 1.85;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.72);
  }

  .hero__scroll {
    bottom: 1.6rem;
  }

  /* ── declaration ────────────────────────────────────────────── */
  .declare {
    min-height: auto;
    padding: clamp(4.5rem, 14vh, 7rem) var(--gutter);
  }

  .declare__label {
    margin-bottom: 1.5rem;
  }

  .declare__h {
    line-height: 1.22;
  }

  .declare__body {
    margin-top: 1.75rem;
    font-size: 0.9375rem;
    line-height: 1.85;
    text-align: left;
  }

  /* ── shared section rhythm ──────────────────────────────────── */
  .section--pad,
  .vision,
  .research,
  .port,
  .badges {
    padding-block: clamp(4rem, 12vh, 6rem);
  }

  .vision__p,
  .research__p,
  .faq__i p,
  .out__i p {
    line-height: 1.8;
  }

  .vision__p + .vision__p {
    margin-top: 1.25rem;
  }

  .research__grid {
    gap: 1.75rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
  }

  .research__list li {
    padding: 1.5rem 1.25rem;
  }

  /* ── contrast ───────────────────────────────────────────────── */
  .contrast__row {
    padding-block: 2.5rem;
  }

  .contrast__t {
    line-height: 1.5;
  }

  /* ── portfolio ──────────────────────────────────────────────── */
  .card__name {
    min-height: 0;
  }

  .field__grid {
    grid-template-columns: 1fr;
  }

  /* The ranking table is the one thing allowed to scroll sideways. */
  .proof > div:first-child {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rank {
    min-width: 30rem;
  }

  /* ── marquee ────────────────────────────────────────────────── */
  .marq {
    padding-block: 1.25rem;
  }

  /* ── FAQ ────────────────────────────────────────────────────── */
  .faq__i summary {
    gap: 0.85rem;
    line-height: 1.45;
  }

  .faq__i p {
    padding-left: 2.35rem;
  }

  /* ── closing ────────────────────────────────────────────────── */
  .cta {
    min-height: auto;
    padding-block: clamp(5rem, 15vh, 8rem);
  }

  .cta__h {
    line-height: 1.45;
  }

  .cta__row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  /* ── footer ─────────────────────────────────────────────────── */
  .foot__links {
    gap: 1.25rem;
  }
}

/* Korean headlines need more leading than Latin at display sizes. */
@media (max-width: 599px) {
  .display--kr {
    line-height: 1.16;
  }

  .research__h,
  .vision__h,
  .process__h,
  .declare__h {
    line-height: 1.24;
  }

  .aftercare__line {
    line-height: 1.5;
  }
}

/* ═══ ambient field ════════════════════════════════════════════════
   The dark sections used to paint solid black over everything, so a canvas
   behind them was invisible. They now go transparent and let the body's ink
   show through, with the ambient lattice drawn between the two. Panels and
   cards keep a translucent fill so copy stays readable on top of it.
   Light sections stay opaque — they are meant to cover the field. */

.stage--amb {
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s linear;
}

.section--dark,
.research,
.process,
.port,
.badges,
.marq,
.cta,
.foot {
  background: transparent;
}

/* keep the body's ground behind it all */
body {
  background: var(--ink-0);
}

/* panels: translucent so the field reads through without hurting contrast */
.card {
  background: rgba(15, 19, 28, 0.66);
}

.card:hover {
  background: rgba(23, 28, 40, 0.86);
}

.card--own {
  background: rgba(10, 13, 20, 0.5);
}

.research__list {
  background: rgba(255, 255, 255, 0.12);
}

.research__list li {
  background: rgba(7, 9, 15, 0.72);
}

.research__list li:hover {
  background: rgba(20, 24, 33, 0.85);
}

.out {
  background: rgba(255, 255, 255, 0.12);
}

.out__i {
  background: rgba(7, 9, 15, 0.72);
}

.out__i:hover {
  background: rgba(20, 24, 33, 0.85);
}

.flow__i,
.badge,
.stat {
  background: rgba(7, 9, 15, 0.55);
}

.rank tr.is-ours td {
  background: rgba(200, 162, 74, 0.16);
}

/* The closing section keeps its own video ground, so give it a real veil. */
.cta {
  background: rgba(0, 0, 0, 0.35);
}

/* Over the pinned process strip the field would scroll with the cards and
   read as noise, so damp it there. */
.process {
  background: rgba(7, 9, 15, 0.55);
}

/* ═══ readability over the ambient field ═══════════════════════════
   The lattice and the wireframe solids drift straight under the copy, and
   a bright edge of the sphere passing behind a card washed it out. A
   vignette sits between the canvas and the content: clear in the middle
   where the motion should read, heavy at the edges where text lives. */

.stage--amb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      125% 85% at 50% 48%,
      rgba(7, 9, 15, 0) 0%,
      rgba(7, 9, 15, 0.42) 52%,
      rgba(7, 9, 15, 0.82) 82%,
      rgba(7, 9, 15, 0.94) 100%
    );
}

/* Cards lift off the field rather than floating in it. */
.card,
.out__i,
.research__list li,
.flow__i,
.badge,
.stat {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.card {
  background: rgba(13, 17, 25, 0.86);
  backdrop-filter: blur(3px);
}

.card:hover {
  background: rgba(22, 27, 39, 0.94);
}

.card--own {
  background: rgba(9, 12, 18, 0.74);
}

.research__list li,
.out__i {
  background: rgba(7, 9, 15, 0.88);
}

.flow__i,
.badge,
.stat {
  background: rgba(7, 9, 15, 0.72);
}

/* Section headings sit directly on the field, so give them their own lift. */
.research__h,
.process__h,
.aftercare__line,
.proof__h,
.cta__h,
.label {
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.8);
}

/* ═══ small labels were too small to read ══════════════════════════ */

.card__field,
.card__since {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.card__meta,
.out__t,
.stat__t {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

.research__list span,
.flow__i::before,
.badge__src {
  font-size: 0.75rem;
}

.card__meta {
  gap: 1.1rem;
}

/* Highlighted runs sit on their own solid ground, so the section-level text
   shadow has nothing to lift them off — it only smears the knocked-out
   letters. Clear it wherever a mark provides its own background. */
mark {
  text-shadow: none;
}
