/* ==========================================================================
   MSWtech — Site stylesheet (components & layout)
   --------------------------------------------------------------------------
   All values come from tokens.css. Do not hard-code colours or fonts here.
   Sections (search for "== "):
     == 1  Base & browser surfaces
     == 2  Layout primitives (container, section, grid)
     == 3  Typography helpers
     == 4  Buttons & links
     == 5  Header, navigation, language switch
     == 6  Hero (home) & page hero (subpages)
     == 7  Figures, callouts (patent-drawing signature)
     == 8  Content blocks: split, tiles, projects, stations, rows, facts
     == 9  Network / logos
     == 10 Activities (news cards, archive, filters)
     == 11 CTA, contact, forms
     == 12 Prose (legal & long text), tables, breadcrumbs
     == 13 Footer
     == 14 Motion (reveal, reduced motion)
     == 15 Utilities
   ========================================================================== */

/* == 1  Base & browser surfaces ========================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scrollbar-color: var(--ink) var(--paper-2);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, picture { display: block; max-width: 100%; }
[class*="__media"] > picture { width: 100%; height: 100%; }
img { height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--ink-700); text-decoration-thickness: 2px; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-ink :focus-visible { outline-color: var(--copper-light); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper-2); border-radius: 8px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--ink-800); text-wrap: balance; }
h1, h2 { font-family: var(--font-display); letter-spacing: var(--tracking-display); line-height: var(--lh-heading); }
h3, h4 { font-family: var(--font-sans); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
abbr[title] { text-decoration: underline dotted; }
address { font-style: normal; }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: var(--z-skip);
  background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-s); font-weight: 600; text-decoration: none;
}
.skip-link:focus, .skip-link:hover { top: var(--s-3); color: var(--paper); }

.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;
}

/* == 2  Layout primitives ================================================ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--paper2 { background: var(--paper-2); }
.section--sheet { background: var(--sheet); }
.section--rule { border-top: 1px solid var(--line); }

/* Blueprint: the same drawing world reproduced on deep ink */
.section--ink, .on-ink {
  background-color: var(--ink-800);
  color: var(--text-on-ink);
  --line: var(--line-on-ink);
}
.section--ink { background-image: radial-gradient(120% 80% at 85% 0%, rgb(34 96 156 / 0.55), transparent 60%); }
.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4 { color: #fff; }
.on-ink p, .on-ink li { color: var(--text-on-ink-muted); }
.on-ink a:not(.btn) { color: #fff; }

.section-head { display: grid; gap: var(--s-5); margin-bottom: var(--s-8); max-width: 62rem; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { font-size: var(--fs-lead); color: var(--text-muted); max-width: var(--measure); margin: 0; }
.on-ink .section-head p { color: var(--text-on-ink-muted); }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; column-gap: var(--s-8); }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* == 3  Typography helpers =============================================== */
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); max-width: var(--measure); }
.on-ink .lead { color: var(--text-on-ink-muted); }
.label {
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink);
}
.on-ink .label { color: var(--ink-200); }
.numeral { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: var(--tracking-display); }
.text-muted { color: var(--text-muted); }
.measure { max-width: var(--measure); }

/* == 4  Buttons & links ================================================== */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-border: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.8em 1.35em;
  font: 600 1rem/1.2 var(--font-sans); letter-spacing: 0.005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-border); border-radius: var(--radius-pill);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.btn svg, .link-arrow svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform var(--dur-base) var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn:hover { color: var(--btn-fg); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { --btn-bg: var(--ink-700); box-shadow: var(--shadow-2); }
  .btn:hover svg { transform: translateX(3px); }
  .btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; }
  .on-ink .btn--light:hover { --btn-bg: var(--ink-100); }
  .on-ink .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink-800); }
}
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-strong); }
.on-ink .btn--light { --btn-bg: #fff; --btn-fg: var(--ink-800); --btn-border: #fff; }
.on-ink .btn--ghost { --btn-fg: #fff; --btn-border: rgb(255 255 255 / 0.5); }
.btn--small { min-height: 40px; padding: 0.55em 1.05em; font-size: 0.9375rem; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.5; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600;
  text-decoration: none; color: var(--ink);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(3px); } }

/* == 5  Header, navigation, language switch ============================= */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgb(247 245 239 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(11 36 64 / 0.4); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { width: 132px; height: auto; }
.brand:hover { text-decoration: none; }

.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-5); }
.nav__list { list-style: none; display: flex; align-items: center; gap: var(--s-1); }
.nav__item { position: relative; }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.6em 0.8em; border-radius: var(--radius-s);
  font: 500 0.975rem/1.2 var(--font-sans); color: var(--text);
  text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.nav__trigger svg { width: 0.75em; height: 0.75em; transition: transform var(--dur-fast) var(--ease-out); }
