/* Self-hosted from Google Fonts (SIL Open Font License 1.1). Latin and Latin Extended subsets only. */
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-400-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-500-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-600-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-700-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-600-latin.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;
}

/* Phorbie site styles, following the Phorbie brand guide.
   Quiet object, one clear accent: flat graphite bands, light sections, red as the one action color,
   caution yellow only as a small detail. IBM Plex Sans for everything, IBM Plex Mono for labels and specs.
   The lowercase wordmark is an outlined SVG; never set text in Nunito. */
:root {
  /* Brand tokens (brand guide) */
  --graphite: #4B4B4B;
  --red: #C62B3C;
  --orange: #F26A21;
  --caution: #F2D600;
  --black: #151515;
  --white: #F7F7F5;
  --paper: #F3F3F1;
  --ink: #1E1E1F;
  --muted: #5E5E5C;
  --line: #D9D9D5;

  /* Roles */
  --bg: var(--paper);
  --surface: var(--white);
  --fg: var(--ink);
  --band: var(--graphite);
  --band-fg: var(--white);
  --band-muted: #C9C9C6;
  --accent: var(--red);
  --accent-hover: #B02334;
  --on-accent: #FFFFFF;
  --red-text: #B02334;
  --media: #EAEAE6;
  --focus: var(--ink);

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 72rem;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1B1C; --surface: #242425; --fg: #ECECEA; --muted: #A8A8A5; --line: #3A3A3C;
    --band: #2E2E2F; --band-muted: #BDBDBA; --red-text: #F0707E; --media: #D8D8D4; --focus: #ECECEA;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B1B1C; --surface: #242425; --fg: #ECECEA; --muted: #A8A8A5; --line: #3A3A3C;
  --band: #2E2E2F; --band-muted: #BDBDBA; --red-text: #F0707E; --media: #D8D8D4; --focus: #ECECEA;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--font-sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.band, .site-head, .site-foot { --focus: var(--white); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--band); color: var(--band-fg); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.logo { display: inline-flex; color: var(--band-fg); }
.logo svg { height: 26px; width: auto; }
.nav { display: flex; gap: 1.6rem; align-items: center; font-size: 0.95rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--band-muted); }
.nav a:hover, .nav a[aria-current] { color: var(--band-fg); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-sans); line-height: 1.08; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
.lede { font-size: 1.15rem; max-width: 36rem; text-wrap: pretty; }
.eyebrow {
  font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.band .eyebrow { color: var(--band-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.25rem; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none;
  border: 1.5px solid transparent; transition: background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(127,127,127,.12); }
.btn span[aria-hidden] { transition: transform .2s ease; }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- Placeholder marker ---------- */
.ph {
  display: inline-block; vertical-align: middle;
  font: 600 0.68rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.28rem 0.45rem; border-radius: 4px;
  border: 1px dashed currentColor; color: var(--red-text); background: transparent;
}
.band .ph { color: #FFB3BB; }

/* ---------- Bands and sections ---------- */
.band { background: var(--band); color: var(--band-fg); }
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { display: grid; gap: 0.8rem; max-width: 40rem; }

/* ---------- Home hero ---------- */
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero-x { padding-block: clamp(3.5rem, 8vw, 6.5rem); overflow: hidden; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero-copy .lede { color: var(--band-muted); }
.hero-x h1 em { font-style: normal; text-decoration: underline; text-decoration-color: var(--caution); text-decoration-thickness: 0.1em; text-underline-offset: 0.12em; }
.hero-media { position: relative; }
.lineup { width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgba(0,0,0,.28)); }
.launch-note { display: inline-flex; align-items: center; gap: 0.55rem; font: 500 0.82rem var(--font-mono); color: var(--band-muted); }
.launch-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--caution); flex: none; }


/* ---------- Product cards ---------- */
.pgrid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 1.2rem; margin-top: 2.4rem; }
.pgrid-2 { grid-template-columns: 1fr 1fr; max-width: 52rem; }
.pcard { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative;
  transition: border-color .2s ease; }
