/* ==========================================================================
   Trusted Peptides — GLP-1 & GLP-2 research-materials ads landing page.

   Design system is inherited from the marketing site's approved brand
   (tp-marketing/.../assets/css/brand.css): ink / sage / gold / cream,
   Playfair Display + Inter. Do not re-tune these tokens in isolation — if the
   brand changes, change it there first, then mirror it here.

   Added here, not in the brand: IBM Plex Mono as a data face for lot IDs and
   analytical values, so instrument-style readouts read as instrument output.

   Deliberately single-theme. The brand commits to a warm cream ground; every
   colour and the body background are painted explicitly from tokens, so the
   page holds regardless of the viewer's OS theme.
   ========================================================================== */

/* ── self-hosted faces ─────────────────────────────────────────────────────
   No third-party font request: all five files live in ./fonts. Playfair and
   Inter are the same latin-subset variable woff2 files the marketing theme
   serves (assets/fonts/) — copied, not re-cut, so the two sites render
   identically. IBM Plex Mono is the latin subset at the two weights this page
   uses. Keep the fonts/ directory next to style.css when deploying.
   ------------------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/playfair-display-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/playfair-display-italic-latin.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-latin.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-latin.woff2) format("woff2");
}

:root {
  /* ground + ink */
  --cream:        #faf9f7;
  --white:        #ffffff;
  --surface:      #f2efe9;
  --border:       #e6e2db;
  --border-firm:  #d7d2c9;
  --ink:          #1a1917;
  --ink-soft:     #5f5d5a;
  --ink-mute:     #9e9b97;

  /* action + accent */
  --sage:         #2b5c43;
  --sage-deep:    #173024;
  --sage-ink:     #0c1612;
  --sage-lift:    #4f9b76;
  --gold:         #c9971c;
  --gold-bright:  #e8b33c;
  --bronze:       #8f6a11;

  /* on dark */
  --on-dark:      #f4f6f3;
  --on-dark-soft: #9fb1a6;
  --hair-dark:    rgba(255, 255, 255, .1);

  --ring:         rgba(201, 151, 28, .45);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-eyebrow: .78rem;
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.0625rem, .95rem + .55vw, 1.25rem);
  --fs-h3:      1.5rem;
  --fs-h2:      clamp(2rem, 4.4vw, 3.25rem);
  --fs-hero:    clamp(2.5rem, 5.6vw, 4.4rem);

  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-5: 48px; --sp-6: 64px; --sp-7: 96px;
  --section-y: clamp(72px, 9vw, 124px);
  --gutter:    clamp(20px, 5vw, 64px);
  --maxw:      1200px;

  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(26, 25, 23, .04), 0 4px 16px rgba(26, 25, 23, .05);
  --sh-2: 0 2px 6px rgba(26, 25, 23, .06), 0 18px 44px rgba(26, 25, 23, .10);
  --sh-3: 0 4px 10px rgba(26, 25, 23, .07), 0 30px 70px -18px rgba(26, 25, 23, .22);
  --sh-gold: 0 18px 50px -14px rgba(201, 151, 28, .45);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── base ─────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold-bright); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.pad { padding-block: var(--section-y); }
section { position: relative; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── shared type devices ──────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; flex: none;
  background: var(--gold); opacity: .6;
}
.eyebrow .num { font-family: var(--font-data); font-weight: 500; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-soft);
}

.sec-head { max-width: 44rem; }
.sec-head h2 { font-size: var(--fs-h2); margin: var(--sp-2) 0; }
.sec-head .lead { max-width: 38rem; }

.sec-head--split {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap;
}
.sec-head--split > div { max-width: 42rem; }

/* small ruled caption used above lists, mirroring a record header */
.rule-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-data);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute);
}
.rule-label::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* ── buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.btn--sage { background: var(--sage); color: var(--white); box-shadow: 0 10px 30px -10px rgba(43, 92, 67, .55); }
.btn--sage:hover { transform: translateY(-2px); box-shadow: var(--sh-gold); }

