/* Suraj Thalange portfolio. One stylesheet, no build step.
   Sections: tokens, base, type, header, buttons, hero, sections, cards,
   images and placeholders, project pages, about, services, time zones, contact, footer, motion. */

/* Self-hosted latin subsets from Google Fonts. Fraunces and IBM Plex are variable fonts under the SIL Open Font License. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;

  /* Type scale, ratio 1.2 at the small end rising to 1.25 on wide screens */
  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.44rem, 1.3rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.73rem, 1.45rem + 1.4vw, 2.3rem);
  --step-4: clamp(2.07rem, 1.6rem + 2.3vw, 3rem);
  --step-5: clamp(2.5rem, 1.8rem + 3.4vw, 3.9rem);

  /* Spacing */
  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-5: 3rem; --s-6: 4.5rem; --s-7: 6rem;
  --section: clamp(3.5rem, 3rem + 3vw, 6rem);
  --wrap: 1120px;
  --wrap-wide: 1320px;
  --gutter: 16px;
  --radius: 12px;
  --radius-sm: 8px;

  /* Light palette */
  --bg: #FFFFFF;
  --bg-alt: #F4F7F7;
  --surface: #FFFFFF;
  --surface-2: #EEF3F3;
  --line: #D9E1E1;
  --line-strong: #B9C6C7;
  --text: #172022;
  --muted: #55646A;
  --accent: #0F6E73;
  --accent-strong: #0A5357;
  --accent-soft: #E1F0F0;
  --accent-ink: #063C3F;
  --on-accent: #FFFFFF;
  --amber: #8F4E05;
  --amber-soft: #FBEFDF;
  --green: #1E7A40;
  --hero-from: #E1F0F0;
  --cta-bg: #0F6E73;
  --cta-text: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(23, 32, 34, 0.06);
  --shadow: 0 1px 2px rgba(23, 32, 34, 0.05), 0 10px 30px rgba(23, 32, 34, 0.07);
  --shadow-lg: 0 2px 4px rgba(23, 32, 34, 0.06), 0 24px 60px rgba(23, 32, 34, 0.12);
  --ph-stripe: rgba(15, 110, 115, 0.08);
  color-scheme: light;
}

/* Dark palette: cool slate base with three surface levels, teal kept as an accent */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1417;
    --bg-alt: #121A1E;
    --surface: #182126;
    --surface-2: #1F2A30;
    --line: #2A373D;
    --line-strong: #3B4B52;
    --text: #E7EDEF;
    --muted: #A5B4B9;
    --accent: #62C6CB;
    --accent-strong: #8AD9DC;
    --accent-soft: #143236;
    --accent-ink: #BFE8EA;
    --on-accent: #06272A;
    --amber: #F2B860;
    --amber-soft: #3A2A12;
    --green: #6CCB8A;
    --hero-from: #143236;
    --cta-bg: #143236;
    --cta-text: #E7EDEF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
    --ph-stripe: rgba(98, 198, 203, 0.08);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1417;
  --bg-alt: #121A1E;
  --surface: #182126;
  --surface-2: #1F2A30;
  --line: #2A373D;
  --line-strong: #3B4B52;
  --text: #E7EDEF;
  --muted: #A5B4B9;
  --accent: #62C6CB;
  --accent-strong: #8AD9DC;
  --accent-soft: #143236;
  --accent-ink: #BFE8EA;
  --on-accent: #06272A;
  --amber: #F2B860;
  --amber-soft: #3A2A12;
  --green: #6CCB8A;
  --hero-from: #143236;
  --cta-bg: #143236;
  --cta-text: #E7EDEF;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
  --ph-stripe: rgba(98, 198, 203, 0.08);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.15s, text-decoration-color 0.15s; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; font-variation-settings: "opsz" 96; text-wrap: balance; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-variation-settings: "opsz" 36; }
