/* ============================================================================
   Petrion Labs — design system
   ----------------------------------------------------------------------------
   Source of truth: "Petrion Labs — Master Colour Palette".
   Slate is the brand. Amber is the verb.

   THE AMBER BUDGET IS A HARD RULE, NOT A SUGGESTION:
     · One amber element per screen. A second one breaks the first.
     · Amber is always a FILL with dark text on it — never coloured text
       on a light ground. Need amber text? --action-text handles it.
     · No amber warning states. Warning is burnt orange (--warning).
     · No second accent. Ever.
     · Every grey comes from the slate ramp. No #888, no pure #000.

   Semantic tokens follow the shadcn/ui naming convention so the classes here
   map 1:1 onto a future React + shadcn build with no re-theming.
   ========================================================================== */

/* ---------------------------------------------------------------- ramp ---- */
:root {
  --slate-950: #0D1214;
  --slate-900: #13191B;
  --slate-800: #1E272A;
  --slate-700: #283539;
  --slate-600: #35454A;
  --slate-500: #4A6168;
  --slate-400: #66868F;
  --slate-300: #8EA7AF;
  --slate-200: #C9D7DB;
  --slate-100: #E6EDEF;
  --slate-50:  #F5F8F9;

  --amber-700: #6B3F00;
  --amber-600: #9A5B00;
  --amber-500: #C77F00;
  --amber-400: #F5A302;
  --amber-300: #FFBB3D;
  --amber-100: #FFE7BE;
  --amber-50:  #FFF7EA;

  /* type */
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;

  /* geometry */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-sm: 6px;
  --measure: 38rem;
  --wide: 74rem;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------- semantic · light */
:root,
.theme-light {
  --background:            #FFFFFF;
  --background-subtle:     var(--slate-100);
  --background-faint:      var(--slate-50);
  --card:                  #FFFFFF;
  --foreground:            var(--slate-600);
  --foreground-strong:     var(--slate-950);
  --muted-foreground:      var(--slate-500);
  --border:                var(--slate-200);
  --border-soft:           #EAF0F2;
  --ring:                  var(--amber-400);

  --action:                var(--amber-400);
  --action-hover:          var(--amber-500);
  --on-action:             var(--slate-950);
  --action-text:           var(--amber-600);

  --secondary:             var(--slate-600);
  --on-secondary:          #FFFFFF;

  --success:  #1F7A5C;
  --warning:  #C2410C;
  --critical: #B3261E;

  --shadow:    0 1px 2px rgba(13,18,20,.06), 0 8px 24px rgba(13,18,20,.05);
  --shadow-lg: 0 2px 4px rgba(13,18,20,.05), 0 18px 48px rgba(13,18,20,.08);
  color-scheme: light;
}

/* ---------------------------------------------------------- semantic · dark */
/* The dark ground belongs to Petrion Dashboard, not to this marketing site, so
   it is only ever opted into by a .theme-dark band — never applied page-wide
   and never inherited from the visitor's OS setting. */
.theme-dark {
  --background:            var(--slate-950);
  --background-subtle:     var(--slate-900);
  --background-faint:      var(--slate-900);
  --card:                  var(--slate-900);
  --foreground:            var(--slate-200);
  --foreground-strong:     var(--slate-50);
  --muted-foreground:      var(--slate-400);
  --border:                var(--slate-700);
  --border-soft:           #1A2427;
  --ring:                  var(--amber-300);

  --action:                var(--amber-400);
  --action-hover:          var(--amber-300);
  --on-action:             var(--slate-950);
  --action-text:           var(--amber-300);

  --secondary:             var(--slate-200);
  --on-secondary:          var(--slate-950);

  --success:  #4FBF98;
  --warning:  #F08B4E;
  --critical: #F2837B;

  --shadow:    0 1px 2px rgba(0,0,0,.5), 0 8px 28px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.55), 0 22px 56px rgba(0,0,0,.45);
  color-scheme: dark;
}

/* A .theme-dark or .theme-light band declares its tokens on itself, so it wins
   over whatever the page ground inherited — a light product card stays light
   on a dark machine, and vice versa. */
.theme-dark { background: var(--background); color: var(--foreground); }
.theme-light { background: var(--background); color: var(--foreground); }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--amber-100); color: var(--slate-950); }
.theme-dark ::selection { background: var(--amber-400); color: var(--slate-950); }

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

.skip-link {
  position: absolute; left: 1rem; top: -100%; z-index: 200;
  background: var(--action); color: var(--on-action);
  padding: .7rem 1.1rem; border-radius: var(--radius); font-weight: 700;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ================================================================== type === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--foreground-strong);
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.035em;
}