.pcard:hover { border-color: var(--graphite); }
.pcard-media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: var(--media); }
.pcard-media.dark { background: #E2E2DE; }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s ease; }
.pcard-media img.photo { object-fit: cover; mix-blend-mode: normal; }
.pcard:hover .pcard-media img { transform: scale(1.03); }
.tag { position: absolute; top: 14px; left: 14px; z-index: 1; font: 500 0.7rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: .45rem .6rem; border-radius: 999px; background: var(--graphite); color: #FFFFFF; }
.tag-new { background: var(--caution); color: var(--ink); }
.pphoto { color: var(--red-text); }
.pcard-body { display: grid; gap: .7rem; padding: 1.3rem 1.4rem 1.5rem; align-content: start; }
.pcard-body p { color: var(--muted); font-size: .98rem; }
.pcard-lead h3 { font-size: 1.4rem; }
.pmeta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .2rem; }
.pprice { font: 600 1.3rem var(--font-sans); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(127,127,127,.5); }
.pcta { font-weight: 600; display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Feature ---------- */
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.feature-media { background: var(--media); border-radius: var(--radius); overflow: hidden; }
.feature-media img { width: 100%; }
.feature-copy { display: grid; gap: 1.2rem; min-width: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.ticks { gap: 0; border-bottom: 1px solid var(--line); }
.ticks li { padding: 0.6rem 0; border-top: 1px solid var(--line); }
.band .ticks, .band .ticks li { border-color: rgba(255,255,255,.14); }
.textlink { font-weight: 600; color: var(--fg); text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.feature .textlink { color: var(--band-fg); }

/* ---------- Reviews ---------- */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.2rem; margin: 2.2rem 0; }
.quote { margin: 0; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 1rem; align-content: space-between; }
.quote blockquote { margin: 0; font: 500 1.1rem/1.5 var(--font-sans); }
.quote blockquote::before { content: "★★★★★"; display: block; color: var(--muted); letter-spacing: .15em; font-size: .85rem; margin-bottom: .7rem; }
.quote:first-child blockquote { font-size: 1.25rem; }
.quote figcaption { font: 500 .75rem var(--font-mono); color: var(--muted); letter-spacing: .06em; }

/* ---------- About / values ---------- */
#about { border-top: 1px solid var(--line); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.values div { display: grid; gap: 0.6rem; align-content: start; border-top: 2px solid var(--graphite); padding-top: 1.2rem; }
.values h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
.values a { color: var(--fg); text-underline-offset: .18em; }
.values p { color: var(--muted); }

/* ---------- Product page ---------- */
.crumbs { font: 500 0.78rem var(--font-mono); color: var(--band-muted); }
.crumbs a { color: var(--band-muted); }
.pdp .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.stage {
  position: relative; background: var(--media); border-radius: var(--radius);
  aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; max-width: 100%;
}
.stage-col { display: grid; gap: 0.75rem; min-width: 0; }
.stage model-viewer { width: 100%; height: 100%; background: transparent; --poster-color: transparent; }
/* Until the viewer script loads, show the same poster image the viewer uses. */
.stage model-viewer#viewer:not(:defined) { display: block; background: url(img/case-graphite-black.webp) center / contain no-repeat; }
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); padding: 3px; }
.seg button { font: 600 0.9rem var(--font-sans); color: var(--band-muted); background: transparent; border: 0; border-radius: 7px; padding: 0.45rem 0.9rem; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--band-fg); color: var(--graphite); }
.hint { font: 500 0.75rem var(--font-mono); color: var(--band-muted); }
.stage img.shell { width: 46%; filter: drop-shadow(0 18px 22px rgba(0,0,0,.35)); }
.stage img.strap { position: absolute; width: 40%; right: 6%; bottom: 7%; filter: drop-shadow(0 10px 14px rgba(0,0,0,.3)); }
.stage .ph { position: absolute; left: 14px; top: 14px; color: #B02334; background: rgba(255,255,255,.6); }
.stage .dims { position: absolute; left: 14px; bottom: 12px; font: 500 0.75rem var(--font-mono); color: #4B4B4B; }
.buybox { display: grid; gap: 1.4rem; min-width: 0; }
.price { font: 700 1.9rem var(--font-sans); display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.picker { display: grid; gap: 0.6rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.picker legend { padding: 0; margin-bottom: 0.6rem; font-weight: 600; }
.picker legend span { font-weight: 400; color: var(--band-muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.swatches input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatches label { width: 2.6rem; height: 2.6rem; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255,255,255,.25); }
.swatches input:checked + label { outline: 3px solid var(--band-fg); outline-offset: 3px; }
.swatches input:focus-visible + label { outline: 3px solid var(--caution); outline-offset: 3px; }
.sw-black { background: #222224; } .sw-white { background: #F4F4F1; }
.sw-graphite { background: #4B4B4B; } .sw-red { background: #C62B3C; } .sw-orange { background: #F26A21; }
.fine { font-size: 0.88rem; color: var(--band-muted); }

.split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.part { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.6rem; align-content: start; }
.part p { color: var(--muted); }

.specs-wrap { overflow-x: auto; margin-top: 2rem; }
table.specs { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 30rem; }
.specs th, .specs td { text-align: left; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 34%; font-weight: 600; color: var(--muted); }
.specs td { font-family: var(--font-mono); font-size: 0.92rem; font-variant-numeric: tabular-nums; }

.faq { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.6rem; color: var(--muted); max-width: 44rem; }

.notice { border-top: 1px solid var(--line); padding-top: 1rem; color: var(--muted); font-size: 0.92rem; max-width: 46rem; }

/* Scroll story */
.how { border-top: 1px solid rgba(255,255,255,.08); padding-block: 0; }
.how-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; }
.how-stage { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; padding-block: 8vh; }
.how-stage .stage { height: 100%; aspect-ratio: auto; }
.how-steps { display: grid; }
.step { min-height: 90vh; display: grid; align-content: center; gap: 1rem; opacity: .35; transition: opacity .3s ease; }
.step.is-active { opacity: 1; }
.step h2 { font-size: clamp(2rem, 4vw, 3rem); }
.step p:not(.eyebrow) { color: var(--band-muted); max-width: 30rem; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--black); color: var(--band-muted); font-size: 0.92rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-block: 3rem; }
.site-foot h3 { color: var(--band-fg); font-size: 0.95rem; margin-bottom: 0.6rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-foot a { color: var(--band-muted); }
.site-foot a:hover { color: var(--band-fg); }
.site-foot .logo svg { height: 22px; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid #333335; padding-top: 1.2rem; font-size: 0.8rem; display: grid; gap: 0.4rem; }

/* =====================================================================
   Depth and personality. Everything here comes from the brand guide:
   precise (dot grid, part callouts), tactile (keys you can
   press), and honest (the build log). No grain, no glow, no outline type.
   ===================================================================== */

/* Dot grid at an 18px pitch: the cover's pattern, as a quiet texture on dark bands */
.hero-x, .feature.band, .pdp.band {
  background-color: var(--band);
  background-image: radial-gradient(rgba(255,255,255,.075) 1px, transparent 1.3px);
  background-size: 18px 18px;
}
/* A neutral light pool and floor shadow so the product sits in a space, not on a flat fill */
.hero-media::before {
  content: ""; position: absolute; inset: -8% -6% 4%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,.16), rgba(255,255,255,.05) 55%, transparent 75%);
}
.hero-media::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -3%; height: 10%; z-index: 0; pointer-events: none;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); filter: blur(4px);
}
.hero-media .lineup { position: relative; z-index: 1; filter: drop-shadow(0 24px 26px rgba(0,0,0,.35)); }

/* Part callouts on the hero image, set like labels on a drawing */
.callouts { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.callout {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-5px, -50%);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font: 500 0.7rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--white);
}
.callout::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--caution); box-shadow: 0 0 0 3px rgba(21,21,21,.55); flex: none; }
.callout { background: linear-gradient(90deg, transparent 0 15px, rgba(21,21,21,.78) 15px); padding: 6px 9px 6px 0; border-radius: 0 6px 6px 0; }