.btn--ink { background: var(--ink); color: var(--gold-bright); box-shadow: var(--sh-1); }
.btn--ink:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-firm); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn--ondark {
  background: rgba(255, 255, 255, .07); color: var(--on-dark);
  border-color: rgba(255, 255, 255, .2);
}
.btn--ondark:hover {
  background: var(--gold); color: var(--ink); border-color: var(--gold);
  transform: translateY(-2px); box-shadow: var(--sh-gold);
}

.btn--sm { padding: 11px 20px; font-size: .95rem; }

/* ── header ───────────────────────────────────────────────────────────────── */

.use-bar {
  background: var(--ink); color: var(--on-dark-soft);
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.use-bar .wrap {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 34px; padding-block: 6px; text-align: center;
}
.use-bar svg { width: 13px; height: 13px; color: var(--gold-bright); flex: none; }
.use-bar p { text-wrap: balance; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 249, 247, .84);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--border);
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); height: 76px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand__logo { height: 48px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.brand__sub {
  margin-top: 5px; font-size: .6rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft);
}

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  display: block; padding: 9px 15px; border-radius: var(--r-pill);
  font-size: .95rem; font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__links a:hover { background: var(--surface); color: var(--sage); }

.hamburger {
  display: none; width: 46px; height: 46px; padding: 0;
  align-items: center; justify-content: center;
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--r-pill);
  cursor: pointer;
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), background .2s var(--ease);
}
.hamburger span { position: relative; }
.hamburger span::before, .hamburger span::after { content: ""; position: absolute; left: 0; }
.hamburger span::before { top: -6px; }
.hamburger span::after  { top: 6px; }
body.menu-open .hamburger span { background: transparent; }
body.menu-open .hamburger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .hamburger span::after  { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--chrome-h, 110px) 0 0 0; z-index: 55;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 0;
  padding: var(--sp-4) var(--gutter);
  background: rgba(250, 249, 247, .97);
  backdrop-filter: blur(16px);
  opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 1.7rem;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: var(--sp-3); }

/* ── hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(48px, 6vw, 84px) 0 var(--section-y);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__hex {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5;
  -webkit-mask-image: radial-gradient(115% 90% at 68% 4%, #000 0%, transparent 62%);
          mask-image: radial-gradient(115% 90% at 68% 4%, #000 0%, transparent 62%);
}
.bloom { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.bloom--sage {
  width: 580px; height: 580px; top: -240px; left: -140px; opacity: .5;
  background: radial-gradient(circle at 32% 32%, var(--sage-lift), transparent 70%);
  animation: drift-a 24s var(--ease) infinite alternate;
}
.bloom--gold {
  width: 520px; height: 520px; top: -140px; right: -180px; opacity: .34;
  background: radial-gradient(circle at 58% 42%, var(--gold-bright), transparent 70%);
  animation: drift-b 28s var(--ease) infinite alternate;
}
@keyframes drift-a { to { transform: translate(110px, 80px) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-80px, 110px) scale(1.08); } }

.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.hero h1 { font-size: var(--fs-hero); margin: var(--sp-3) 0; }
.hero h1 .nb { white-space: nowrap; }
/* the gold half takes its own line, so the break lands between the compound
   names and the noun rather than inside the phrase */
.hero h1 em { display: block; }
.hero h1 em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(102deg, var(--bronze) 0%, var(--gold) 54%, var(--gold-bright) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__sub { max-width: 40rem; }
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-top: var(--sp-4);
}
.hero__note {
  display: inline-flex; align-items: flex-start; gap: 8px;
  margin-top: var(--sp-3); font-size: .84rem; color: var(--ink-soft);
}
.hero__note svg { width: 15px; height: 15px; margin-top: 4px; color: var(--sage); flex: none; }

/* the lot record — the page's central object: an example COA in the format the
   lab actually issues it, so the hero shows evidence rather than a stock image */
