/* 01-tokens.css */
/* ==========================================================================
   BellTech Interactive V3: design tokens
   Retro-futurist studio system: warm paper, deep navy ink, the logo's
   electric blue as the brand accent, orange reserved for calls to action,
   status LEDs. Change brand values here only.
   Phase 3 brand harmonisation (approved logo): dark surfaces moved from
   near-black to deep navy; --accent/--accent-ink added. See DESIGN_SYSTEM.md.
   ========================================================================== */
:root {
  /* Surfaces */
  --paper: #f3f0e8;
  --paper-2: #e8e3d6;
  --paper-3: #dcd5c4;
  --night: #0b1326;
  --night-2: #121d33;
  --night-3: #1b2945;

  /* Text */
  --ink: #111a2e;            /* 15.2:1 on --paper */
  --ink-2: #27314a;
  --muted: #525b70;          /* 6.0:1 on --paper, 5.3:1 on --paper-2 */
  --on-night: #f3f0e8;
  --on-night-muted: #a7b0c4; /* 8.5:1 on --night */

  /* Brand accent: the approved logo's electric blue */
  --accent: #2a9dff;         /* on navy surfaces: 6.5:1 on --night */
  --accent-ink: #0a5bc4;     /* on cream: text, markers, focus rings; 5.6:1 */
  --focus: var(--accent-ink);

  /* Call-to-action orange (secondary accent) */
  --signal: #ff5c28;         /* decorative / large text / on dark */
  --signal-ink: #b43a0e;     /* signal as body-size text on paper, 5.4:1 */
  --signal-soft: #ffd9c9;

  /* Status LEDs */
  --led-available: #2fcf8a;
  --led-soon: #ffb020;
  --led-dev: #6d8bff;
  --led-proto: #b77cff;
  --led-archived: #8c8e9c;

  /* Lines */
  --line: rgba(17, 26, 46, 0.14);
  --line-strong: rgba(17, 26, 46, 0.32);
  --line-night: rgba(243, 240, 232, 0.14);

  /* Type */
  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --display-stretch: 125%;

  --step--1: clamp(0.84rem, 0.81rem + 0.12vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.1rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.36vw, 1.38rem);
  --step-2: clamp(1.42rem, 1.28rem + 0.66vw, 1.8rem);
  --step-3: clamp(1.75rem, 1.48rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.15rem, 1.7rem + 2.1vw, 3.5rem);
  --step-5: clamp(2.6rem, 1.8rem + 3.8vw, 5.4rem);

  /* Space (4px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --section-y: clamp(4rem, 3rem + 5vw, 8rem);

  /* Layout */
  --container: 1240px;
  --container-narrow: 820px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;

  /* Shape & depth */
  --radius-s: 4px;
  --radius: 8px;
  --radius-l: 14px;
  --shadow-press: 4px 4px 0 var(--ink);
  --shadow-soft: 0 1px 2px rgba(17, 26, 46, 0.06), 0 12px 32px -12px rgba(17, 26, 46, 0.22);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 140ms;
  --t: 220ms;

  color-scheme: light;
}

/* Breakpoints (reference, used literally in media queries):
   sm 480px · md 768px · lg 1024px · xl 1280px */

/* 02-base.css */
/* Base / reset */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1, h2, .display {
  font-stretch: var(--display-stretch);
  font-variation-settings: "wdth" 125;
}

h3 { font-size: var(--step-2); letter-spacing: -0.012em; }
h4 { font-size: var(--step-1); letter-spacing: -0.01em; }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--accent-ink); }

ul, ol { margin: 0; padding: 0; }

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

::selection { background: var(--signal); color: var(--ink); }

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 03-layout.css */
/* ==========================================================================
   Layout primitives, header, footer
   ========================================================================== */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--paper-2 { background: var(--paper-2); }
.section--night {
  background: var(--night);
  color: var(--on-night);
  --muted: var(--on-night-muted);
  --line: var(--line-night);
  --line-strong: rgba(243, 240, 232, 0.3);
  color-scheme: dark;
}
.section--night a:hover { text-decoration-color: var(--accent); }
.section--night, .site-footer, .product-hero, .page-hero--night { --focus: var(--accent); }
.section + .section--rule { border-top: 1px solid var(--line); }

