/* DRAKONIX — Business Special Operations
   Palette and type taken from the brand plate and Executive Capability Statement. */

@font-face {
  font-family: "Marcellus";
  src: url("marcellus.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0b0d;          /* page — matches the capability statement */
  --ink-2: #101215;        /* alternate band */
  --panel: #17191b;        /* raised surfaces (form, concept cases) */
  --paper: #f4f2ed;        /* headings */
  --steel: #c9c6c0;        /* body text */
  --ash: #9a968e;          /* secondary text */
  --champagne: #d4b895;    /* brand accent */
  --champagne-dim: #8f7a5f;
  --line: rgba(244, 242, 237, 0.10);
  --line-strong: rgba(244, 242, 237, 0.20);

  --display: "Marcellus", "Optima", "Candara", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 11vw, 168px);
  --nav-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--steel);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) {
  body { font-size: 1.125rem; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--paper);
  margin: 0;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.25rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem); line-height: 1.1; }
h3 { font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem); line-height: 1.25; }

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--champagne);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.band { background: var(--ink-2); border-block: 1px solid var(--line); }

.measure { max-width: 38rem; }
.lede { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem); line-height: 1.6; color: var(--steel); }
.muted { color: var(--ash); }
.kicker {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--champagne);
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0.8em 1.6em;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--champagne); color: var(--ink); }
.btn-primary:hover { background: #e3cbab; }
.btn-ghost { border-color: var(--line-strong); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--champagne); color: var(--champagne); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 11, 13, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}
.brand img { width: 40px; height: auto; }
.brand-word {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.22em;
  transition: opacity 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.98rem;
  color: var(--steel);
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="true"] { color: var(--paper); border-bottom-color: var(--champagne); }
.nav-links .btn { min-height: 42px; padding: 0.5em 1.2em; font-size: 0.95rem; border-bottom: 1px solid transparent; }
.nav-links .btn:hover { border-bottom-color: transparent; }
.nav-links .btn-primary { color: var(--ink); }
.nav-links .btn-primary:hover { color: var(--ink); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  border-radius: 999px;
  height: 42px;
  padding: 0 18px;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav { background: rgba(10, 11, 13, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
  .brand img { width: 34px; }
  .brand-word { font-size: 1.1rem; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links li:last-child { border-top: 0; padding-top: 16px; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 0; }
  .nav-links .btn { display: flex; width: 100%; min-height: 50px; padding: 0 1.2em; }
}

/* ---------- Hero ---------- */
.hero {
  padding-bottom: clamp(72px, 9vw, 128px);
  text-align: center;
  overflow: hidden;
}

/* Full-bleed scene: the Dragon Gate waterfall */
.scene {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
}
.scene picture,
.scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scene img {
  object-fit: cover;
  object-position: 60% 35%;
  z-index: -2;
}
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 11, 13, 0.88) 0, rgba(10, 11, 13, 0.4) 9%, rgba(10, 11, 13, 0) 22%),
    linear-gradient(0deg, var(--ink) 0, rgba(10, 11, 13, 0.9) 16%, rgba(10, 11, 13, 0.55) 34%, rgba(10, 11, 13, 0) 56%),
    radial-gradient(ellipse 62% 30% at 50% 63%, rgba(10, 11, 13, 0.72) 0%, rgba(10, 11, 13, 0.5) 60%, rgba(10, 11, 13, 0) 100%),
    radial-gradient(ellipse 85% 75% at 62% 38%, rgba(10, 11, 13, 0) 55%, rgba(10, 11, 13, 0.55) 100%);
}
.scene-copy {
  position: relative;
  padding-top: calc(var(--nav-h) + 160px);
  padding-bottom: clamp(36px, 6vh, 72px);
}
.scene-copy h1 { filter: drop-shadow(0 2px 28px rgba(0, 0, 0, 0.55)); }
.scene-copy .lede { color: #dedad3; }
.nav:not(.is-scrolled) .nav-links a:not(.btn),
.nav:not(.is-scrolled) .brand-word { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85); }
@media (max-width: 640px) {
  .scene img { object-position: 66% 50%; }
  .scene::before {
    background:
      linear-gradient(0deg, var(--ink) 0, rgba(10, 11, 13, 0.94) 36%, rgba(10, 11, 13, 0.72) 56%, rgba(10, 11, 13, 0) 80%);
  }
  .scene-copy { padding-top: calc(var(--nav-h) + 200px); }
}