h4 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-4) 0; }
table { border-collapse: collapse; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--wrap-wide); }
.narrow { max-width: 760px; }
.prose { max-width: 68ch; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.mono { font-family: var(--font-mono); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-2); }
.mt-2 { margin-top: var(--s-4); }
.mb-0 { margin-bottom: 0; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 6px; }
.skip:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--s-2); min-height: 68px; min-width: 0; }
.site-nav ul { flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand:hover { color: var(--text); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.brand-text span { font-size: 0.78rem; color: var(--muted); max-width: 22ch; }

.avatar { display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); overflow: hidden; flex: none; border: 2px dashed var(--line-strong); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 40px; height: 40px; font-size: 0.8rem; font-weight: 700; }
.avatar-lg { width: 200px; height: 200px; font-size: 2.6rem; font-weight: 700; border-style: solid; border-color: var(--line); }
.avatar-initials { font-family: var(--font-mono); }

.availability { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); color: var(--muted); font-weight: 500; }
.availability .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); flex: none; }
.availability-header { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.availability-hero { display: flex; margin-bottom: var(--s-3); }
p.availability { display: flex; }

.header-actions { display: flex; align-items: center; gap: 8px; order: 3; }
.site-nav { order: 2; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--text); font-weight: 500; transition: background 0.15s, color 0.15s; }
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a.is-active { color: var(--accent-ink); background: var(--accent-soft); }
.nav-cta { margin-left: 8px; }
.nav-cta a.btn { padding: 8px 14px; color: var(--on-accent); white-space: nowrap; }
.nav-cta a.btn:hover { background: var(--accent-strong); color: var(--on-accent); }

.theme-toggle, .nav-toggle {
  width: 42px; height: 42px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 8px; cursor: pointer; display: grid; place-items: center; padding: 0; transition: background 0.15s, border-color 0.15s;
}
.theme-toggle:hover, .nav-toggle:hover { background: var(--surface-2); border-color: var(--line-strong); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
.nav-toggle { display: none; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 10px; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s; }
.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1540px) { .availability-header { display: none; } }
@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 12px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta a.btn { text-align: center; padding: 12px; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); line-height: 1.2; cursor: pointer; font-size: var(--step-0); font-family: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.btn-small { padding: 8px 14px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: var(--s-3) 0 0; }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding: var(--s-5) 0; }
.section-head { max-width: 720px; margin-bottom: var(--s-4); }
.section-head h2 { margin-bottom: 0.35em; }
.section-head p { color: var(--muted); font-size: var(--step-1); margin: 0; text-wrap: pretty; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); background: linear-gradient(180deg, var(--hero-from) 0%, var(--bg) 100%); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
/* The second column only exists when its screenshot does; see renderShots in build.mjs. */
.hero-grid:has(> :nth-child(2)) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.hero h1 { margin-bottom: var(--s-3); }
.hero .lede { margin-bottom: 0; }
.hero-tracks { display: grid; gap: 10px; margin-top: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.track { display: block; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.track:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow); }
.track strong { display: block; color: var(--accent); margin-bottom: 2px; font-size: var(--step-0); }
.track span { color: var(--muted); font-size: var(--step--1); }
/* Home hero byline: a face and a name before the proposition, so the landing page reads as
   a person rather than a product. The avatar is an x-shot, so until the photo file exists the
   build emits no img at all; the ring is hidden rather than left as an empty circle. */
/* Services index: six cards that answer "do you do my thing" in one glance, each jumping
   to the section that answers "and what exactly do I get". The detail below is the part
   that wins the work; this is only the way in. */
.svc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: var(--s-5); }
/* Six services: three across gives two even rows rather than a ragged four-plus-two. */
@media (min-width: 900px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.svc-card:hover, .svc-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.svc-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.svc-icon svg { width: 19px; height: 19px; }
.svc-name { font-weight: 600; color: var(--accent); }
.svc-text { color: var(--muted); font-size: var(--step--1); }

.hero-byline { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s-3); }
.hero-byline .avatar { width: 56px; height: 56px; border-style: solid; border-color: var(--line); }
.hero-byline .avatar:not(:has(img)) { display: none; }
.hero-byline-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hero-byline-name { font-weight: 700; font-size: var(--step-0); color: var(--text); line-height: 1.2; }
.hero-byline-role { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }

.hero-visual { position: relative; }
.hero-visual .browser { box-shadow: var(--shadow-lg); transform: rotate(-1deg); }
.hero-visual .browser:hover { transform: rotate(0deg); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual .browser { transform: none; } .hero-tracks { grid-template-columns: 1fr; } }

