/* Latitude Energy — site system (launch-v3)
   Brand: black, white, gold gradient (#F9B630 > #F99430 > #F96E30), Poppins.
   Every page is black. Gold is the only accent. */

:root {
  --coal: #000000;
  --paper: #ffffff;
  --steel: #a3a8ad;        /* secondary text on black */
  --steel-dim: #5c6166;    /* tertiary text, rules on black */
  --rule-dark: #26282b;
  --ink: #000000;
  --slate: #4a4f55;        /* body text on white (cookie banner) */
  --rule: #dfe1e3;
  --mist: #f3f4f5;
  --gold-1: #f9b630;
  --gold-2: #f99430;
  --gold-3: #f96e30;
  --heat: linear-gradient(90deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));

  --display: "Poppins", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--coal);
  color: var(--paper);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 3px; }
.on-white :focus-visible { outline-color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.dark { background: var(--coal); color: var(--paper); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; }
.nb { white-space: nowrap; }

/* ---------- type ---------- */
.display, .h1, .h2, .h3 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -0.015em; }
.display { font-size: clamp(2.375rem, 4.6vw, 4rem); line-height: 1.08; letter-spacing: -0.02em; }
.h1 { font-size: clamp(1.875rem, 3vw, 2.625rem); line-height: 1.15; letter-spacing: -0.015em; }
.h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; }
.h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; margin: 0; max-width: 34em; }
.dark .lede { color: var(--steel); }
.on-white .lede, .on-white p { color: var(--slate); }
p { margin: 0 0 1em; max-width: 38em; text-wrap: pretty; }
.tm { font-size: 0.5em; vertical-align: 0.85em; letter-spacing: 0; font-weight: 500; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 500; font-size: 0.9375rem;
  padding: 15px 24px; border-radius: 4px; text-decoration: none;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-heat { background: var(--paper); color: var(--coal); }
.btn-heat:hover { background: #d9dcdf; }
.btn-line { border-color: var(--steel-dim); color: var(--paper); }
.btn-line:hover { border-color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2a2c2f; }
.btn-gold { background: var(--gold-1); color: var(--coal); }
.btn-gold:hover { background: var(--gold-2); }
.text-link {
  font-family: var(--display); font-weight: 500; font-size: 0.9375rem;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.text-link:hover { border-bottom-width: 2px; }
.link { display: inline-block; font-family: var(--display); font-weight: 500; font-size: 0.9375rem; color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--gold-2); padding-bottom: 3px; }
.link:hover { color: var(--gold-1); }

/* ---------- header: logo and a menu button; links open as a full-screen menu ---------- */
.nav { position: absolute; inset: 0 0 auto; z-index: 50; color: var(--paper); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 112px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 68px; width: auto; }
.nav-toggle { display: block; background: none; border: 0; padding: 14px 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 30px; height: 2px; background: var(--paper); margin: 7px 0; transition: transform .25s; }
.nav-toggle span:nth-child(2) { display: none; }
.nav-toggle:hover span { background: var(--gold-1); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
.nav-links { display: none; }
.nav.menu-open { position: fixed; inset: 0; background: var(--coal); }
.nav-links.open { display: flex; flex-direction: column; align-items: flex-start; position: fixed; inset: 112px 0 0 0; overflow-y: auto; padding: clamp(24px, 7vh, 88px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 48px; }
.nav-links a { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--paper); text-decoration: none; padding: 10px 0; transition: color .2s; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a.active { color: var(--gold-1); }

/* ---------- sections ---------- */
.sec { padding: var(--section) 0; border-top: 1px solid var(--rule-dark); }
.sec-head { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px clamp(40px, 6vw, 96px); align-items: baseline; margin-bottom: clamp(48px, 5.5vw, 80px); }
.sec-head p { margin: 0; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--steel); max-width: 30em; text-wrap: balance; }
.sec-title { margin-bottom: clamp(48px, 5.5vw, 80px); }
.sub { font-family: var(--display); font-weight: 500; font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.015em; margin: clamp(80px, 9vw, 128px) 0 52px; }
.after { margin: clamp(40px, 4.5vw, 64px) 0 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px 64px; flex-wrap: wrap; }
.cta .h1 { margin: 0; }

/* ---------- figures ---------- */
.figs { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px clamp(24px, 3vw, 48px); }
.figs div { display: flex; flex-direction: column-reverse; justify-content: flex-end; border-top: 1px solid var(--steel-dim); padding-top: 26px; }
.figs dd { margin: 0 0 12px; font-family: var(--display); font-weight: 500; font-size: clamp(2.25rem, 4vw, 3.5rem); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.figs dt { font-size: 0.9375rem; line-height: 1.45; color: var(--steel); max-width: 15em; text-wrap: balance; }
.figs.three { grid-template-columns: repeat(3, 1fr); }
.figs.sm dd { font-size: clamp(1.75rem, 2.7vw, 2.375rem); letter-spacing: -0.02em; line-height: 1.1; }

/* ---------- drawings: an island in elevation, drawn by assets in the page from the scenes' own pieces ---------- */
.plate { position: relative; display: flow-root; margin: clamp(40px, 5vw, 72px) 0 0; }      /* a drawing may rise past its figure's head (room for a plume), without moving the figure */
.plate canvas { display: block; width: 100%; height: auto; }
.plate noscript img { width: 100%; height: auto; }
.plate-names { position: relative; height: 2.8em; margin-top: 14px; font-size: 0.8125rem; line-height: 1.3; color: var(--paper); }
.plate-names span { position: absolute; top: 0; left: 0; white-space: nowrap; text-align: center; }
.plate:not(.is-drawn) .plate-names { visibility: hidden; }
.plate-names .is-round { color: var(--steel); opacity: 0.72; }      /* what stands outside the technology's own scope */
.plate-note { position: absolute; left: 0; top: 0; transform: translateY(-50%); white-space: nowrap; font-size: 0.8125rem; line-height: 1.3; color: var(--paper); }
.plate:not(.is-drawn) .plate-note { visibility: hidden; }
.plate + .timeline { margin-top: clamp(56px, 6.5vw, 96px); }
@media (max-width: 359px) { .plate-names { font-size: 0.75rem; } }

@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; }
  .figs, .figs.three { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Inner pages
   ============================================================ */

/* ---------- page head ---------- */
.page-head { padding: clamp(168px, 16vw, 216px) 0 clamp(72px, 8vw, 112px); }
.page-head .display { font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 28px; text-wrap: balance; }
.page-head .lede { color: var(--steel); max-width: 30em; text-wrap: balance; }
.page-head .jump { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 40px 0 0; max-width: none; }

/* ---------- the head of a technology page: what it is and what it proves, beside the reactor itself ----------
   The reactor stands on the foot of the head, which is its ground. Where its drawing keeps room over a stack for a
   plume, that room rises past the head of its column, into what the page leaves under its header. */
.page-head.tech { padding: clamp(140px, 11.6vw, 168px) 0 0; border-bottom: 1px solid var(--rule-dark); }
.page-head.tech + section, .page-head.tech + section .tc-part { border-top: 0; }
.tech .wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 88px); }
.tech-say { padding-bottom: clamp(60px, 6vw, 84px); }
.tech .display { margin-bottom: 26px; }
.tech .lede { max-width: 30em; }
.tech .lead { margin-top: clamp(44px, 4.4vw, 60px); }
.tech .words { margin-top: clamp(32px, 3.2vw, 44px); gap: 8px clamp(24px, 2.6vw, 36px); font-size: clamp(1.125rem, 1.46vw, 1.3125rem); letter-spacing: -0.01em; }
.tech-art { position: relative; margin: 0; pointer-events: none; --inside: 0; }
.tech-art canvas, .tech-art noscript img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: block; }
.tech-art noscript img { height: 100%; width: auto; max-width: none; }
@media (max-width: 900px) {
  .tech .wrap { grid-template-columns: 1fr; }
  .tech-say { padding-bottom: 0; }
  .tech-art { height: min(124vw, 540px); margin-top: clamp(40px, 8vw, 64px); --inside: 1; }
  .tech .lead dd { font-size: clamp(4rem, 11vw, 6rem); }      /* one column now: the figures have its whole width */
}

/* ---------- the figures a page leads with: large, each under a rule that fills as it counts ---------- */
.lead { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(28px, 4vw, 64px); }
.lead div { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: clamp(22px, 2.4vw, 30px); --f: 1; }
.lead div::before, .lead div::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.lead div::before { background: rgba(255, 255, 255, 0.17); }
.lead div::after { background: linear-gradient(90deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3)); clip-path: inset(0 calc(100% - var(--v, 100%) * var(--f)) 0 0); }
.lead dd { margin: 0 0 clamp(10px, 1.2vw, 16px); font-family: var(--display); font-weight: 500; font-size: clamp(3.5rem, 7.3vw, 6.5rem); line-height: 0.95; letter-spacing: -0.045em; white-space: nowrap; }
.lead-u { font-size: 0.5em; letter-spacing: -0.02em; margin-left: 0.07em; }
.lead dt { font-size: clamp(0.9375rem, 1.2vw, 1.0625rem); line-height: 1.45; color: var(--steel); max-width: 15em; text-wrap: balance; }
.lead dt b { display: block; margin-bottom: 5px; font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 1.9vw, 1.625rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--paper); }      /* what the figure is a figure of, said as large as a heading */
@media (max-width: 520px) {
  .lead { grid-template-columns: 1fr; gap: 32px; }
  .lead dd, .tech .lead dd { font-size: clamp(4rem, 21vw, 5.25rem); }
}

