/* COSE website — shared styles
   Palette from Brand_Guide.md: #004053 deep teal, #0F7F9F primary blue,
   facets #5590AD #7EA5BD #668C98 #99B2BA #CCD9DD #1E404F */

:root {
  --teal: #004053;
  --blue: #0F7F9F;
  --blue-soft: #5590AD;
  --blue-pale: #CCD9DD;
  --bg: #F6F9FA;
  --surface: #FFFFFF;
  --surface-2: #EAF1F3;
  --ink: #12303A;
  --ink-2: #3E5C66;
  --muted: #6C858D;
  --line: #D5E0E4;
  --line-strong: #B7C8CE;
  --accent: #0F7F9F;
  --accent-ink: #FFFFFF;
  --heading: #004053;
  --drawing-opacity: 1;
  --draw-ink: #004053;
  --tint-frame: #D9EAF0;
  --tint-core: #EEF5F7;
  --shadow: 0 1px 2px rgba(0, 64, 83, .06), 0 8px 24px rgba(0, 64, 83, .06);
  --sans: "IBM Plex Sans", "Segoe UI", Calibri, system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --measure: 62ch;
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0C1A1F;
    --surface: #122730;
    --surface-2: #17323C;
    --ink: #E3ECEF;
    --ink-2: #B7C8CE;
    --muted: #8AA3AB;
    --line: #23404A;
    --line-strong: #345561;
    --accent: #3FA9C7;
    --accent-ink: #061418;
    --heading: #DCEBF0;
    --teal: #DCEBF0;
    --drawing-opacity: .9;
    --draw-ink: #8FD0E2;
  --tint-frame: #163844;
  --tint-core: #112A33;
    --tint-frame: #163844;
    --tint-core: #112A33;
    --drawing-filter: invert(1) hue-rotate(180deg) brightness(1.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0C1A1F;
  --surface: #122730;
  --surface-2: #17323C;
  --ink: #E3ECEF;
  --ink-2: #B7C8CE;
  --muted: #8AA3AB;
  --line: #23404A;
  --line-strong: #345561;
  --accent: #3FA9C7;
  --accent-ink: #061418;
  --heading: #DCEBF0;
  --teal: #DCEBF0;
  --drawing-opacity: .9;
  --draw-ink: #8FD0E2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 { color: var(--heading); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: var(--measure); }
.measure { max-width: var(--measure); }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---- layout ---- */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
section { padding-block: clamp(3rem, 7vw, 6rem); }
section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 720px; }

/* ---- nav ---- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--heading); }
.brand svg { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--heading); text-decoration: none; }
.nav-links a.btn-primary { color: var(--accent-ink); }
.nav-links a.btn-primary:hover { color: var(--accent-ink); }
.nav-links a[aria-current="page"] { color: var(--heading); box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 2px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); padding: .45rem .7rem; font: inherit; font-size: .9rem; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem clamp(16px, 4vw, 40px) 1rem; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; margin-top: .6rem; }
}

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: transparent; color: var(--heading); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---- hero ---- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; }
.hero-copy .btn-row { margin-top: .4rem; }
.drawing { position: relative; }
.drawing img { width: 100%; opacity: var(--drawing-opacity); filter: var(--drawing-filter, none); }
/* Live 3D hero (assets/js/hero3d.js): the figure box keeps the old drawing's proportions; the canvas is larger than the box so the turning frame never meets its edge */
.drawing[data-hero-3d] { aspect-ratio: 1600 / 1201; }
/* The canvas is larger than the drawing so the turning frame never meets its edge; it is transparent and sits behind the caption */
.hero-3d { position: absolute; top: -60%; left: -28%; width: 156%; aspect-ratio: 1 / 1; z-index: 0; opacity: 0; transition: opacity .8s ease; }
.hero-3d canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.hero-3d canvas:active { cursor: grabbing; }
.drawing img { transition: opacity .8s ease; }
.drawing.is-live .hero-3d { opacity: 1; }
/* Phones: the figure comes first in the flow, so the live model stays inside a square box of its own instead of spilling over the headline */
@media (max-width: 820px) {
  /* The top ~18% of the square canvas is never reached by the turning frame, so the box is cropped to 100:85 and the square canvas rises into the hero padding */
  .hero { padding-top: 1rem; }
  .hero .wrap { gap: 1.5rem; }
  .drawing[data-hero-3d] { aspect-ratio: 100 / 85; width: 100%; max-width: 440px; margin: 0 auto; justify-self: center; }
  .hero-3d { top: auto; bottom: 0; left: 0; width: 100%; height: auto; aspect-ratio: 1 / 1; }
}
.drawing figcaption { font-family: var(--mono); font-size: .74rem; color: var(--muted); letter-spacing: .04em; margin-top: .6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .drawing { order: -1; max-width: 520px; } }

.story-photo { margin: 1.5rem 0 0; max-width: 420px; }
.story-photo img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); }
.story-photo figcaption { font-family: var(--mono); font-size: .74rem; color: var(--muted); letter-spacing: .04em; margin-top: .6rem; }