.nav__link:hover, .nav__trigger:hover { color: var(--ink); background: var(--ink-50); text-decoration: none; }
.nav__link[aria-current="page"], .nav__item.is-current > .nav__trigger { color: var(--ink); box-shadow: inset 0 -2px 0 var(--copper); border-radius: 0; }

/* Dropdown — opens on hover (pointer), focus-within (keyboard, no JS) and via button (JS) */
.dropdown {
  position: absolute; top: calc(100% + 6px); left: -0.5rem; min-width: 290px;
  list-style: none; padding: var(--s-2);
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(0.98); transform-origin: top left;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
}
.dropdown::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; } /* hover bridge */
.dropdown a {
  display: grid; gap: 2px; padding: 0.7em 0.85em; border-radius: var(--radius-s);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.dropdown a span { font-weight: 400; font-size: 0.85rem; color: var(--text-muted); }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--ink-50); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .nav__item:hover > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__item:hover > .nav__trigger svg { transform: rotate(180deg); }
}
.nav__item:focus-within > .dropdown,
.nav__item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__item.is-open > .nav__trigger svg { transform: rotate(180deg); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  font: 500 0.8125rem/1 var(--font-mono); letter-spacing: 0.06em;
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px;
}
.lang-switch a, .lang-switch span {
  display: inline-grid; place-items: center; min-width: 36px; min-height: 30px; padding: 0 0.5em;
  border-radius: var(--radius-pill); text-decoration: none; color: var(--text-muted);
}
.lang-switch a:hover { color: var(--ink); background: var(--ink-50); }
.lang-switch [aria-current="true"] { background: var(--ink); color: #fff; }
.on-ink .lang-switch { border-color: var(--line-on-ink); }
.on-ink .lang-switch a { color: var(--text-on-ink-muted); }
.on-ink .lang-switch a:hover { background: rgb(255 255 255 / 0.08); color: #fff; }
.on-ink .lang-switch [aria-current="true"] { background: #fff; color: var(--ink-800); }

.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 0.5em;
  min-height: 44px; padding: 0 0.9em; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font: 600 0.95rem/1 var(--font-sans); cursor: pointer;
}
.nav-toggle__bars { width: 18px; height: 12px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) ease;
}
.nav-toggle__bars::before { top: 0; } .nav-toggle__bars span { top: 5px; } .nav-toggle__bars::after { bottom: 0; }
.nav-open .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-open .nav-toggle__bars span { opacity: 0; }

@media (max-width: 1120px) {
  /* backdrop-filter would turn the header into the containing block of the fixed menu */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .js .nav-toggle { display: inline-flex; }
  .site-header__inner { flex-wrap: wrap; }
  /* Without JS the navigation simply wraps below the logo and stays usable */
  .nav { width: 100%; margin-left: 0; flex-wrap: wrap; padding-bottom: var(--s-3); }
  .nav__list { flex-wrap: wrap; }
  .js .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-nav);
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: var(--s-5);
    padding: var(--s-5) var(--gutter) var(--s-8); overflow-y: auto;
    background: var(--paper); border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-drawer), visibility 0s linear var(--dur-base);
  }
  .js.nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js.nav-open { overflow: hidden; }
  .js .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav__item { border-bottom: 1px solid var(--line); }
  .js .nav__link, .js .nav__trigger { width: 100%; justify-content: space-between; padding: 1em 0.25em; font-size: 1.15rem; }
  .js .dropdown {
    position: static; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 var(--s-3) var(--s-3);
    display: none; opacity: 1; visibility: visible; transform: none;
  }
  .js .nav__item.is-open > .dropdown { display: block; }
  .js .nav__item:focus-within:not(.is-open) > .dropdown { display: none; }
  .js .nav .btn { width: 100%; }
}