.plate {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}
.plate img { width: 100%; aspect-ratio: 1836 / 550; object-fit: cover; }
.plate::before,
.plate::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.plate::before { /* side and top fades */
  inset: -1px;
  background:
    linear-gradient(180deg, var(--ink) 0, rgba(10, 11, 13, 0) 14%),
    linear-gradient(90deg, var(--ink) 0, rgba(10, 11, 13, 0) 9%, rgba(10, 11, 13, 0) 91%, var(--ink) 100%);
}
.plate::after { /* bottom fade into the headline */
  left: 0; right: 0; bottom: -1px; height: 42%;
  background: linear-gradient(180deg, rgba(10, 11, 13, 0), var(--ink));
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2.2rem, 1rem + 6.2vw, 2.75rem); }
}
.hero h1 {
  margin-inline: auto;
  /* room for descenders: background-clip text only paints inside the box */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  text-wrap: balance;
}
.hero h1 span { display: block; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    /* brushed steel, after the wordmark */
    background: linear-gradient(100deg, #9b978f 0%, #f6f4ef 24%, #b7b2aa 46%, #fbf9f4 64%, #a29d95 86%, #e7e3dc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active) {
  .hero h1 { background: none; color: CanvasText; }
}
.hero .lede {
  max-width: 36rem;
  margin: clamp(20px, 2.4vw, 30px) auto 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: clamp(28px, 3vw, 40px);
}

.ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
  margin: clamp(24px, 3vw, 40px) auto 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.ledger div {
  padding: 28px 20px 0;
  border-left: 1px solid var(--line);
}
.ledger div:first-child { border-left: 0; }
.ledger dt {
  font-family: var(--display);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  line-height: 1;
  color: var(--champagne);
}
.ledger dd {
  margin: 12px auto 0;
  max-width: 17ch;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ash);
}
@media (max-width: 640px) {
  .ledger { grid-template-columns: 1fr; text-align: left; }
  .ledger div { border-left: 0; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 18px; padding: 18px 0; }
  .ledger div:first-child { border-top: 0; }
  .ledger dt { min-width: 4.4ch; font-size: 2rem; }
  .ledger dd { margin: 0; max-width: none; }
}

/* ---------- Two-column split ---------- */
.split {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 7fr 5fr; }
  .split.even { grid-template-columns: 1fr 1fr; }
  .split.reverse { grid-template-columns: 5fr 7fr; }
}
.split h2 { margin-bottom: 1.6rem; }

.mandate { border-top: 1px solid var(--champagne-dim); padding-top: 22px; }
.mandate ol { list-style: none; margin: 0; padding: 0; }
.mandate li {
  font-family: var(--display);
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.95rem);
  line-height: 1.25;
  color: var(--paper);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.mandate li:last-child { color: var(--champagne); border-bottom: 0; }

/* ---------- Capabilities ---------- */
.section-head { max-width: 46rem; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { margin-bottom: 1.25rem; }

.caps {
  display: grid;
  gap: clamp(40px, 4vw, 56px);
}
@media (min-width: 900px) {
  .caps { grid-template-columns: repeat(3, 1fr); }
}
.cap { border-top: 1px solid var(--champagne); padding-top: 26px; }
.cap .verb { font-size: 0.95rem; font-weight: 500; color: var(--champagne); margin-bottom: 14px; }
.cap h3 { margin-bottom: 6px; }
.cap .sub { color: var(--ash); font-size: 1rem; margin-bottom: 18px; }
.cap ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--ash);
}
.cap li { padding: 3px 0 3px 18px; position: relative; }
.cap li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 1px;
  background: var(--champagne-dim);
}

/* ---------- Philosophy ---------- */
.quote {
  font-family: var(--display);
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.75rem);
  line-height: 1.05;
  color: var(--paper);
  max-width: 14ch;
  margin: 0 0 28px;
}
.equation {
  display: grid;
  gap: 8px;
  margin-top: clamp(56px, 7vw, 96px);
  align-items: start;
}
@media (min-width: 980px) {
  .equation { grid-template-columns: 1fr auto 1fr auto 1fr; gap: 28px; }
}
.term { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.term h3 { margin-bottom: 14px; }
.term p { font-size: 1rem; color: var(--steel); }
.term .output { margin-top: 16px; color: var(--champagne); font-size: 0.98rem; }
.op {
  font-family: var(--display);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  line-height: 1;
  color: var(--champagne);
  padding: 8px 0;
  text-align: center;
}
@media (min-width: 980px) { .op { padding-top: 22px; } }

.doctrine-note {
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  align-items: center;
}
.doctrine-note h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 18px; }

