/* ============================================
   Lunky.tech — Design tokens (dark, high-end system)
   ============================================ */
:root {
  --ink:      #ece7dd;                 /* primary text — bone/ivory        */
  --black:    #120c0e;                 /* deep bands — oxblood undertone   */
  --white:    #161616;                 /* base — charcoal                  */
  --warm:     #1e1c1a;                 /* lifted warm-charcoal surfaces    */
  --muted:    #a89f93;                 /* secondary text on base           */
  --muted-ondark: #b3a99d;             /* secondary text on deep bands     */
  --line:     rgba(236, 231, 221, 0.10);  /* hairline on base              */
  --line-ondark: rgba(236, 231, 221, 0.14);
  --glass:    rgba(255, 255, 255, 0.05);

  --accent-1: #d4a24c;                 /* warm gold — the one accent       */
  --accent-2: #b0812f;                 /* deep amber                       */
  --burgundy: #5e2431;                 /* oxblood depth accent             */
  --grad-accent: linear-gradient(135deg, var(--accent-1), var(--accent-2));

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;

  --section-padding: clamp(72px, 10vw, 140px);
  --content-max: 1120px;
  --gutter: clamp(20px, 5vw, 40px);

  --radius-btn: 12px;
  --radius-card: 20px;
  --radius-band: clamp(20px, 3vw, 32px);
  --radius-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.30);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.28), 0 16px 40px rgba(0, 0, 0, 0.40);
  --shadow-frame: 0 1px 2px rgba(0, 0, 0, 0.30), 0 32px 80px -16px rgba(0, 0, 0, 0.55);
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; interpolate-size: allow-keywords; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea { font: inherit; }

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

/* ============================================
   Reveal (visible by default; enhanced with JS + motion allowed)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease-out, transform 0.45s ease-out;
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Utility / layout
   ============================================ */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.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;
  top: -100px;
  left: var(--space-3);
  background: var(--ink);
  color: var(--white);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-btn);
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--space-3); }

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