/* == 6  Hero (home) & page hero ========================================= */
.hero { position: relative; padding-block: clamp(2.5rem, 1rem + 5vw, 5.5rem) var(--section-y); overflow: clip; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center;
}
.hero__title { font-size: var(--fs-hero); line-height: var(--lh-tight); font-weight: 500; color: var(--ink-800); }
.hero__title em { /* underline drawn like a dimension line; wraps across lines */
  font-style: normal; color: var(--ink);
  background: linear-gradient(var(--copper), var(--copper)) no-repeat 0 94% / 100% 0.07em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__lead { margin-top: var(--s-6); font-size: var(--fs-lead); color: var(--text-muted); max-width: 36rem; }
.hero .actions { margin-top: var(--s-6); }
.hero__meta {
  margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6);
  list-style: none; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-muted);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 0.6em; }
.hero__meta li::before { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--copper); border-radius: 50%; }
.hero__art { position: relative; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 640px; }
}

/* Hatched decorative block (cross-section fill) */
.hatch { position: absolute; background: var(--hatch); pointer-events: none; }
.on-ink .hatch { background: var(--hatch-on-ink); }

.page-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 6rem); position: relative; overflow: clip; border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: end; }
.page-hero--text .page-hero__grid { grid-template-columns: minmax(0, 1fr); max-width: 60rem; }
.page-hero h1 { font-size: var(--fs-h1); line-height: 1.06; font-weight: 400; margin-top: var(--s-5); }
.page-hero .lead { margin-top: var(--s-5); }
.page-hero .actions { margin-top: var(--s-6); }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } }

