/* Asher & Tate: elevated obsidian / mahogany / alabaster */

:root {
  --obsidian: #0C0F14;
  --midnight: #151A22;
  --slate: #1C222C;
  --mahogany: #8F2F38;
  --mahogany-deep: #6E2229;
  --alabaster: #F6F3EC;
  --ivory: #EFEBE2;
  --silver: #C8CCD3;
  --silver-bright: #E8EAEE;
  --ink: #16141A;
  --muted: #6A645C;
  --muted-light: rgba(246, 243, 236, 0.68);
  --stroke: rgba(0, 0, 0, 0.06);
  --stroke-light: rgba(255, 255, 255, 0.1);
  --elev: 0 20px 40px rgba(0, 0, 0, 0.12);
  --elev-soft: 0 12px 28px rgba(12, 15, 20, 0.08);
  --font-display: "Libre Baskerville", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: min(1140px, calc(100% - 2rem));
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--alabaster);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: inherit;
  margin: 0;
}
p { margin: 0; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.demo-notice {
  position: relative;
  z-index: 60;
  background: var(--obsidian);
  color: rgba(242, 239, 232, 0.88);
  font-family: var(--font-body);
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.45;
}
.demo-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  margin-right: 8px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  white-space: nowrap;
  vertical-align: 1px;
}
.demo-notice a {
  color: var(--mahogany);
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.35em;
  white-space: nowrap;
}
.demo-notice a:hover {
  text-decoration: underline;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mahogany);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 1.4rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  margin-bottom: 0.4rem;
  color: var(--obsidian);
}
.section-head > p:last-child {
  color: var(--muted);
  font-size: 0.98rem;
}
.section-head.light h2 { color: var(--alabaster); }
.section-head.light > p:last-child { color: var(--muted-light); }
.section-head.light .eyebrow { color: var(--silver); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-mahog {
  background: var(--mahogany);
  color: #F8F4EE;
  box-shadow: 0 10px 24px rgba(143, 47, 56, 0.32);
}
.btn-mahog:hover {
  background: var(--mahogany-deep);
  box-shadow: 0 14px 28px rgba(143, 47, 56, 0.4);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--alabaster);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}
.practice .btn-ghost,
.evaluate .btn-ghost,
.signoff .btn-ghost,
.intake .btn-ghost {
  background: #fff;
  border-color: var(--stroke);
  color: var(--obsidian);
  box-shadow: var(--elev-soft);
}
.practice .btn-ghost:hover,
.evaluate .btn-ghost:hover,
.signoff .btn-ghost:hover,
.intake .btn-ghost:hover {
  border-color: rgba(0, 0, 0, 0.14);
}
.btn-lift:hover { transform: translateY(-2px); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.2rem 0 1.35rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 15, 20, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke-light);
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 3.85rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--alabaster);
  margin-right: auto;
}
.nav-logo span { color: var(--silver); }
.nav-links { display: flex; gap: 1.1rem; }
.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(246, 243, 236, 0.72);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1px;
  background: var(--silver);
  transition: width 0.2s ease;
}
.nav-links a:hover { color: var(--alabaster); }
.nav-links a:hover::after { width: 100%; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.nav-phone {
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--silver-bright);
}
.nav-actions .btn { padding: 0.52rem 1rem; font-size: 0.8rem; }

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.35rem var(--wrap) 1.1rem;
  width: min(1140px, 100%);
  margin-inline: auto;
}
.nav-drawer a {
  text-decoration: none;
  font-weight: 600;
  color: var(--alabaster);
}
.nav-drawer-phone { color: var(--silver) !important; }
.nav-drawer-cta { align-self: flex-start; border: none; }
details.nav-menu[open] + .nav-drawer { display: flex; }
.nav .nav-toggle-bars span { background: var(--alabaster); }

@media (max-width: 960px) {
  .nav-links, .nav-actions { display: none; }
}