/* Proof strip */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.proof li { padding: 22px 18px; margin: 0; border-left: 1px solid var(--line); }
.proof li:first-child { border-left: 0; padding-left: 0; }
.proof strong { display: block; font-family: var(--font-head); font-size: var(--step-2); color: var(--accent); line-height: 1.1; margin-bottom: 4px; }
.proof span { color: var(--muted); font-size: var(--step--1); display: block; }
.proof .quote-line { font-style: italic; color: var(--text); font-size: var(--step-0); }
@media (max-width: 900px) { .proof ul { grid-template-columns: 1fr 1fr; } .proof li:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); } .proof li:nth-child(2) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .proof ul { grid-template-columns: 1fr; } .proof li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .proof li:first-child { border-top: 0; } }

/* ---------- Grid and cards ---------- */
.grid { display: grid; gap: var(--s-3); }
.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: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card-link { margin-top: auto; padding-top: 12px; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.card-link::after { content: "\2192"; transition: transform 0.15s; }
.card:hover .card-link::after { transform: translateX(4px); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.card-meta li { margin: 0; }
.card-image { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; overflow: hidden; margin: -24px -24px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 16 / 10; }
.card-image img, .card-image .ph { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s; }
.card:hover .card-image img { transform: scale(1.02); }
.card-image .ph { border-radius: 0; border: 0; aspect-ratio: auto; }

/* Feature row: image one side, copy the other */
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.feature:has(> :nth-child(2)) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.feature-reverse > :first-child { order: 2; }
.feature h3 { font-size: var(--step-2); font-variation-settings: "opsz" 72; }
.feature .card-meta { margin-bottom: 14px; }
.feature p { color: var(--muted); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature.feature-reverse > :first-child { order: 0; } }

/* Split: sticky heading left, content right */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.split-head { position: sticky; top: 92px; }
.split-head h2 { margin-bottom: var(--s-2); }
.split-head p { color: var(--muted); font-size: var(--step-1); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split-head { position: static; } }

.list-cards { display: grid; gap: 12px; }
.list-card { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.list-card:hover { border-color: var(--line-strong); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.list-card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.list-card h3 { font-size: var(--step-1); margin-bottom: 4px; }
.list-card p { margin: 0; color: var(--muted); }

/* ---------- Tags and badges ---------- */
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; font-family: var(--font-mono); letter-spacing: 0.01em; }
.tag-amber { background: var(--amber-soft); color: var(--amber); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s-2) 0; padding: 0; list-style: none; }
.badges li { margin: 0; }
.badge { display: inline-flex; font-family: var(--font-mono); font-size: 0.78rem; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); line-height: 1.6; }
.badge span { padding: 2px 8px; }
.badge span:first-child { background: var(--surface-2); color: var(--muted); border-right: 1px solid var(--line); }
.badge span:last-child { background: var(--accent); color: var(--on-accent); }
.badge.is-pending span:last-child { background: var(--amber-soft); color: var(--amber); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps li { counter-increment: step; margin: 0; padding: 22px 20px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); font-weight: 500; display: block; margin-bottom: 8px; letter-spacing: 0.06em; }
.steps strong { display: block; margin-bottom: 4px; font-family: var(--font-head); font-size: var(--step-1); font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: var(--step--1); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--cta-bg); color: var(--cta-text); padding: var(--section) 0; }
.cta-band h2, .cta-band p { color: var(--cta-text); }
.cta-band p { opacity: 0.92; max-width: 60ch; }
.cta-band .btn { background: #FFFFFF; color: #0A5357; border-color: #FFFFFF; }
.cta-band .btn:hover { background: #E1F0F0; color: #0A5357; }
.cta-band .btn-secondary { background: transparent; color: var(--cta-text); border-color: color-mix(in srgb, var(--cta-text) 60%, transparent); }
.cta-band .btn-secondary:hover { background: color-mix(in srgb, var(--cta-text) 12%, transparent); color: var(--cta-text); }
:root[data-theme="dark"] .cta-band .btn { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band .btn { background: var(--accent); color: var(--on-accent); border-color: var(--accent); } }

/* ---------- Full-bleed quote ---------- */
.quote-band { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--section) 0; }
.quote-band blockquote { margin: 0 auto; max-width: 900px; text-align: center; font-family: var(--font-head); font-size: var(--step-3); font-weight: 600; line-height: 1.25; color: var(--text); font-variation-settings: "opsz" 120; text-wrap: balance; }
.quote-band blockquote::before { content: "\201C"; color: var(--accent); }
.quote-band blockquote::after { content: "\201D"; color: var(--accent); }
.quote-band figcaption { text-align: center; margin-top: var(--s-3); color: var(--muted); font-size: var(--step--1); }
.quote-band figcaption strong { color: var(--text); font-weight: 600; }

.pullquote { margin: var(--s-3) 0 var(--s-4); padding: 24px 28px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.pullquote blockquote { margin: 0; font-family: var(--font-head); font-size: var(--step-2); line-height: 1.3; font-weight: 600; color: var(--accent-ink); overflow-wrap: anywhere; }
.pullquote blockquote::before { content: "\201C"; }
.pullquote blockquote::after { content: "\201D"; }
.pullquote figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--muted); }