h2, .h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
}

h3, .h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.012em;
}

h4, .h4 {
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.005em;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0;
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--foreground);
}

.fine  { font-size: .875rem; line-height: 1.6; color: var(--muted-foreground); }
.muted { color: var(--muted-foreground); }
.strong-ink { color: var(--foreground-strong); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Amber as ink — the ONLY legal way to write in amber. */
.term { color: var(--action-text); font-weight: 700; }

/* =============================================================== layout === */
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }
.measure-wide { max-width: 52rem; }

.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section + .section { border-top: 1px solid var(--border-soft); }

.stack   { display: flex; flex-direction: column; gap: 1.25rem; }
.stack-s { display: flex; flex-direction: column; gap: .5rem; }
.stack-m { display: flex; flex-direction: column; gap: 2rem; }
.stack-l { display: flex; flex-direction: column; gap: 3.25rem; }

.sec-head { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 2.75rem; }

.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); }

/* the brand rule, rendered: 60 ground / 30 slate / 10 amber */
.brand-rule { display: flex; height: 5px; width: 100%; overflow: hidden; border-radius: 3px; }
.brand-rule > i { display: block; height: 100%; }

/* ============================================================== buttons === */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--foreground-strong);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .9375rem; font-weight: 700; letter-spacing: -.005em;
  padding: .78rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .16s var(--ease), border-color .16s var(--ease),
              transform .16s var(--ease), color .16s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* The one amber element. Use once per screen. */
.btn-primary { --btn-bg: var(--action); --btn-fg: var(--on-action); --btn-bd: var(--action); }
.btn-primary:hover { --btn-bg: var(--action-hover); --btn-bd: var(--action-hover); }

.btn-secondary { --btn-bg: var(--secondary); --btn-fg: var(--on-secondary); --btn-bd: var(--secondary); }
.btn-secondary:hover { --btn-bg: var(--slate-700); --btn-bd: var(--slate-700); }
.theme-dark .btn-secondary:hover { --btn-bg: var(--slate-50); --btn-bd: var(--slate-50); }

.btn-outline { --btn-bd: var(--border); --btn-fg: var(--foreground-strong); }
.btn-outline:hover { --btn-bg: var(--background-subtle); --btn-bd: var(--muted-foreground); }

.btn-ghost { --btn-fg: var(--foreground-strong); }
.btn-ghost:hover { --btn-bg: var(--background-subtle); }

.btn-sm { padding: .5rem .9rem; font-size: .8125rem; border-radius: var(--radius-sm); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }

.btn-arrow::after {
  content: "→";
  transition: transform .18s var(--ease);
  font-weight: 500;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* a text link that behaves like a call to action without spending amber */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .9375rem;
  color: var(--foreground-strong);
  border-bottom: 1px solid var(--border);
  padding-bottom: .12rem;
  transition: border-color .16s var(--ease), gap .16s var(--ease);
}
.link-arrow::after { content: "→"; font-weight: 500; }
.link-arrow:hover { border-color: var(--foreground-strong); gap: .6rem; }

/* ================================================================ cards === */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: .85rem;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--muted-foreground); }
.card-flush { padding: 0; overflow: hidden; }
.card-quiet { background: var(--background-faint); border-color: var(--border-soft); }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  background: var(--background-faint);
  white-space: nowrap;
}
.badge-live { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); background: color-mix(in srgb, var(--success) 10%, transparent); }
.badge-soon { color: var(--muted-foreground); }

.separator { height: 1px; background: var(--border-soft); border: 0; margin: 0; }

/* ================================================================== nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--border-soft); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
}

.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); }
/* The amber mark. This is the wordmark's one amber element — a page that
   uses .btn-primary in the hero has already spent its budget on the nav CTA. */
.wordmark i { width: 9px; height: 9px; background: var(--action); border-radius: 2px; flex: none; }
.wordmark span { font-weight: 800; letter-spacing: -.02em; font-size: 1.0625rem; color: var(--foreground-strong); }
.wordmark small { font-weight: 600; color: var(--muted-foreground); font-size: 1.0625rem; letter-spacing: -.02em; }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-link {
  font-size: .9375rem; font-weight: 500;
  padding: .5rem .75rem; border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav-link:hover { color: var(--foreground-strong); background: var(--background-subtle); }
.nav-link[aria-current="page"] { color: var(--foreground-strong); font-weight: 700; }

.nav-tools { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent; cursor: pointer;
  color: var(--muted-foreground);
  transition: color .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease);
}
.icon-btn:hover { color: var(--foreground-strong); background: var(--background-subtle); border-color: var(--border); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; }