/* Keys: buttons with a little travel, like a Braun calculator */
.btn { position: relative; transition: background .15s ease, transform .08s ease, box-shadow .12s ease; }
.btn-primary {
  background: linear-gradient(180deg, #D13345, var(--accent) 55%, #B9283A);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.18), 0 1px 0 rgba(0,0,0,.25), 0 8px 16px -8px rgba(0,0,0,.45);
}
.btn-primary:hover { background: linear-gradient(180deg, #C42E40, var(--accent-hover) 55%, #A8202F); }
.btn:active { transform: translateY(1px); }
.btn-primary:active { box-shadow: inset 0 2px 3px rgba(0,0,0,.25), 0 1px 0 rgba(0,0,0,.2); }
.btn-ghost { box-shadow: inset 0 -2px 0 rgba(127,127,127,.18); }

/* Cards: lit like a product shot, lifted a little off the page */
.pcard { box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 14px 30px -22px rgba(0,0,0,.4); transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 24px 40px -24px rgba(0,0,0,.45); }
.pcard-media { background: radial-gradient(95% 85% at 50% 30%, #FFFFFF, #E3E3DF); }
.pcard-media.dark { background: radial-gradient(95% 85% at 50% 30%, #F4F4F1, #D6D6D1); }
.pcard-media img { filter: drop-shadow(0 14px 14px rgba(0,0,0,.18)); }
.pcard-media img.photo { filter: none; }
.pgrid-2 .feature-media { box-shadow: 0 30px 50px -30px rgba(0,0,0,.6); background: radial-gradient(95% 85% at 50% 30%, #FFFFFF, #E3E3DF); }
.stage { background: radial-gradient(95% 85% at 45% 30%, #FFFFFF, #DEDED9); box-shadow: 0 30px 50px -30px rgba(0,0,0,.6); }
.quote { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 14px 30px -24px rgba(0,0,0,.35); }


/* Build log */
.log { list-style: none; margin: 2.4rem 0 0; padding: 0; border-top: 2px solid var(--graphite); }
.log li { display: grid; grid-template-columns: 7rem 1fr auto; gap: 1.5rem; align-items: start; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.log-id { font: 500 0.8rem/1.6 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.log h3 { font-size: 1.15rem; }
.log p { color: var(--muted); margin-top: .35rem; max-width: 40rem; }
.log-tag { font: 500 0.68rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: .45rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.log-fail { border-color: currentColor; color: var(--red-text); }


@media (max-width: 860px) {
  .callouts { display: none; }
  .log li { grid-template-columns: 1fr; gap: .5rem; }
  .log-tag { justify-self: start; }
}

/* Reveal (only when motion.js runs) */
.motion .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease var(--d, 0ms), transform .6s ease var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) { .pgrid { grid-template-columns: 1fr 1fr; } .pcard-lead { grid-column: 1 / -1; } }
@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-stage { height: 52vh; padding-block: 1rem; z-index: 1; background: var(--band); }
  .step { min-height: 75vh; align-content: start; padding-top: 2rem; }
  .hero .wrap, .feature .wrap, .pdp .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .values, .split, .quotes { grid-template-columns: 1fr; }
    .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  .site-foot .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .pgrid { grid-template-columns: 1fr; } }
@media (max-width: 460px) {
  .nav { gap: 1rem; font-size: 0.9rem; }
  .nav .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Graphic element: rounded blocks on a notebook dot grid (brand guide, Graphic elements) */
.bench {
  background-color: var(--bg);
  background-image: radial-gradient(var(--line) 1px, transparent 1.3px);
  background-size: 18px 18px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bench { background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.3px); } }
:root[data-theme="dark"] .bench { background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.3px); }
.bench .log { background: var(--bg); box-shadow: 0 0 0 18px var(--bg); }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
main:has(> .nf) { display: flex; flex-direction: column; }
.nf { flex: 1 0 auto; display: flex; align-items: center; min-height: 432px; }
.nf .wrap { width: 100%; }
.nf {
  position: relative; overflow: hidden;
  background-image: radial-gradient(rgba(255,255,255,.075) 1px, transparent 1.3px); background-size: 18px 18px;
}
.nf .wrap { position: relative; z-index: 1; }
/* Photo cards: the index label sits on a small chip so it reads over any background */
.pcard-media:has(img.photo) .pcard-media:has(img.photo) 
/* Perimeters: soft contour lines around blocks or a product footprint, the secondary
   pattern to the dot grid. One or two places per page, never as a section divider. */
.hero-media .contours {
  position: absolute; left: -107.9%; top: -75.8%; width: 285%; height: auto; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 34% 58% at 56% 52%, #000 50%, transparent 100%);
          mask-image: radial-gradient(ellipse 34% 58% at 56% 52%, #000 50%, transparent 100%);
}
@media (max-width: 860px) {
  .hero-media .contours {
    -webkit-mask-image: radial-gradient(ellipse 30% 30% at 55% 56%, #000 45%, transparent 100%);
            mask-image: radial-gradient(ellipse 30% 30% at 55% 56%, #000 45%, transparent 100%);
  }
}

/* ---------------------------------------------------------------------------
   Keys: the Phorbie shape (brand guide, Graphic elements).
   Squares and golden rectangles on a 36px cell; a cap on a skirt, lit from above.
   Travel by the key's short side: 1 cell 6px, 2 8px, 3 10px, 5 12px, 8 14px, 13 16px.
   On paper: graphite keys. On graphite, black and in dark mode: gray keys.
--------------------------------------------------------------------------- */
:root { --cell: 36px; --kc1: #555553; --kc2: #4B4B4B; --ksh: .25; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --kc1: #93938F; --kc2: #82827E; --ksh: .45; } }
:root[data-theme="dark"] { --kc1: #93938F; --kc2: #82827E; --ksh: .45; }
.band, .site-foot { --kc1: #93938F; --kc2: #82827E; --ksh: .45; }
.key {
  --w: 1; --h: 1; --t: 6px; --skirt: #2E2E2F;
  display: block; flex: none; width: calc(var(--w) * var(--cell)); height: calc(var(--h) * var(--cell));
  border-radius: 10px; background: linear-gradient(180deg, var(--kc1), var(--kc2));
  box-shadow: 0 var(--t) 0 var(--skirt), inset 0 2px 0 rgba(255,255,255,.24), inset 0 -1.5px 0 rgba(0,0,0,.12),
              0 calc(var(--t) + 11px) 17px -6px rgba(0,0,0,var(--ksh));
  translate: 0 calc(var(--hang, 0px) + var(--drift, 0px));
}
.key.k1 { border-radius: 8px; }
.key.red { background: linear-gradient(180deg, #D53A4C, #C62B3C); --skirt: #8E1F2B; }
.key.caution { background: linear-gradient(180deg, #F8E21E, #EBCF00); --skirt: #A89300; }
/* A group: one-cell gaps; each key stands on the group's line or hangs from it */
.keys { display: flex; gap: var(--cell); pointer-events: none; }
.keys > .key { align-self: flex-end; }
.keys > .key.hang { align-self: flex-start; }
/* A headline with keys on its lines. The group has no height and sits on the heading's last baseline:
   a key that stands rises from the baseline; a key that hangs drops so its top meets the cap line
   (IBM Plex Sans cap height: .698em of the heading size). */
.kline { display: flex; align-items: last baseline; gap: calc(var(--cell) * 3); }
.kline > :first-child { font-size: 1em; max-width: 40rem; }
.kline-h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
.kline-h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.kline > .keys { height: 0; align-items: flex-end; }
.kline > .keys > .key { align-self: flex-end; }
.kline > .keys > .key.hang { --hang: calc(var(--h) * var(--cell) - .698em); }
.section-head:has(.kline) { max-width: none; }
.section-head:has(.kline) > :not(.kline) { max-width: 40rem; }
@media (max-width: 900px) { .kline > .keys { display: none; } }
/* Hanging keys drop below the heading: keep a clear cell between them and what follows. */
@media (min-width: 901px) {
  .section-head:has(.key.hang) { padding-bottom: var(--cell); }
  /* Hanging keys drop past the heading, so they sit at the right edge, and the text below keeps three cells clear of them.
     --gw is the group's width in cells, set on the section head. */
  .section-head .kline > .keys:has(.hang) { margin-left: auto; }
  .section-head:has(.key.hang) > :not(.kline) { max-width: min(40rem, calc(100% - (var(--gw, 8) + 3) * var(--cell))); }
}
.foot-keys { margin-top: var(--cell); padding-bottom: 16px; }   /* one cell clear of the footer line; room for the skirt */
/* Movement: keys settle down by their own travel as they arrive; bigger keys drift a little further on scroll.
   motion.js sets .in and --drift, and does nothing with reduced motion. */
.motion .keys > .key { opacity: 0; transform: translateY(calc(-1 * (var(--t) + 16px))); transition: opacity .45s ease var(--kd, 0ms), transform .75s cubic-bezier(.2,.8,.2,1) var(--kd, 0ms); }
.motion .keys.in > .key { opacity: 1; transform: none; }

/* Anchor jumps land below the sticky header */
html { scroll-padding-top: 5rem; }

/* ---------- Build log (/log/) ----------
   Process content sits on the notebook dot grid, no keys (brand guide, Graphic elements).
   Text sits on a clean column of paper so the dots never run under it. */
.log-home { padding-block: clamp(3rem, 7vw, 5.5rem); }
.log-home .section-head { background: var(--bg); box-shadow: 0 0 0 18px var(--bg); justify-self: start; }
.log-posts h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
.log-posts h2 a { text-decoration: none; }
.log-posts h2 a:hover { text-decoration: underline; text-underline-offset: .18em; }
.log-feed { margin-top: 2rem; font: 500 0.8rem/1.4 var(--font-mono); letter-spacing: .04em; }
.log-feed a, .log-more a { color: var(--muted); text-underline-offset: .18em; }
.log-feed a:hover, .log-more a:hover { color: var(--fg); }
.log-more { margin-top: 1.8rem; }
.log-latest { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; }
.log-latest a { font-weight: 600; text-underline-offset: .18em; }

.post { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }
.post-wrap { max-width: calc(44rem + 40px); }
.post-head, .prose, .post-foot { background: var(--bg); box-shadow: 0 0 0 18px var(--bg); }
.post-head { display: grid; gap: 1rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.post-head h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); }
.post-head .eyebrow a { color: inherit; text-underline-offset: .18em; }
.prose { padding-block: 1.2rem 2.4rem; }
.prose p, .prose ul, .prose ol, .prose blockquote { font-size: 1.125rem; line-height: 1.7; margin: 1.1rem 0 0; max-width: 40rem; }
.prose h2 { font-size: 1.45rem; letter-spacing: -0.01em; line-height: 1.25; margin: 2.6rem 0 0; }
.prose h3 { margin: 2rem 0 0; }
.prose a { text-underline-offset: .18em; }
.prose figure { margin: 2.2rem 0; }
.prose img { width: 100%; border-radius: 10px; background: var(--media); }
.prose figcaption { margin-top: .7rem; font: 500 0.78rem/1.5 var(--font-mono); letter-spacing: .03em; color: var(--muted); }
.prose blockquote { padding-left: 1.1rem; border-left: 2px solid var(--line); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
.prose code { font: 0.92em var(--font-mono); }
.post-foot { display: grid; gap: 1.8rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.post-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.2rem; }
.post-nav a { display: grid; gap: .3rem; text-decoration: none; font-weight: 600; }
.post-nav a span { font: 500 0.72rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-nav a:hover { text-decoration: underline; text-underline-offset: .18em; }