/* Dark hero, asymmetric */
.hero {
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(143, 47, 56, 0.18), transparent 55%),
    linear-gradient(165deg, var(--obsidian) 0%, var(--midnight) 55%, #10151D 100%);
  color: var(--alabaster);
  padding: 2.75rem 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: stretch;
  min-height: min(78vh, 680px);
}
.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
}
.hero .eyebrow { color: var(--silver); }
.hero h1 {
  font-size: clamp(2.35rem, 4.8vw, 3.55rem);
  color: #F7F4ED;
  margin-bottom: 0.7rem;
  max-width: 13ch;
}
.lead {
  max-width: 38ch;
  font-size: 1.02rem;
  color: var(--muted-light);
}

.badge-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.25rem;
}
.silver-badge {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.6rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200, 204, 211, 0.28);
  background:
    linear-gradient(145deg, rgba(232, 234, 238, 0.16), rgba(200, 204, 211, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.silver-badge-mark {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--silver-bright), var(--silver));
  color: var(--obsidian);
  font-size: 0.58rem;
  font-weight: 800;
}
.silver-badge-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}
.silver-badge-text strong {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--alabaster);
  line-height: 1.2;
}
.silver-badge-text em {
  font-style: normal;
  font-size: 0.62rem;
  color: rgba(246, 243, 236, 0.55);
}

.hero-visual {
  position: relative;
  min-height: 100%;
}
.hero-photo {
  margin: 0;
  height: 100%;
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--elev);
  position: relative;
  background: var(--slate);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center 40%;
  filter: contrast(1.05) saturate(0.92);
}
.hero-photo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 15, 20, 0.15) 0%, rgba(12, 15, 20, 0.55) 100%),
    linear-gradient(90deg, rgba(12, 15, 20, 0.2), transparent 40%);
  pointer-events: none;
}

.stats-card {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  padding: 1.05rem 1.15rem 1.1rem;
  border-radius: 16px;
  background: rgba(18, 22, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 0.7rem;
}
.stats-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}
.stat-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(200, 204, 211, 0.18);
}
.stat-row:first-of-type {
  border-top: none;
  padding-top: 0;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(246, 243, 236, 0.7);
}
.stat-label i {
  font-style: normal;
  font-size: 0.74rem;
  opacity: 0.8;
}

/* Practice: warm alabaster */
.practice {
  padding: 3.25rem 0 3rem;
  background: var(--alabaster);
}
.matrix-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}
.matrix-tab {
  appearance: none;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--muted);
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-pill);
  box-shadow: var(--elev-soft);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.matrix-tab:hover {
  color: var(--obsidian);
  border-color: rgba(0, 0, 0, 0.12);
}
.matrix-tab.is-active {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: var(--alabaster);
  box-shadow: 0 10px 22px rgba(12, 15, 20, 0.2);
}

.matrix-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.matrix-col {
  padding: 1.2rem 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: var(--elev-soft);
}
.matrix-label {
  margin: 0 0 0.7rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mahogany);
}
.counsel-row {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.counsel-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--silver);
  box-shadow: 0 6px 14px rgba(12, 15, 20, 0.12);
  filter: grayscale(0.2) contrast(1.04);
}
.counsel-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--obsidian);
}
.counsel-role {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.12rem;
}
.matrix-metric {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--mahogany);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.matrix-note,
.matrix-time {
  color: var(--muted);
  font-size: 0.9rem;
}
.matrix-time {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--obsidian);
  margin-bottom: 0.55rem;
}
.matrix-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.3rem;
  color: var(--ink);
  font-size: 0.86rem;
}
.matrix-list li::marker { color: var(--mahogany); }