/* Subtle dot-matrix field used behind heroes */
.dotfield {
  background-image: radial-gradient(circle at 1px 1px, rgba(17, 26, 46, 0.13) 1px, transparent 0);
  background-size: 22px 22px;
}
.section--night.dotfield,
.section--night .dotfield {
  background-image: radial-gradient(circle at 1px 1px, rgba(243, 240, 232, 0.08) 1px, transparent 0);
}

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-7);
  align-items: start;
}
.split > * { min-width: 0; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--center { align-items: center; }
  .sticky-col { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}

.stack > * + * { margin-top: var(--s-5); }
.stack-s > * + * { margin-top: var(--s-3); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand__mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand__word { display: grid; line-height: 1; }
.brand__name {
  font-weight: 800;
  font-size: 1.12rem;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.02em;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.site-nav { margin-left: auto; }
.site-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.site-nav__link {
  display: block;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-s);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.site-nav__link:hover { background: var(--paper-2); color: var(--ink); }
.site-nav__link[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent-ink);
  border-radius: 0;
}
.site-header__cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--ink);
  font: 600 0.9rem 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;
  transition: transform var(--t) var(--ease), opacity var(--t-fast);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }

@media (max-width: 1100px) {
  .site-nav__link { padding-inline: var(--s-2); font-size: 0.9rem; }
}
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    margin: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(17, 26, 46, 0.35);
    padding: var(--s-3) var(--gutter) var(--s-5);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link {
    padding: var(--s-4) 0;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .site-nav__link:hover { background: transparent; }
  .site-nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent-ink); padding-left: var(--s-4); }
  .site-nav__cta { display: block; margin-top: var(--s-5); }
}
@media (min-width: 1024px) {
  .site-nav__cta { display: none; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--night);
  color: var(--on-night);
  --muted: var(--on-night-muted);
  --line: var(--line-night);
  padding-block: var(--s-9) var(--s-6);
}
.site-footer .brand { color: var(--on-night); }
.site-footer .brand__mark { border-radius: 22%; box-shadow: 0 0 0 1px rgba(243, 240, 232, 0.28); }
.site-footer__grid {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-6); }
}
.site-footer__blurb { color: var(--muted); max-width: 34ch; margin-top: var(--s-5); }
.site-footer__email {
  display: inline-block;
  margin-top: var(--s-4);
  font-weight: 700;
  color: var(--on-night);
}
.site-footer h2 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-stretch: 100%;
  font-variation-settings: normal;
  margin-bottom: var(--s-4);
}
.site-footer ul { list-style: none; display: grid; gap: var(--s-2); }
.site-footer ul a { text-decoration: none; color: var(--on-night); opacity: 0.9; }
.site-footer ul a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--accent); }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-9);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}

/* 04-components.css */
/* ==========================================================================
   Components
   ========================================================================== */

/* Eyebrow / rail label ---------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-4);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__idx { color: var(--accent-ink); }
.section--night .eyebrow__idx,
.site-footer .eyebrow__idx { color: var(--accent); }
.eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow--plain::after { display: none; }
@media (max-width: 480px) { .eyebrow::after { display: none; } }

/* Section heading --------------------------------------------------------- */
.section-head { max-width: 62ch; margin-bottom: var(--s-7); }
.section-head h2 { font-size: var(--step-4); }
.section-head__lede { margin-top: var(--s-4); font-size: var(--step-1); color: var(--muted); }
.section-head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-5);
}
.section-head--row > div { max-width: 62ch; }

.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 2px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 0.98rem/1.1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast);
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--signal);
  text-decoration: none;
}
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--signal); }
.btn__arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--ink); box-shadow: 4px 4px 0 var(--ink); }

.btn--signal { --btn-bg: var(--signal); --btn-fg: var(--ink); --btn-bd: var(--signal); }
.btn--signal:hover { box-shadow: 4px 4px 0 var(--on-night); }

.section--night .btn,
.site-footer .btn { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.section--night .btn--ghost { --btn-bg: transparent; --btn-fg: var(--on-night); --btn-bd: rgba(243, 240, 232, 0.4); }
.section--night .btn--ghost:hover { --btn-bd: var(--on-night); box-shadow: 4px 4px 0 var(--signal); }
.section--night .btn--signal { --btn-bg: var(--signal); --btn-fg: var(--ink); --btn-bd: var(--signal); }

.btn--sm { min-height: 40px; padding: 0.5rem 0.95rem; font-size: 0.9rem; }
.btn--lg { min-height: 56px; padding: 0.9rem 1.6rem; font-size: 1.05rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--accent-ink);
  padding-bottom: 2px;
}
.text-link:hover .btn__arrow { transform: translateX(3px); }

/* Store buttons ------------------------------------------------------------ */
.store-buttons { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 56px;
  padding: 0.55rem 1.1rem 0.55rem 0.85rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.store-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--signal); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn__label { display: grid; line-height: 1.1; text-align: left; }
.store-btn__small { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.store-btn__name { font-weight: 800; font-size: 1.05rem; }
.section--night .store-btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.store-btn--compact { min-height: 40px; padding: 0.35rem 0.7rem; gap: var(--s-2); }
.store-btn--compact svg { width: 18px; height: 18px; }
.store-btn--compact .store-btn__name { font-size: 0.86rem; }
.store-btn--compact .store-btn__small { display: none; }

/* Status chips ------------------------------------------------------------- */
.chip {
  --led: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.6rem 0.28rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  color: var(--ink);
}
.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--led) 25%, transparent);
}
.chip--coming-soon { --led: var(--led-soon); }
.chip--in-development { --led: var(--led-dev); }
.section--night .chip,
.product-hero .chip,
.site-footer .chip,
.on-media .chip { background: rgba(11, 19, 38, 0.72); color: var(--on-night); border-color: rgba(243, 240, 232, 0.28); }