/* == 7  Figures & callouts (signature) ================================= */
.fig { margin: 0; position: relative; }
.fig__frame {
  position: relative; background: var(--sheet); padding: clamp(8px, 1vw, 14px);
  border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow-2);
}
.fig__frame img, .fig__frame picture { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.fig__media { position: relative; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.fig__media img { width: 100%; height: 100%; object-fit: cover; }
.fig--4x3 .fig__media { aspect-ratio: 4 / 3; }
.fig--3x2 .fig__media { aspect-ratio: 3 / 2; }
.fig--16x9 .fig__media { aspect-ratio: 16 / 9; }
.fig--1x1 .fig__media { aspect-ratio: 1; }
.fig--4x5 .fig__media { aspect-ratio: 4 / 5; }
.fig--contain .fig__media img { object-fit: contain; background: #fff; }
.fig figcaption {
  display: flex; gap: 0.9em; align-items: baseline; margin-top: var(--s-3);
  font-size: 0.875rem; line-height: 1.45; color: var(--text-muted);
}
.fig figcaption b { flex: none; font: 500 var(--fs-label)/1.6 var(--font-mono); letter-spacing: var(--tracking-label); color: var(--ink); text-transform: uppercase; }
.on-ink .fig figcaption { color: var(--text-on-ink-muted); }
.on-ink .fig figcaption b { color: var(--ink-200); }
.on-ink .fig__frame { background: rgb(255 255 255 / 0.04); border-color: var(--line-on-ink); box-shadow: none; }

/* Reference numerals with leader lines.
   The callout element sits ON the target point (--x/--y in % of the image);
   the numeral is offset by --ox/--oy (px); the leader runs from target to numeral. */
.callout { position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 0; height: 0; }
.callout::after { /* target dot */
  content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--copper); box-shadow: 0 0 0 2px var(--sheet);
}
.callout::before { /* leader line */
  content: ""; position: absolute; left: 0; top: -0.75px; height: 1.5px; background: var(--sheet);
  width: var(--len, 0px); transform-origin: 0 50%; transform: rotate(var(--ang, 0deg));
  box-shadow: 0 0 0 0.75px rgb(11 36 64 / 0.55);
}
.callout__n {
  position: absolute; left: var(--ox, 0px); top: var(--oy, 0px); width: 30px; height: 30px; margin: -15px 0 0 -15px;
  display: grid; place-items: center; font: 500 0.8rem/1 var(--font-mono); color: var(--ink-800);
  background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 50%;
  box-shadow: 0 2px 8px rgb(11 36 64 / 0.3);
}
.legend { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-4); font-size: 0.9rem; color: var(--text-muted); }
.legend li { display: grid; grid-template-columns: 2.2rem 1fr; align-items: baseline; }
.legend li b { font: 500 0.8rem/1 var(--font-mono); color: var(--copper); }
.on-ink .legend li b { color: var(--copper-light); }

/* Hero art: photo + line drawing overlay */
.hero-figure { position: relative; }
.hero-figure .fig__media { aspect-ratio: 3 / 4; }
.hero-figure { max-width: 520px; margin-left: auto; }
.hero-figure__drawing {
  position: absolute; right: -6%; bottom: -9%; width: 52%; z-index: 3;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 10px; box-shadow: var(--shadow-3);
}
.hero-figure__drawing svg { width: 100%; height: auto; }
.hero-figure .hatch { width: 46%; height: 34%; left: -7%; top: -5%; z-index: -1; border-radius: 2px; }
@media (max-width: 960px) { .hero-figure__drawing { right: -2%; width: 50%; } }
@media (max-width: 520px) { .hero-figure__drawing { position: relative; right: auto; bottom: auto; width: 82%; margin: -18% 0 0 auto; } }

/* Line drawing (authored SVG) */
.drawing { color: var(--ink); }
.drawing .d-line { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.drawing .d-thin { fill: none; stroke: currentColor; stroke-width: 0.8; opacity: 0.7; vector-effect: non-scaling-stroke; }
.drawing .d-fill { fill: currentColor; }
.drawing .d-hatch { fill: url(#hatch); }
.drawing .d-num { font: 500 17px var(--font-mono); fill: var(--ink-800); }
.drawing .d-lead { fill: none; stroke: var(--ink-800); stroke-width: 0.9; vector-effect: non-scaling-stroke; }
.drawing .d-accent { fill: var(--copper); }
.drawing .d-cap { font: 500 12px var(--font-mono); letter-spacing: 0.08em; fill: var(--text-muted); }

/* Icons drawn in the same stroke as the drawings */
.icon { width: 44px; height: 44px; color: var(--ink); flex: none; }
.icon path, .icon circle, .icon rect, .icon line, .icon polyline { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.icon .i-accent { stroke: var(--copper); }
.on-ink .icon { color: var(--ink-200); }
.on-ink .icon .i-accent { stroke: var(--copper-light); }

/* == 8  Content blocks ================================================= */
/* Asymmetric text-image composition */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.split--reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.split--reverse > :first-child { order: 2; }
.split__text h2 { font-size: var(--fs-h2); margin-bottom: var(--s-5); }
.split__text h3 { margin: var(--s-6) 0 var(--s-3); }
.split__media { position: relative; }
.split__media .hatch { width: 40%; height: 45%; right: -5%; bottom: -6%; z-index: -1; }
.split--reverse .split__media .hatch { right: auto; left: -5%; }
@media (max-width: 900px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.fig-stack { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-4); align-items: end; }
.fig-stack > :nth-child(2) { margin-bottom: 18%; }
@media (max-width: 520px) { .fig-stack { grid-template-columns: 1fr; } .fig-stack > :nth-child(2) { margin: 0 0 0 20%; } }

/* Checklist with drawn ticks */
.ticks { list-style: none; display: grid; gap: var(--s-3); margin: var(--s-5) 0; }
.ticks li { position: relative; padding-left: 1.9em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 0.95em; height: 0.95em;
  border: 1.5px solid var(--ink); border-radius: 50%;
  background: radial-gradient(circle, var(--copper) 0 2.5px, transparent 3px);
}
.on-ink .ticks li::before { border-color: var(--ink-200); background: radial-gradient(circle, var(--copper-light) 0 2.5px, transparent 3px); }

/* Technology tiles — bento: one feature tile + smaller ones */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-4); }
.tile {
  grid-column: span 2; position: relative; display: flex; flex-direction: column; gap: var(--s-3);
  padding: clamp(1.4rem, 1rem + 1.2vw, 2.1rem); min-height: 300px;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-m);
  text-decoration: none; color: var(--text);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-fast) ease;
}
.tile h3 { font-size: var(--fs-h3); color: var(--ink-800); margin-top: auto; }
.tile p { color: var(--text-muted); margin: 0; font-size: 0.975rem; }
.tile .link-arrow { margin-top: var(--s-2); }
.tile--feature { grid-column: span 3; grid-row: span 2; background: var(--ink-800); color: var(--text-on-ink); border-color: transparent; overflow: hidden; }
.tile--feature h3 { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2); letter-spacing: var(--tracking-display); line-height: 1.1; }
.tile--feature p { color: var(--text-on-ink-muted); font-size: 1.05rem; max-width: 30rem; }
.tile--feature .link-arrow { color: #fff; }
.tile--feature .tile__art { position: absolute; inset: 0 0 auto auto; width: 70%; opacity: 0.9; color: var(--ink-200); }
.tile--wide { grid-column: span 3; }
a.tile:hover { text-decoration: none; color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  a.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--line-strong); }
  a.tile--feature:hover { color: var(--text-on-ink); }
}
@media (max-width: 1024px) { .tile, .tile--wide { grid-column: span 3; } .tile--feature { grid-column: span 6; grid-row: auto; min-height: 380px; } }
@media (max-width: 640px) { .tile, .tile--wide, .tile--feature { grid-column: span 6; min-height: 0; } .tile--feature { padding-top: 230px; } .tile--feature .tile__art { width: 100%; height: 230px; inset: 0 0 auto 0; } }