/* Roadmap: horizontal + dark panel */
.roadmap {
  padding: 3rem 0 3.15rem;
  background:
    linear-gradient(180deg, var(--ivory), var(--alabaster));
}
.timeline-h {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.5rem 0 1.15rem;
}
.timeline-h-track {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 1.15rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  opacity: 0.7;
  pointer-events: none;
}
.timeline-step {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 1px solid var(--stroke);
  background: #fff;
  border-radius: var(--radius);
  padding: 1.55rem 0.75rem 0.9rem;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--elev-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.timeline-step:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.12);
}
.timeline-step.is-active {
  border-color: rgba(143, 47, 56, 0.35);
  box-shadow: 0 14px 30px rgba(143, 47, 56, 0.14);
}
.timeline-dot {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--silver);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(200, 204, 211, 0.6);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.timeline-step.is-active .timeline-dot {
  background: var(--mahogany);
  box-shadow: 0 0 0 4px rgba(143, 47, 56, 0.22), 0 0 16px rgba(143, 47, 56, 0.45);
}
.timeline-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mahogany);
  margin-bottom: 0.2rem;
}
.timeline-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--obsidian);
  line-height: 1.25;
}

.timeline-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: var(--obsidian);
  color: var(--alabaster);
  border: 1px solid var(--stroke-light);
  box-shadow: var(--elev);
}
.timeline-panel-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--silver);
  line-height: 1;
}
.timeline-panel h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  color: #fff;
}
.timeline-panel p {
  color: var(--muted-light);
  margin-bottom: 0.75rem;
  max-width: 58ch;
  font-size: 0.95rem;
}
.timeline-panel ul {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
}
.timeline-panel li::marker { color: var(--mahogany); }

/* Evaluate + glass quiz */
.evaluate {
  padding: 3rem 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(143, 47, 56, 0.08), transparent 50%),
    var(--alabaster);
}
.evaluate-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.2fr;
  gap: 1.5rem;
  align-items: center;
}
.glass {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  box-shadow: var(--elev);
}
.quiz {
  padding: 1.25rem 1.2rem 1.2rem;
}
.quiz-progress {
  height: 3px;
  border-radius: var(--radius-pill);
  background: rgba(12, 15, 20, 0.08);
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.quiz-bar {
  display: block;
  height: 100%;
  width: 33%;
  border-radius: inherit;
  background: var(--mahogany);
  transition: width 0.25s ease;
}
.quiz-step {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.quiz-panel {
  margin: 0;
  padding: 0;
  border: none;
  display: none;
  gap: 0.45rem;
}
.quiz-panel.is-active { display: grid; }
.quiz-panel legend {
  padding: 0;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--obsidian);
}
.chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.chip:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: var(--elev-soft);
}
.chip:has(input:checked) {
  border-color: rgba(143, 47, 56, 0.4);
  background: rgba(143, 47, 56, 0.08);
  box-shadow: 0 8px 18px rgba(143, 47, 56, 0.1);
}
.chip input { accent-color: var(--mahogany); }
.quiz-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.quiz-result { display: grid; gap: 0.5rem; }
.quiz-fit {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--obsidian);
}
.quiz-fit-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

/* Verdicts: deep slate */
.verdicts {
  padding: 3.15rem 0 3.25rem;
  background:
    radial-gradient(ellipse 50% 40% at 10% 0%, rgba(143, 47, 56, 0.16), transparent 50%),
    linear-gradient(180deg, var(--slate), var(--obsidian));
  color: var(--alabaster);
}
.verdict-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.verdict-card {
  padding: 1.25rem 1.15rem 1.3rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 204, 211, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.verdict-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 204, 211, 0.3);
  background: rgba(255, 255, 255, 0.06);
}
.verdict-metric {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1;
}
.verdict-type {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.75rem;
}
.verdict-rule {
  border: none;
  height: 1px;
  margin: 0 0 0.75rem;
  background: linear-gradient(90deg, var(--silver), transparent);
  opacity: 0.45;
}
.verdict-copy {
  font-size: 0.9rem;
  color: var(--muted-light);
}

/* Architecture */
.architecture {
  padding: 1.5rem 0;
  background: var(--alabaster);
}
.arch-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 0.85rem;
}
.arch-photo {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--elev-soft);
  background: var(--obsidian);
}
.arch-photo img {
  width: 100%;
  height: clamp(220px, 30vw, 340px);
  object-fit: cover;
  filter: contrast(1.05) grayscale(0.15);
}