/* SV / EN switch */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font-size: .6875rem; font-weight: 700; letter-spacing: .07em;
  padding: .42rem .55rem;
  color: var(--muted-foreground);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.lang-switch button[aria-pressed="true"] { color: var(--foreground-strong); background: var(--background-subtle); }
.lang-switch button:hover { color: var(--foreground-strong); }

.nav-toggle { display: none; }

/* Touch targets: the SV/EN pair is the smallest control on the page, so it
   grows on small screens rather than staying a 30px thumb trap. */
@media (max-width: 880px) {
  .lang-switch button { padding: .7rem .7rem; font-size: .75rem; }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border-soft);
  background: var(--background);
  padding: .75rem var(--gutter) 1.5rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu .nav-link { display: block; padding: .8rem .25rem; font-size: 1.0625rem; border-radius: 0; }
.mobile-menu .nav-link + .nav-link { border-top: 1px solid var(--border-soft); }
.mobile-menu .btn { width: 100%; margin-top: 1rem; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-tools .btn { display: none; }
}

/* ================================================================= hero === */
.hero { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; align-items: start; } }

/* =============================================================== stats  === */
/* Four numbers, each proving a different thing — scale, speed,
   defensibility, longevity. Four numbers proving the same thing is one
   number repeated. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.stat {
  padding: 1.6rem 1.5rem;
  border-left: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: .3rem;
}
.stat:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 760px) {
  .stat { border-left: 0; border-top: 1px solid var(--border-soft); padding-inline: 0; }
  .stat:first-child { border-top: 0; padding-top: 0; }
}
.stat b {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800;
  line-height: 1; letter-spacing: -.04em;
  color: var(--foreground-strong);
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: .875rem; line-height: 1.45; color: var(--muted-foreground); }

/* ============================================================ prod cards == */
.product-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; }
.product-head { padding: 1.9rem 1.9rem 0; display: flex; flex-direction: column; gap: 1rem; }
.product-body { padding: 1.4rem 1.9rem 1.9rem; display: flex; flex-direction: column; gap: 1.1rem; flex: 1; }
.product-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.product-list li { display: flex; gap: .6rem; font-size: .9375rem; line-height: 1.5; color: var(--foreground); }
.product-list li::before { content: "—"; color: var(--muted-foreground); flex: none; }

/* a small, honest UI vignette instead of a stock illustration */
.vignette {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .8rem;
  background: var(--background-faint);
}
.vignette-bar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; }
.vignette-bar > i { display: block; }
.kpi-row { display: flex; gap: 1.6rem; }
.kpi { display: flex; flex-direction: column; gap: .12rem; }
.kpi b { font-family: var(--font-mono); font-size: 1.45rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--foreground-strong); }
.kpi span { font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); }
.kpi.is-flagged b { color: var(--action-text); }

/* ============================================================== process == */
.step {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.5rem;
  padding-block: 2rem;
  border-top: 1px solid var(--border-soft);
}
.step:last-child { border-bottom: 1px solid var(--border-soft); }
.step-n {
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 600;
  color: var(--muted-foreground); padding-top: .35rem;
  font-variant-numeric: tabular-nums;
}
.step-body { display: flex; flex-direction: column; gap: .6rem; max-width: 44rem; }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: .5rem; } }

/* ================================================================ rules == */
.rule-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.rule-list li { display: flex; gap: .7rem; font-size: .9375rem; line-height: 1.55; }
.mark { font-weight: 800; flex: none; width: 1rem; line-height: 1.5; }
.mark.yes { color: var(--success); }
.mark.no  { color: var(--critical); }

/* =============================================================== forms === */
.field { display: flex; flex-direction: column; gap: .45rem; }
.label { font-size: .8125rem; font-weight: 700; color: var(--foreground-strong); letter-spacing: -.005em; }
.input, .textarea, .select {
  width: 100%;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .7rem .85rem;
  font-size: .9375rem;
  color: var(--foreground-strong);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-foreground); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 22%, transparent);
}
.textarea { min-height: 8.5rem; resize: vertical; }
.field-error { font-size: .8125rem; color: var(--critical); font-weight: 600; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--critical); }

.form-note {
  border: 1px solid var(--border); border-left: 3px solid var(--action);
  border-radius: var(--radius); padding: .9rem 1.1rem;
  background: var(--background-faint);
}

/* ============================================================ accordion == */
.accordion { border-top: 1px solid var(--border-soft); }
.accordion-item { border-bottom: 1px solid var(--border-soft); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: transparent; border: 0; cursor: pointer;
  padding: 1.15rem 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem;
  color: var(--foreground-strong); text-align: left;
}
.accordion-trigger::after {
  content: "+"; font-family: var(--font-mono); font-size: 1.15rem; font-weight: 400;
  color: var(--muted-foreground); flex: none;
  transition: transform .2s var(--ease);
}
.accordion-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion-panel { display: none; padding-bottom: 1.3rem; max-width: 46rem; }
.accordion-panel.is-open { display: block; }