.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }
.tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Media frame (viewfinder corners) ---------------------------------------- */
.frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night-2);
  isolation: isolate;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--ticks::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  z-index: 2;
  --tick: rgba(243, 240, 232, 0.85);
  background:
    linear-gradient(var(--tick), var(--tick)) top left / 14px 2px,
    linear-gradient(var(--tick), var(--tick)) top left / 2px 14px,
    linear-gradient(var(--tick), var(--tick)) top right / 14px 2px,
    linear-gradient(var(--tick), var(--tick)) top right / 2px 14px,
    linear-gradient(var(--tick), var(--tick)) bottom left / 14px 2px,
    linear-gradient(var(--tick), var(--tick)) bottom left / 2px 14px,
    linear-gradient(var(--tick), var(--tick)) bottom right / 14px 2px,
    linear-gradient(var(--tick), var(--tick)) bottom right / 2px 14px;
  background-repeat: no-repeat;
}
.frame__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
}

/* App icon ------------------------------------------------------------------ */
.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 22%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--night-2);
  box-shadow: 0 0 0 1px var(--line), 0 6px 16px -8px rgba(17, 26, 46, 0.45);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon--lg { width: 112px; height: 112px; }
.app-icon--placeholder {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

/* Capability card ------------------------------------------------------------ */
.cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--paper);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.cap-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.cap-card__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.cap-card__glyph { width: 56px; height: 56px; }
.cap-card h3 { font-size: var(--step-2); font-stretch: 112%; font-variation-settings: "wdth" 112; }
.cap-card p { color: var(--muted); }
.cap-card ul { list-style: none; display: grid; gap: var(--s-2); margin-top: auto; padding-top: var(--s-3); border-top: 1px dashed var(--line-strong); }
.cap-card li { display: flex; gap: var(--s-2); font-size: 0.95rem; }
.cap-card li::before { content: "▸"; color: var(--accent-ink); }
.cap-card__link { margin-top: var(--s-2); }
.cap-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Feature (work) card ---------------------------------------------------------- */
.feature {
  position: relative;
  display: grid;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--night-2);
  color: var(--on-night);
  --muted: var(--on-night-muted);
  border: 1px solid var(--line-night);
}
.feature__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.feature:hover .feature__media img { transform: scale(1.03); }
.feature__media .chip { position: absolute; top: 14px; left: 14px; z-index: 2; }
.feature__body { display: grid; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-6); align-content: start; }
.feature__meta { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; line-height: 1.5; text-transform: uppercase; color: var(--on-night-muted); }
.feature h3 { font-size: var(--step-2); }
.feature p { color: var(--on-night-muted); }
.feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-2); }
.feature__title-link { text-decoration: none; }
.feature__title-link:hover { text-decoration: underline; text-decoration-color: var(--accent); }

.feature--wide { }
@media (min-width: 900px) {
  .feature--wide { grid-template-columns: 1.35fr 1fr; }
  .feature--wide .feature__media { aspect-ratio: auto; min-height: 100%; }
  .feature--wide .feature__body { padding: var(--s-7) var(--s-6); align-content: center; }
  .feature--wide h3 { font-size: var(--step-3); }
}

/* Product card (catalog) --------------------------------------------------------- */
.product-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--paper);
  transition: border-color var(--t-fast), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.product-card:hover { border-color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.product-card__title { font-size: var(--step-1); font-stretch: 100%; font-variation-settings: normal; line-height: 1.2; }
.product-card__title a { text-decoration: none; }
.product-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.product-card__meta { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; line-height: 1.5; color: var(--muted); margin: var(--s-1) 0 var(--s-3); }
.product-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: var(--s-3); }
.product-card__foot { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.product-card .app-icon { width: 64px; height: 64px; }
.product-card--wide-media { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
.product-card--wide-media .product-card__body { padding: var(--s-5); }
.product-card--wide-media .product-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-2); }
.product-card--wide-media .product-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Icon shelf ------------------------------------------------------------------------ */
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: var(--s-5) var(--s-4);
  list-style: none;
}
.shelf a { display: grid; justify-items: center; gap: var(--s-2); text-align: center; text-decoration: none; font-size: 0.8rem; font-weight: 600; line-height: 1.25; }
.shelf .app-icon { transition: transform var(--t) var(--ease); }
.shelf a:hover .app-icon { transform: translateY(-4px) rotate(-2deg); }