/* Sign-off */
.signoff {
  padding: 2.75rem 0 3.5rem;
  background: var(--alabaster);
  text-align: center;
}
.signoff-box {
  max-width: 36rem;
  margin-inline: auto;
  padding: 1.75rem 1.5rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: var(--elev-soft);
}
.signoff h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  color: var(--obsidian);
  margin-bottom: 0.45rem;
}
.signoff-box > p {
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.signoff-meta {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.foot {
  padding: 1.35rem 0 1.75rem;
  background: var(--obsidian);
  color: var(--silver);
  border-top: 1px solid var(--stroke-light);
}
.foot-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
}
.foot-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--alabaster);
  margin: 0;
}
.foot-note {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(200, 204, 211, 0.7);
}
.foot a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--silver-bright);
  text-decoration: none;
}

/* Intake dialog */
.intake {
  width: min(440px, calc(100% - 1.75rem));
  border: none;
  border-radius: 22px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  overscroll-behavior: contain;
}
.intake::backdrop {
  background: rgba(12, 15, 20, 0.58);
  backdrop-filter: blur(6px);
}
.intake-sheet {
  margin: 0;
  border: none;
  padding: 1.3rem 1.25rem 1.25rem;
}
.intake-head { position: relative; margin-bottom: 0.9rem; }
.intake-head h2 {
  font-size: 1.45rem;
  color: var(--obsidian);
}
.intake-close {
  position: absolute;
  top: -0.1rem;
  right: -0.1rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(12, 15, 20, 0.06);
  font-size: 1.25rem;
  color: var(--muted);
  cursor: pointer;
}
.field {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--obsidian);
}
.field select {
  appearance: none;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--elev-soft);
}
.field-set {
  margin: 0 0 0.8rem;
  padding: 0;
  border: none;
  display: grid;
  gap: 0.4rem;
}
.field-set legend {
  padding: 0;
  margin-bottom: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--obsidian);
}
.intake-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.25rem 0 0.9rem;
  font-weight: 500;
}
.intake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn-lift:hover,
  .timeline-step:hover,
  .verdict-card:hover { transform: none; }
}

@media (max-width: 960px) {
  .hero-grid,
  .matrix-board,
  .timeline-h,
  .evaluate-grid,
  .verdict-grid,
  .arch-grid,
  .foot-row,
  .badge-rail {
    grid-template-columns: 1fr;
  }
  .hero-grid { min-height: 0; gap: 1.25rem; }
  .hero { padding: 2rem 0 2.25rem; }
  .hero-photo,
  .hero-photo img { min-height: 300px; }
  .stats-card { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
  .timeline-h-track { display: none; }
  .timeline-step { text-align: left; padding: 0.9rem 1rem 0.9rem 2.4rem; }
  .timeline-dot { left: 1rem; top: 50%; margin-left: 0; transform: translateY(-50%); }
  .timeline-panel { grid-template-columns: 1fr; gap: 0.5rem; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

@media (max-width: 560px) {
  .matrix-filters { flex-direction: column; }
  .matrix-tab { width: 100%; text-align: center; }
}


/* --- Accessibility baseline (Web Interface Guidelines) --- */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  transform: translateY(-200%);
}
.skip-link:focus { outline: none; }
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
[id] {
  scroll-margin-top: calc(5.5rem + env(safe-area-inset-top, 0px));
}
@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;
  }
}

/* Safe-area gutters on sticky chrome; contain scroll chaining in drawers/overlays */
.nav, .nav-min, .masthead, .bar {
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
}
.nav-drawer {
  overscroll-behavior: contain;
}

/* --- Web Interface Guidelines extras --- */
a, button, summary, input, select, textarea, label, [role="button"], [role="tab"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}
h1, h2, h3 { text-wrap: pretty; }