.record {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.record__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.record__kind {
  font-family: var(--font-data); font-size: .68rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--bronze);
}
.record__title { font-family: var(--font-display); font-size: 1.28rem; margin-top: 6px; }
.record__seal {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(201, 151, 28, .4);
  background: rgba(201, 151, 28, .1);
  color: var(--bronze);
}
.record__seal svg { width: 22px; height: 22px; }

.record__rows { padding: var(--sp-1) var(--sp-3); }
.record__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.record__row:last-child { border-bottom: none; }
.record__row dt {
  font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute); flex: none;
}
.record__row dd {
  margin: 0; text-align: right;
  font-family: var(--font-data); font-size: .92rem; font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.record__row--key dd {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1;
  letter-spacing: -.02em; color: var(--sage);
}
.record__pass {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px 3px 8px; border-radius: var(--r-pill);
  background: rgba(43, 92, 67, .1); color: var(--sage);
  font-family: var(--font-body); font-size: .76rem; font-weight: 600; letter-spacing: .04em;
}
.record__pass svg { width: 13px; height: 13px; }
.record__foot {
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
  border-top: 1px solid var(--border);
  font-size: .78rem; line-height: 1.55; color: var(--ink-mute);
}

/* ── stats ────────────────────────────────────────────────────────────────── */

.stats-band { border-block: 1px solid var(--border); background: var(--surface); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: var(--sp-4) var(--sp-3);
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: none; }
.stat__num {
  display: flex; align-items: baseline; gap: 1px;
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(2.1rem, 3.4vw, 2.9rem); letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
/* the "≥" belongs to the figure, so it takes the display face and scales with
   it — as a small body-face glyph it read as a stray superscript */
.stat__pre { font-family: var(--font-display); font-size: .72em; font-weight: 700; color: var(--sage); margin-right: 2px; }
.stat__suf { font-family: var(--font-body); font-size: .9rem; font-weight: 700; color: var(--sage); }
.stat__label { margin-top: 12px; font-size: .86rem; line-height: 1.4; color: var(--ink-soft); }

/* ── card grid (01 · why) ─────────────────────────────────────────────────── */

.card-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-3);
  margin-top: var(--sp-5);
}
@media (min-width: 621px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1081px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px 200px at 100% 0%, rgba(201, 151, 28, .1), transparent 62%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: var(--border-firm); }
.card:hover::after { opacity: 1; }
.card__ic {
  width: 54px; height: 54px; margin-bottom: var(--sp-3);
  display: grid; place-items: center;
  background: var(--surface); color: var(--sage); border-radius: var(--r-md);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.card__ic svg { width: 26px; height: 26px; }
.card:hover .card__ic { background: var(--sage); color: var(--white); }
.card h3 { font-size: 1.32rem; position: relative; }
.card p { margin-top: 10px; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); position: relative; }

/* ── characterization (02) ───────────────────────────────────────────────── */

.charz { background: var(--white); border-block: 1px solid var(--border); }
.charz__grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px); align-items: start;
  margin-top: var(--sp-5);
}

/* chromatogram: the analytical trace the ≥98% figure actually comes from */
.trace {
  position: sticky; top: 108px;
  margin: 0; padding: var(--sp-3);
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--r-lg);
}
.trace svg { width: 100%; height: auto; }
.trace__path {
  fill: none; stroke: var(--sage); stroke-width: 2; stroke-linejoin: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
}
.trace.in .trace__path { animation: draw 2.4s var(--ease) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.trace__fill { fill: rgba(43, 92, 67, .1); stroke: none; opacity: 0; transition: opacity .8s var(--ease) 1.5s; }
.trace.in .trace__fill { opacity: 1; }
.trace__grid line { stroke: var(--border); stroke-width: 1; }
.trace__axis { fill: var(--ink-mute); font-family: var(--font-data); font-size: 9px; letter-spacing: .06em; }
.trace__cap {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2);
  margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--border);
  font-family: var(--font-data); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mute);
}
.trace__cap b { color: var(--sage); font-weight: 500; }