/* Social proof trio */
.proof-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.proof-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.proof-card.is-slot { border-style: dashed; background: transparent; }
.proof-card h3 { font-size: var(--step-1); }
.proof-card p { color: var(--muted); margin-bottom: 0; }
.proof-card blockquote { margin: 0 0 12px; font-family: var(--font-head); font-size: var(--step-1); line-height: 1.35; color: var(--text); }
.proof-card cite { font-style: normal; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 900px) { .proof-cards { grid-template-columns: 1fr; } }

/* ---------- Images and placeholders ---------- */
.browser { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.browser-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); background: var(--bg); padding: 2px 10px; border-radius: 4px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img, .browser .ph { width: 100%; display: block; }
.browser .ph { border: 0; border-radius: 0; }

/* Placeholder: aspect ratio from --w/--h, label from data-label, dimensions from data-size */
.ph { position: relative; width: 100%; aspect-ratio: var(--w, 16) / var(--h, 10); border: 2px dashed var(--line-strong); border-radius: var(--radius); background: repeating-linear-gradient(135deg, var(--ph-stripe) 0 10px, transparent 10px 22px), var(--surface-2); display: grid; place-items: center; align-content: center; text-align: center; padding: 16px; color: var(--muted); overflow: hidden; }
.ph::before { content: attr(data-label); display: block; font-weight: 600; color: var(--text); font-size: var(--step--1); max-width: 30ch; }
.ph::after { content: attr(data-size); display: block; font-family: var(--font-mono); font-size: 0.72rem; margin-top: 4px; }
.ph-photo { border-radius: 50%; aspect-ratio: 1; }

.gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--s-3) 0; }
.gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: transform 0.2s, box-shadow 0.2s; }
.gallery figure:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery img, .gallery .ph { width: 100%; border: 0; border-radius: 0; }
.gallery .ph { border-bottom: 1px solid var(--line); }
.gallery figcaption { padding: 10px 14px; font-size: var(--step--1); color: var(--muted); border-top: 1px solid var(--line); }
.gallery figure:has(.ph) figcaption { border-top: 0; }
.gallery a { display: block; }
.gallery .span-2 { grid-column: span 2; }
@media (max-width: 720px) { .gallery, .gallery-3 { grid-template-columns: 1fr; } .gallery .span-2 { grid-column: auto; } }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: var(--s-3) 0; }
.compare figure { margin: 0; }
.compare figcaption { padding: 10px 2px 0; font-size: var(--step--1); color: var(--muted); }
.compare figcaption strong { display: block; color: var(--text); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.compare .is-after figcaption strong { color: var(--accent); }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }

.hero-shot { margin: 0 0 var(--s-4); }

