/* Zimny Creative — Dark-First Systems Lab + Light Studio Toggle
 * Zero third-party CDNs · Self-hosted SIL OFL fonts · Strict CSP
 */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/ibm-plex-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/ibm-plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("./fonts/playfair-display-latin-wght.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("./fonts/newsreader-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("./fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Base declaration follows system; HTML <meta name="color-scheme" content="dark">
   * maps back to Dark-First Systems Lab by default via :has(). */
  color-scheme: light dark;

  /* 4-color ZC prism tokens extracted from the official ZC lightbulb-sun mark */
  --prism-red: #e0312a;
  --prism-gold: #f4b41a;
  --prism-green: #1ea857;
  --prism-blue: #2f74ea;
  --prism-steel: #5e78a3;

  /* Fallback tokens for older browsers without light-dark() (Dark-First default) */
  --bg: #080a0e;
  --bg-elevated: #0f131a;
  --bg-hover: #151b26;
  --ink: #f1f4f9;
  --ink-muted: #98a2b3;
  --ink-dim: #6f7a8c;
  --rule: #1e2532;
  --rule-strong: #2d3748;
  --accent: #f4b41a;
  --accent-ink: #080a0e;
  --chip-bg: #141923;
  --grid-line: rgb(255 255 255 / 0.035);
  --shadow: 0 20px 50px rgb(0 0 0 / 0.45);

  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-serif-body: "Newsreader", Georgia, "Times New Roman", serif;
  --max-w: 1180px;
  --radius: 10px;
}

@supports (color: light-dark(white, black)) {
  :root {
    --bg: light-dark(#f6f3ec, #080a0e);
    --bg-elevated: light-dark(#ffffff, #0f131a);
    --bg-hover: light-dark(#f1ede4, #151b26);
    --ink: light-dark(#141413, #f1f4f9);
    --ink-muted: light-dark(#4e4d48, #98a2b3);
    --ink-dim: light-dark(#6c6b65, #6f7a8c);
    --rule: light-dark(#dcd6c8, #1e2532);
    --rule-strong: light-dark(#bfb7a5, #2d3748);
    --accent: light-dark(#c27803, #f4b41a);
    --accent-ink: light-dark(#ffffff, #080a0e);
    --chip-bg: light-dark(#ece7dc, #141923);
    --grid-line: light-dark(rgb(20 20 19 / 0.045), rgb(255 255 255 / 0.035));
    --shadow: light-dark(0 16px 36px rgb(20 20 19 / 0.08), 0 20px 50px rgb(0 0 0 / 0.45));
  }
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  color-scheme: dark;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) {
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  accent-color: var(--accent);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-size-adjust: from-font;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--prism-gold);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--prism-gold);
  color: #080a0e;
  font-weight: 600;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* 4-color prism roof hairline */
.prism-roof {
  height: 3px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--prism-red) 0%,
    var(--prism-red) 25%,
    var(--prism-gold) 25%,
    var(--prism-gold) 50%,
    var(--prism-green) 50%,
    var(--prism-green) 75%,
    var(--prism-blue) 75%,
    var(--prism-blue) 100%
  );
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-emblem-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 48%, #0c1018 58%, #06080c 100%);
  border: 1px solid color-mix(in srgb, var(--prism-gold) 28%, var(--rule-strong));
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.28);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.mobile-nav-drawer {
  display: none;
  position: relative;
}

.mobile-nav-drawer > summary {
  list-style: none;
}

.mobile-nav-drawer > summary::-webkit-details-marker {
  display: none;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-size-adjust: ch-width from-font;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.42rem 0.72rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink-muted);
  transition: color 120ms ease, background-color 120ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--chip-bg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.58rem 0.9rem;
  border-radius: 7px;
  border: 1px solid var(--rule-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.btn:hover,
.icon-btn:hover {
  border-color: var(--prism-gold);
  background: var(--bg-hover);
}

.btn-primary {
  background: var(--prism-gold);
  border-color: var(--prism-gold);
  color: #080a0e;
}

.btn-primary:hover {
  background: #ffc333;
  border-color: #ffc333;
  color: #080a0e;
}

.btn-ghost {
  background: transparent;
}

.kbd-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 0.1rem 0.34rem;
}

/* CSS-only theme button label branching driven by <meta name="color-scheme"> */
.theme-label-light,
.theme-label-dark {
  display: none;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-label-light {
  display: inline;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) .theme-label-dark {
  display: inline;
}

@media (prefers-color-scheme: dark) {
  :root:has(> head > meta[name="color-scheme"][content="light dark"]) .theme-label-light {
    display: inline;
  }
}

@media (prefers-color-scheme: light) {
  :root:has(> head > meta[name="color-scheme"][content="light dark"]) .theme-label-dark {
    display: inline;
  }
}

/* Hero — Component-specific dark studio stage so the black-background ZC prism
 * and solar lightbulb artwork render seamlessly in both Dark and Light studio modes. */
.hero-brand-stage {
  color-scheme: only dark;
  background-color: #05070a;
  background-image:
    radial-gradient(circle at 72% 18%, rgb(244 180 26 / 0.14), transparent 46%),
    linear-gradient(to right, rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  color: #f1f4f9;
  accent-color: #f4b41a;
  border-bottom: 1px solid #1e2532;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-size-adjust: ch-width from-font;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #f4b41a;
  margin: 0 0 1rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--prism-gold);
  box-shadow: 0 0 10px rgb(244 180 26 / 0.75);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.25rem, 4.4vw, 3.65rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-size-adjust: cap-height from-font;
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 1.25rem;
  padding: 0;
  list-style: none;
}

.hero-pillars li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #d0d7e2;
  border: 1px solid #252e3f;
  background: #0d1118;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.hero-lead {
  margin: 0 0 1.65rem;
  max-width: 56ch;
  font-size: 1.08rem;
  color: #a6b0c0;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-cta-row .btn-secondary-dark {
  background: #10151f;
  border-color: #2b3547;
  color: #f1f4f9;
}

.hero-cta-row .btn-secondary-dark:hover {
  border-color: #f4b41a;
  background: #161d2b;
}

.hero-meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid #1c2230;
}

.meta-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.meta-stat strong {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #f1f4f9;
}

.meta-stat span {
  font-size: 0.78rem;
  color: #8892a4;
}

.hero-visual {
  position: relative;
  border: 1px solid #202838;
  border-radius: 14px;
  background: #000000;
  overflow: hidden;
  box-shadow: 0 28px 64px rgb(0 0 0 / 0.65);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1024 / 880;
  object-fit: cover;
}

.hero-visual-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-top: 1px solid #1a212e;
  background: #0a0d13;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #9ba5b7;
}

.prism-swatches {
  display: inline-flex;
  gap: 5px;
}

.prism-swatches i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

/* Sections */
.section {
  padding-block: clamp(2.4rem, 4.5vw, 3.8rem);
  border-bottom: 1px solid var(--rule);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-size-adjust: ch-width from-font;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 0.35rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-size-adjust: cap-height from-font;
}

/* Featured Broadsheet Ad — Component-specific light theme so The Frontier
 * renders as authentic newsprint broadsheet inside the Dark-First Systems Lab. */
.frontier-spotlight {
  color-scheme: only light;
  background: #faf6ec;
  color: #161412;
  accent-color: #b31b1b;
  border: 1px solid #d4cbb8;
  border-top: 5px solid #b31b1b;
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 1.75rem;
  align-items: center;
}

.frontier-ad-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b31b1b;
  font-weight: 600;
  margin: 0 0 0.45rem;
}

.frontier-masthead {
  font-family: var(--font-serif-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  padding-bottom: 0.55rem;
  border-bottom: 3px double #161412;
  color: #161412;
}

.frontier-ad-headline {
  font-family: var(--font-serif-body);
  font-size: clamp(1.18rem, 1.8vw, 1.42rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0.85rem 0 0.55rem;
  color: #161412;
}

.frontier-ad-deck {
  font-family: var(--font-serif-body);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.44;
  color: #3f3b35;
  margin: 0 0 1rem;
}

.frontier-beats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.frontier-beats li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3f3b35;
  border: 1px solid #cfc5b0;
  background: #f3ede0;
  padding: 0.2rem 0.52rem;
  border-radius: 3px;
}

.frontier-ad-rail {
  border-left: 1px solid #d4cbb8;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.frontier-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7f1d1d;
  background: #f9e6e4;
  border: 1px solid #e5b7b3;
  padding: 0.28rem 0.6rem;
  border-radius: 4px;
}

.btn-frontier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #b31b1b;
  color: #ffffff;
  border: 1px solid #b31b1b;
  border-radius: 6px;
  padding: 0.72rem 1.05rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.btn-frontier:hover {
  background: #921515;
  border-color: #921515;
}

.frontier-secondary-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #3f3b35;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: var(--bg-elevated);
  color: var(--ink-muted);
  cursor: pointer;
}

.filter-btn:hover {
  color: var(--ink);
  border-color: var(--prism-gold);
}

.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Ventures Bento Grid — 6-track centered 3+2 editorial composition on desktop */
.venture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (min-width: 961px) {
  .venture-grid:not([data-filtered="true"]) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .venture-grid:not([data-filtered="true"]) > .venture-card {
    grid-column: span 2;
  }

  .venture-grid:not([data-filtered="true"]) > .venture-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

.venture-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--card-accent, var(--prism-blue));
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 140ms ease, transform 140ms ease;
}

.venture-card:hover {
  border-color: var(--rule-strong);
  border-top-color: var(--card-accent, var(--prism-blue));
  transform: translateY(-2px);
}

.venture-card[hidden] {
  display: none;
}

.accent-red { --card-accent: var(--prism-red); }
.accent-gold { --card-accent: var(--prism-gold); }
.accent-blue { --card-accent: var(--prism-blue); }
.accent-green { --card-accent: var(--prism-green); }

.venture-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.venture-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--rule-strong);
  background: var(--chip-bg);
  color: var(--ink);
}

.venture-name {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}

.venture-name a {
  text-decoration: none;
}

.venture-name a:hover {
  text-decoration: underline;
}

.venture-summary {
  margin: 0 0 1.1rem;
  font-size: 0.94rem;
  color: var(--ink-muted);
  flex: 1;
}

.venture-highlights {
  margin: 0 0 1.15rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.venture-highlights li {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
  padding-left: 0.85rem;
  position: relative;
}

.venture-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--card-accent, var(--prism-gold));
}

.venture-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.venture-foot a {
  color: var(--ink);
  text-decoration: none;
}

.venture-foot a:hover {
  color: var(--prism-gold);
}

/* Press & Recognition */
.press-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.press-card {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.press-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
}

.press-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.press-summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Support Banner */
.support-band {
  background: var(--bg-elevated);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 1.5rem;
  align-items: center;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.support-pending {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  border: 1px dashed var(--rule-strong);
  border-radius: 7px;
  padding: 0.65rem 0.9rem;
  background: var(--chip-bg);
}

/* Venture Detail & Subpages */
.page-hero {
  padding-block: clamp(2rem, 4vw, 3.2rem);
  border-bottom: 1px solid var(--rule);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-dim);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 2rem;
  padding-block: 2.4rem;
}

.detail-prose p {
  margin: 0 0 1rem;
  max-width: 65ch;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.detail-sidebar {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: fit-content;
}

.brand-kit-grid {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 1.65rem;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.45rem;
}

.brand-specimens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.brand-kit-frame {
  margin: 0;
  border-radius: 10px;
  padding: 0.9rem 0.75rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  text-align: center;
}

.brand-kit-frame img {
  width: min(100%, 190px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.brand-kit-frame figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.brand-kit-frame.specimen-dark {
  color-scheme: only dark;
  background: radial-gradient(circle at 50% 42%, #111622 0%, #080a0e 74%);
  color: #cdd5e2;
  border: 1px solid #202838;
}

.brand-kit-frame.specimen-light {
  color-scheme: only light;
  background: #f6f3ec;
  color: #3f3d38;
  border: 1px solid #d5cebe;
}

.specimen-medallion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 182px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, #101521 56%, #07090d 100%);
  border: 1px solid #cfc7b5;
  box-shadow: 0 12px 26px rgb(20 20 19 / 0.16);
  padding: 0.35rem;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.swatch-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  background: var(--chip-bg);
}

.swatch-chip i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

/* Native Search Modal (<dialog closedby="any">) */
dialog.search-dialog {
  width: min(640px, calc(100vw - 2rem));
  max-height: min(78vh, 620px);
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: var(--shadow);
}

dialog.search-dialog[open] {
  display: flex;
  flex-direction: column;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgb(4 6 10 / 0.72);
  backdrop-filter: blur(4px);
}

.search-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--rule);
}

.search-dialog-head h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.search-dialog-body {
  padding: 1rem 1.15rem 1.15rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.search-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  padding: 0.68rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  color: var(--ink);
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-results a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--rule);
  text-decoration: none;
  background: var(--bg);
}

.search-results a:hover {
  border-color: var(--prism-gold);
}

.search-result-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.search-result-title {
  font-weight: 600;
  display: block;
  margin-top: 0.15rem;
}

.search-result-desc {
  font-size: 0.86rem;
  color: var(--ink-muted);
  display: block;
  margin-top: 0.15rem;
}

/* Footer */
.site-footer {
  padding-block: 2.2rem 3rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .frontier-spotlight,
  .support-band,
  .detail-grid,
  .brand-kit-grid {
    grid-template-columns: 1fr;
  }

  .frontier-ad-rail {
    border-left: 0;
    border-top: 1px solid #d4cbb8;
    padding-left: 0;
    padding-top: 1.1rem;
  }

  .venture-grid,
  .press-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-actions {
    justify-content: flex-start;
  }
}

@media (pointer: coarse) {
  .kbd-hint {
    display: none;
  }

  .btn,
  .icon-btn,
  .filter-btn {
    min-height: 44px;
  }
}

@media (max-width: 660px) {
  .header-inner {
    flex-wrap: nowrap;
    min-height: 58px;
    padding-block: 0.35rem;
    gap: 0.5rem;
  }

  .brand-emblem-frame {
    width: 38px;
    height: 38px;
  }

  .brand-emblem {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 0.88rem;
    letter-spacing: 0.06em;
  }

  .brand-sub {
    font-size: 0.62rem;
  }

  .site-nav,
  .desktop-action-only,
  .kbd-hint {
    display: none;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .header-actions > .btn-primary,
  .mobile-menu-btn {
    min-height: 44px;
    padding: 0.5rem 0.78rem;
    font-size: 0.82rem;
  }

  .mobile-nav-drawer {
    display: block;
  }

  .mobile-drawer-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: min(290px, calc(100vw - 2rem));
    background: var(--bg-elevated);
    border: 1px solid var(--rule-strong);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 0.65rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .mobile-drawer-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.45rem 0.7rem;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    color: var(--ink);
  }

  .mobile-drawer-nav a:hover,
  .mobile-drawer-nav a[aria-current="page"] {
    background: var(--chip-bg);
  }

  .mobile-drawer-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--rule);
  }

  .mobile-drawer-tools .icon-btn {
    min-height: 44px;
    width: 100%;
  }

  .hero-grid {
    gap: 1.35rem;
    padding-block: 1.65rem 2.1rem;
  }

  .hero-meta-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 1.3rem;
    padding-top: 0.95rem;
  }

  .meta-stat strong {
    font-size: 0.8rem;
  }

  .meta-stat span {
    font-size: 0.69rem;
    line-height: 1.25;
  }

  .brand-specimens,
  .venture-grid,
  .press-list {
    grid-template-columns: 1fr;
  }
}