/* numbered process rail — a genuine sequence, so the numbers carry information */
.rail { counter-reset: step; margin-top: var(--sp-3); }
.rail li {
  position: relative;
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--border);
}
.rail li:last-child { border-bottom: 1px solid var(--border); }
.rail li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  grid-column: 1;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  font-family: var(--font-data); font-size: .84rem; font-weight: 500;
  color: var(--bronze);
  background: var(--surface); border: 1px solid var(--border); border-radius: 50%;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.rail li:hover::before { background: var(--gold); border-color: var(--gold); color: var(--ink); }
/* connector between the step markers */
.rail li:not(:last-child)::after {
  content: ""; position: absolute; left: 23px; top: calc(var(--sp-3) + 46px);
  width: 1px; bottom: 0; background: var(--border);
}
.rail h3 { font-size: 1.24rem; }
.rail p { margin-top: 6px; font-size: .95rem; color: var(--ink-soft); }
.charz__actions { margin-top: var(--sp-4); }

/* ── spec rows (03 · scientific use) ─────────────────────────────────────── */

.use { background: var(--surface); border-bottom: 1px solid var(--border); }
.use__grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 5vw, 80px); align-items: start;
}
.use__aside { position: sticky; top: 108px; }
.use__aside h2 { font-size: var(--fs-h2); margin: var(--sp-2) 0; }
.use__aside .btn { margin-top: var(--sp-4); }

.spec { border-top: 1px solid var(--border-firm); }
.spec > div {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-firm);
  transition: background .25s var(--ease);
}
.spec > div:hover { background: rgba(255, 255, 255, .6); }
.spec dt {
  font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--sage); line-height: 1.5;
}
.spec dd { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ── support (04) ────────────────────────────────────────────────────────── */

/* Mobile-first, and deliberately so: the wide layout needs :nth-child() span
   rules, and a max-width override of those has to match their specificity or it
   silently loses. Declaring the spans only inside the width that wants them
   removes the collision instead of fighting it. */
.support__grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  margin-top: var(--sp-5);
  background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden;
}
/* two-up, with the odd fifth item running the full width */
@media (min-width: 621px) and (max-width: 1080px) {
  .support__grid { grid-template-columns: repeat(2, 1fr); }
  .support__grid > :last-child { grid-column: span 2; }
}
/* six-column track so five items land as 3 + 2 with no orphan cell */
@media (min-width: 1081px) {
  .support__grid { grid-template-columns: repeat(6, 1fr); }
  .support__grid > :nth-child(-n+3) { grid-column: span 2; }
  .support__grid > :nth-child(n+4)  { grid-column: span 3; }
}
.support__item {
  padding: var(--sp-4) var(--sp-3);
  background: var(--white);
  transition: background .3s var(--ease);
}
.support__item:hover { background: var(--surface); }
.support__item .n {
  font-family: var(--font-data); font-size: .7rem; letter-spacing: .14em;
  color: var(--gold); display: block; margin-bottom: var(--sp-2);
}
.support__item h3 { font-size: 1.16rem; }
.support__item p { margin-top: 8px; font-size: .92rem; line-height: 1.55; color: var(--ink-soft); }
.support__actions { margin-top: var(--sp-5); }

/* ── quality ledger (05) — dark rhythm break ─────────────────────────────── */

.quality {
  position: relative; overflow: hidden;
  background: var(--sage-ink); color: var(--on-dark);
}
.quality__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.quality__glow span {
  position: absolute; border-radius: 50%; filter: blur(80px);
}
.quality__glow span:first-child {
  width: 540px; height: 540px; top: -190px; right: -130px; opacity: .45;
  background: radial-gradient(circle, rgba(201, 151, 28, .5), transparent 70%);
  animation: drift-b 26s var(--ease) infinite alternate;
}
.quality__glow span:last-child {
  width: 470px; height: 470px; bottom: -210px; left: -120px; opacity: .4;
  background: radial-gradient(circle, rgba(79, 155, 118, .55), transparent 70%);
  animation: drift-a 30s var(--ease) infinite alternate;
}
.quality .wrap { position: relative; z-index: 2; }
.quality .eyebrow { color: var(--gold-bright); }
.quality .eyebrow::before { background: var(--gold-bright); }
.quality h2 { color: var(--white); }
.quality .lead { color: var(--on-dark-soft); }
.quality .rule-label { color: var(--on-dark-soft); }
.quality .rule-label::after { background: var(--hair-dark); }

