/* ==========================================================================
   THE SOUND DETECTIVE — site stylesheet
   Palette: charcoal / deep brown / faded gold / dusty beige / paper /
            muted red / vintage amber / meter green
   ========================================================================== */

:root {
  /* Ink & surfaces — smoky near-black, cinematic noir (2026-07-05 direction) */
  --ink: #0c0b0a;
  --ink-2: #121110;
  --ink-3: #1a1816;
  --panel: #151412;
  --panel-2: #1e1c19;

  /* Paper — off-white, old case-file stock */
  --paper: #e9e4d6;
  --paper-2: #d8d1bd;
  --paper-dim: #a9a291;

  /* Accents — muted brass, faded amber, evidence red */
  --gold: #b3874a;
  --amber: #d4a054;
  --red: #9d4236;
  --green: #78936a;
  --brown: #635038;

  /* Text on dark — smoky off-white */
  --text: #cfc8b8;
  --text-dim: #948d7c;
  --text-faint: #676051;

  /* Lines */
  --line: rgba(179, 135, 74, 0.16);
  --line-strong: rgba(179, 135, 74, 0.34);

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;

  --container: 1120px;
  --radius: 6px;
}

/* Base ------------------------------------------------------------------ */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain over everything, very subtle */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background-image: url("../assets/img/texture-grain.svg");
  opacity: 0.55;
  mix-blend-mode: overlay;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--paper);
  margin: 0 0 0.6em;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1em; }

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--paper); }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

section { padding: clamp(4rem, 9vw, 7rem) 0; }

.section-line { border-top: 1px dashed var(--line-strong); }

/* Eyebrow / exhibit labels ---------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.lede {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 44rem;
}

/* Buttons ---------------------------------------------------------------- */

/* Buttons read as stamped evidence tags: mono type, hard corners, brass ink */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(12, 11, 10, 0.35), 0 1px 0 rgba(0, 0, 0, 0.5);
}
.btn-primary:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--amber);
  border-style: dashed;
}
.btn-ghost:hover { background: rgba(179, 135, 74, 0.1); color: var(--paper); border-style: solid; }

.btn-small { padding: 0.55rem 1rem; font-size: 0.72rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Stamps & tags ----------------------------------------------------------- */

.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  transform: rotate(-1.5deg);
  opacity: 0.95;
}
.stamp-dev { color: var(--amber); }
.stamp-soon { color: var(--green); }
.stamp-concept { color: var(--red); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; list-style: none; }
.tags li {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.22rem 0.5rem;
}

.case-no {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* Evidence-file lines on plugin cards: CASE TYPE / EVIDENCE / METHOD */
.case-lines {
  margin: 0;
  display: grid;
  gap: 0.5rem;
  flex: 1;
  border-top: 1px dashed var(--line);
  padding-top: 0.85rem;
}
.case-lines > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.7rem;
  align-items: baseline;
}
.case-lines dt {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.case-lines dd { margin: 0; font-size: 0.9rem; color: var(--text-dim); line-height: 1.5; }
.case-lines dd.case-type {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

/* Framed evidence photo — secondary world-building art */
.evidence-photo {
  margin: 2.2rem 0 0;
  max-width: 420px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
  transform: rotate(-1deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.evidence-photo img { display: block; }
.evidence-photo figcaption {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.55rem 0.85rem;
  border-top: 1px dashed var(--line);
  background: var(--panel);
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 17, 9, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
}
.brand:hover { color: var(--paper); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.brand-sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

/* Logotype — rebuilt from the Chris Taylor "DETECTIVE 47." mark, with SOUND added */
.brand-logo { display: flex; flex-direction: column; line-height: 1; }
.brand-sound {
  font-family: "Poppins", var(--sans);
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}
.brand-word {
  font-family: "Poppins", var(--sans);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--paper);
  display: flex;
  align-items: flex-start;
}
@supports (-webkit-text-stroke: 1px black) {
  .brand-word { color: transparent; -webkit-text-stroke: 1px var(--paper); }
}
.brand-word sup {
  font-size: 0.52em;
  font-style: italic;
  letter-spacing: 0;
  line-height: 1;
  color: var(--gold);
  -webkit-text-stroke-width: 0;
  transform: translateY(-0.15em);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--amber); }
.nav-links .btn { color: var(--ink); }
.nav-links .btn:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line-strong);
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.55rem clamp(1.25rem, 4vw, 2.5rem); }
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(201, 151, 63, 0.09), transparent 62%),
    radial-gradient(700px 420px at 8% 108%, rgba(160, 68, 55, 0.07), transparent 60%),
    var(--ink);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 { margin-bottom: 0.5em; }
