/* Mississippi Polymer Institute — datasheet design system
   Geist + Geist Mono · sharp corners · hairline rules · logo gold (#eac44f) as the signal color */

:root {
  --ink: #0d1014;
  --ink-2: #161a20;
  --ink-3: #232931;
  --paper: #f3f4f6;
  --white: #ffffff;
  --line: #d6d9de;
  --line-dark: rgba(255, 255, 255, .12);
  --text: #0d1014;
  --muted: #555d67;
  --muted-dark: #a7aeb8;
  --gold: #eac44f;
  --gold-soft: #f7e7b0;
  --gold-deep: #7a5c00;

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* type scale: each step >= 1.2x the next */
  --fs-hero: clamp(2.5rem, 1.35rem + 4.6vw, 5.25rem);
  --fs-h1: clamp(2.15rem, 1.5rem + 2.6vw, 3.75rem);
  --fs-h2: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
  --fs-h3: clamp(1.15rem, 1.08rem + .3vw, 1.3rem);
  --fs-lede: clamp(1.08rem, 1rem + .3vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .9rem;
  --fs-mono: .75rem;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 9vw, 128px);
  --hdr-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
h1, h2, h3, .display { text-wrap: balance; }
p, li, blockquote, figcaption { text-wrap: pretty; }
p { margin: 0 0 1em; max-width: 65ch; }
ul { padding-left: 1.1em; }
address { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 14px; font-weight: 500; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- mono labels ---------- */
.mono-label, .eyebrow, .mono-idx {
  font: 500 var(--fs-mono)/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; max-width: none; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--gold); flex: none; }
.dark .mono-label, .dark .eyebrow { color: var(--muted-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; border: 1px solid var(--ink);
  font: 500 .95rem/1 var(--f-sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  background: transparent; color: var(--ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn::after { content: "→"; font-family: var(--f-mono); transition: transform .15s; }
.btn:hover::after { transform: translateX(3px); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #f2d36f; border-color: #f2d36f; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn--ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--sm { padding: 11px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.link-arrow { font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.link-arrow::after { content: "→"; font-family: var(--f-mono); }
.link-arrow:hover { border-color: var(--ink); }
.dark .link-arrow:hover { border-color: #fff; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(243, 244, 246, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.hdr__inner { display: flex; align-items: center; gap: 28px; height: var(--hdr-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; font: 500 .62rem/1.18 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; }
.brand__gold { color: #b8901c; }
.brand--light { color: #fff; }
.brand--light .brand__gold { color: var(--gold); }
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu > a, .menu__group > a { display: block; padding: 10px 12px; font-size: .94rem; font-weight: 450; text-decoration: none; white-space: nowrap; color: var(--ink); position: relative; }
.menu a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); }
.menu > a:hover, .menu__group > a:hover { color: var(--muted); }
.menu__group { position: relative; }
.menu__drop {
  position: absolute; top: 100%; left: 0; min-width: 236px; background: var(--white); border: 1px solid var(--line);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
  box-shadow: 0 18px 40px -20px rgba(13, 16, 20, .35);
}
.menu__group:hover .menu__drop, .menu__group:focus-within .menu__drop { opacity: 1; visibility: visible; transform: none; }
.menu__drop a { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; text-decoration: none; font-size: .94rem; white-space: nowrap; }
.menu__drop a:hover { background: var(--paper); }
.hdr__cta { flex: none; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mnav { border-top: 1px solid var(--line); background: var(--paper); max-height: calc(100vh - var(--hdr-h)); overflow-y: auto; }
.mnav .wrap { display: flex; flex-direction: column; padding-top: 12px; padding-bottom: 24px; }
.mnav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.1rem; }
.mnav .mono-label { margin: 18px 0 4px; }
.mnav .btn { margin-top: 22px; justify-content: center; }
@media (max-width: 1100px) {
  .menu, .hdr__cta { display: none; }
  .burger { display: block; }
}

/* ---------- sections ---------- */
.sec { padding: var(--sec) 0; }
.sec--tight { padding: calc(var(--sec) * .6) 0; }
.sec--white { background: var(--white); }
.sec--line { border-top: 1px solid var(--line); }
.dark { background: var(--ink); color: #fff; }
.dark p { color: #d5dae0; }
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
}
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2 { font-size: var(--fs-h2); max-width: 17ch; }
.sec-head > p, .sec-head .lede { margin: 0; color: var(--muted); font-size: var(--fs-lede); line-height: 1.5; max-width: 52ch; }
.dark .sec-head > p { color: var(--muted-dark); }
.sec-head--stack { grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.idx { font: 500 var(--fs-mono)/1 var(--f-mono); letter-spacing: .08em; color: var(--muted); }
.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.dark .lede { color: #c5cbd3; }

/* ---------- home hero ---------- */
.hero { position: relative; padding: clamp(56px, 7vw, 96px) 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: var(--fs-hero); line-height: .98; letter-spacing: -.045em; max-width: 11.5ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { margin-top: 28px; max-width: 50ch; }
.hero__fig { position: relative; margin: 0; border: 1px solid var(--line-dark); background: var(--ink-2); }
.hero__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__fig figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; font: 400 var(--fs-mono)/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); border-top: 1px solid var(--line-dark); }
.hero__status { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 8px 12px; border: 1px solid var(--line-dark); font: 500 var(--fs-mono)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #d5dae0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #7d8590; flex: none; }
.dot.is-open { background: #4fd18b; box-shadow: 0 0 0 4px rgba(79, 209, 139, .18); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-dark); }
.stat { padding: 28px 24px 32px 0; border-right: 1px solid var(--line-dark); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat__n { display: block; font: 400 clamp(2.2rem, 1.6rem + 2.2vw, 3.6rem)/1 var(--f-mono); letter-spacing: -.04em; color: #fff; }
.stat__l { display: block; margin-top: 12px; font: 500 var(--fs-mono)/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 24px 16px 24px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
}

/* ---------- credentials strip ---------- */
.creds { border-bottom: 1px solid var(--line); background: var(--white); }
.creds ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.creds li { padding: 22px 20px; border-left: 1px solid var(--line); font-size: .92rem; line-height: 1.4; }
.creds li:first-child { border-left: 0; padding-left: 0; }
.creds strong { display: block; font: 500 var(--fs-mono)/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 960px) { .creds ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .creds li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .creds li:nth-child(-n+2) { border-top: 0; } }

/* ---------- service columns ---------- */
.svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.svc__col { padding: 26px 24px 8px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.svc__col + .svc__col { padding-left: 24px; }
.svc__col:last-child { border-right: 0; }
.svc__col img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin: 18px 0 22px; }
.svc__col h3 { font-size: var(--fs-h3); margin-top: 0; }
.svc__col p { color: var(--muted); font-size: .98rem; margin: 10px 0 18px; }
.svc__col ul { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--line); }
.svc__col li a { display: flex; justify-content: space-between; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .95rem; }
.svc__col li a::after { content: "↗"; font-family: var(--f-mono); color: var(--muted); }
.svc__col li a:hover { color: var(--muted); }
@media (max-width: 1024px) {
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc__col:nth-child(2) { border-right: 0; }
  .svc__col:nth-child(3) { padding-left: 0; }
  .svc__col:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
}
@media (max-width: 640px) {
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc__col, .svc__col + .svc__col { padding: 24px 0 8px; border-right: 0; }
  .svc__col + .svc__col { border-top: 1px solid var(--line); margin-top: 24px; }
}

/* ---------- figures (spec sheet) ---------- */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.fig { margin: 0; background: var(--ink); display: flex; flex-direction: column; }
.fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fig__body { padding: 20px 20px 24px; border-top: 1px solid var(--line-dark); flex: 1; }
.fig__body h3 { font-size: var(--fs-h3); color: #fff; }
.fig__specs { list-style: none; margin: 14px 0 0; padding: 0; font: 400 .8rem/1.5 var(--f-mono); color: var(--muted-dark); }
.fig__specs li { padding: 6px 0; border-top: 1px dashed rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; }
.fig__specs li span:last-child { color: #fff; text-align: right; }
.fig__no { font: 500 var(--fs-mono)/1 var(--f-mono); letter-spacing: .08em; color: var(--gold); text-transform: uppercase; display: block; margin-bottom: 10px; }
@media (max-width: 960px) { .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .figs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- catalog teaser ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
@media (max-width: 960px) { .split, .split--wide-left { grid-template-columns: minmax(0, 1fr); } }
.split h2 { font-size: var(--fs-h2); max-width: 16ch; }
.qsearch { display: flex; margin-top: 30px; border: 1px solid var(--ink); background: var(--white); }
.qsearch input { flex: 1; min-width: 0; border: 0; padding: 16px 18px; font: 400 1rem var(--f-sans); background: transparent; color: var(--ink); }
.qsearch input:focus { outline: none; }
.qsearch:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.qsearch button { border: 0; border-left: 1px solid var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); background: var(--white); font: 400 .8rem/1 var(--f-mono); text-decoration: none; color: var(--ink); }
.chips a:hover { border-color: var(--ink); }
.ptable { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--white); border: 1px solid var(--line); }
.ptable th, .ptable td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable thead th { font: 500 var(--fs-mono)/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.ptable tbody th { font-weight: 500; }
.ptable td { font-family: var(--f-mono); font-size: .85rem; }
@media (min-width: 1100px) { .ptable td { white-space: nowrap; } }
.ptable tbody tr:last-child > * { border-bottom: 0; }
.ptable a { text-decoration: none; } .ptable a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.table-note { margin-top: 12px; font-size: var(--fs-small); color: var(--muted); }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.quote { margin: 0; padding: 28px 28px 8px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.quote + .quote { padding-left: 28px; }
.quote:last-child { border-right: 0; }
.quote blockquote { margin: 14px 0 26px; font-size: 1.22rem; line-height: 1.42; letter-spacing: -.015em; }
.quote blockquote p { margin: 0; }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: .92rem; }
.quote figcaption span { color: var(--muted); }
@media (max-width: 960px) {
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .quote, .quote + .quote { padding: 26px 0 26px; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- callout band ---------- */
.band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: 32px; background: var(--gold-soft); border: 1px solid #e3cf8a; }
.band h2, .band h3 { font-size: var(--fs-h3); }
.band p { margin: 6px 0 0; color: #3b3420; }
.band__tag { font: 500 var(--fs-mono)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; background: var(--ink); color: var(--gold); white-space: nowrap; }
@media (max-width: 860px) { .band { grid-template-columns: minmax(0, 1fr); padding: 24px; } }

/* ---------- media + text ---------- */
.media { margin: 0; border: 1px solid var(--line); background: var(--white); }
.media img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.media figcaption { padding: 11px 14px; font: 400 var(--fs-mono)/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
.dark .media { border-color: var(--line-dark); background: var(--ink-2); }
.dark .media figcaption { color: var(--muted-dark); border-color: var(--line-dark); }
.media--tall img { aspect-ratio: 3 / 4; }

/* ---------- page hero (inner) ---------- */
.phero { padding: clamp(48px, 6vw, 88px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line-dark); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 30px; padding: 0; font: 400 var(--fs-mono)/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #5d6570; }
.crumbs a { text-decoration: none; color: var(--muted-dark); } .crumbs a:hover { color: #fff; }
.phero h1 { font-size: var(--fs-h1); max-width: 16ch; letter-spacing: -.04em; line-height: 1.02; }
.phero .lede { margin-top: 22px; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
@media (max-width: 960px) { .phero__grid { grid-template-columns: minmax(0, 1fr); } }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li { padding: 7px 11px; border: 1px solid var(--line-dark); font: 400 .78rem/1 var(--f-mono); letter-spacing: .04em; color: #d5dae0; }

/* ---------- prose blocks ---------- */
.prose h2 { font-size: var(--fs-h2); margin: 0 0 22px; }
.prose h3 { font-size: var(--fs-h3); margin: 34px 0 10px; }
.prose p, .prose li { color: #2b3138; }
.prose ul { margin: 0 0 1.2em; }
.prose li { margin-bottom: 6px; }
.dark .prose p, .dark .prose li { color: #d5dae0; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li { position: relative; padding: 7px 0 7px 26px; border-top: 1px solid var(--line); font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 2px; background: var(--gold); }
.dark .ticks li { border-color: var(--line-dark); }
.ticks--cols { columns: 2; column-gap: 32px; }
.ticks--cols li { break-inside: avoid; }
@media (max-width: 600px) { .ticks--cols { columns: 1; } }

/* blocks: numbered rows */
.rows { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 40px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.row h3 { font-size: var(--fs-h3); }
.row p { color: #2b3138; }
.row p:last-child, .row ul:last-child { margin-bottom: 0; }
.row .idx { padding-top: 6px; }
@media (max-width: 860px) { .row { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.dark .rows { border-color: rgba(255,255,255,.5); }
.dark .row { border-color: var(--line-dark); }
.dark .row p { color: #d5dae0; }

/* spec tables */
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font: 500 var(--fs-mono)/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); width: 42%; padding-right: 16px; }
.dark .specs th, .dark .specs td { border-color: var(--line-dark); }
.dark .specs th { color: var(--muted-dark); }

/* ---------- catalog page ---------- */
.filters { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px 16px; padding: 20px; background: var(--white); border: 1px solid var(--line); position: sticky; top: calc(var(--hdr-h) + 12px); z-index: 5; }
.filters__search input { width: 100%; padding: 14px 16px; border: 1px solid var(--ink); font: 400 1rem var(--f-sans); background: var(--white); color: var(--ink); border-radius: 0; }
.filters__select { display: flex; flex-direction: column; gap: 6px; }
.filters__select .mono-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.filters__select select { height: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--ink); font: 400 .95rem var(--f-sans); background: var(--white); color: var(--ink); border-radius: 0; }
.filters__check { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; }
.filters__check input { width: 18px; height: 18px; accent-color: var(--ink); }
@media (max-width: 760px) { .filters { grid-template-columns: minmax(0, 1fr); position: static; } }
.catalog__count { margin: 22px 0 8px; font: 400 .85rem var(--f-mono); color: var(--muted); }
.tgroup { margin-top: 36px; }
.tgroup__title { font-size: var(--fs-h3); padding-bottom: 12px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; }
.tlist { list-style: none; margin: 0; padding: 0; }
.tr { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.25fr) 104px; gap: 12px 28px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tr__name { font-size: 1.02rem; font-weight: 500; letter-spacing: -.01em; }
.tr__detail { margin: 6px 0 0; color: var(--muted); font-size: .93rem; }
.tr__notes { margin: 6px 0 0; font: 400 .8rem/1.5 var(--f-mono); color: var(--muted); }
.tr__meta { display: grid; grid-template-columns: 1.3fr .9fr .9fr; gap: 12px; margin: 0; }
.tr__meta dt { font: 500 .68rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tr__meta dd { margin: 4px 0 0; font: 400 .85rem/1.4 var(--f-mono); }
.tr__flags { text-align: right; }
.flag { display: inline-block; padding: 5px 7px; font: 500 .68rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.flag--iso { background: var(--ink); color: var(--gold); }
@media (max-width: 860px) {
  .tr { grid-template-columns: minmax(0, 1fr); }
  .tr__flags { text-align: left; }
  .tr__flags:empty { display: none; }
}
.catalog__empty { padding: 32px 0; font-size: 1.05rem; }
.tgroup[hidden], .tr[hidden] { display: none; }

/* ---------- courses ---------- */
.cgroup { margin-top: 56px; }
.cgroup:first-child { margin-top: 0; }
.cgroup__title { font-size: var(--fs-h3); padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; }
.course { background: var(--white); padding: 26px; display: flex; flex-direction: column; scroll-margin-top: calc(var(--hdr-h) + 24px); }
.course h3 { font-size: var(--fs-h3); }
.course__meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 28px; margin: 14px 0 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.course__meta dt { font: 500 .68rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.course__meta dd { margin: 4px 0 0; font: 400 .9rem var(--f-mono); }
.course p { color: #2b3138; font-size: .98rem; }
.course .ticks { margin: 0 0 18px; }
.course .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .courses { grid-template-columns: minmax(0, 1fr); } .course__meta { grid-template-columns: repeat(2, auto); } }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: filter .25s; background: var(--line); }
.member:hover img { filter: none; }
.member__name { font-size: var(--fs-h3); margin-top: 16px; }
.member__role { margin: 6px 0 0; font: 400 .8rem/1.4 var(--f-mono); color: var(--muted); letter-spacing: .02em; }
.member details { margin-top: 12px; border-top: 1px solid var(--line); }
.member summary { cursor: pointer; padding: 10px 0; font-size: .92rem; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.member summary::-webkit-details-marker { display: none; }
.member summary::after { content: "+"; font-family: var(--f-mono); }
.member details[open] summary::after { content: "−"; }
.member details p { font-size: .93rem; color: #2b3138; }
@media (max-width: 1024px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }

/* ---------- stories ---------- */
.story { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px 56px; padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--hdr-h) + 24px); }
.story:first-child { border-top: 1px solid var(--ink); }
.story__logo { max-width: 180px; max-height: 80px; width: auto; height: auto; margin-top: 18px; object-fit: contain; }
.story__wordmark { margin-top: 18px; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.story h2 { font-size: var(--fs-h3); max-width: 34ch; }
.story blockquote { margin: 20px 0 0; padding-left: 22px; border-left: 2px solid var(--gold); }
.story blockquote p { font-size: 1.1rem; line-height: 1.6; color: #2b3138; }
.story footer { font-size: .95rem; color: var(--muted); }
.story footer strong { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .story { grid-template-columns: minmax(0, 1fr); } }

/* ---------- timeline ---------- */
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.tl li { background: var(--ink); padding: 22px 20px 26px; }
.tl__y { display: block; font: 400 1.9rem/1 var(--f-mono); letter-spacing: -.04em; color: var(--gold); margin-bottom: 14px; }
.tl strong { display: block; font-weight: 500; color: #fff; margin-bottom: 4px; }
.tl p { margin: 0; font-size: .93rem; color: var(--muted-dark); }
@media (max-width: 960px) { .tl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tl { grid-template-columns: minmax(0, 1fr); } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.cinfo { border-top: 1px solid var(--ink); }
.cinfo div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.cinfo dt { margin-bottom: 6px; }
.cinfo dd { margin: 0; font-size: 1.1rem; }
.cinfo a { text-decoration: none; } .cinfo a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.form { background: var(--white); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; font-weight: 500; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; border: 1px solid #b9bec5; border-radius: 0; background: var(--paper); font: 400 1rem var(--f-sans); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--ink); background: #fff; }
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { margin-top: 22px; }
.form__hint { margin: 14px 0 0; font-size: var(--fs-small); color: var(--muted); }
.form__status { margin: 14px 0 0; font-weight: 500; }
@media (max-width: 600px) { .form__grid { grid-template-columns: minmax(0, 1fr); } }
.map { border: 1px solid var(--line); margin-top: 24px; }
.map iframe { display: block; width: 100%; height: 300px; border: 0; filter: grayscale(1); }

/* ---------- CTA band ---------- */
.cta { padding: clamp(64px, 8vw, 112px) 0; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px 72px; align-items: end; }
.cta h2 { font-size: var(--fs-h1); letter-spacing: -.04em; line-height: 1.02; max-width: 14ch; }
.cta h2 em { font-style: normal; color: var(--gold); }
.cta dl { margin: 0; border-top: 1px solid var(--line-dark); }
.cta dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.cta dt { font: 500 var(--fs-mono)/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); }
.cta dd { margin: 0; text-align: right; }
.cta dd a { text-decoration: none; } .cta dd a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
@media (max-width: 960px) { .cta__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- misc grids ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cols-3 > * { background: var(--white); padding: 26px; }
.cols-3 h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.cols-3 p { color: #2b3138; font-size: .98rem; margin: 0 0 14px; }
.cols-3 p:last-child { margin-bottom: 0; }
.dark .cols-3 { background: var(--line-dark); border-color: var(--line-dark); }
.dark .cols-3 > * { background: var(--ink); }
.dark .cols-3 p { color: #c5cbd3; }
@media (max-width: 960px) { .cols-3 { grid-template-columns: minmax(0, 1fr); } }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .pair { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: 24px; }
.mt-lg { margin-top: clamp(48px, 6vw, 80px); }
.quotes-q { font-size: var(--fs-lede); line-height: 1.45; border-left: 2px solid var(--gold); padding-left: 20px; margin: 0 0 18px; }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: #d5dae0; padding: 72px 0 28px; }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.ftr__brand p { margin-top: 18px; max-width: 40ch; font-size: .93rem; color: var(--muted-dark); }
.ftr__status { display: flex; align-items: center; gap: 10px; font: 400 .78rem/1.4 var(--f-mono) !important; color: #d5dae0 !important; }
.ftr ul { list-style: none; padding: 0; margin: 14px 0 0; }
.ftr li { padding: 5px 0; }
.ftr a { text-decoration: none; font-size: .95rem; }
.ftr a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }
.ftr address { margin-top: 14px; font-size: .95rem; line-height: 1.8; }
.ftr .mono-label { color: var(--muted-dark); margin: 0; }
.ftr__social { margin-top: 16px !important; }
.ftr__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: .85rem; color: var(--muted-dark); }
.ftr__bottom p { margin: 0; }
@media (max-width: 960px) { .ftr__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr__top { grid-template-columns: minmax(0, 1fr); } }

/* 404 */
.nf { min-height: 60vh; display: flex; align-items: center; }
.nf__code { font: 400 clamp(4rem, 12vw, 9rem)/1 var(--f-mono); color: var(--gold); letter-spacing: -.06em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.row h2 { font-size: var(--fs-h2); }
.title-md { font-size: var(--fs-h2); margin-bottom: 18px; }
.split h2 + .lede, .split h2 + p { margin-top: 20px; }
.split .prose h2 + p { margin-top: 0; }
@media (max-width: 600px) {
  .ptable th, .ptable td { padding: 11px 10px; }
  .ptable td { white-space: normal; }
  .ptable th, .ptable td { overflow-wrap: anywhere; }
  .ptable { font-size: .9rem; }
}
.pair--tables { gap: 48px 32px; }
@media (max-width: 1100px) { .pair--tables { grid-template-columns: minmax(0, 1fr); } }

/* ---------- typography pass ---------- */
p { max-width: 60ch; }
h3, .story h2, .member__name, .tr__name, .cgroup__title, .tgroup__title { line-height: 1.35; }
.hero__status, .facts li { line-height: 1.45; }
.course__meta dd, .tr__meta dd { line-height: 1.45; }
.idx { line-height: 1.5; }
.row { grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1.4fr); }
.row .idx { white-space: nowrap; }
@media (max-width: 860px) { .row { grid-template-columns: minmax(0, 1fr); } }
.stat__n { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); }
.ftr address span { display: block; }
@media (max-width: 1200px) and (min-width: 961px) { .tl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) and (min-width: 961px) { .creds ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .creds li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .creds li:nth-child(-n+2) { border-top: 0; } }
h3, .story h2, .member__name, .tr__name, .cgroup__title, .tgroup__title, .band h2 { line-height: 1.4; }
.quote blockquote { font-size: 1.12rem; }
@media (max-width: 1200px) and (min-width: 961px) {
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .quote, .quote + .quote { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .cols-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1200px) and (min-width: 861px) {
  .row { grid-template-columns: 140px minmax(0, 1fr); }
  .row > :nth-child(3) { grid-column: 2; }
}
.quote blockquote { font-size: 1.05rem; line-height: 1.5; }
.svc__col p { font-size: .93rem; }
.svc__col { padding-right: 20px; }
.svc__col + .svc__col { padding-left: 20px; }