.ledger { margin-top: var(--sp-4); }
.ledger li {
  display: grid; grid-template-columns: 34px minmax(0, 20rem) minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: baseline;
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--hair-dark);
}
.ledger li:last-child { border-bottom: 1px solid var(--hair-dark); }
.ledger .dot {
  width: 30px; height: 30px; align-self: center;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(201, 151, 28, .16); color: var(--gold-bright);
}
.ledger .dot svg { width: 15px; height: 15px; }
.ledger h3 {
  font-family: var(--font-body); font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--white);
  line-height: 1.5;
}
.ledger p { color: var(--on-dark-soft); font-size: .98rem; }

/* ── education (06) ──────────────────────────────────────────────────────── */

.edu { background: var(--white); border-block: 1px solid var(--border); }
.edu__grid {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-3);
  margin-top: var(--sp-5);
}
@media (min-width: 621px) and (max-width: 1080px) {
  .edu__grid { grid-template-columns: repeat(2, 1fr); }
  .edu__grid > :last-child { grid-column: span 2; }
}
/* five topics as 2 + 3: the two broadest subjects lead, then the three
   technique-level ones. Six-column track keeps both rows flush. */
@media (min-width: 1081px) {
  .edu__grid { grid-template-columns: repeat(6, 1fr); }
  .edu__grid > :nth-child(-n+2) { grid-column: span 3; }
  .edu__grid > :nth-child(n+3)  { grid-column: span 2; }
}
.edu__actions { margin-top: var(--sp-5); }

.topic {
  display: flex; flex-direction: column; gap: 10px;
  padding: var(--sp-3);
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm) var(--r-lg) var(--r-lg) var(--r-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-left-color .3s var(--ease);
}
.topic:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-left-color: var(--sage); }
.topic h3 {
  font-family: var(--font-body); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--bronze);
}
.topic p { color: var(--ink-soft); font-size: .98rem; line-height: 1.55; }
@media (min-width: 1081px) {
  .edu__grid > :nth-child(1) .topic-lead,
  .edu__grid > :nth-child(2) .topic-lead { font-size: 1.06rem; }
}

/* ── contact (07) ────────────────────────────────────────────────────────── */

.contact { background: var(--surface); }
.contact__grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 84px); align-items: start;
}
.contact__aside h2 { margin: var(--sp-2) 0; font-size: var(--fs-h2); }

.channels { margin-top: var(--sp-4); }
.channels > div {
  display: flex; gap: var(--sp-2);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--border-firm);
}
.channels > div:last-child { border-bottom: 1px solid var(--border-firm); }
.channels__ic {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--white); color: var(--bronze);
  border: 1px solid var(--border); border-radius: var(--r-md);
}
.channels__ic svg { width: 21px; height: 21px; }
.channels h3 { font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.channels p, .channels a { margin-top: 5px; font-size: 1rem; color: var(--ink-soft); }
.channels a { color: var(--sage); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(43,92,67,.3); text-underline-offset: 3px; }
.channels a:hover { text-decoration-color: var(--sage); }

.notice {
  margin-top: var(--sp-4); padding: 1.1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  font-size: .9rem; line-height: 1.6; color: var(--ink-soft);
}

/* form card */
.form-card {
  padding: clamp(26px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.form-card h3 { font-size: var(--fs-h3); }
.form-card > p { margin-top: 8px; font-size: .95rem; color: var(--ink-soft); }

.form { margin-top: var(--sp-3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-3); }
.form label {
  display: block; margin: var(--sp-3) 0 6px;
  font-size: .88rem; font-weight: 600; color: var(--ink);
}
.form .req { color: var(--bronze); font-weight: 700; }
.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%; padding: 12px 14px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border-firm); border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f5d5a' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 17px;
  padding-right: 40px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--ring);
}
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: #b3261e; }