/* Stat / proof strip ------------------------------------------------------------------ */
.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.proof__item { padding: var(--s-5) var(--s-4); display: grid; gap: var(--s-1); }
.proof__item + .proof__item { border-left: 1px solid var(--line); }
@media (max-width: 700px) {
  .proof__item + .proof__item { border-left: 0; border-top: 1px solid var(--line); }
}
.proof__value { font-size: var(--step-3); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -0.03em; line-height: 1; }
.proof__label { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Process steps ---------------------------------------------------------------------------- */
.steps { list-style: none; display: grid; gap: var(--s-4); counter-reset: step; }
@media (min-width: 900px) { .steps--row { grid-template-columns: repeat(4, 1fr); } }
.step {
  counter-increment: step;
  position: relative;
  padding: var(--s-5);
  border-top: 2px solid var(--ink);
  background: color-mix(in srgb, var(--paper-2) 60%, transparent);
  border-radius: 0 0 var(--radius) var(--radius);
}
.section--night .step { border-top-color: var(--accent); background: var(--night-2); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-ink);
  margin-bottom: var(--s-3);
  letter-spacing: 0.12em;
}
.section--night .step::before { color: var(--accent); }
.step h3 { font-size: var(--step-1); font-stretch: 100%; font-variation-settings: normal; margin-bottom: var(--s-2); }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Check list ------------------------------------------------------------------------------- */
.checks { list-style: none; display: grid; gap: var(--s-3); }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); align-items: start; }
.checks li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: var(--radius-s);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23ff5c28' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.section--night .checks li::before { background-color: var(--night-3); }

/* Definition facts --------------------------------------------------------------------------- */
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 480px) { .facts > div { grid-template-columns: 1fr; gap: var(--s-1); } }

/* Callout / note ------------------------------------------------------------------------------ */
.note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.93rem;
  color: var(--muted);
}
.note::before { content: "i"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 0.8rem var(--font-mono); }
.section--night .note::before { background: var(--paper); color: var(--ink); }

/* CTA band -------------------------------------------------------------------------------------- */
.cta-band {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding: clamp(2rem, 1.2rem + 4vw, 4.5rem);
  border-radius: var(--radius-l);
  background: var(--signal);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(17, 26, 46, 0.18) 1px, transparent 0);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent 40%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--step-4); max-width: 18ch; }
.cta-band p { font-size: var(--step-1); max-width: 48ch; margin-top: var(--s-4); }
.cta-band .btn { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }
.cta-band .btn:hover { box-shadow: 4px 4px 0 var(--paper); }
.cta-band .btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* Filter tabs ------------------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filter {
  min-height: 40px;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 0.9rem var(--font-sans);
  cursor: pointer;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters-status { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); margin: calc(-1 * var(--s-4)) 0 var(--s-5); }

/* Prose (legal & long-form) ------------------------------------------------------------------------ */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); font-stretch: 112%; font-variation-settings: "wdth" 112; margin: var(--s-7) 0 var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.prose section:first-child h2 { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: var(--step-1); margin: var(--s-5) 0 var(--s-3); }
.prose ul { padding-left: 1.3em; margin: 0 0 var(--s-4); display: grid; gap: var(--s-1); }
.prose li::marker { color: var(--accent-ink); }
.prose address { font-style: normal; margin-bottom: var(--s-4); line-height: 1.8; }
.prose a { word-break: break-word; }

/* Forms (contact) ------------------------------------------------------------------------------------ */
.field { display: grid; gap: var(--s-2); }
.field label, .field legend { font-weight: 700; font-size: 0.95rem; }
.field__hint { font-size: 0.85rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  font: 400 1rem var(--font-sans);
}
.textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.radio-cards { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border: 0; padding: 0; margin: 0; }
.radio-cards legend { margin-bottom: var(--s-3); }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-card span {
  display: block;
  height: 100%;
  padding: var(--s-3) var(--s-4);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.93rem;
  background: #fffdf8;
}
.radio-card input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--signal-soft); }
.radio-card input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* 05-pages.css */
/* ==========================================================================
   Page patterns
   ========================================================================== */
.h-lg { font-size: var(--step-4); margin-bottom: var(--s-5); }
.h-xl { font-size: var(--step-5); }

.led {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--led-available);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--led-available) 25%, transparent);
  flex-shrink: 0;
}

/* Home hero ------------------------------------------------------------------ */
.hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(3rem, 2rem + 4vw, 5.5rem); overflow: hidden; }
.hero__grid { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s-7); }
}
.hero__title {
  font-size: clamp(2.6rem, 1.5rem + 4.9vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-5);
}
.hero__accent {
  position: relative;
  white-space: nowrap;
  color: var(--ink);
  background: linear-gradient(transparent 62%, var(--signal) 62%, var(--signal) 90%, transparent 90%);
  padding-inline: 0.04em;
}
.hero__lede { font-size: var(--step-1); color: var(--muted); max-width: 44ch; margin-bottom: var(--s-6); }
.hero__proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-6);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--muted);
}
.hero__proof li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero__proof strong { color: var(--ink); font-weight: 500; }