/* ================================================================= roles == */
.role {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border-soft);
}
.role:last-child { border-bottom: 1px solid var(--border-soft); }
.role-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .8125rem; color: var(--muted-foreground); }
@media (max-width: 620px) { .role { grid-template-columns: 1fr; } }

/* =============================================================== footer == */
.site-footer { border-top: 1px solid var(--border-soft); padding-block: 3.5rem 2.5rem; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .9fr));
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col { display: flex; flex-direction: column; gap: .7rem; }
.footer-col h4 { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-foreground); font-family: var(--font-body); font-weight: 600; }
.footer-link { font-size: .9375rem; color: var(--muted-foreground); transition: color .15s var(--ease); width: fit-content; }
.footer-link:hover { color: var(--foreground-strong); }
.footer-base {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border-soft);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
}

/* ================================================================ media == */
/* A photograph is the one element that arrives carrying colours the palette
   never approved. Rather than ban photography, every .shot is desaturated
   toward the slate hue and sat behind a faint slate wash, so a stock image of
   a yellow hi-vis vest cannot read as a second accent competing with amber.
   The treatment is deliberately light — enough to belong, not so much that it
   looks like a filter. */
.shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--background-subtle);
  aspect-ratio: 16 / 9;
}
.shot img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.03);
  transition: transform .6s var(--ease), filter .6s var(--ease);
}
/* The wash is a slate veil, not a black one — a neutral overlay would drag the
   image off the 194° hue the whole system is built on. */
.shot::after {
  content: "";
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--slate-600) 12%, transparent);
  pointer-events: none;
}
.shot-4-3  { aspect-ratio: 4 / 3; }
.shot-1-1  { aspect-ratio: 1 / 1; }
.shot-tall { aspect-ratio: 3 / 4; }
.shot-flat { aspect-ratio: 21 / 9; }

/* Deeper veil for photography used as a ground with text over it. */
.shot-sunk::after { background: color-mix(in srgb, var(--slate-950) 58%, transparent); }
.shot-sunk img    { filter: saturate(.6) contrast(1.05); }

/* Hover lift, only where the shot is part of a link or card. */
.shot-live:hover img { transform: scale(1.03); filter: saturate(.9) contrast(1.03); }

/* figure + caption. The caption is the only place a photo may carry words. */
.figure { display: flex; flex-direction: column; gap: .7rem; margin: 0; }
.figure figcaption {
  font-size: .8125rem; line-height: 1.55; color: var(--muted-foreground);
  display: flex; gap: .55rem;
}
.figure figcaption::before {
  content: ""; flex: none; width: 2px; align-self: stretch;
  background: var(--border); border-radius: 2px;
}

/* Text one side, picture the other. Collapses to stacked on narrow screens,
   and .media-flip puts the picture first on wide screens only — on mobile the
   words always lead, because a photo with no context is a slow scroll. */
.media-split {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 52rem) {
  .media-split { grid-template-columns: 1fr 1fr; }
  .media-split.media-flip > :first-child { order: 2; }
}

/* A full-width photographic band used as a section ground. */
.band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  isolation: isolate;
}
.band > img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.55) contrast(1.05);
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--slate-950) 88%, transparent) 0%,
    color-mix(in srgb, var(--slate-950) 72%, transparent) 55%,
    color-mix(in srgb, var(--slate-900) 58%, transparent) 100%);
}
.band-body { padding: clamp(2.25rem, 6vw, 4.5rem); }

/* Product mockups are inline SVG, not photographs: they are drawn from the
   token file, so they re-colour with the theme and stay sharp at any size.
   Never wrap one in .shot — the desaturation above would fight the palette. */
.mock { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.mock-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
}

/* Small inline pictogram beside a heading or list item. */
.glyph { flex: none; width: 1.15rem; height: 1.15rem; color: var(--muted-foreground); }

/* =============================================================== motion == */
/* Measured as the dominant motion on this page kind: scroll-reveal, 475 of
   618 homepages in the reference library. Restrained, one direction, short. */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.js .reveal-d1.is-in { transition-delay: .07s; }
.js .reveal-d2.is-in { transition-delay: .14s; }
.js .reveal-d3.is-in { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .card-hover:hover { transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ================================================================ print == */
@media print {
  .site-header, .site-footer, .btn, .lang-switch { display: none !important; }
  body { background: #fff; color: #000; }
}
