/* ==========================================================================
   Gangnam Beauty Guide , design system
   Vibe: Editorial Luxury (warm paper, ink, Korean celadon as the trust signal)
   Layout: Editorial Split + Asymmetrical Bento
   ========================================================================== */

:root {
  /* Surface */
  --paper:        #FAF7F2;
  --paper-2:      #F3EDE4;
  --paper-3:      #EAE2D6;
  --card:         #FFFDFA;

  /* Ink */
  --ink:          #16120F;
  --ink-2:        #4B423A;
  --ink-3:        #8A7E72;
  --ink-4:        #B6ABA0;

  /* Accents */
  --celadon:      #2E6B54;   /* verified / trust */
  --celadon-2:    #47876C;
  --celadon-wash: #E2ECE6;
  --clay:         #A94E2B;   /* price / caution */
  --clay-wash:    #F6E7E0;
  --gold:         #9C7C33;

  /* Lines & light */
  --hair:         color-mix(in oklab, var(--ink) 9%, transparent);
  --hair-2:       color-mix(in oklab, var(--ink) 14%, transparent);
  --shadow-sm:    0 1px 2px rgba(60,45,35,.05);
  --shadow:       0 1px 2px rgba(60,45,35,.04), 0 10px 30px -14px rgba(60,45,35,.18);
  --shadow-lg:    0 2px 4px rgba(60,45,35,.04), 0 30px 70px -30px rgba(60,45,35,.28);
  --inset-hi:     inset 0 1px 0 rgba(255,255,255,.75);

  /* Motion */
  --ease-out:     cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer:  cubic-bezier(0.32, 0.72, 0, 1);
  --ease-io:      cubic-bezier(0.77, 0, 0.175, 1);

  /* Rhythm */
  --r-lg:         2rem;
  --r-md:         1.25rem;
  --r-sm:         .75rem;
  --gut:          clamp(1.25rem, 4vw, 2.5rem);
  --maxw:         1280px;
}

:root[data-theme="dark"],
:root:not([data-theme="light"]) {
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film grain , fixed layer only, never on scrolling content */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ambient warm light behind the fold */
body::before {
  content: "";
  position: fixed;
  top: -30vh; left: 50%;
  width: 120vw; height: 90vh;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(48% 52% at 22% 38%, rgba(46,107,84,.10), transparent 68%),
    radial-gradient(42% 50% at 82% 20%, rgba(169,78,43,.09), transparent 70%);
  filter: blur(20px);
}

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 8.2vw, 6.6rem); }
h2 { font-size: clamp(2.25rem, 5vw, 3.9rem); }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.85rem); line-height: 1.06; }
.italic { font-style: italic; }
p { margin: 0; text-wrap: pretty; }

.mono {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-feature-settings: "zero" 1;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .3rem .7rem .32rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 4%, transparent);
  border: 1px solid var(--hair);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow .dot {
  width: 5px; height: 5px; border-radius: 999px;
  background: var(--celadon);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--celadon) 18%, transparent);
}
.lede { font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: var(--ink-2); max-width: 56ch; }
.tiny { font-size: 12.5px; color: var(--ink-3); letter-spacing: -0.005em; }
.label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
section { padding-block: clamp(5rem, 11vw, 9.5rem); position: relative; }
.rule { height: 1px; background: var(--hair); border: 0; margin: 0; }

.sec-head { display: grid; gap: 1.1rem; max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Nav: floating glass island ---------- */
.nav-shell {
  position: fixed; inset-inline: 0; top: 0;
  z-index: 50;
  display: flex; justify-content: center;
  padding: 1.1rem var(--gut);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: .35rem;
  padding: .4rem .4rem .4rem 1.1rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--paper) 74%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow), var(--inset-hi);
  transition: transform .5s var(--ease-drawer), box-shadow .5s var(--ease-drawer);
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: "Instrument Serif", serif;
  font-size: 1.06rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
  padding-right: .85rem; margin-right: .25rem;
  border-right: 1px solid var(--hair);
}
.brand .mark {
  width: 20px; height: 20px; flex: none;
  border-radius: 6px;
  background: linear-gradient(150deg, var(--celadon), #7FA895 88%);
  box-shadow: var(--inset-hi), 0 2px 6px -2px rgba(46,107,84,.55);
  position: relative;
}
.brand .mark::after {
  content: ""; position: absolute; inset: 5.5px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.92);
  border-bottom-color: transparent;
  transform: rotate(-38deg);
}
.nav a.link {
  padding: .48rem .78rem; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease;
}
.nav a.link:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, transparent); }
.nav-cta { margin-left: .3rem; }
.nav-only-desktop { display: flex; align-items: center; gap: .1rem; }
@media (max-width: 880px) { .nav-only-desktop { display: none; } }