.form__check {
  display: flex; gap: 11px; align-items: flex-start;
  margin: var(--sp-3) 0 0;
  font-size: .88rem; font-weight: 400; line-height: 1.5; color: var(--ink-soft);
}
.form__check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--sage); }

.form button[type="submit"] { width: 100%; margin-top: var(--sp-4); }
.form__fine { margin-top: var(--sp-2); font-size: .8rem; line-height: 1.55; color: var(--ink-mute); }

/* honeypot — off-screen for people, present for bots */
.form .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-msg {
  display: flex; gap: 13px; align-items: flex-start;
  padding: var(--sp-3);
  border-radius: var(--r-md); font-size: .95rem; line-height: 1.55;
}
.form-msg svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form-msg--ok { background: rgba(43, 92, 67, .09); color: var(--sage-deep); border: 1px solid rgba(43, 92, 67, .22); }
.form-msg--ok svg { color: var(--sage); }
.form-msg--err { background: rgba(179, 38, 30, .07); color: #8a221c; border: 1px solid rgba(179, 38, 30, .22); }
.form-msg--err svg { color: #b3261e; }
.form-msg + .form { margin-top: var(--sp-3); }
[hidden] { display: none !important; }

/* ── footer ──────────────────────────────────────────────────────────────── */

.footer { background: var(--ink); color: var(--on-dark-soft); padding-top: var(--section-y); }
.footer__top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--sp-5) var(--sp-4);
  padding-bottom: var(--sp-6);
}
.footer .brand__name { color: var(--white); }
.footer .brand__sub { color: var(--on-dark-soft); }
.footer__tag {
  margin-top: var(--sp-3); font-family: var(--font-data);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright);
}
.footer__statement { margin-top: var(--sp-2); max-width: 34ch; font-size: .92rem; line-height: 1.6; }
.footer__col h2 {
  margin-bottom: var(--sp-2);
  font-family: var(--font-body); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--white);
}
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { font-size: .94rem; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--gold-bright); }
.footer__legal {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-2) var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-3) 0 var(--sp-5);
  border-top: 1px solid var(--hair-dark);
  font-size: .82rem;
}
.footer__legal .age { display: inline-flex; align-items: center; gap: 9px; }
.footer__legal .age b {
  padding: 2px 9px; font-size: .72rem; color: var(--white);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r-pill);
}

/* ── scroll reveal ───────────────────────────────────────────────────────── */

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
.reveal[data-d="5"] { transition-delay: .35s; }

/* ── responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .record { max-width: 34rem; }
  .charz__grid, .use__grid, .contact__grid { grid-template-columns: 1fr; }
  .trace, .use__aside { position: static; }
  .trace { order: -1; }
  .ledger li { grid-template-columns: 34px minmax(0, 1fr); }
  .ledger p { grid-column: 2; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .hamburger { display: flex; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--border); }
  .stat:nth-child(-n+2) { border-top: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  /* the bar and the eyebrows both wrap at this width; their decorative bits
     (icon, leading rule) strand themselves on a line of their own, so drop
     them and tighten the tracking instead of letting the text break up */
  .use-bar { font-size: .68rem; letter-spacing: .06em; }
  .use-bar svg { display: none; }
  .use-bar .hide-sm { display: none; }
  .eyebrow { display: block; font-size: .72rem; letter-spacing: .12em; }
  .eyebrow::before { display: none; }

  .form__row { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .record__row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .record__row dd { text-align: left; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .trace__path { stroke-dashoffset: 0 !important; }
  .trace__fill { opacity: 1 !important; }
}