/* Projects — large image tiles with category + reveal */
.projects { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
.project { grid-column: span 6; position: relative; display: block; text-decoration: none; color: var(--text); }
.project--lead { grid-column: span 7; grid-row: span 2; }
.project--side { grid-column: span 5; }
.project__media { position: relative; overflow: hidden; border-radius: var(--radius-m); background: var(--paper-3); aspect-ratio: 4 / 3; }
.project--lead .project__media { aspect-ratio: 4 / 4.2; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out), filter var(--dur-base) ease; }
.project__media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgb(11 36 64 / 0) 30%, rgb(11 36 64 / 0.55) 58%, rgb(11 36 64 / 0.92));
  opacity: 0.9; transition: opacity var(--dur-base) ease;
}
.project__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1.1rem, 0.8rem + 1.2vw, 2rem); color: #fff; text-shadow: 0 1px 12px rgb(11 36 64 / 0.45); }
.project__body .label { color: var(--ink-100); }
.project__body h3 { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); letter-spacing: var(--tracking-display); line-height: 1.08; margin-top: var(--s-2); }
.project__body p { margin: var(--s-3) 0 0; color: rgb(243 246 250 / 0.88); max-width: 32rem; font-size: 0.975rem; }
.project__go {
  position: absolute; top: clamp(0.9rem, 0.6rem + 1vw, 1.5rem); right: clamp(0.9rem, 0.6rem + 1vw, 1.5rem); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-2);
  transform: scale(0.9) rotate(-45deg); opacity: 0; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) ease;
}
.project__go svg { width: 18px; height: 18px; }
.project:focus-visible .project__go { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .project:hover .project__media img { transform: scale(1.045); }
  .project:hover .project__media::after { opacity: 1; }
  .project:hover .project__go { opacity: 1; transform: none; }
}
@media (hover: none) { .project__go { opacity: 1; transform: none; } }
@media (max-width: 900px) { .project, .project--lead, .project--side { grid-column: span 12; grid-row: auto; } .project--lead .project__media { aspect-ratio: 4 / 3.4; } }

/* Process stations — a printed trace connecting pads (services flow) */
.stations { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; counter-reset: st; }
.stations::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 20px); opacity: 0.55; }
.station { position: relative; padding-right: var(--s-4); }
.station__pad {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--ink);
}
.station__pad::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.station:last-child .station__pad::after { background: var(--copper); }
.station h3 { margin-top: var(--s-4); font-size: 1.05rem; color: var(--ink-800); }
.station p { margin: var(--s-2) 0 0; color: var(--text-muted); font-size: 0.925rem; line-height: 1.5; }
.on-ink .station__pad { background: var(--ink-800); border-color: var(--ink-200); }
.on-ink .station__pad::after { background: var(--ink-200); }
.on-ink .stations::before { background: repeating-linear-gradient(90deg, var(--ink-200) 0 14px, transparent 14px 20px); }
@media (max-width: 1024px) {
  .stations { grid-template-columns: 1fr; gap: var(--s-5); }
  .stations::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--ink) 0 14px, transparent 14px 20px); }
  .on-ink .stations::before { background: repeating-linear-gradient(180deg, var(--ink-200) 0 14px, transparent 14px 20px); }
  .station { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--s-4); }
  .station h3 { margin-top: 0.6rem; }
  .station p { grid-column: 2; }
}