/* ---------- Buttons: island + button-in-button ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .55rem .55rem .55rem 1.15rem;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: inherit; font-size: 14px; font-weight: 500;
  letter-spacing: -.012em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(22,18,15,.16), 0 8px 22px -12px rgba(22,18,15,.5);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), background-color .22s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(22,18,15,.18), 0 16px 34px -14px rgba(22,18,15,.55); }
.btn:active { transform: scale(.977); }
.btn .cap {
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center;
  border-radius: 999px;
  background: color-mix(in oklab, var(--fg) 14%, transparent);
  transition: transform .28s var(--ease-out), background-color .28s var(--ease-out);
}
.btn:hover .cap { transform: translate(2px, -1px) scale(1.06); background: color-mix(in oklab, var(--fg) 22%, transparent); }
.btn .cap svg { width: 13px; height: 13px; }

.btn.ghost {
  --bg: transparent; --fg: var(--ink);
  border: 1px solid var(--hair-2);
  box-shadow: var(--shadow-sm);
  background: color-mix(in oklab, var(--card) 60%, transparent);
}
.btn.ghost:hover { background: var(--card); box-shadow: var(--shadow); }
.btn.ghost .cap { background: color-mix(in oklab, var(--ink) 7%, transparent); }
.btn.jade { --bg: var(--celadon); --fg: #F4FAF7; box-shadow: 0 1px 2px rgba(46,107,84,.2), 0 10px 26px -12px rgba(46,107,84,.7); }
.btn.sm { font-size: 13px; padding: .4rem .4rem .4rem .95rem; }
.btn.sm .cap { width: 24px; height: 24px; }

:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--celadon);
  outline-offset: 3px;
  border-radius: 999px;
}

/* ---------- Double-bezel shell ---------- */
.shell {
  padding: 6px;
  border-radius: var(--r-lg);
  background: color-mix(in oklab, var(--ink) 3.5%, transparent);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow);
}
.core {
  border-radius: calc(var(--r-lg) - 6px);
  background: var(--card);
  border: 1px solid var(--hair);
  box-shadow: var(--inset-hi);
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(8rem, 16vh, 11rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 .thin { color: var(--ink-3); }
.hero-copy { display: grid; gap: 1.6rem; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* Grid, not flex wrap. With wrapping, the third stat dropped to a second row
   and kept the divider and left padding it only earned as a middle column,
   so it hung off nothing. Columns own the dividers now. */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  margin-top: .5rem;
  border-top: 1px solid var(--hair);
  padding-top: 1.1rem;
  width: 100%;
}
.stat { padding-right: clamp(.8rem, 2vw, 1.5rem); min-width: 0; }
.stat + .stat {
  padding-left: clamp(.8rem, 2vw, 1.5rem);
  border-left: 1px solid var(--hair);
}
.stat .tiny { display: block; text-wrap: pretty; }

/* Below the 3 column break, stack and move the rule to the top edge so the
   divider still separates, rather than pointing sideways at nothing. */
@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat { padding-right: 0; }
  .stat + .stat {
    padding-left: 0; border-left: 0;
    border-top: 1px solid var(--hair);
    margin-top: .9rem; padding-top: .9rem;
  }
}
.stat b {
  display: block;
  font-family: "Instrument Serif", serif;
  font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -.03em; line-height: 1;
}

/* ---------- Translation console (hero right) ---------- */
.console .core { padding: 0; }
.console-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .95rem;
  border-bottom: 1px solid var(--hair);
  background: color-mix(in oklab, var(--paper-2) 62%, transparent);
}
.console-dots { display: flex; gap: 5px; }
.console-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--hair-2); }
.live {
  display: inline-flex; align-items: center; gap: .42rem;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--celadon);
}
.live i {
  width: 6px; height: 6px; border-radius: 999px; background: var(--celadon);
  animation: pulse 2.2s var(--ease-io) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.82); } }

.console-body { padding: 1.15rem 1.15rem 1.05rem; display: grid; gap: .85rem; min-height: 268px; }
.src-line {
  font-size: 14.5px; line-height: 1.5;
  color: var(--ink-2);
  padding: .75rem .85rem;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  border: 1px solid var(--hair);
}
.src-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .5rem; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  background: color-mix(in oklab, var(--ink) 5%, transparent);
  border: 1px solid var(--hair);
  color: var(--ink-2);
}
.chip.jade { background: var(--celadon-wash); border-color: color-mix(in oklab, var(--celadon) 22%, transparent); color: var(--celadon); }
.chip.clay { background: var(--clay-wash); border-color: color-mix(in oklab, var(--clay) 22%, transparent); color: var(--clay); }