/* Triangle */
.triangle { margin: 0; }
.triangle svg { width: 100%; max-width: 420px; height: auto; display: block; margin-inline: auto; overflow: visible; }
.tri-edge { stroke: var(--line-strong); stroke-width: 1.5; transition: stroke 0.25s ease, stroke-width 0.25s ease; }
.tri-edge.on { stroke: var(--champagne); stroke-width: 3; }
.tri-node { fill: var(--ink-2); stroke: var(--line-strong); stroke-width: 1.5; transition: fill 0.25s ease, stroke 0.25s ease; }
.tri-node.on { fill: var(--champagne); stroke: var(--champagne); }
.tri-picks {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.tri-picks button {
  font: inherit;
  font-size: 0.98rem;
  color: var(--steel);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 20px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.tri-picks button[aria-pressed="true"] { border-color: var(--champagne); color: var(--ink); background: var(--champagne); }
.triangle figcaption { text-align: center; margin-top: 16px; color: var(--ash); font-size: 0.98rem; min-height: 3.2em; }

/* ---------- Doctrine ascent ---------- */
.ascent { position: relative; }
.steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ascent-line { display: none; }
.step { position: relative; }
.step .num { font-size: 0.95rem; color: var(--champagne); font-weight: 500; font-variant-numeric: tabular-nums; }
.step h3 { margin: 6px 0 10px; }
.step p { font-size: 1rem; color: var(--ash); }
.node {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--champagne);
  position: relative;
  z-index: 1;
}
.step:last-child .node { width: 19px; height: 19px; background: var(--champagne); box-shadow: 0 0 0 6px rgba(212, 184, 149, 0.14); }

@media (max-width: 979px) {
  .steps { padding-left: 34px; }
  .steps::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, var(--champagne-dim), var(--champagne));
  }
  .step { padding-bottom: 34px; }
  .step:last-child { padding-bottom: 0; }
  .node { position: absolute; left: -34px; top: 5px; }
  .step:last-child .node { left: -37px; top: 3px; }
}
@media (min-width: 980px) {
  .steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px;
    padding-top: 12px;
  }
  .step { padding-top: calc((5 - var(--i)) * 38px); }
  .node { margin-bottom: 22px; }
  .step:last-child .node { margin-left: -3px; margin-top: -3px; margin-bottom: 19px; }
  .ascent-line {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }
  .ascent-line path { fill: none; stroke: var(--champagne); stroke-width: 1.25; }
  .ascent.will-draw .ascent-line path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
  .ascent.will-draw .node { opacity: 0; transform: scale(0.4); transition: opacity 0.35s ease, transform 0.35s ease; transition-delay: calc(var(--i) * 0.22s + 0.1s); }
  .ascent.is-drawn .ascent-line path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.45,.05,.25,1); }
  .ascent.is-drawn .node { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ascent.will-draw .ascent-line path { stroke-dashoffset: 0 !important; transition: none !important; }
  .ascent.will-draw .node { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Engagement path */
.path {
  margin-top: clamp(72px, 9vw, 120px);
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .path { grid-template-columns: repeat(3, 1fr); } }
.path > div { padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .path > div { padding: 30px 32px 6px; border-bottom: 0; border-left: 1px solid var(--line); }
  .path > div:first-child { padding-left: 0; border-left: 0; }
}
.path .stage { font-size: 0.95rem; color: var(--champagne); font-weight: 500; }
.path h3 { margin: 6px 0 10px; font-size: 1.45rem; }
.path p { font-size: 1rem; color: var(--ash); }

.sprint {
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--champagne-dim);
  border-radius: 4px;
  display: grid;
  gap: 24px 48px;
  align-items: center;
  background: linear-gradient(120deg, rgba(212, 184, 149, 0.07), rgba(212, 184, 149, 0) 60%);
}
@media (min-width: 900px) { .sprint { grid-template-columns: 1fr auto; } }
.sprint h3 { margin-bottom: 12px; }
.sprint p { max-width: 44rem; }

/* ---------- D2C focus ---------- */
.levers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.levers li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}
.levers li span { color: var(--ash); font-size: 0.95rem; text-align: right; }
.levers .sum { border-bottom: 0; padding-top: 22px; color: var(--champagne); font-family: var(--display); font-size: 1.35rem; }