/* Steps with images (live demo) */
.walkthrough { list-style: none; padding: 0; margin: 0; counter-reset: walk; display: grid; gap: var(--s-4); }
.walkthrough li { counter-increment: walk; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: center; margin: 0; }
.walkthrough li:has(> :nth-child(2)) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.walkthrough li:nth-child(even) > :first-child { order: 2; }
.walkthrough li:not(:has(> :nth-child(2))) .step-text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.walkthrough .step-text .num { font-family: var(--font-mono); color: var(--accent); font-size: var(--step--1); letter-spacing: 0.06em; }
.walkthrough .step-text .num::before { content: "Step " counter(walk, decimal-leading-zero); }
.walkthrough h3 { margin: 6px 0 6px; }
.walkthrough p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .walkthrough li { grid-template-columns: 1fr; gap: var(--s-2); } .walkthrough li:nth-child(even) > :first-child { order: 0; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 var(--s-4); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--hero-from) 0%, var(--bg-alt) 100%); }
.page-head h1 { margin-bottom: 0.4em; }
.page-head .lede { margin: 0; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.page-head-grid:has(> :nth-child(2)) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 820px) { .page-head-grid { grid-template-columns: 1fr; } }
.breadcrumb { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); margin-bottom: var(--s-2); }
.breadcrumb a { color: var(--muted); }

