/* ==========================================================================
   3DOrgan.com — main stylesheet
   No framework. CSS Grid + Flexbox. Mobile-first, fluid to 4K.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brand:        #ffd321;
  --brand-ink:    #6b5200;

  --ink:          #12151a;
  --ink-2:        #39414d;
  --muted:        #626b7a;
  --line:         #e4e7ec;
  --line-strong:  #cfd4dc;

  --bg:           #ffffff;
  --bg-soft:      #f7f8fa;
  --bg-sunk:      #eef0f4;

  --link:         #b02a1d;
  --link-hover:   #8a1f14;

  --surface:      #ffffff;
  --shadow-sm:    0 1px 2px rgba(16, 24, 40, .05);
  --shadow:       0 4px 16px rgba(16, 24, 40, .08);
  --shadow-lg:    0 12px 40px rgba(16, 24, 40, .12);

  --radius:       12px;
  --radius-lg:    18px;

  --wrap:         1160px;
  --wrap-narrow:  760px;
  --gutter:       clamp(16px, 4vw, 32px);

  --header-h:     64px;

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --step--1: clamp(.82rem, .78rem + .18vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.075rem);
  --step-1:  clamp(1.13rem, 1.05rem + .38vw, 1.35rem);
  --step-2:  clamp(1.35rem, 1.18rem + .72vw, 1.85rem);
  --step-3:  clamp(1.6rem, 1.3rem + 1.3vw, 2.5rem);
  --step-4:  clamp(1.95rem, 1.4rem + 2.4vw, 3.4rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:         #eef1f6;
    --ink-2:       #c3cad6;
    --muted:       #97a1b0;
    --line:        #262b34;
    --line-strong: #39414d;

    --bg:          #0f1216;
    --bg-soft:     #14181e;
    --bg-sunk:     #1a1f26;

    --link:        #ff9c8f;
    --link-hover:  #ffbdb3;

    --surface:     #171b21;
    --shadow-sm:   0 1px 2px rgba(0, 0, 0, .4);
    --shadow:      0 4px 16px rgba(0, 0, 0, .45);
    --shadow-lg:   0 12px 40px rgba(0, 0, 0, .55);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

img, picture, video, iframe, svg { max-width: 100%; }
img, video { height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p, ul, ol, dl, table, figure, pre { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.35em; }
li { margin-bottom: .35em; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

strong, b { font-weight: 700; }
small { font-size: var(--step--1); }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

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

::selection { background: var(--brand); color: #12151a; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--soft { background: var(--bg-soft); }
.section--sunk { background: var(--bg-sunk); }

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(28px, 4vw, 52px);
  text-align: center;
}
.section-head p { color: var(--muted); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-ink);
  background: var(--brand);
  padding: .3em .8em;
  border-radius: 999px;
  margin-bottom: 1rem;
}
@media (prefers-color-scheme: dark) {
  .eyebrow { color: #2a2100; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--bg);
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font: inherit;
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #12151a;
}
.btn--primary:hover { background: #ffdc4d; border-color: #ffdc4d; color: #12151a; }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #12151a;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: -.04em;
  flex: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem;
}
.nav a {
  display: block;
  padding: .55rem .8rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: var(--bg-sunk); color: var(--ink); }
.nav a[aria-current] { background: var(--brand); color: #12151a; }

@media (max-width: 1023px) {
  .nav {
    position: absolute;
    inset: var(--header-h) 0 auto;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: .85rem .5rem; border-radius: 10px; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav { display: block !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: min(78svh, 720px);
  padding-block: clamp(64px, 12vw, 120px);
  color: #fff;
  isolation: isolate;
  background: #1a1d22 url('../images/hero-bioprinter-1600.jpg') center / cover no-repeat;
}
@media (max-width: 640px) {
  .hero { background-image: url('../images/hero-bioprinter-1000.jpg'); }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(8, 10, 14, .30) 0%, rgba(8, 10, 14, .72) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, .55) 0%, rgba(8, 10, 14, .25) 40%, rgba(8, 10, 14, .80) 100%);
}
.hero .wrap { max-width: 880px; }
.hero h1 {
  color: #fff;
  margin-bottom: .4em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}
.hero-kicker {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}
.hero-lede {
  font-size: var(--step-1);
  color: rgba(255, 255, 255, .92);
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(28px, 5vw, 56px);
}
.page-header h1 { margin-bottom: .35em; }
.page-header .lede {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 48rem;
  margin-bottom: 0;
}

.breadcrumb { margin-bottom: 1.1rem; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
  color: var(--muted);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .4rem; }
.breadcrumb li + li::before { content: '/'; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--link); text-decoration: underline; }

/* ---------- Prose (article body) ---------- */
.prose { max-width: var(--wrap-narrow); }
.prose > * + * { margin-top: 0; }
.prose h2 {
  margin-top: 2.2em;
  padding-top: .3em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h3 {
  margin-top: 1.8em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption {
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: .6rem;
  text-align: center;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}
.prose th, .prose td {
  text-align: left;
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th { background: var(--bg-soft); font-weight: 700; }
.table-scroll {
  overflow-x: auto;
  margin-bottom: 1.15em;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table { min-width: 32rem; }

.prose dl { margin: 0 0 1.15em; }
.prose dt {
  margin-top: 1.35em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
}
.prose dl > dt:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose dd {
  margin: .3em 0 0;
  color: var(--ink-2);
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--bg-sunk);
  padding: .15em .4em;
  border-radius: 5px;
}

.lede-lg {
  font-size: var(--step-1);
  color: var(--ink-2);
}

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.35rem;
  margin: 1.8rem 0;
}
.callout > :last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; font-size: var(--step-1); }

/* ---------- Table of contents ---------- */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.4rem;
  margin-bottom: 2.2rem;
}
.toc h2 {
  margin: 0 0 .6rem;
  font-size: var(--step--1);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol { margin: 0; padding-left: 1.2em; font-size: var(--step--1); }
.toc li { margin-bottom: .3em; }

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: var(--step-1); }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--brand);
  color: #12151a;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; display: block; }