.hero__copy > * { animation: rise 700ms var(--ease) both; }
.hero__copy > *:nth-child(2) { animation-delay: 60ms; }
.hero__copy > *:nth-child(3) { animation-delay: 120ms; }
.hero__copy > *:nth-child(4) { animation-delay: 180ms; }
.hero__copy > *:nth-child(5) { animation-delay: 240ms; }
.hero__stage { animation: rise 900ms 150ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Stage composition */
.hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: var(--s-3);
}
.stage-tile {
  display: block;
  text-decoration: none;
  color: var(--on-night);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(17, 26, 46, 0.2);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.stage-tile:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.stage-tile img { aspect-ratio: 16 / 9; }
.stage-tile__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 1.6rem 0.8rem 0.6rem;
  background: linear-gradient(transparent, rgba(11, 19, 38, 0.85));
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.stage-tile__cap span:first-child { font-weight: 500; color: #fff; }
.stage-tile__cap span:last-child { opacity: 0.75; text-align: right; }
.stage-tile--a { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .stage-tile--b .stage-tile__cap span:last-child,
  .stage-tile--c .stage-tile__cap span:last-child { display: none; }
}
.stage-tile--b { grid-column: 1 / 7; }
.stage-tile--c { grid-column: 7 / -1; }

.shiplog {
  grid-column: 1 / -1;
  background: var(--night);
  color: var(--on-night);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-4) var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: var(--shadow-soft);
}
.shiplog__head {
  display: flex;
  justify-content: space-between;
  margin: 0 0 var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px dashed rgba(243, 240, 232, 0.2);
  letter-spacing: 0.16em;
  color: var(--on-night-muted);
}
.shiplog__live { display: inline-flex; align-items: center; gap: 6px; color: var(--led-available); }
.shiplog__list { list-style: none; display: grid; gap: 6px; }
.shiplog__list li { display: grid; grid-template-columns: 7.2em 1fr; gap: 0 var(--s-3); }
.shiplog__list time, .shiplog__date { color: var(--accent); }
.shiplog__to { grid-column: 2; color: var(--on-night-muted); font-size: 0.76rem; }

@media (min-width: 1024px) {
  .hero__stage { display: block; aspect-ratio: 1 / 0.95; }
  .stage-tile, .shiplog { position: absolute; margin: 0; }
  .stage-tile img { aspect-ratio: 16 / 9; }
  .stage-tile--a { left: 0; top: 0; width: 82%; z-index: 1; }
  .stage-tile--b { right: 0; top: 37%; width: 50%; z-index: 2; }
  .stage-tile--c { left: 5%; top: 55%; width: 43%; z-index: 3; }
  .shiplog { right: 0; top: 72%; width: 52%; z-index: 4; }
}

/* Selected-work shelf */
.shelf-block { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.shelf-block__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-5); }
.shelf-block__head h3 { font-size: var(--step-1); font-stretch: 100%; font-variation-settings: normal; }
.section--night .shelf a { color: var(--on-night); }
.section--night .text-link { color: var(--on-night); }

.caps { align-items: stretch; }