.hero .lede { margin-bottom: 2.2rem; }

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.hero-kicker::after {
  content: "";
  flex: 1;
  max-width: 8rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.5;
}

.hero-meta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero-meta span { display: flex; align-items: center; gap: 0.5rem; }
.hero-meta i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); display: inline-block; font-style: normal;
}

.hero-visual { position: relative; }

.hero-photo {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  transform: rotate(1.2deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 30%, transparent 55%, rgba(20, 17, 9, 0.55));
  pointer-events: none;
}
.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  filter: contrast(1.04) saturate(1.05);
}
.hero-stamp {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 2px;
  padding: 0.32rem 0.6rem;
  transform: rotate(-6deg);
  background: rgba(20, 17, 9, 0.35);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
}

/* Plugin cards ------------------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.4rem;
  margin-top: 2.6rem;
}

.plugin-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.plugin-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.plugin-visual {
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.plugin-visual svg { width: 100%; height: 100%; }

.plugin-body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; gap: 0.85rem; }

.plugin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}
.plugin-top h3 { margin: 0; }
.plugin-card .case-no { margin-bottom: -0.4rem; }
.plugin-desc { color: var(--text-dim); font-size: 0.94rem; margin: 0; flex: 1; }

.plugin-actions { display: flex; gap: 0.7rem; margin-top: 0.4rem; }

/* Story ------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split.reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
}

.story-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.story-panel .case-no { display: block; margin-bottom: 1rem; }
.story-panel p { color: var(--text-dim); }
.story-panel p strong { color: var(--text); font-weight: 600; }

/* Categories --------------------------------------------------------------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-top: 2.4rem;
}

.cat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.5rem 1.5rem 1.4rem;
  transition: border-color 0.2s ease;
}
.cat-card:hover { border-color: var(--line-strong); }
.cat-card h3 { font-size: 1.08rem; margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.7rem; }
.cat-card h3 svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.cat-card p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }
.cat-card .case-no { display: block; margin-bottom: 0.8rem; }

/* Evidence board (Rust Cohle wall) ------------------------------------------ */