/* ---------- equipment train (Technology) ---------- */
.train { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.train figure { margin: 0; height: clamp(210px, 22vw, 300px); display: flex; align-items: flex-end; padding: 0 24px 28px 0; border-bottom: 2px solid var(--c); }
.train img { max-height: 100%; max-width: 100%; width: auto; height: auto; }
.train h4 { font-family: var(--display); font-weight: 500; font-size: 1.1875rem; letter-spacing: -0.01em; margin: 26px 24px 8px 0; }
.train p { font-size: 0.9375rem; line-height: 1.45; color: var(--steel); margin: 0; padding-right: 24px; max-width: 13.5em; }

/* ---------- comparison table (Technology) ---------- */
.cmp-scroll { overflow-x: auto; scrollbar-width: none; }
.cmp-scroll::-webkit-scrollbar { display: none; }
.cmp { width: 100%; min-width: 700px; border-collapse: collapse; table-layout: fixed; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 22px 28px 22px 0; border-top: 1px solid var(--rule-dark); font-size: 0.9375rem; font-weight: 400; line-height: 1.45; color: var(--steel); }
.cmp thead th, .cmp thead td { border-top: 0; padding-top: 0; font-family: var(--display); font-weight: 500; font-size: 1rem; color: var(--steel); }
.cmp .corner { width: 24%; }
.cmp tbody th { width: 24%; font-family: var(--display); font-weight: 500; font-size: 1rem; color: var(--paper); }
.cmp thead th.is-ours { color: var(--gold-1); }
.cmp td.is-ours { color: var(--paper); }

/* ---------- plain word list (products) ---------- */
.words { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px clamp(28px, 3.4vw, 48px); font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -0.015em; }

/* ---------- three short facts in a row ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px clamp(24px, 3vw, 48px); margin: clamp(56px, 6.5vw, 96px) 0 0; }
.fact { border-top: 1px solid var(--steel-dim); padding-top: 26px; }
.fact h4 { font-family: var(--display); font-weight: 500; font-size: 1.1875rem; letter-spacing: -0.01em; margin: 0 0 8px; }
.fact p { font-size: 0.9375rem; line-height: 1.45; color: var(--steel); margin: 0; max-width: 21em; text-wrap: balance; }
.fact .link { margin-top: 22px; }
.fact .link + .link { margin-left: 28px; }
.facts.flush { margin-top: 0; }

/* ---------- design and achieved (Reference) ---------- */
.data-scroll { overflow-x: auto; scrollbar-width: none; }
.data-scroll::-webkit-scrollbar { display: none; }
.data { width: 100%; min-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data th, .data td { text-align: left; vertical-align: middle; padding: 20px 28px 20px 0; border-top: 1px solid var(--rule-dark); font-size: 0.9375rem; font-weight: 400; line-height: 1.45; color: var(--steel); white-space: nowrap; }
.data thead th, .data thead td { border-top: 0; padding-top: 0; font-family: var(--display); font-weight: 500; font-size: 1rem; }
.data tbody th { font-family: var(--display); font-weight: 500; font-size: 1rem; color: var(--paper); white-space: normal; }
.data td.got { color: var(--paper); }
.data td.meter { width: 34%; padding-right: 0; }
.data.narrow { max-width: 40rem; min-width: 0; }
.meter-row { display: flex; align-items: center; gap: 18px; }
.meter-bar { position: relative; flex: 1; height: 2px; background: var(--rule-dark); }
.meter-bar i { position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--heat); }
.meter-bar::after { content: ""; position: absolute; right: 0; top: -5px; width: 2px; height: 12px; background: var(--steel-dim); }
.meter-val { flex: none; width: 5.4em; text-align: right; font-family: var(--display); font-weight: 500; color: var(--paper); }

/* ---------- program history (Reference) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.timeline li { position: relative; padding: 46px 24px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--c); }
.timeline li::after { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.timeline li:last-child::before { background: linear-gradient(90deg, var(--c), rgba(249, 110, 48, 0)); }
.timeline .when { display: block; font-family: var(--display); font-weight: 500; font-size: 0.9375rem; color: var(--c); margin-bottom: 10px; }
.timeline h4 { font-family: var(--display); font-weight: 500; font-size: 1.1875rem; letter-spacing: -0.01em; margin: 0 0 8px; }
.timeline p { font-size: 0.9375rem; line-height: 1.45; color: var(--steel); margin: 0; max-width: 15em; text-wrap: balance; }
.note { margin: clamp(40px, 4.5vw, 64px) 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--steel); max-width: 44em; }
.note a { color: var(--paper); text-decoration-color: var(--gold-2); text-underline-offset: 3px; }

/* ---------- contact (About) ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.contact address { font-style: normal; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.6; color: var(--steel); margin: 0 0 36px; }
.contact address strong { display: block; font-family: var(--display); font-weight: 500; color: var(--paper); margin-bottom: 6px; }
.contact .mail { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.3vw, 2rem); letter-spacing: -0.015em; color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--gold-2); padding-bottom: 4px; }
.contact .mail:hover { color: var(--gold-1); }

/* ---------- legal pages (text carried over from the live site) ---------- */
.legal { max-width: 46rem; }
.legal > p:first-child { margin-top: 0; }
.legal section { margin-bottom: 8px; }
.legal h2 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.015em; margin: 56px 0 16px; padding-top: 32px; border-top: 1px solid var(--rule-dark); }
.legal h3 { font-family: var(--display); font-weight: 500; font-size: 1.125rem; line-height: 1.3; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 1rem; line-height: 1.65; color: var(--steel); max-width: none; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--paper); font-weight: 600; }
.legal a { color: var(--paper); text-decoration-color: var(--gold-2); text-underline-offset: 3px; }
.legal a:hover { color: var(--gold-1); }
.legal .all-caps { text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.01em; }
.legal .toc { border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); padding: 28px 0 22px; margin: 40px 0 0; }
.legal .toc-title { font-family: var(--display); font-weight: 500; font-size: 1rem; color: var(--paper); margin-bottom: 14px; }
.legal .toc ol { margin: 0; columns: 2; column-gap: 40px; }
.legal .toc li { font-size: 0.9375rem; break-inside: avoid; }
.legal .toc a { text-decoration: none; color: var(--steel); }
.legal .toc a:hover { color: var(--gold-1); }
.legal .toc + section h2 { border-top: 0; padding-top: 0; }
.legal .table-scroll { overflow-x: auto; margin: 1.25em 0; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 14px 20px 14px 0; border-top: 1px solid var(--rule-dark); font-size: 0.9375rem; line-height: 1.5; color: var(--steel); }
.legal th { font-family: var(--display); font-weight: 500; color: var(--paper); border-top: 0; }
.legal td:first-child { color: var(--paper); }