/* Kiosk concept illustration -------------------------------------------------- */
.kiosk { margin: 0 auto; display: grid; justify-items: center; width: min(100%, 340px); container-type: inline-size; }
.kiosk__device {
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(160deg, #27314a, #0b1326);
  box-shadow: 10px 10px 0 var(--ink), 0 30px 60px -30px rgba(17, 26, 46, 0.6);
}
.kiosk__screen {
  position: relative;
  height: 100%;
  border-radius: 10px;
  background: #f7f4ec;
  color: var(--ink);
  padding: 8% 8% 6%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: clamp(0.42rem, 3.8cqi, 0.82rem);
}
.kiosk__bar { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0.14em; color: var(--muted); }
.kiosk__visual { position: relative; flex: 1; display: grid; place-items: center; margin: 6% 0 4%; }
.kiosk__body { height: 100%; max-height: 190px; width: auto; fill: #e2dccd; stroke: #111a2e; stroke-width: 1.5; }
.kiosk__organ { fill: var(--signal); stroke: none; transform-origin: 66px 64px; animation: beat 1.6s var(--ease) infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 20% { transform: scale(1.18); } 35% { transform: scale(0.96); } }
.kiosk__q { font-weight: 800; font-stretch: 112%; font-variation-settings: "wdth" 112; font-size: 1.5em; line-height: 1.1; margin: 0 0 6%; letter-spacing: -0.02em; }
.kiosk__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.kiosk__tiles span { display: flex; align-items: center; gap: 6px; padding: 9% 8%; border-radius: 6px; background: #ece6d8; font-weight: 700; font-size: 1em; }
.kiosk__tiles span.is-active { background: var(--ink); color: var(--paper); }
.kiosk__tiles i { width: 0.8em; height: 0.8em; border-radius: 2px; background: var(--c); }
.kiosk__hint { margin: 6% 0 0; text-align: center; font-family: var(--font-mono); font-size: 0.8em; color: var(--muted); letter-spacing: 0.08em; }
.kiosk__touch {
  position: absolute;
  left: 30%;
  bottom: 20%;
  width: 34px;
  height: 34px;
  margin: -17px;
  border-radius: 50%;
  border: 2px solid var(--signal);
  animation: ripple 2.4s var(--ease) infinite;
}
@keyframes ripple { 0% { transform: scale(0.4); opacity: 1; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.kiosk__stand { width: 18%; height: 34px; background: linear-gradient(#27314a, #111a2e); }
.kiosk__stand::after { content: ""; display: block; width: 360%; height: 8px; margin-left: -130%; margin-top: 34px; border-radius: 4px; background: var(--ink); }
.kiosk figcaption { margin-top: var(--s-6); font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.5; letter-spacing: 0.06em; color: var(--muted); text-align: center; }

/* Inner page hero -------------------------------------------------------------- */
.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--step-5); max-width: 17ch; line-height: 1; letter-spacing: -0.03em; }
.page-hero .lede { margin-top: var(--s-5); }
.page-hero .btn-row { margin-top: var(--s-6); }
.page-hero--night { background: var(--night); color: var(--on-night); --muted: var(--on-night-muted); border-bottom: 0; }

.jump { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin-top: var(--s-6); }
.jump a { display: inline-block; padding: 0.35rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.jump a:hover { border-color: var(--ink); background: var(--paper-2); }

/* Service rows --------------------------------------------------------------------- */
.service {
  display: grid;
  gap: var(--s-5) var(--s-7);
  padding-block: var(--s-8);
  border-top: 1px solid var(--line-strong);
}
.service:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .service { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.service h2 { font-size: var(--step-3); font-stretch: 112%; font-variation-settings: "wdth" 112; }
.service__cols { display: grid; gap: var(--s-6); }
@media (min-width: 640px) { .service__cols { grid-template-columns: 1fr 1fr; } }
.service h3 { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3); font-stretch: 100%; font-variation-settings: normal; }
.service .related { margin-top: var(--s-5); font-size: 0.93rem; color: var(--muted); }

/* Product detail --------------------------------------------------------------------- */
.product-hero { background: var(--night); color: var(--on-night); --muted: var(--on-night-muted); --line: var(--line-night); overflow: hidden; position: relative; }
.product-hero__art { position: absolute; inset: 0; opacity: 0.28; }
.product-hero__art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); }
.product-hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 25%, rgba(11, 19, 38, 0.6) 70%, rgba(11, 19, 38, 0.3)), linear-gradient(0deg, var(--night), transparent 50%); }
.product-hero__inner { position: relative; display: grid; gap: var(--s-7); padding-block: clamp(3rem, 2rem + 5vw, 6rem); align-items: center; }
@media (min-width: 1024px) { .product-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.product-hero__head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); }
.product-hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.3vw, 4.4rem); line-height: 1.02; letter-spacing: -0.03em; }
.product-hero__tagline { font-size: var(--step-1); color: var(--on-night); margin: var(--s-4) 0 var(--s-3); font-weight: 600; }
.product-hero__summary { color: var(--muted); max-width: 52ch; margin-bottom: var(--s-6); }
.product-hero .store-btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.product-hero__nostore { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.store-note { margin-top: var(--s-4); font-size: 0.9rem; line-height: 1.5; color: var(--muted); max-width: 52ch; }

.gallery { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.gallery .frame { border: 1px solid var(--line); }

.breadcrumb { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.02em; line-height: 1.5; margin-bottom: var(--s-5); color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); opacity: 0.6; }
.breadcrumb a { color: inherit; }

/* Work index ------------------------------------------------------------------------ */
.case {
  display: grid;
  gap: var(--s-6);
  padding-block: var(--s-8);
  border-top: 1px solid var(--line-strong);
  align-items: center;
}
.case:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 960px) {
  .case { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-8); }
  .case:nth-of-type(even) .case__media { order: 2; }
}
.case .facts { margin: var(--s-5) 0; }
.case__meta { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

.lab-card { border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--paper); display: grid; grid-template-rows: auto 1fr; }
.lab-card__media { aspect-ratio: 16 / 9; background: var(--paper-3); overflow: hidden; }
.lab-card__media img { width: 100%; height: 100%; object-fit: cover; }
.lab-card__media--blank { display: grid; place-items: center; aspect-ratio: 16 / 9; background: repeating-linear-gradient(135deg, var(--paper-2) 0 12px, var(--paper-3) 12px 24px); font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.1em; }
.lab-card__body { padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.lab-card h3 { font-size: var(--step-1); font-stretch: 100%; font-variation-settings: normal; }
.lab-card p { color: var(--muted); font-size: 0.95rem; }

/* Web-app list */
.webapps { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.webapp { position: relative; padding: var(--s-5); border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--night-2); display: grid; gap: var(--s-3); align-content: start; }
.section:not(.section--night) .webapp { background: var(--paper); }
.webapp h3 { font-size: var(--step-1); font-stretch: 100%; font-variation-settings: normal; }
.webapp p { color: var(--muted); font-size: 0.95rem; }
.webapp a { text-decoration: none; }
.webapp a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.webapp:hover { border-color: var(--accent); }
.webapp__url { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent-ink); word-break: break-all; }
.section--night .webapp__url { color: var(--accent); }