/* Service rows — hairline-separated, not cards */
.rows { list-style: none; border-top: 1px solid var(--line-strong); }
.row {
  display: grid; grid-template-columns: 56px minmax(0, 0.9fr) minmax(0, 1.4fr); gap: var(--s-5);
  align-items: start; padding-block: var(--s-6); border-bottom: 1px solid var(--line);
}
.row h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); color: var(--ink-800); letter-spacing: -0.015em; }
.row p { margin: 0; color: var(--text-muted); }
.row ul { margin-top: var(--s-3); }
.on-ink .row h3 { color: #fff; }
@media (max-width: 760px) { .row { grid-template-columns: 44px 1fr; } .row > :last-child { grid-column: 2; } }

/* Facts (Why MSWtech) — definition grid on blueprint */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 52px 1fr; gap: var(--s-5); padding: var(--s-7) var(--s-6) var(--s-7) 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-child(even) { padding-left: var(--s-6); }
.fact h3 { font-size: 1.25rem; margin-bottom: var(--s-3); }
.fact p { margin: 0; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } .fact, .fact:nth-child(even) { padding: var(--s-6) 0; border-right: 0; } }

/* Spec table (project data) */
.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec th, .spec td { text-align: left; padding: 0.75em 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 38%; font: 500 var(--fs-label)/1.8 var(--font-mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink); padding-right: var(--s-4); }
.spec caption { text-align: left; font-weight: 600; margin-bottom: var(--s-2); }

/* Info panel / note */
.note {
  position: relative; padding: var(--s-5) var(--s-6); background: var(--ink-50);
  border: 1px solid var(--line); border-radius: var(--radius-m); font-size: 0.975rem;
}
.note p:last-child { margin: 0; }
.note--hatch { background: var(--sheet); }
.note--hatch::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 18px; background: var(--hatch); border-radius: var(--radius-m) 0 0 var(--radius-m); }
.note--hatch { padding-left: calc(var(--s-6) + 18px); }

/* Chips / tags */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0.25em 0.8em;
  font: 500 0.75rem/1.2 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-pill);
}
.on-ink .chip { background: transparent; color: var(--ink-100); }

/* == 9  Network / logos ================================================ */
.logos { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos a, .logos span {
  display: grid; place-items: center; height: 120px; padding: var(--s-5); background: var(--sheet);
  transition: background-color var(--dur-fast) ease;
}
.logos img { max-height: 66px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.85; transition: filter var(--dur-base) ease, opacity var(--dur-base) ease; }
.logos a:hover img, .logos a:focus-visible img { filter: none; opacity: 1; }
.logos a:hover { background: #fff; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logos a, .logos span { height: 100px; padding: var(--s-4); } }

.partner-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s-4); }
.partner {
  display: grid; grid-template-rows: 90px auto 1fr auto; gap: var(--s-3); padding: var(--s-5);
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-m); height: 100%;
}
.partner__logo { display: grid; place-items: start; align-content: center; }
.partner__logo img { max-height: 64px; width: auto; max-width: 70%; object-fit: contain; }
.partner h3 { font-size: 1.1rem; }
.partner p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* == 10 Activities ===================================================== */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); list-style: none; }
.news-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); }
.news-card__media { overflow: hidden; border-radius: var(--radius-m); aspect-ratio: 3 / 2; background: var(--paper-3); border: 1px solid var(--line); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.news-card__media--logo img { object-fit: contain; padding: 12%; background: #fff; }
.news-card__meta { display: flex; gap: var(--s-3); align-items: center; margin-top: var(--s-4); font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink); }
.news-card__meta span + span::before { content: "/"; margin-right: var(--s-3); color: var(--text-muted); }
.news-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink-800); margin-top: var(--s-2); }
.news-card p { margin: var(--s-3) 0 0; color: var(--text-muted); font-size: 0.95rem; }
a.news-card:hover { text-decoration: none; color: var(--text); }
a.news-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
@media (hover: hover) and (pointer: fine) { a.news-card:hover .news-card__media img { transform: scale(1.04); } }
@media (max-width: 960px) { .news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .news { grid-template-columns: 1fr; } }