/* ============================================
   Typography
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.08;
  color: var(--ink);
}

h1 { font-size: clamp(44px, 6.5vw, 76px); font-weight: 450; }
h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 450; }
h3 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; letter-spacing: -0.005em; }

p { max-width: 68ch; }

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  margin-bottom: var(--space-4);
  background: var(--white);
}
.chip-ondark {
  color: var(--muted-ondark);
  border-color: var(--line-ondark);
  background: var(--glass);
}

.section-head { margin-bottom: var(--space-6); }
.section-head h2 { margin-bottom: var(--space-3); max-width: 22ch; }
.section-support { color: var(--muted); font-size: 18px; max-width: 58ch; }
.support-ondark { color: var(--muted-ondark); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-lg { padding: 14px 30px; font-size: 16px; }

.btn-primary {
  background: var(--accent-1);
  color: #161616;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: rgba(236, 231, 221, 0.25); transform: translateY(-1px); }

.btn-light {
  background: var(--ink);
  color: #161616;
}
.btn-light:hover { background: #f7f2e8; transform: translateY(-1px); }

/* ============================================
   Pills (status chips inside mockups)
   ============================================ */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  white-space: nowrap;
}
.pill-ok { background: rgba(169, 213, 160, 0.16); color: #a9d5a2; }
.band-dark .pill-ok { background: rgba(169, 213, 160, 0.16); color: #a9d5a2; }
.pill-warm { background: rgba(94, 36, 49, 0.55); color: #dca8b0; }

/* ============================================
   Announcement bar
   ============================================ */
.announce {
  background: var(--warm);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.announce.is-hidden { display: none; }

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  position: relative;
  padding: 9px 0;
}

.announce-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  max-width: none;
}

.announce-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.announce-close {
  position: absolute;
  right: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--muted);
}
.announce-close:hover { color: var(--ink); background: rgba(236, 231, 221, 0.08); }

/* ============================================
   Header / Nav — floating glass pill
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0;
  background: rgba(22, 22, 22, 0.75);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.wordmark-accent { color: var(--muted); }
.mark { flex: none; margin-right: var(--space-2); border-radius: 5px; }
.mark path { fill: currentColor; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.primary-nav a:not(.btn) {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.primary-nav a:not(.btn):hover { color: var(--ink); background: rgba(236, 231, 221, 0.06); }
.primary-nav a.is-active:not(.btn) {
  color: var(--ink);
  background: rgba(236, 231, 221, 0.09);
}

.nav-cta { margin-left: var(--space-3); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: var(--radius-btn);
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* ============================================
   Hero — centered, warm, framed mockup below
   ============================================ */
.hero {
  background: var(--warm);
  padding-top: clamp(56px, 9vw, 110px);
  text-align: center;
  overflow: hidden;
}

.hero-content {
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-content h1 { margin-bottom: var(--space-4); }

.hero-subhead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  margin-bottom: var(--space-5);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Entrance — staggered rise on load (JS + motion allowed only) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-content > *,
  .js .hero-frame {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .js .hero-content .eyebrow-chip { animation-delay: 0ms; }
  .js .hero-content h1 { animation-delay: 90ms; }
  .js .hero-subhead { animation-delay: 180ms; }
  .js .hero-actions { animation-delay: 270ms; }
  .js .hero-frame { animation-delay: 380ms; }
  .js .frame-bar-fill { transform: scaleX(0); transform-origin: left center; animation: bar-grow 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards; }
}
@keyframes hero-rise { to { opacity: 1; transform: none; } }
@keyframes bar-grow { to { transform: scaleX(1); } }

/* Browser-frame mockup */
.hero-frame-wrap {
  position: relative;
  margin-top: clamp(48px, 6vw, 80px);
}

.hero-frame {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  border-bottom: none;
  box-shadow: var(--shadow-frame);
  text-align: left;
  overflow: hidden;
}

.frame-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--warm);
}
.frame-chrome--flat { border-radius: 12px 12px 0 0; }
.frame-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(236, 231, 221, 0.15); }
.frame-url {
  margin-left: var(--space-3);
  font-size: 12px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
}

.frame-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 300px;
}

.frame-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3);
  border-right: 1px solid var(--line);
}
.frame-side-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 10px;
}
.frame-side-item.is-active { color: var(--ink); background: var(--warm); }

.frame-main { padding: var(--space-4); }

.frame-titlerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.frame-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }

.frame-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.frame-stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: var(--space-3);
}
.frame-stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.frame-stat-label { font-size: 12px; color: var(--muted); }

.frame-rows { display: flex; flex-direction: column; gap: var(--space-2); }
.frame-row {
  display: grid;
  grid-template-columns: 150px 1fr 80px;
  align-items: center;
  gap: var(--space-3);
  font-size: 13px;
}
.frame-row-name { font-weight: 500; }
.frame-bar {
  display: block;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(236, 231, 221, 0.08);
  overflow: hidden;
}
.frame-bar-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
}
.frame-row-state { font-size: 12px; color: var(--muted); text-align: right; }

/* Gradient melt: mockup dissolves into the next (white) section */
.hero-melt {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: linear-gradient(to top, var(--white) 0%, rgba(22, 22, 22, 0.85) 40%, rgba(22, 22, 22, 0) 100%);
  pointer-events: none;
}

/* ============================================
   Overview — rounded warm cards on white
   ============================================ */
.overview {
  background: var(--white);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.overview-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--warm);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  padding: var(--space-5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.overview-card > a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line);
}
.overview-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.overview-card h3 { margin: var(--space-3) 0 var(--space-2); }
.overview-card p { color: var(--muted); font-size: 15.5px; }
.overview-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.go-arrow { transition: transform 0.15s ease; }
.overview-card > a:hover .go-arrow { transform: translateX(4px); }

/* ============================================
   Bands — rounded full-width sections
   ============================================ */