/* ---- news ---- */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; }
.post-list li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.post-list li:first-child { border-top: 0; padding-top: 0; }
.post-list time { font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; color: var(--muted); padding-top: .35rem; }
.post-list .pin { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .2rem; }
.post-list .pin::before { content: "\25B2 "; font-size: .6em; vertical-align: .15em; }
.post-list h3 { font-size: 1.2rem; margin: 0 0 .35rem; }
.post-list h3 a { color: var(--heading); text-decoration: none; } .post-list h3 a:hover { color: var(--accent); }
.post-list p { color: var(--ink-2); margin: 0; max-width: var(--measure); }
.post-list li[hidden] { display: none; }
.tag { display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line-strong); border-radius: 999px; padding: .1rem .5rem; vertical-align: .2em; margin-left: .55rem; font-weight: 500; }
.post .eyebrow .tag { margin-left: 0; vertical-align: .1em; }
.tag-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.tag-filter button { font: inherit; font-size: .84rem; padding: .3rem .75rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-2); cursor: pointer; }
.tag-filter button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.tag-filter button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.post-list.compact li { grid-template-columns: 1fr; gap: .25rem; padding: 1rem 0; }
.post-list.compact h3 { font-size: 1.05rem; }
.post-list.compact p { font-size: .95rem; }
@media (max-width: 640px) { .post-list li { grid-template-columns: 1fr; gap: .25rem; } }
.post { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 6rem); }
.post .wrap { max-width: 760px; }
.post .eyebrow a { color: inherit; text-decoration: none; } .post .eyebrow a:hover { color: var(--accent); }
.post h1 { margin-top: .75rem; }
.post-body { margin-top: 2rem; display: grid; gap: 1.1rem; color: var(--ink-2); font-size: 1.05rem; }
.post-body h2 { font-size: 1.5rem; margin-top: 1.25rem; } .post-body h3 { font-size: 1.2rem; margin-top: .75rem; }
.post-body ul, .post-body ol { padding-left: 1.4rem; display: grid; gap: .4rem; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.post-body blockquote { margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--accent); color: var(--ink-2); }
.post-body code { font-family: var(--mono); font-size: .92em; }
.post-body hr { border: 0; border-top: 1px solid var(--line); }
.post-body .table-wrap { overflow-x: auto; margin: .25rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.post-body table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .9rem; line-height: 1.35; }
.post-body th, .post-body td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.post-body thead th { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface-2); }
.post-body tbody th { color: var(--heading); font-weight: 500; }
.post-body tbody tr:last-child th, .post-body tbody tr:last-child td { border-bottom: 0; }
.post-body td strong { color: var(--heading); }
.post-body > * { min-width: 0; }
.post-body .post-video { margin: .5rem 0; display: grid; gap: .5rem; max-width: 100%; }
.post-body .post-video video { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border-radius: var(--radius); border: 1px solid var(--line); background: #000; }
.post-body .post-video figcaption { font-size: .85rem; color: var(--muted); }
.post-foot { margin-top: 3rem; }

/* ---- key figures strip ---- */
.figures { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding-block: 0; }
.figures .wrap { display: grid; grid-template-columns: repeat(6, 1fr); }
.figure { padding: 1.4rem 1rem 1.4rem 0; border-right: 1px solid var(--line); margin-right: 1rem; display: grid; gap: .25rem; align-content: start; }
.figure:last-child { border-right: 0; margin-right: 0; }
.figure .val { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.35rem; color: var(--heading); font-weight: 500; letter-spacing: -.01em; }
.figure .val small { font-size: .8rem; color: var(--muted); font-weight: 400; margin-left: .15rem; }
.figure .lab { font-size: .82rem; color: var(--muted); line-height: 1.3; }
@media (max-width: 960px) { .figures .wrap { grid-template-columns: repeat(3, 1fr); } .figure:nth-child(3) { border-right: 0; } }
@media (max-width: 560px) { .figures .wrap { grid-template-columns: repeat(2, 1fr); } .figure:nth-child(3) { border-right: 1px solid var(--line); } .figure:nth-child(2n) { border-right: 0; } }

/* ---- feature grid ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.feature { display: grid; gap: .6rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--line-strong); }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--ink-2); font-size: .98rem; }
.feature .k { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---- split with drawing ---- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.rev > .drawing { order: -1; }
@media (max-width: 820px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev > .drawing { order: 0; } }
.split .drawing { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 2rem); }
.split .drawing img { max-height: 420px; width: auto; margin: 0 auto; object-fit: contain; }

/* ---- spec tables ---- */
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: .7rem .9rem .7rem 0; border-bottom: 1px solid var(--line); }
.spec th { width: 34%; color: var(--ink-2); font-weight: 500; }
.spec td { color: var(--ink); }
.spec td .mono { font-size: .9rem; }
.spec tbody tr:last-child th, .spec tbody tr:last-child td { border-bottom: 0; }
.spec-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem 3rem; padding-block: 2rem; border-top: 1px solid var(--line-strong); }
.spec-group:last-child { border-bottom: 1px solid var(--line-strong); }
.spec-group h3 { font-size: 1.05rem; }
.spec-group .n { font-family: var(--mono); color: var(--muted); font-size: .8rem; display: block; margin-bottom: .3rem; letter-spacing: .08em; }
@media (max-width: 760px) { .spec-group { grid-template-columns: 1fr; gap: .75rem; } .spec th { width: 42%; } }
.table-wrap { overflow-x: auto; }