/* Archive */
.archive-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.year-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.year-nav ul { list-style: none; display: grid; gap: 2px; margin-top: var(--s-3); }
.year-nav a { display: flex; justify-content: space-between; padding: 0.35em 0.6em; border-radius: var(--radius-s); text-decoration: none; font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-muted); }
.year-nav a:hover { background: var(--ink-50); color: var(--ink); }
.year-nav a small { color: var(--text-muted); }
@media (max-width: 900px) {
  .archive-layout { grid-template-columns: 1fr; }
  .year-nav { position: static; }
  .year-nav ul { display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .year-nav a { border: 1px solid var(--line); }
}

.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-7); }
.filter-btn {
  min-height: 40px; padding: 0.4em 1em; border-radius: var(--radius-pill); cursor: pointer;
  font: 500 0.9rem/1 var(--font-sans); color: var(--ink); background: var(--sheet); border: 1px solid var(--line-strong);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out);
}
.filter-btn:active { transform: scale(0.97); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-status { font-size: 0.9rem; color: var(--text-muted); margin: calc(var(--s-5) * -1) 0 var(--s-6); min-height: 1.5em; }

.year { margin-bottom: var(--s-8); }
.year__title { display: flex; align-items: baseline; gap: var(--s-4); font-size: var(--fs-h2); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line-strong); margin-bottom: var(--s-2); }
.year__title small { font: 500 var(--fs-label) var(--font-mono); letter-spacing: var(--tracking-label); color: var(--text-muted); text-transform: uppercase; }
.entry { display: grid; grid-template-columns: 120px minmax(0, 1fr) 180px; gap: var(--s-5); padding-block: var(--s-6); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1rem); }
.entry[hidden] { display: none; }
.entry__date { font: 500 0.85rem/1.5 var(--font-mono); color: var(--ink); padding-top: 0.25em; }
.entry h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink-800); }
.entry__body { margin-top: var(--s-3); color: var(--text-muted); font-size: 0.975rem; }
.entry__body p:last-child, .entry__body ul:last-child { margin-bottom: 0; }
.entry__body ul { padding-left: 1.2em; margin-bottom: var(--s-3); }
.entry__body li { margin-bottom: 0.25em; }
.entry .chips { margin-top: var(--s-4); }
.entry__media { border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); background: #fff; aspect-ratio: 4 / 3; }
.entry__media img { width: 100%; height: 100%; object-fit: cover; }
.entry__media--logo img { object-fit: contain; padding: 10%; }
.entry:target { background: linear-gradient(90deg, var(--ink-50), transparent); }
@media (max-width: 760px) { .entry { grid-template-columns: 1fr; gap: var(--s-3); } .entry__media { max-width: 260px; order: 3; } }