.arrow-step {
  display: flex; align-items: center; gap: .55rem;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-4);
}
.arrow-step .bar { flex: 1; height: 1px; background: var(--hair); }

.out-line {
  font-size: 15px; line-height: 1.5; color: var(--ink);
  padding: .8rem .9rem;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, #fff, var(--card));
  border: 1px solid color-mix(in oklab, var(--celadon) 20%, transparent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--celadon) 6%, transparent);
  min-height: 3.2em;
}
.caret {
  display: inline-block; width: 2px; height: 1em;
  vertical-align: -2px; margin-left: 1px;
  background: var(--celadon);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.console-foot {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: .8rem .95rem;
  border-top: 1px solid var(--hair);
  background: color-mix(in oklab, var(--paper-2) 45%, transparent);
}

/* ---------- Marquee of sources ---------- */
.marquee { overflow: hidden; padding-block: 1.6rem; border-block: 1px solid var(--hair); background: color-mix(in oklab, var(--paper-2) 40%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee span { font-size: 13px; color: var(--ink-3); white-space: nowrap; display: inline-flex; gap: .55rem; align-items: center; }
.marquee span::before { content: ""; width: 4px; height: 4px; border-radius: 999px; background: var(--ink-4); }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.bento > * { grid-column: span 12; }
@media (min-width: 900px) {
  .b-7 { grid-column: span 7; }
  .b-5 { grid-column: span 5; }
  .b-4 { grid-column: span 4; }
  .b-8 { grid-column: span 8; }
  .b-6 { grid-column: span 6; }
  .b-12 { grid-column: span 12; }
}
.pad { padding: clamp(1.4rem, 2.4vw, 2.1rem); }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }

/* ---------- Clinic ledger ---------- */
.ledger-head, .ledger-row {
  display: grid;
  grid-template-columns: minmax(0,2.5fr) minmax(0,1.5fr) 92px 108px 96px;
  gap: 1rem; align-items: center;
  padding: .95rem clamp(1rem, 2vw, 1.5rem);
}
.ledger-head { border-bottom: 1px solid var(--hair); background: color-mix(in oklab, var(--paper-2) 55%, transparent); }
.ledger-row { border-top: 1px solid var(--hair); transition: background-color .22s var(--ease-out); cursor: default; }
.ledger-row:hover { background: color-mix(in oklab, var(--celadon) 4%, transparent); }
.ledger-row:first-of-type { border-top: 0; }
.clinic { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.avatar {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  display: grid; place-items: center;
  font-family: "Instrument Serif", serif; font-size: 15px;
  color: #fff;
  box-shadow: var(--inset-hi), var(--shadow-sm);
}
.clinic-name { font-weight: 500; font-size: 14.5px; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clinic-ko { font-size: 11.5px; color: var(--ink-3); }
.num { font-family: "JetBrains Mono", monospace; font-size: 13px; font-variant-numeric: tabular-nums; }

.score { display: flex; align-items: center; gap: .5rem; }
.score-bar { flex: 1; height: 4px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 8%, transparent); overflow: hidden; min-width: 34px; }
.score-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--celadon-2), var(--celadon)); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-drawer); }
.in .score-bar i { transform: scaleX(var(--v, 0)); }

@media (max-width: 820px) {
  .ledger-head { display: none; }
  .ledger-row { grid-template-columns: 1fr auto; gap: .55rem 1rem; padding: 1rem; }
  .ledger-row .clinic { grid-column: 1 / -1; }
  .ledger-row .cell-lab { display: block; }
}
.cell-lab { display: none; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 2px; }

/* ---------- Verification / moat ---------- */
.moat-list { display: grid; gap: 0; }
.moat-item {
  display: grid; grid-template-columns: 34px 1fr; gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--hair);
}
.moat-item:first-child { border-top: 0; padding-top: 0; }
.moat-ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--celadon-wash);
  border: 1px solid color-mix(in oklab, var(--celadon) 18%, transparent);
  color: var(--celadon);
}
.moat-ico svg { width: 16px; height: 16px; }

