/* V12 TDI dossier — copper / steel / warm editorial (distinct from RS red & DSG lab) */
:root {
  --void: #0a0b0e;
  --ink: #11141a;
  --panel: #161a22;
  --parchment: #e8e2d9;
  --muted: #9a938a;
  --steel: #5a7a94;
  --copper: #c17f4a;
  --copper-dim: rgba(193, 127, 74, 0.35);
  --font-display: "Spectral", "Georgia", serif;
  --font-body: "Mulish", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --r: 6px;
  --r-lg: 18px;
  --header-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --page-max: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.v12-site {
  margin: 0;
  font-family: var(--font-body);
  background: var(--void);
  color: var(--parchment);
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: var(--safe-top);
  left: 8px;
  z-index: 10000;
  padding: 0.55rem 1rem;
  background: var(--copper);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.78rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.2s;
}

.skip-link:focus {
  clip-path: inset(0 0 0 0);
  outline: 2px solid var(--steel);
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.paper-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--header-h);
  padding: var(--safe-top) 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.96) 50%, transparent);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}

.site-header.scrolled {
  background: rgba(10, 11, 14, 0.94);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(193, 127, 74, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.logo-mark {
  flex-shrink: 0;
  border-radius: var(--r);
  border: 1px solid rgba(193, 127, 74, 0.25);
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--parchment);
}

.logo-word .accent {
  color: var(--copper);
  font-weight: 600;
}

.nav--desktop {
  display: none;
  gap: 1.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 900px) {
  .nav--desktop {
    display: flex;
  }
}

.nav--desktop a:hover {
  color: var(--copper);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cta--desktop {
  display: none;
  padding: 0.5rem 0.9rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--copper);
  border-radius: var(--r);
}

@media (min-width: 900px) {
  .nav-cta--desktop {
    display: inline-flex;
  }
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(193, 127, 74, 0.25);
  border-radius: var(--r);
  background: rgba(22, 26, 34, 0.8);
  cursor: pointer;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle-bars {
  width: 18px;
  height: 12px;
  border-top: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  position: relative;
}

.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: var(--copper);
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(6px);
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 320px);
  height: 100%;
  background: var(--ink);
  border-left: 1px solid rgba(193, 127, 74, 0.2);
  padding: calc(var(--header-h) + var(--safe-top) + 1rem) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-menu-panel a:hover {
  color: var(--copper);
}

.mobile-menu-cta {
  margin-top: 1rem;
  padding: 0.85rem;
  text-align: center;
  background: var(--copper);
  color: var(--void) !important;
  border-radius: var(--r);
}

body.menu-open {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + var(--safe-top) + 2rem) 1.25rem 3.5rem;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 50% at 10% 90%, var(--copper-dim) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(90, 122, 148, 0.2) 0%, transparent 50%),
    linear-gradient(165deg, #0f1218 0%, var(--void) 50%, #08090c 100%);
}

.hero-columns {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 520px);
  height: 45%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3px;
  opacity: 0.12;
  mask-image: linear-gradient(180deg, transparent, #000 40%);
}

.hero-columns span {
  flex: 1;
  max-width: 8px;
  background: linear-gradient(180deg, transparent, var(--parchment));
  border-radius: 2px 2px 0 0;
  height: 100%;
}

.hero-columns span:nth-child(odd) {
  height: 88%;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  color: var(--parchment);
}

.hero-title em {
  font-style: italic;
  color: var(--copper);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--copper);
  color: var(--void);
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px var(--copper-dim);
}

.btn-ghost {
  display: inline-flex;
  padding: 0.8rem 1.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid rgba(90, 122, 148, 0.45);
  border-radius: var(--r);
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--copper);
  color: var(--parchment);
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.25rem;
  border-top: 1px solid rgba(193, 127, 74, 0.12);
}

.section-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  margin: 0 0 1rem;
}

.section p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.spec-table-wrap {
  overflow-x: auto;
  margin-top: 1.25rem;
  border-radius: var(--r-lg);
  border: 1px solid rgba(193, 127, 74, 0.15);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.spec-table th,
.spec-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-table th {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(22, 26, 34, 0.9);
}

.spec-table td {
  color: var(--muted);
}

.spec-table td:first-child {
  color: var(--parchment);
  font-weight: 600;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.note-callout {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  background: rgba(22, 26, 34, 0.85);
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.faq-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--parchment);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.faq-answer p {
  margin: 0;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(193, 127, 74, 0.12);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer-legal {
  margin: 0.75rem 0 0;
  font-size: 0.7rem;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-primary:hover {
    transform: none;
  }
}