/* ---- screenshots ---- */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 700px) { .shots { grid-template-columns: 1fr; } }
.shot { display: grid; gap: .6rem; }
.shot img { border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.shot figcaption { font-size: .88rem; color: var(--muted); }

/* ---- callout / cards ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: .8rem; align-content: start; }
.card h3 { font-size: 1.05rem; }
.card p, .card li { color: var(--ink-2); font-size: .97rem; }
.card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.list-plain li { position: relative; padding-left: 1.3rem; color: var(--ink-2); }
.list-plain li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }

/* ---- quote form ---- */
.quote { background: #004053; color: #E3ECEF; }  /* fixed brand teal: --teal turns pale in dark mode */
.quote h2, .quote h3, .quote .eyebrow { color: #FFFFFF; }
.quote .eyebrow { color: #8FD0E2; }
.quote p { color: #C6D8DE; }
.quote a { color: #8FD0E2; } .quote a:hover { color: #FFFFFF; }
.quote .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .quote .wrap { grid-template-columns: 1fr; } }
.quote-side { display: grid; gap: 1.2rem; }
.quote-side .contact { font-family: var(--mono); font-size: 1rem; color: #FFFFFF; user-select: all; }
.quote-side dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; margin: 0; font-size: .95rem; }
.quote-side dt { color: #8FD0E2; font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding-top: .15rem; }
.quote-side dd { margin: 0; color: #E3ECEF; }
form.rfq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
form.rfq .full { grid-column: 1 / -1; }
@media (max-width: 560px) { form.rfq { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; color: #C6D8DE; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: #FFFFFF; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: .7rem .8rem; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #8FD0E2; outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 120px; resize: vertical; }
form.rfq .btn-primary { background: #FFFFFF; color: var(--teal); border-color: #FFFFFF; justify-self: start; }
.form-note { grid-column: 1 / -1; font-size: .88rem; color: #C6D8DE; }
.form-ok { grid-column: 1 / -1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 1rem; color: #FFFFFF; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: .9rem; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { footer .wrap { grid-template-columns: 1fr; } }
footer h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--mono); color: var(--ink-2); margin-bottom: .8rem; font-weight: 500; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
footer a { color: var(--ink-2); }
footer .brand svg { height: 28px; }
footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: .82rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---- founders ---- */
.people { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.person { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line-strong); }
.person:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 700px) { .person { grid-template-columns: 1fr; } .portrait { max-width: 200px; } }
.portrait { aspect-ratio: 1; width: 100%; max-width: 220px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait span { font-family: var(--mono); font-size: 2rem; color: var(--blue-soft); letter-spacing: .05em; }
.person-copy { display: grid; gap: 1rem; max-width: var(--measure); }
.person-copy h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.person-copy p { color: var(--ink-2); }
.tags { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: .3rem .7rem; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1.25rem; padding-block: 1rem; border-top: 1px solid var(--line); color: var(--ink-2); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline .yr { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 500; padding-top: .1rem; }
.timeline strong { color: var(--heading); font-weight: 600; }

/* ---- product grid ---- */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 700px) { .products { grid-template-columns: 1fr; } }
.product { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s; }
a.product:hover { border-color: var(--accent); text-decoration: none; }
a.product:hover .more { text-decoration: underline; }
.product-art { aspect-ratio: 16 / 9; background: var(--surface-2); display: grid; place-items: center; padding: 1.25rem; border-bottom: 1px solid var(--line); overflow: hidden; min-height: 0; }
.product-art img { width: 100%; height: 100%; object-fit: contain; opacity: var(--drawing-opacity); }
.product-art .ph { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line-strong); padding: .5rem .9rem; border-radius: var(--radius); }
.product-copy { display: grid; gap: .55rem; align-content: start; padding: 1.25rem 1.4rem 1.5rem; }
.product-copy .k { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.product-copy h3 { font-size: 1.25rem; }
.product-copy p { color: var(--ink-2); font-size: .97rem; }
.product-copy .more { color: var(--accent); font-weight: 500; font-size: .95rem; margin-top: .25rem; }
.product-copy .more.muted { color: var(--muted); font-weight: 400; }
.product.placeholder { border-style: dashed; }

/* ---- world map ---- */
.map-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(.5rem, 2vw, 1.5rem); }
.worldmap { width: 100%; height: auto; display: block; }
.worldmap .land path { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: .6; }
.worldmap .site circle { fill: var(--accent); stroke: var(--surface); stroke-width: 1.5; opacity: .95; transition: r .15s; }
.worldmap .site circle:hover { r: 8; }
.worldmap .home circle { fill: var(--teal); stroke: var(--accent); stroke-width: 2; }
.map-figures { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1.5rem; border-top: 1px solid var(--line); }
.map-figures .figure { padding-block: 1.2rem; }
.map-figures .figure:nth-child(4) { border-right: 0; }
@media (max-width: 560px) { .map-figures { grid-template-columns: repeat(2, 1fr); } .map-figures .figure:nth-child(2) { border-right: 0; } .map-figures .figure:nth-child(3) { border-right: 1px solid var(--line); } }

.map-wrap { position: relative; }
.worldmap { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.map-wrap.is-zoomed .worldmap { cursor: grab; }
.worldmap .site circle { r: calc(4.5px * var(--upx, 1)); stroke-width: calc(1.3px * var(--upx, 1)); }
.map-wrap.is-zoomed .worldmap .site circle { r: calc(5.5px * var(--upx, 1)); }
.worldmap .site circle:hover { r: calc(7.5px * var(--upx, 1)); }
.worldmap .home circle { r: calc(6.5px * var(--upx, 1)); stroke-width: calc(1.8px * var(--upx, 1)); }
.worldmap .land path { stroke-width: calc(.6px * var(--upx, 1)); }
.map-ctl { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }
.map-views, .map-zoom { display: flex; gap: .3rem; }
.map-ctl button { font: inherit; font-size: .8rem; padding: .3rem .65rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink-2); cursor: pointer; min-width: 2.1rem; }
.map-ctl button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.map-ctl button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.worldmap circle { cursor: pointer; outline: none; }
.worldmap circle:focus-visible { stroke: var(--accent); stroke-width: 3; }
.map-tip { position: absolute; transform: translate(-50%, -100%); background: var(--teal); color: var(--bg); font-size: .82rem; line-height: 1.3; padding: .4rem .65rem; border-radius: var(--radius); white-space: nowrap; pointer-events: none; box-shadow: var(--shadow); z-index: 2; }
.map-tip::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--teal); }

/* ---- price band ---- */
.price { background: var(--surface); padding-block: clamp(1.75rem, 4vw, 2.5rem); }
.price-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1.25rem, 4vw, 3rem); align-items: center; }
@media (max-width: 820px) { .price-row { grid-template-columns: 1fr; } }
.price .eyebrow { margin-bottom: .4rem; }
.price-val { font-size: 1.15rem; color: var(--ink-2); }
.price-val strong { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.9rem; color: var(--heading); font-weight: 500; margin: 0 .25rem; }
.price-note { color: var(--ink-2); font-size: .95rem; max-width: 60ch; }

/* Accessories price list */
.acc-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.acc-price { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--heading); }
.product-art:has(img.line-art), .product-art:has(img.part-photo) { position: relative; }
.product-art img.line-art { position: absolute; inset: 1.25rem; width: calc(100% - 2.5rem); height: calc(100% - 2.5rem); filter: var(--drawing-filter, none); }
.part-price { margin-top: .35rem; font-size: .95rem; }
.part-price strong { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.5rem; font-weight: 500; color: var(--heading); }
.product-art img.part-photo { position: absolute; inset: 1.25rem; width: calc(100% - 2.5rem); height: calc(100% - 2.5rem); opacity: 1; }
/* Accessories: photos of dark parts need a light backdrop, so every picture panel on this page
   stays light in dark mode too (line drawings un-inverted), keeping the cards consistent */
#parts .product-art { --plate: #EAF1F3; background: var(--plate); }
#parts .product-art img.line-art { opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #parts .product-art { --plate: #D3DEE2; border-bottom-color: transparent; }
  :root:not([data-theme="light"]) #parts .product-art img.line-art { filter: none; }
  :root:not([data-theme="light"]) #parts .product-art .ph { color: #4A6670; border-color: #9FB4BB; } }
:root[data-theme="dark"] #parts .product-art { --plate: #D3DEE2; border-bottom-color: transparent; }
:root[data-theme="dark"] #parts .product-art img.line-art { filter: none; }
:root[data-theme="dark"] #parts .product-art .ph { color: #4A6670; border-color: #9FB4BB; }