.band {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}
.band-dark {
  background: var(--black);
  border-radius: var(--radius-band);
  margin: var(--space-3);
}
.band-dark h2, .band-dark h3 { color: var(--ink); }
.band-light { background: var(--white); }

.band-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-7);
  align-items: center;
}
.band-grid--reverse .band-text { order: 2; }
.band-grid--reverse .band-visual { order: 1; }

.band-text h2 { margin-bottom: var(--space-4); max-width: 18ch; }
.band-lead {
  font-size: 17.5px;
  color: var(--muted);
  margin-bottom: var(--space-5);
}
.band-dark .band-lead { color: var(--muted-ondark); }

.band-points { display: flex; flex-direction: column; gap: var(--space-3); }
.band-points li {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 15px;
  max-width: 52ch;
}
.band-dark .band-points li {
  border-color: var(--line-ondark);
  background: var(--glass);
  color: var(--muted-ondark);
}
.band-points strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 1px; }
.band-dark .band-points strong { color: var(--ink); }

/* ============================================
   Artifacts — mockup cards in band visuals
   ============================================ */
.band-visual { display: flex; justify-content: center; }

.artifact {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.artifact.card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: var(--space-4);
}
.glass {
  background: var(--glass);
  border: 1px solid var(--line-ondark);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.artifact.glass { padding: var(--space-4); color: var(--ink); }

.artifact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.artifact-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.artifact-foot { margin-top: var(--space-4); }

.check-list { display: flex; flex-direction: column; gap: var(--space-2); }
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted-ondark);
  padding: 9px 12px;
  border: 1px solid var(--line-ondark);
  border-radius: 12px;
}
.check-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  background: rgba(169, 213, 160, 0.18);
  color: #a9d5a2;
}

.mini-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 12.5px; }
.mini-tr {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 0.7fr;
  gap: var(--space-2);
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.mini-tr:first-child { border-top: none; }
.mini-th { background: var(--warm); font-weight: 500; color: var(--ink); }
.cell-ok { color: #a9d5a2; }

.node-map, .node-map--sub {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.node-map--sub { margin-top: var(--space-3); }
.node {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--line-ondark);
  border-radius: var(--radius-pill);
  color: var(--ink);
  white-space: nowrap;
}
.node-hub { background: var(--grad-accent); border-color: transparent; }
.node-link { flex: 1; height: 1px; background: var(--line-ondark); min-width: 12px; }

.wire { padding: var(--space-3) 0; display: flex; flex-direction: column; gap: var(--space-2); }
.wire-nav { height: 12px; border-radius: 6px; background: var(--warm); width: 55%; }
.wire-hero { height: 56px; border-radius: 10px; background: linear-gradient(135deg, var(--warm), rgba(212, 162, 76, 0.18)); }
.wire-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.wire-block { height: 36px; border-radius: 8px; background: var(--warm); }

/* ============================================
   How I Work — glass cards on dark
   ============================================ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.how-card {
  border-radius: var(--radius-card);
  padding: var(--space-5);
}
.how-card h3 { margin-bottom: var(--space-2); }
.how-card p { color: var(--muted-ondark); font-size: 15px; }

/* ============================================
   Fit — two warm cards
   ============================================ */
.fit {
  background: var(--warm);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}
.fit .eyebrow-chip { background: transparent; }

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.fit-column.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
}
.fit-column h3 { margin-bottom: var(--space-4); }
.fit-column ul { display: flex; flex-direction: column; gap: var(--space-3); }
.fit-column ul li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 15px;
}
.fit-column ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 12px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(169, 213, 160, 0.16);
  color: #a9d5a2;
}
.fit-column--no ul li::before {
  content: '✕';
  background: rgba(236, 231, 221, 0.08);
  color: var(--muted);
}

/* ============================================
   FAQ — rounded cards, animated open/close
   ============================================ */
.faq {
  background: var(--white);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 780px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  transition: background-color 0.15s ease;
}
.faq-item[open] { background: var(--warm); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15.5px, 2vw, 17px);
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-ico {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: transform 0.2s ease;
}
.faq-ico::before, .faq-ico::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 8px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.faq-ico::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.2s ease; }
.faq-item[open] .faq-ico::after { transform: translate(-50%, -50%) rotate(0deg); }