.board-frame {
  margin-top: 2.6rem;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(140deg, #5c3f24, #3a2714);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(0, 0, 0, 0.4);
}

.board {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background-image:
    url("../assets/img/texture-grain.svg"),
    radial-gradient(circle at 30% 18%, rgba(255, 220, 160, 0.08), transparent 55%),
    linear-gradient(160deg, #7a5836, #5d4026);
  background-blend-mode: overlay, normal, normal;
  box-shadow: inset 0 0 46px rgba(0, 0, 0, 0.55);
}

.board-string {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

.pin {
  position: absolute;
  top: -8px;
  left: 50%;
  margin-left: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d05a4a, #8e2418 60%, #5f1710);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.pin-card, .pin-note, .pin-photo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w, 22%);
  transform: rotate(var(--r, 0deg));
  box-shadow: 4px 6px 14px rgba(0, 0, 0, 0.5);
}

.pin-card {
  background: #ece1c2;
  color: #241c0e;
  padding: 0.85rem 0.95rem 0.75rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  z-index: 10;
}
.pin-card:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 8px 12px 22px rgba(0, 0, 0, 0.6);
  z-index: 40;
}
.pin-case {
  display: block;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8e2f24;
}
.pin-card strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  color: #241c0e;
  margin: 0.15rem 0 0.2rem;
}
.pin-card em {
  display: block;
  font-family: "Caveat", cursive;
  font-style: normal;
  font-size: 1.02rem;
  line-height: 1.12;
  color: #4a3418;
}

.pin-note {
  background: #e6d795;
  color: #3c2c12;
  padding: 0.6rem 0.85rem;
  font-family: "Caveat", cursive;
  font-size: 1.18rem;
  line-height: 1.15;
  width: var(--w, auto);
  z-index: 10;
}
.pin-note.red {
  background: #ece1c2;
  color: #8e2f24;
  font-weight: 600;
  text-decoration: underline wavy rgba(142, 47, 36, 0.5) 1.5px;
}

.pin-photo {
  margin: 0;
  background: #f4efe2;
  padding: 0.5rem 0.5rem 0.3rem;
  z-index: 10;
}
.pin-photo img {
  width: 100%;
  display: block;
  filter: sepia(0.3) contrast(1.05);
}
.pin-photo figcaption {
  font-family: "Caveat", cursive;
  font-size: 1.02rem;
  text-align: center;
  color: #3c2c12;
  padding-top: 0.25rem;
}

@media (max-width: 820px) {
  .board {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    padding: 1.1rem;
  }
  .board-string { display: none; }
  .pin-card, .pin-note, .pin-photo { position: static; width: auto; }
  .pin-photo { grid-column: span 2; max-width: 250px; margin: 0 auto; }
}

/* Signup (paper case-file form) --------------------------------------------- */

.signup {
  background: var(--paper);
  color: var(--ink-2);
  position: relative;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.signup::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/texture-grain.svg");
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.signup .container { position: relative; }
.signup h2, .signup h3 { color: #241c0e; }
.signup .eyebrow { color: var(--red); }
.signup .eyebrow::before { background: var(--red); }
.signup .lede { color: #5c5136; }

.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
@media (max-width: 860px) { .signup-grid { grid-template-columns: 1fr; } }

.signup-form {
  background: rgba(255, 253, 245, 0.55);
  border: 1px solid rgba(60, 45, 20, 0.35);
  border-radius: 4px;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 4px 5px 0 rgba(36, 28, 14, 0.14);
}

.signup-form .form-head {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px dashed rgba(60, 45, 20, 0.4);
  padding-bottom: 0.7rem;
  margin-bottom: 1.3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b5c3a;
  margin-bottom: 0.35rem;
}
.field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(60, 45, 20, 0.5);
  padding: 0.5rem 0.1rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: #241c0e;
  outline: none;
}
.field input:focus { border-bottom-color: var(--red); }
.field input::placeholder { color: rgba(60, 45, 20, 0.35); }

.signup .btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
  width: 100%;
}
.signup .btn-primary:hover { background: #b3503f; border-color: #b3503f; color: #fff; }

.form-success {
  display: none;
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: #3c5a30;
  border: 1px dashed #3c5a30;
  border-radius: 3px;
  padding: 1rem 1.1rem;
  margin-top: 1.1rem;
}
.form-success.show { display: block; }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* Demos --------------------------------------------------------------------- */

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.4rem;
  margin-top: 2.6rem;
}

.demo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.demo-media {
  aspect-ratio: 16 / 9;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
}
.demo-media svg.wave { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.demo-play {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(20, 17, 9, 0.7);
  display: grid;
  place-items: center;
  color: var(--amber);
  transition: background 0.18s ease;
}
.demo-card:hover .demo-play { background: rgba(201, 151, 63, 0.18); }

.demo-body { padding: 1.2rem 1.3rem 1.3rem; }
.demo-body h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.demo-body p { color: var(--text-dim); font-size: 0.88rem; margin: 0 0 0.6rem; }
.demo-use {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

/* About D47 ------------------------------------------------------------------ */

.about-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1rem;
}
.about-figure img {
  width: 100%;
  display: block;
  border-radius: 3px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
  filter: sepia(0.12) contrast(1.02);
}
.figure-caption {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin: 0.9rem 0 0.1rem;
}

/* Footer ----------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line-strong);
  background: var(--ink-2);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--text-dim); font-size: 0.88rem; max-width: 26rem; }

.site-footer h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 0.55rem; }
.site-footer ul a { color: var(--text-dim); font-size: 0.86rem; }
.site-footer ul a:hover { color: var(--amber); }

.footer-form { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.footer-form input {
  flex: 1;
  min-width: 0;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.6rem 0.8rem;
  outline: none;
}
.footer-form input:focus { border-color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--amber); }
.footer-social { display: flex; gap: 1.2rem; }

/* Subpages ----------------------------------------------------------------------- */

.page-hero {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 400px at 80% -20%, rgba(201, 151, 63, 0.08), transparent 60%),
    var(--ink);
}
.page-hero .stamp { margin-bottom: 1.4rem; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }

.content-block { max-width: 46rem; }
.content-block h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.content-block p, .content-block li { color: var(--text-dim); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.spec-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.3rem 1.4rem;
}
.spec-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.spec-card p { color: var(--text-dim); font-size: 0.88rem; margin: 0; }
.spec-card .case-no { display: block; margin-bottom: 0.7rem; }

.faq-item { border-top: 1px dashed var(--line-strong); padding: 1.3rem 0; }
.faq-item:last-child { border-bottom: 1px dashed var(--line-strong); }
.faq-item h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.faq-item p { color: var(--text-dim); font-size: 0.92rem; margin: 0; }

.big-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  margin: 2.5rem 0;
  overflow: hidden;
}
.big-visual svg { width: 100%; height: auto; display: block; }

.notice {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px dashed var(--line-strong);
  border-radius: 3px;
  padding: 0.8rem 1rem;
  display: inline-block;
}

/* Reveal on scroll ------------------------------------------------------------------ */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