/* About -------------------------------------------------------------------------------- */
.principles { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); list-style: none; counter-reset: p; }
.principles li { counter-increment: p; padding-top: var(--s-4); border-top: 2px solid var(--ink); }
.principles li::before { content: counter(p, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-ink); letter-spacing: 0.1em; }
.principles h3 { font-size: var(--step-1); margin: var(--s-2) 0; font-stretch: 100%; font-variation-settings: normal; }
.principles p { color: var(--muted); font-size: 0.95rem; }

.founder-card { padding: var(--s-6); border-radius: var(--radius-l); background: var(--night); color: var(--on-night); --muted: var(--on-night-muted); display: grid; gap: var(--s-4); }
.founder-card__mono { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: var(--ink); font-weight: 800; font-size: 1.5rem; font-stretch: 125%; font-variation-settings: "wdth" 125; }
.founder-card h3 { font-size: var(--step-2); }
.founder-card .tags .tag { color: var(--on-night-muted); border-color: var(--line-night); }
.founder-card a { color: var(--on-night); }

/* Contact ------------------------------------------------------------------------------- */
.contact-card { padding: var(--s-6); border: 1px solid var(--line-strong); border-radius: var(--radius-l); background: var(--paper); }
.contact-email { display: inline-block; font-size: var(--step-1); font-weight: 800; overflow-wrap: anywhere; letter-spacing: -0.01em; }

/* 404 */
.not-found { min-height: 60vh; display: grid; align-items: center; }
.not-found__code { font-family: var(--font-mono); color: var(--accent-ink); letter-spacing: 0.2em; }

/* 06-phase2.css */
/* ==========================================================================
   Galleries, product heroes, status key, case studies (Phase 2)
   ========================================================================== */

/* Screenshot galleries: orientation-aware, never crop phone shots */
.gallery { display: grid; gap: var(--s-4); }
.gallery--landscape { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .gallery--landscape { grid-template-columns: 1fr 1fr; }
  /* Odd counts: lead with one full-width shot so no orphan is left. */
  .gallery--landscape > .shot:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}
.gallery--portrait { grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); }
.gallery + .gallery { margin-top: var(--s-6); }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--night-2); }
.shot--portrait img { border-radius: 14px; box-shadow: 0 10px 24px -14px rgba(17, 26, 46, 0.5); }
.shot figcaption { margin-top: var(--s-2); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--muted); }