/* Animated open/close — progressive enhancement, needs ::details-content +
   interpolate-size (Chrome 131+); other browsers keep the instant toggle */
@media (prefers-reduced-motion: no-preference) {
  .faq-item::details-content {
    opacity: 0;
    block-size: 0;
    overflow-y: clip;
    transition: content-visibility 0.3s allow-discrete, opacity 0.3s ease, block-size 0.3s ease;
  }
  .faq-item[open]::details-content {
    opacity: 1;
    block-size: auto;
  }
}

.faq-body { padding: 0 var(--space-4) var(--space-4); }
.faq-body p { color: var(--muted); font-size: 15px; max-width: 64ch; }

/* ============================================
   Contact — dark band with glass form
   ============================================ */
.contact { margin-bottom: 0; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}
.contact-intro h2 { margin-bottom: var(--space-3); max-width: 16ch; }
.contact-intro p { color: var(--muted-ondark); margin-bottom: var(--space-5); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-ondark);
}
.form-field input,
.form-field textarea {
  min-width: 0; /* let the field shrink below the browser default input width */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-ondark);
  color: var(--ink);
  padding: 11px var(--space-3);
  border-radius: var(--radius-btn);
  transition: border-color 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent-1); outline: none; }
.form-field textarea { resize: vertical; }
.form-submit { align-self: flex-start; margin-top: var(--space-2); }
.form-submit[disabled] { opacity: 0.6; cursor: default; transform: none; }

.form-status { font-size: 14.5px; color: var(--muted-ondark); }
.form-status.is-success { color: #a9d5a2; }
.form-status.is-error { color: var(--accent-1); }

/* ============================================
   Footer — warm, giant ghost wordmark
   ============================================ */
.site-footer {
  background: var(--warm);
  color: var(--ink);
  padding-top: var(--space-7);
  padding-bottom: var(--space-5);
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
}
.footer-positioning {
  font-size: 17px;
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: var(--space-4);
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.footer-links a { color: var(--muted); border-radius: 6px; }
.footer-links a:hover { color: var(--ink); }

.footer-wordmark {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.9;
  font-size: clamp(64px, 20vw, 260px);
  color: rgba(236, 231, 221, 0.06);
  padding-top: var(--space-4);
  padding-bottom: var(--space-3);
  transition: color 0.3s ease;
}
.footer-wordmark:hover { color: rgba(236, 231, 221, 0.12); }
.footer-wordmark-accent { color: rgba(236, 231, 221, 0.035); }

.footer-bottom {
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .primary-nav {
    display: none;
    position: fixed;
    top: 86px;
    left: var(--space-3);
    right: var(--space-3);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lift);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    padding: var(--space-3);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a:not(.btn) { padding: 12px 16px; }
  .nav-cta { order: 10; margin-left: 0; margin-top: var(--space-2); text-align: center; }
  .nav-toggle { display: flex; }

  .frame-body { grid-template-columns: 1fr; }
  .frame-side { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .frame-row { grid-template-columns: 110px 1fr 70px; }

  .overview-grid { grid-template-columns: 1fr; }

  .band-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .band-grid--reverse .band-text { order: 1; }
  .band-grid--reverse .band-visual { order: 2; }
  .band-visual { justify-content: flex-start; }
  .band-dark { margin: var(--space-2); }

  .how-grid { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-5); }
}

@media (max-width: 480px) {
  /* Narrow phones: let the grid track shrink and the node maps reflow, so the
     artifact cards can't force the page wider than the viewport. */
  .band-grid > * { min-width: 0; }
  .node-map, .node-map--sub { flex-wrap: wrap; }
  .contact-inner > * { min-width: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .frame-stats { grid-template-columns: 1fr; }
  .announce-text { font-size: 12px; padding-right: var(--space-5); }
}