/* ---------- 404 ---------- */
.nf { min-height: 72vh; display: flex; align-items: center; padding: 168px 0 96px; }
.nf .wrap { width: 100%; }
.nf .display { margin-bottom: 20px; }
.nf .lede { color: var(--steel); margin-bottom: 40px; }
.nf .actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1080px) {
  .train { grid-template-columns: 1fr; max-width: 34rem; }
  .train li { display: grid; grid-template-columns: 96px 1fr; column-gap: 28px; align-items: center; padding: 22px 0; border-top: 1px solid var(--rule-dark); }
  .train li:first-child { border-top: 0; padding-top: 0; }
  .train figure { grid-row: 1 / span 2; height: 132px; padding: 0; border-bottom: 0; justify-content: center; align-items: center; }
  .train h4 { margin: 0 0 4px; align-self: end; }
  .train p { max-width: none; padding-right: 0; align-self: start; }
}
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr; gap: 32px; }
  .contact { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; max-width: 30rem; }
  .timeline li { padding: 0 0 34px 44px; }
  .timeline li::before { top: 12px; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li:last-child::before { background: linear-gradient(180deg, var(--c), rgba(249, 110, 48, 0)); height: 40px; bottom: auto; }
  .timeline .when { margin-bottom: 4px; }
  .timeline p { max-width: none; }
  .cmp-scroll, .data-scroll { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .cmp-scroll:not(.fits), .data-scroll:not(.fits) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
}
@media (max-width: 520px) {
  .figs.sm, .figs.wide-values { grid-template-columns: 1fr; }
  .legal .toc ol { columns: 1; }
  .page-head .display { font-size: min(2.5rem, 9.6vw); }
}

/* ---------- footer ---------- */
.footer { background: var(--coal); color: var(--steel); padding: 88px 0 40px; border-top: 1px solid var(--rule-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-logo img { height: 64px; width: auto; margin-bottom: 24px; }
.footer p { font-size: 0.9375rem; max-width: 30em; }
.footer h2 { font-family: var(--display); font-weight: 500; font-size: 0.9375rem; color: var(--paper); margin: 0 0 18px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; font-size: 0.9375rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--paper); }
.footer address { font-style: normal; font-size: 0.9375rem; line-height: 1.7; }
.footer .mail { color: var(--paper); }
.footer-legal { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--rule-dark); font-size: 0.8125rem; color: var(--steel-dim); }
.footer-legal p { font-size: 0.8125rem; max-width: 70em; }
.footer-base { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 20px; }
.footer-base nav { display: flex; gap: 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- cookie banner ---------- */
#cookie-banner { position: fixed; z-index: 60; right: 24px; bottom: 24px; width: min(440px, calc(100% - 48px)); background: var(--paper); color: var(--ink); padding: 22px 24px; border-radius: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.35); font-family: var(--text); }
#cookie-banner .cb-main { display: flex; flex-direction: column; gap: 16px; }
#cookie-banner .cb-text { font-size: 0.875rem; color: var(--slate); line-height: 1.55; }
#cookie-banner .cb-text a { color: var(--ink); }
#cookie-banner .cb-actions { display: flex; gap: 16px; align-items: center; justify-content: flex-end; }
#cookie-banner button { cursor: pointer; font-family: var(--display); border: none; font-weight: 500; }
#cookie-banner .cb-primary { background: var(--ink); color: var(--paper); padding: 10px 18px; font-size: 0.85rem; border-radius: 4px; }
#cookie-banner .cb-secondary { background: transparent; color: var(--slate); padding: 6px 2px; font-size: 0.82rem; text-decoration: underline; }
#cookie-banner .cb-prefs .cb-row { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
#cookie-banner .cb-prefs .cb-row:first-of-type { border-top: none; padding-top: 0; }
#cookie-banner .cb-row-info { flex: 1 1 auto; }
#cookie-banner .cb-row-info strong { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 3px; }
#cookie-banner .cb-row-desc { display: block; color: var(--slate); font-size: 0.8rem; line-height: 1.5; }
#cookie-banner .cb-required { color: var(--slate); font-size: 0.8rem; flex-shrink: 0; }
#cookie-banner .cb-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; margin-top: 2px; }
#cookie-banner .cb-switch input { opacity: 0; width: 0; height: 0; }
#cookie-banner .cb-slider { position: absolute; cursor: pointer; inset: 0; background: var(--rule); border-radius: 22px; transition: background .2s; }
#cookie-banner .cb-slider::before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
#cookie-banner .cb-switch input:checked + .cb-slider { background: var(--ink); }
#cookie-banner .cb-switch input:checked + .cb-slider::before { transform: translateX(18px); }
#cookie-banner .cb-prefs .cb-actions { padding-top: 14px; border-top: 1px solid var(--rule); }
@media (max-width: 520px) { #cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; } }