.cases {
  display: grid;
  gap: 24px;
  margin-top: clamp(56px, 7vw, 96px);
}
@media (min-width: 900px) { .cases { grid-template-columns: 1fr 1fr; } }
.section-head + .cases { margin-top: 0; }
.case {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(26px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
}
.case .tag { font-size: 0.95rem; color: var(--champagne); font-weight: 500; margin-bottom: 12px; }
.case h3 { margin-bottom: 14px; }
.case p { font-size: 1rem; }
.case .fine { margin-top: auto; padding-top: 20px; font-size: 0.9rem; color: var(--ash); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.chips li { font-size: 0.88rem; color: var(--steel); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; }
.flow { display: flex; flex-wrap: wrap; gap: 8px 0; list-style: none; margin: 18px 0 0; padding: 0; counter-reset: f; }
.flow li { counter-increment: f; font-size: 0.95rem; color: var(--paper); display: flex; align-items: center; }
.flow li::before { content: counter(f); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; border: 1px solid var(--champagne-dim); color: var(--champagne); font-size: 0.8rem; }
.flow li + li::after { content: none; }
.flow li:not(:last-child) { margin-right: 10px; }
.flow li:not(:last-child)::after { content: ""; width: 18px; height: 1px; background: var(--line-strong); margin-left: 10px; }

/* ---------- Mission selector ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.tabs button {
  font: inherit;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem);
  color: var(--ash);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 0 14px;
  margin-bottom: -1px;
  cursor: pointer;
}
.tabs button:hover { color: var(--paper); }
.tabs button[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--champagne); }
.tabpanel { list-style: none; margin: 0; padding: 0; }
.tabpanel[hidden] { display: none; }
.tabpanel li { border-bottom: 1px solid var(--line); }
.q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
  font: inherit;
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.9rem);
  line-height: 1.25;
  color: var(--paper);
  background: none;
  border: 0;
  padding: 26px 0;
  cursor: pointer;
}
.q .use {
  flex: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--champagne);
  border: 1px solid var(--champagne-dim);
  border-radius: 999px;
  padding: 8px 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.q:hover .use,
.q:focus-visible .use { background: var(--champagne); color: var(--ink); }
@media (max-width: 640px) {
  .q { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---------- Track record ---------- */
.record {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .record { grid-template-columns: 1fr 1fr; } }
.record > div {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.record .fig { margin-bottom: 14px; }
@media (min-width: 900px) {
  .record > div:nth-child(odd) { padding-right: 40px; }
  .record > div:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--line); }
}
.record .fig { font-family: var(--display); font-size: clamp(1.7rem, 1.4rem + 1vw, 2.25rem); line-height: 1.05; color: var(--champagne); }
.record h3 { font-size: 1.3rem; margin-bottom: 8px; }
.record p { font-size: 1rem; color: var(--ash); }

.about { margin-top: clamp(64px, 8vw, 112px); }
.about h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 18px; }
.traits { list-style: none; margin: 0; padding: 0; }
.traits li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.traits li:first-child { padding-top: 0; }
.traits strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--paper); margin-bottom: 4px; }
.traits span { color: var(--ash); font-size: 1rem; }

/* ---------- Mythos ---------- */
.mythos { text-align: center; border-top: 1px solid var(--line); }
.mythos .plate { max-width: 980px; margin: 0 auto clamp(24px, 3vw, 40px); }
.mythos h2 { margin-bottom: 22px; }
.mythos p { max-width: 40rem; margin-inline: auto; }

/* ---------- Contact ---------- */
.form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(24px, 3.4vw, 40px);
  display: grid;
  gap: 20px;
}
.form .row { display: grid; gap: 20px; }
@media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.95rem; color: var(--paper); }
.field label .opt { color: var(--ash); font-size: 0.88rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 13px 14px;
  transition: border-color 0.2s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--champagne) 50%), linear-gradient(135deg, var(--champagne) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(244, 242, 237, 0.32); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--champagne); box-shadow: 0 0 0 3px rgba(212, 184, 149, 0.18); }
.field input:user-invalid,
.field textarea:user-invalid { border-color: #d9826b; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot p { font-size: 0.9rem; color: var(--ash); max-width: 26rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form textarea.flash { border-color: var(--champagne); box-shadow: 0 0 0 3px rgba(212, 184, 149, 0.22); }

.contact-points { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-points li { padding: 12px 0 12px 22px; border-top: 1px solid var(--line); position: relative; color: var(--steel); font-size: 1rem; }
.contact-points li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 10px; height: 1px; background: var(--champagne); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 48px; font-size: 0.95rem; color: var(--ash); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer .brand { opacity: 1; pointer-events: auto; }
.footer .brand img { width: 34px; }
.footer p { margin: 0; }
.footer .footer-ventures { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.footer-ventures a { color: var(--steel); text-decoration: underline; text-decoration-color: var(--champagne-dim); text-underline-offset: 3px; }
.footer-ventures a:hover { color: var(--champagne); text-decoration-color: var(--champagne); }

/* ---------- Simple pages (thanks / 404) ---------- */
.simple {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 64px;
}
.simple .mark { width: 230px; margin: 0 auto 24px; padding: 40px; background: radial-gradient(closest-side, rgba(212, 184, 149, 0.11), rgba(212, 184, 149, 0)); }
.simple h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); margin-bottom: 18px; }
.simple p { max-width: 34rem; margin-inline: auto; }
.simple .actions { margin-top: 32px; }

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