/* Phone trio: hero media for portrait-only products */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; padding-block: var(--s-4); }
.phone { width: 34%; max-width: 210px; border-radius: 18px; overflow: hidden; border: 3px solid #27314a; background: var(--night-2); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7); }
.phone img { width: 100%; height: auto; }
.phone--1 { transform: translateX(14%) rotate(-4deg); z-index: 1; }
.phone--2 { z-index: 2; margin-bottom: 18px; }
.phone--3 { transform: translateX(-14%) rotate(4deg); z-index: 1; }

.frame--auto img { height: auto; }
.frame--portrait { aspect-ratio: 9 / 16; max-width: 360px; margin-inline: auto; }

/* Status key on /products/ */
.status-key { display: grid; gap: var(--s-5) var(--s-5); margin: var(--s-7) 0 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.status-key > div { display: grid; gap: var(--s-2); align-content: start; }
.status-key dt { padding-top: 1px; }
.status-key dd { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.45; }

/* Case studies */
.case__title { font-size: var(--step-3); font-stretch: 112%; font-variation-settings: "wdth" 112; margin: var(--s-3) 0 var(--s-4); }
.case__title a { text-decoration: none; }
.case__title a:hover { text-decoration: underline; text-decoration-color: var(--accent-ink); }
.page-hero .case-title, .case-title { font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.6rem); max-width: none; line-height: 1; letter-spacing: -0.03em; margin: var(--s-4) 0 var(--s-5); }
.case-body h3 { font-size: var(--step-2); margin-bottom: var(--s-3); }
.case-body section + section { padding-top: var(--s-5); border-top: 1px solid var(--line); }

.case-card { position: relative; display: grid; border: 1px solid var(--line-strong); border-radius: var(--radius-l); background: var(--paper); overflow: hidden; }
.case-card__media { background: var(--paper-2); padding: var(--s-5); display: grid; place-items: center; }
.case-card__media .kiosk { width: min(100%, 200px); }
.case-card__media .frame { width: 100%; }
.case-card__body { padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.case-card h3 { font-size: var(--step-2); }
.case-card h3 a { text-decoration: none; }
.case-card h3 a::after { content: ""; position: absolute; inset: 0; }
.case-card__client { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--muted); margin: 0; }
.case-card p { color: var(--muted); }
@media (min-width: 900px) { .case-card--wide { grid-template-columns: 1fr 1.2fr; } }
.case-card.is-draft { outline: 2px dashed var(--led-soon); outline-offset: 4px; }

.empty-state { display: grid; gap: var(--s-5); align-items: center; padding: var(--s-6); border: 1px dashed var(--line-strong); border-radius: var(--radius-l); background: color-mix(in srgb, var(--paper) 60%, transparent); }
.empty-state h3 { font-size: var(--step-2); margin-bottom: var(--s-3); }
.empty-state p { color: var(--muted); max-width: 62ch; }
@media (min-width: 900px) { .empty-state { grid-template-columns: 1fr auto; } }

.draft-banner { position: sticky; top: var(--header-h); z-index: 40; padding: var(--s-3) var(--gutter); background: var(--led-soon); color: var(--ink); font-size: 0.95rem; text-align: center; }
.draft-banner strong { font-family: var(--font-mono); letter-spacing: 0.1em; margin-right: var(--s-2); }
.tag--draft { border-color: var(--led-soon); color: var(--ink); background: color-mix(in srgb, var(--led-soon) 25%, transparent); }

/* Status LEDs added in Phase 2 */
.chip--released { --led: var(--led-available); }
.chip--prototype { --led: var(--led-proto); }
.chip--archived { --led: var(--led-archived); }

.product-hero.dotfield { background-image: radial-gradient(circle at 1px 1px, rgba(243, 240, 232, 0.08) 1px, transparent 0); background-size: 22px 22px; }

/* 07-phase3.css */
/* ==========================================================================
   Phase 3: approved media, storybook companion, prototype modules, brand logo
   ========================================================================== */

/* Real prototype screen inside the portrait display frame */
.kiosk--real .kiosk__screen--image { padding: 0; background: var(--night-2); }
.kiosk--real .kiosk__screen--image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Approved full logo: raster art with its own dark field. The soft radial mask
   lets its edges settle into any navy surface without adding a new effect. */
.footer-logo { display: inline-block; margin: -18px 0 0 -26px; }
.footer-logo__img {
  width: 260px;
  height: auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 74%, transparent 100%);
}
.brand-figure { margin: var(--s-6) 0 0; border-radius: var(--radius-l); overflow: hidden; background: #01040f; box-shadow: var(--shadow-soft); }
.brand-figure img { width: 100%; height: auto; }

/* Storybook companion on a product page */
.companion { background: var(--paper-2); }
.companion__cover { max-width: 340px; margin-inline: auto; }
.companion__cover img { width: 100%; height: auto; border-radius: 4px 10px 10px 4px; box-shadow: -6px 0 0 rgba(17, 26, 46, 0.18) inset, 0 24px 48px -20px rgba(17, 26, 46, 0.55); }
.companion-link { margin-top: var(--s-4); }
.product-hero .companion-link .text-link { color: var(--on-night); border-bottom-color: var(--accent); }
.store-note--dev { font-family: var(--font-mono); font-size: 0.88rem; color: var(--on-night); border-left: 3px solid var(--led-dev); padding-left: var(--s-3); margin-top: var(--s-2); }

/* Prototype module sections on a case study */
.module__head { margin-bottom: var(--s-6); }
.module__head h2 { font-size: var(--step-4); }

/* Workbench cards: the title link covers the whole card */
.lab-card { position: relative; }
.lab-card h3 a { text-decoration: none; }
.lab-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lab-card:has(h3 a):hover { border-color: var(--ink); }

/* Key-art crop used as an icon until a store icon exists */
.app-icon--art img { object-position: 12% 40%; transform: scale(1.35); }

.companion__byline { font-family: var(--font-mono); font-size: 0.9rem; color: var(--muted); margin: calc(-1 * var(--s-3)) 0 var(--s-4); }

/* Plain-language Q&A on /services/ */
.faq { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.faq__item { padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 800; font-size: var(--step-1); line-height: 1.3; margin-bottom: var(--s-2); }
.faq dd { margin: 0; color: var(--ink-2); }