/* ---------- Price index ---------- */
.price-row { display: grid; gap: .45rem; padding-block: .95rem; border-top: 1px solid var(--hair); }
.price-row:first-of-type { border-top: 0; }
.price-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.price-name { font-size: 14.5px; font-weight: 500; }
.price-save { font-size: 12px; color: var(--celadon); font-weight: 600; }
.gauge { display: grid; gap: 5px; }
.gauge-line { display: grid; grid-template-columns: 46px 1fr auto; gap: .6rem; align-items: center; }
.gauge-bar { height: 8px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 6%, transparent); overflow: hidden; }
.gauge-bar i { display: block; height: 100%; border-radius: 999px; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease-drawer); }
.in .gauge-bar i { transform: scaleX(var(--v, 0)); }
.gauge-line.seoul .gauge-bar i { background: linear-gradient(90deg, var(--celadon-2), var(--celadon)); }
.gauge-line.west .gauge-bar i { background: linear-gradient(90deg, #C98A6C, var(--clay)); }
.gauge-line .num { color: var(--ink-2); }

/* ---------- Procedure chips ---------- */
.proc-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.proc {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .55rem .5rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  background: var(--card);
  font-size: 13.5px; color: var(--ink-2);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease-out), border-color .22s var(--ease-out), color .22s var(--ease-out), box-shadow .22s var(--ease-out);
}
.proc:hover { transform: translateY(-2px); color: var(--ink); border-color: color-mix(in oklab, var(--celadon) 36%, transparent); box-shadow: var(--shadow); }
.proc .n {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  padding: .18rem .42rem; border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 5%, transparent);
  color: var(--ink-3);
}
.proc:hover .n { background: var(--celadon-wash); color: var(--celadon); }

/* ---------- Review cards ---------- */
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.rev { display: grid; gap: .85rem; }
.rev-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.rev-body { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.rev-ko {
  font-size: 12.5px; color: var(--ink-4); line-height: 1.5;
  padding-left: .8rem; border-left: 2px solid var(--hair-2);
}
.rev-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .85rem; border-top: 1px solid var(--hair); }

/* ---------- Pipeline steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.step { position: relative; display: grid; gap: .6rem; align-content: start; }
.step-n {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: var(--celadon); letter-spacing: .1em;
}
.step h3 { font-size: 1.28rem; }
.step .tool {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: var(--ink-3);
  padding: .28rem .5rem; border-radius: 6px;
  background: color-mix(in oklab, var(--ink) 4%, transparent);
  border: 1px solid var(--hair);
  justify-self: start;
}

/* ---------- CTA band ---------- */
.band .core {
  padding: clamp(2.2rem, 6vw, 4.5rem);
  background:
    radial-gradient(70% 120% at 12% 0%, rgba(46,107,84,.16), transparent 62%),
    radial-gradient(60% 110% at 92% 100%, rgba(169,78,43,.13), transparent 60%),
    #1A1512;
  color: #F6F1E9;
  border-color: rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.band .core h2 { color: #FBF7F0; }
.band .core p { color: rgba(246,241,233,.66); }
.band .core .btn { --bg: #F6F1E9; --fg: #17120F; }
.band .core .btn.ghost { --bg: transparent; --fg: #F6F1E9; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.05); }
.band .core .btn.ghost .cap { background: rgba(255,255,255,.13); }

/* ---------- Footer ---------- */
footer { padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; border-top: 1px solid var(--hair); }
.foot-grid { display: grid; grid-template-columns: minmax(0,1.6fr) repeat(3, minmax(0,1fr)); gap: 2rem; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col { display: grid; gap: .55rem; align-content: start; }
.foot-col a { font-size: 13.5px; color: var(--ink-3); text-decoration: none; transition: color .18s ease; }
.foot-col a:hover { color: var(--ink); }
.disclaimer {
  margin-top: 2.5rem; padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: color-mix(in oklab, var(--ink) 3%, transparent);
  border: 1px solid var(--hair);
  font-size: 12.5px; line-height: 1.6; color: var(--ink-3);
  max-width: 92ch;
}
.foot-base { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); filter: blur(6px); }
.reveal.in {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-drawer), filter .8s var(--ease-out);
}
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .score-bar i, .gauge-bar i { transform: scaleX(var(--v, 0)) !important; transition: none; }
  .live i, .caret { animation: none; }
}

/* ---------- Pipeline page ---------- */
.trace { display: grid; gap: 0; }
.trace-row {
  display: grid; grid-template-columns: 26px 1fr; gap: 1rem;
  padding: 1.1rem 0; border-top: 1px solid var(--hair);
}
.trace-row:first-child { border-top: 0; }
.trace-dot {
  width: 26px; height: 26px; border-radius: 999px; margin-top: 2px;
  display: grid; place-items: center;
  font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 600;
  background: var(--celadon-wash); color: var(--celadon);
  border: 1px solid color-mix(in oklab, var(--celadon) 22%, transparent);
}
.code {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.2px; line-height: 1.72;
  padding: 1.05rem 1.15rem;
  border-radius: var(--r-md);
  background: #161311;
  color: #D7CFC4;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}
.code .k { color: #86B79E; }
.code .c { color: #7C736A; }
.code .s { color: #D6A87A; }
.code .w { color: #E08A64; }
.table-scroll { overflow-x: auto; }