/* Video: click-to-load (no YouTube request until consent) */
.video-consent { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--ink-900); color: var(--text-on-ink); }
.video-consent img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; filter: saturate(0.6); }
.video-consent::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 50%, rgb(11 36 64 / 0.55), rgb(11 36 64 / 0.2)); }
.video-consent__inner { position: relative; z-index: 2; height: 100%; display: grid; place-content: center; justify-items: center; gap: var(--s-4); padding: var(--s-5); text-align: center; }
.video-consent__inner p { margin: 0; max-width: 36rem; font-size: 0.875rem; color: #e6edf5; }
.video-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-native { width: 100%; border-radius: var(--radius-m); background: #000; }

/* == 11 CTA, contact, forms =========================================== */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-l); padding: clamp(2.5rem, 1.5rem + 5vw, 6rem); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.75rem); line-height: 1.06; font-weight: 400; }
.cta .lead { margin-top: var(--s-5); }
.cta .hatch { width: 24%; height: 34%; right: -2%; bottom: -6%; top: auto; }
.contact-lines { list-style: none; display: grid; gap: var(--s-4); }
.contact-lines li { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-3); align-items: center; }
.contact-lines .icon { width: 28px; height: 28px; }
.contact-lines small { display: block; font: 500 var(--fs-label) var(--font-mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-on-ink-muted); }
.contact-lines a { font-size: 1.15rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { text-decoration: underline; }
@media (max-width: 860px) { .cta__grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--s-2); }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label .req { color: var(--copper); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 0.75em 0.95em; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--sheet); border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  caret-color: var(--copper);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6b7887; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(27 80 131 / 0.18); }
.field [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 3px rgb(179 38 30 / 0.12); }
.field__error { color: #9d1f17; font-size: 0.875rem; min-height: 1.2em; }
.field__hint { color: var(--text-muted); font-size: 0.875rem; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); align-items: start; font-size: 0.925rem; color: var(--text-muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.form-status { padding: var(--s-4) var(--s-5); border-radius: var(--radius-s); background: var(--ink-50); border: 1px solid var(--line); font-size: 0.95rem; }
.form-status:empty { display: none; }

/* == 12 Prose, breadcrumbs ============================================ */
.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); margin: var(--s-8) 0 var(--s-4); }
.prose h3 { font-size: 1.2rem; margin: var(--s-6) 0 var(--s-3); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 var(--s-4); }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { margin: var(--s-6) 0; padding-left: var(--s-5); border-left: 1px solid var(--ink); font-family: var(--font-display); font-size: 1.35rem; line-height: 1.45; color: var(--ink-800); }
.prose .qa dt { font-weight: 600; color: var(--ink-800); margin-top: var(--s-5); }
.prose .qa dd { margin: var(--s-2) 0 0; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4em; font: 500 0.8125rem/1.4 var(--font-mono); color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4em; color: var(--line-strong); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

.toc { list-style: none; display: grid; gap: var(--s-2); font-size: 0.95rem; }

/* == 13 Footer ======================================================== */
.site-footer { background: var(--ink-900); color: var(--text-on-ink-muted); padding-block: var(--s-9) var(--s-6); --line: var(--line-on-ink); }
.site-footer a { color: var(--text-on-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s-7); padding-bottom: var(--s-8); border-bottom: 1px solid var(--line-on-ink); }
.footer__brand img { width: 150px; }
.footer__brand p { margin-top: var(--s-5); max-width: 24rem; font-size: 0.95rem; }
.footer__col h2 { font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-200); margin-bottom: var(--s-4); }
.footer__col ul { list-style: none; display: grid; gap: var(--s-2); font-size: 0.95rem; }
.footer__col address { font-size: 0.95rem; line-height: 1.7; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4); padding-top: var(--s-5); font-size: 0.875rem; }
.footer__bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.social { display: flex; gap: var(--s-2); list-style: none; margin-top: var(--s-5); }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-on-ink); border-radius: 50%; transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.social a:hover { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.4); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* == 14 Motion ======================================================== */
/* Reveal: content is visible by default; the hidden start state only applies
   once JS has confirmed IntersectionObserver support (html.reveal-ready). */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-ready [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
.reveal-ready [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }

/* Hero drawing: traced in once, like a pen on paper (the authored moment) */
.js .drawing--animate .d-line, .js .drawing--animate .d-lead { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: trace 2.2s var(--ease-in-out) forwards; animation-delay: calc(0.25s + var(--i, 0) * 0.12s); }
.js .drawing--animate .d-num, .js .drawing--animate .d-accent, .js .drawing--animate .d-cap { opacity: 0; animation: fade-in 600ms var(--ease-out) forwards; animation-delay: 1.8s; }
.js .hero__title em { background-size: 0% 0.07em; animation: draw-x 1100ms var(--ease-out) 500ms forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes draw-x { to { background-size: 100% 0.07em; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal-ready [data-reveal], .reveal-ready [data-reveal="clip"] { opacity: 1; transform: none; clip-path: none; }
  .js .drawing--animate .d-line, .js .drawing--animate .d-lead { stroke-dashoffset: 0; }
  .js .drawing--animate .d-num, .js .drawing--animate .d-accent, .js .drawing--animate .d-cap { opacity: 1; }
  .js .hero__title em { background-size: 100% 0.07em; }
}

/* == 15 Utilities ===================================================== */
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0 !important; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s-4); }

@media print {
  .site-header, .site-footer, .nav-toggle, .cta, .video-consent { display: none !important; }
  body { background: #fff; }
  a { color: #000; }
}

/* == 16 Late additions (keep grouped by component name) ================ */
/* Figure caption line used outside a <figure> (e.g. hero composition) */
.figline { display: flex; gap: 0.9em; align-items: baseline; margin: var(--s-8) 0 0 auto; max-width: 520px; font-size: 0.875rem; line-height: 1.45; color: var(--text-muted); }
.figline b { flex: none; font: 500 var(--fs-label)/1.6 var(--font-mono); letter-spacing: var(--tracking-label); color: var(--ink); }
@media (max-width: 960px) { .figline { margin-left: 0; } }
@media (max-width: 520px) { .figline { margin-top: var(--s-5); } }

/* Drawings placed on blueprint ground */
.on-ink .drawing, .tile--feature .drawing { color: var(--ink-200); }
.on-ink .drawing .d-num, .tile--feature .drawing .d-num { fill: var(--ink-100); }
.on-ink .drawing .d-lead, .tile--feature .drawing .d-lead { stroke: var(--ink-200); }
.on-ink .drawing .d-accent, .tile--feature .drawing .d-accent { fill: var(--copper-light); }
.tile--feature > *:not(.tile__art) { position: relative; z-index: 1; }
.project--wide { grid-column: span 12; }
.project--wide .project__media { aspect-ratio: 21 / 9; }
@media (max-width: 900px) { .project--wide .project__media { aspect-ratio: 4 / 3; } }