/* Link cards (internal linking blocks) */
.link-cards {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.link-cards li { margin: 0; }
.link-card {
  display: block;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.link-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--ink);
}
.link-card strong { display: block; margin-bottom: .25rem; }
.link-card span { display: block; font-size: var(--step--1); color: var(--muted); }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split-media { order: 2; }
}
.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.split-body > :last-child { margin-bottom: 0; }

/* ---------- Stats ---------- */
.stat-grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em;
}
.stat-grid li { margin: 0; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  height: 100%;
}
.stat b {
  display: block;
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: .2rem;
}
.stat span { font-size: var(--step--1); color: var(--muted); }

/* ---------- Video ---------- */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Organ gallery ---------- */
.organ-grid {
  display: grid;
  gap: clamp(14px, 2.2vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.organ-grid li { margin: 0; }
.organ-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
a.organ-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--line-strong);
  color: var(--ink);
}
.organ-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.organ-card .organ-body { padding: 1rem 1.15rem 1.2rem; }
.organ-card h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.organ-card p { font-size: var(--step--1); color: var(--muted); margin: 0; }
.organ-status {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25em .7em;
  border-radius: 999px;
  margin-bottom: .5rem;
  background: var(--bg-sunk);
  color: var(--ink-2);
}
.organ-status--clinical { background: #dff3e4; color: #1b5e2a; }
.organ-status--preclinical { background: #fff3cd; color: #6b5200; }
.organ-status--research { background: #e6eefc; color: #1c3f7c; }
@media (prefers-color-scheme: dark) {
  .organ-status--clinical { background: #16351f; color: #8ce0a3; }
  .organ-status--preclinical { background: #3a2f0a; color: #ffd964; }
  .organ-status--research { background: #172440; color: #a8c6ff; }
}

/* ---------- Company logo grid ---------- */
.logo-grid {
  display: grid;
  gap: clamp(10px, 1.6vw, 18px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.logo-grid li { margin: 0; }

/* The source logos all sit on the same #faf8f9 background at roughly 2.14:1,
   so the tile matches that colour and ratio exactly — the artwork then fills
   the tile with no visible seam and at the largest possible size. */
.logo-tile {
  display: block;
  overflow: hidden;
  background: #faf8f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.logo-tile:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.logo-tile img {
  width: 100%;
  aspect-ratio: 2.14 / 1;
  object-fit: cover;
}

/* Company list (directory page) */
.company-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.company-list li { margin: 0; }
.company {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.company h3 { font-size: var(--step-1); margin-bottom: .15rem; }
.company .company-meta {
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: .7rem;
}
.company p { font-size: var(--step--1); margin-bottom: .8rem; }
.company a.company-link {
  font-size: var(--step--1);
  font-weight: 700;
  text-decoration: none;
}
.company a.company-link:hover { text-decoration: underline; }

/* ---------- News ---------- */
.news-grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--line-strong);
  color: var(--ink);
}
.news-card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-sunk);
  overflow: hidden;
}
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body {
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}
.news-card .source {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.news-card .title {
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.35;
}
.news-card .meta { font-size: var(--step--1); color: var(--muted); margin-top: auto; }

.news-status {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.news-skeleton {
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.news-skeleton div {
  border-radius: var(--radius-lg);
  background: var(--bg-sunk);
  aspect-ratio: 16 / 11;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.25rem;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1.05rem 0;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.4em;
  line-height: 1;
  color: var(--muted);
  flex: none;
  transition: transform .2s;
}
.faq details[open] summary::after { content: '\2212'; }
.faq .faq-body { padding-bottom: 1.15rem; }
.faq .faq-body > :last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}

.contact-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-points li { margin: 0; }
.contact-point {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.contact-point:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); color: var(--ink); }
.contact-point svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.contact-point b { display: block; font-size: var(--step--1); color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.form-grid { display: grid; gap: 1rem; }
@media (min-width: 620px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  margin-bottom: .35rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: .8rem .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 55%, transparent);
}
.form-note { font-size: var(--step--1); color: var(--muted); margin: .25rem 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #101317;
  color: #b9c1cd;
  padding-block: clamp(40px, 6vw, 72px) 0;
}
.site-footer a { color: #dfe4ec; text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  padding-bottom: 2.5rem;
}
.footer-brand p { font-size: var(--step--1); max-width: 32ch; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand:hover { color: #fff; }
.footer-col h2 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7d8798;
  margin-bottom: .9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .5rem; font-size: var(--step--1); }
.footer-bottom {
  border-top: 1px solid #22272f;
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--step--1);
}
.footer-bottom p { margin: 0; }

.to-top {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 90;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Cookie consent banner ---------- */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem clamp(1rem, 3vw, 2.5rem);
  padding: clamp(14px, 2.5vw, 20px) var(--gutter);
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 28px rgba(16, 24, 40, .14);
}
.consent[hidden] { display: none; }

.consent-text {
  margin: 0;
  max-width: 62ch;
  font-size: var(--step--1);
  color: var(--ink-2);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  flex: none;
}
.consent-actions .btn { padding: .7em 1.5em; }

@media (max-width: 560px) {
  .consent { flex-direction: column; align-items: stretch; text-align: center; }
  .consent-actions { justify-content: center; }
  .consent-actions .btn { flex: 1 1 auto; }
}

/* Footer button that has to read as a link. */
.linklike {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.linklike:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Reveal on scroll ----------
   Gated behind .js, which an inline <head> script sets. If scripting is off
   or site.js fails to load, the content simply stays visible instead of
   being hidden forever. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .to-top, .hero-actions, .news-grid { display: none !important; }
  body { color: #000; background: #fff; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: .8em; }
}