/* ---------- Project pages ---------- */
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.project-aside { position: sticky; top: 92px; display: grid; gap: 16px; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.facts h3 { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.8rem; font-weight: 500; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; font-size: var(--step--1); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts ul { padding-left: 1.1em; margin: 0; font-size: var(--step--1); }
@media (max-width: 900px) { .project-layout { grid-template-columns: minmax(0, 1fr); } .project-aside { position: static; } }

.prose h2 { margin-top: var(--s-5); font-size: var(--step-2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-4); }
.prose ul li { margin-bottom: 0.5em; }
.prose table { width: 100%; margin: var(--s-2) 0 var(--s-3); font-size: var(--step--1); }
.prose .table-wrap { overflow-x: auto; margin: var(--s-2) 0 var(--s-3); -webkit-overflow-scrolling: touch; }
.prose .table-wrap table { margin: 0; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: var(--s-3) 0; color: var(--accent-ink); }
.callout p:last-child { margin: 0; }

/* ---------- About ---------- */
.about-head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-4); align-items: center; }
/* Without a photograph the avatar shows initials, so it stays a fixed 200px column. */
@media (max-width: 720px) { .about-head { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg-alt); }
.timeline time { display: block; font-size: var(--step--1); color: var(--muted); font-family: var(--font-mono); }
.timeline strong { display: block; font-size: var(--step-1); font-family: var(--font-head); font-weight: 600; }
.timeline p { margin: 4px 0 0; color: var(--muted); }
.stack { display: grid; gap: var(--s-3); grid-template-columns: repeat(3, 1fr); }
.stack h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.stack ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: var(--step--1); }
@media (max-width: 820px) { .stack { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.service { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--line); align-items: start; }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service h2 { font-size: var(--step-2); }
.service ul { color: var(--muted); }
.service .deliverables { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.service .deliverables h3 { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; }
.service .deliverables ul { margin-bottom: var(--s-2); }
.service .deliverables .ph { margin-bottom: 16px; }
@media (max-width: 820px) { .service { grid-template-columns: 1fr; gap: var(--s-2); } }

.engage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.engage .card h3 { font-size: var(--step-1); }
.engage .card .fine { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); margin-bottom: 8px; }
.engage .card ul { color: var(--muted); font-size: var(--step--1); padding-left: 1.1em; margin: 0; }
@media (max-width: 720px) { .engage { grid-template-columns: 1fr; } }

/* ---------- Time zones ---------- */
.tz { display: grid; gap: 10px; }
.tz-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; }
.tz-row .tz-label { font-size: var(--step--1); }
.tz-row .tz-label strong { display: block; }
.tz-row .tz-label span { color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; }
.tz-bar { position: relative; height: 34px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.tz-fill { position: absolute; top: 0; bottom: 0; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-ink); white-space: nowrap; overflow: hidden; }
.tz-fill.is-overlap { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tz-scale { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.tz-scale div { position: relative; height: 18px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
.tz-scale span { position: absolute; transform: translateX(-50%); }
.tz-scale span:first-child { transform: none; }
.tz-scale span:last-child { transform: translateX(-100%); }
.tz-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--step--1); color: var(--muted); margin-top: var(--s-2); }
.tz-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
@media (max-width: 600px) { .tz-row, .tz-scale { grid-template-columns: 1fr; gap: 4px; } .tz-scale div { display: none; } }

/* ---------- Contact ---------- */
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { display: block; font-weight: 600; }
.form input, .form textarea, .form select { font: inherit; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); width: 100%; display: block; margin-top: 6px; font-weight: 400; transition: border-color 0.15s, box-shadow 0.15s; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.form textarea { min-height: 160px; resize: vertical; }
.form .hint { font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-6); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s-4); } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list strong { display: block; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; margin-bottom: 2px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: var(--s-5) 0; margin-top: var(--section); font-size: var(--step--1); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: var(--s-3); }
.footer-brand p { margin-bottom: 6px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links li { margin: 0; }
.footer-note { grid-column: 1 / -1; color: var(--muted); font-size: 0.85rem; margin: 0; }
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.no-anim { transition: none; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover, .track:hover, .btn:hover, .list-card:hover, .gallery figure:hover { transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

@media print { .site-header, .site-footer, .cta-band, .nav-toggle, .theme-toggle { display: none; } body { font-size: 12pt; } .reveal { opacity: 1; transform: none; } }

/* ---------- Engagement shapes ---------- */
.shape { width: 100%; height: auto; margin: 14px 0 6px; display: block; overflow: visible; }
.shape-label { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: -0.02em; fill: var(--muted); }
.shape-note { font-size: var(--step--1); color: var(--muted); margin: 0 0 12px; }
.engage .card .shape + .shape-note { margin-top: 2px; }

/* ---------- Scroll-driven reveals ----------
   Where the browser supports scroll-driven animations the reveal runs on the compositor with no
   JavaScript at all. site.js detects the same feature and skips its observer. */
@supports (animation-timeline: view()) {
  /* Movement only, never opacity: text that is mid-fade reads as low contrast to a screen reader
     user with a magnifier and to automated checks, and it buys nothing visually. */
  .reveal { opacity: 1; transform: translateY(18px); animation: reveal-slide linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  /* An element inside the last screenful can never finish a scroll timeline, because there is no
     scroll left to drive it. site.js marks those as settled and the animation is cancelled. */
  .reveal.is-visible { animation: none; opacity: 1; transform: none; }
  .reveal.reveal-delay-1 { animation-range: entry 0% cover 32%; }
  .reveal.reveal-delay-2 { animation-range: entry 0% cover 36%; }
  .reveal.reveal-delay-3 { animation-range: entry 0% cover 40%; }
}
@keyframes reveal-in { to { opacity: 1; transform: none; } }
@keyframes reveal-slide { to { transform: none; } }

/* ---------- Cross-document view transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.18s ease both; }
::view-transition-new(root) { animation: vt-in 0.26s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
.site-header { view-transition-name: site-header; }

@media (prefers-reduced-motion: reduce) {
  @supports (animation-timeline: view()) {
    .reveal { opacity: 1; transform: none; animation: none; }
  }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Command palette ---------- */
.kbd-hint {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px 7px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer;
  font-family: inherit; font-size: var(--step--1); transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.kbd-hint:hover { border-color: var(--accent); color: var(--text); background: var(--surface-2); }
kbd {
  font-family: var(--font-mono); font-size: 0.72rem; line-height: 1; padding: 4px 6px; border-radius: 4px;
  border: 1px solid var(--line-strong); background: var(--bg-alt); color: var(--muted); box-shadow: 0 1px 0 var(--line-strong);
}

.palette { padding: 0; border: 0; background: transparent; max-width: 620px; width: calc(100vw - 32px); margin-top: 12vh; }
.palette::backdrop { background: rgba(8, 14, 16, 0.55); backdrop-filter: blur(3px); }
.palette-inner { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.palette-search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette-search svg { flex: none; color: var(--muted); }
.palette-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--step-1); padding: 0; outline: none; }
.palette-search input::placeholder { color: var(--muted); }
.palette-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.palette-list li { margin: 0; }
.palette-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; text-decoration: none;
}
.palette-item:hover, .palette-item[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.palette-item .pi-icon { width: 26px; height: 26px; border-radius: 6px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; flex: none; font-family: var(--font-mono); font-size: 0.7rem; }
.palette-item[aria-selected="true"] .pi-icon { background: var(--accent); color: var(--on-accent); }
.palette-item .pi-text { min-width: 0; }
.palette-item .pi-title { display: block; font-weight: 600; }
.palette-item .pi-sub { display: block; font-size: var(--step--1); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-item[aria-selected="true"] .pi-sub { color: var(--accent-ink); opacity: 0.85; }
.palette-foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; }
.palette-empty { padding: 22px 16px; color: var(--muted); text-align: center; }
@media (max-width: 1340px) { .kbd-hint { display: none; } }

/* ---------- Playable One Life demo ---------- */
.onelife-demo { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.od-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }
.od-bar strong { color: var(--text); font-weight: 600; }
.od-heart { color: var(--accent); }
.od-body { padding: 22px; }
.od-kicker { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.od-question { font-family: var(--font-head); font-size: var(--step-2); line-height: 1.25; margin: 0 0 18px; }
.od-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.od-chip { font: inherit; font-size: var(--step--1); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.od-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.od-count { font-family: var(--font-mono); opacity: 0.7; font-size: 0.85em; }
.od-note { color: var(--muted); font-size: var(--step--1); margin: 0 0 16px; }
.od-options { display: grid; gap: 8px; }
.od-option { font: inherit; text-align: left; padding: 13px 16px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.1s; }
.od-option:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); transform: translateX(3px); }
.od-option:disabled { cursor: default; opacity: 0.75; }
.od-option.is-right { border-color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--text); opacity: 1; font-weight: 600; }
.od-option.is-wrong { border-color: #C0392B; background: color-mix(in srgb, #C0392B 14%, transparent); opacity: 1; }
.od-feedback { margin-top: 16px; padding: 14px 16px; border-radius: 8px; background: var(--bg-alt); border-left: 4px solid var(--green); }
.od-feedback.is-wrong { border-left-color: #C0392B; }
.od-feedback p { margin: 0 0 12px; color: var(--muted); font-size: var(--step--1); }
.od-feedback strong { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .od-option:hover:not(:disabled) { transform: none; } }

/* ---------- Delivery pipeline ---------- */
.pipeline { list-style: none; margin: 0; padding: 0; counter-reset: pl; display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pipeline li { margin: 0; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 4fr); gap: 20px; padding: 22px 24px; background: var(--surface); align-items: start; }
.pipeline li:hover { background: var(--surface-2); }
.pl-phase { display: flex; flex-direction: column; gap: 4px; }
.pl-num { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); letter-spacing: 0.06em; }
.pl-phase strong { font-family: var(--font-head); font-size: var(--step-1); font-weight: 600; line-height: 1.2; }
.pl-what p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.pl-out { font-size: var(--step--1); color: var(--text); background: var(--accent-soft); color: var(--accent-ink); border-radius: 8px; padding: 12px 14px; }
.pl-label { display: block; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; margin-bottom: 4px; }
@media (max-width: 900px) { .pipeline li { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Team hub diagram ---------- */
.hub { width: 100%; height: auto; max-width: 420px; margin: 0 auto; display: block; }
.hub-centre { font-family: var(--font-head); font-size: 17px; font-weight: 600; fill: var(--on-accent); }
.hub-centre-sub { font-family: var(--font-mono); font-size: 9px; fill: var(--on-accent); opacity: 0.8; }
.hub-node rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.hub-node text { font-family: var(--font-body); font-size: 12px; font-weight: 500; fill: var(--text); }

/* ---------- Scale strip (delivery) ---------- */
.scale-strip { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.scale-strip li { margin: 0; padding: 16px 18px; background: var(--surface); }
.scale-strip strong { display: block; font-family: var(--font-head); font-size: var(--step-1); color: var(--accent); line-height: 1.15; margin-bottom: 4px; }
.scale-strip span { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 900px) { .scale-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .scale-strip { grid-template-columns: 1fr; } }
