/* ============================================================================
   Навигационная платформа — landing page
   Brand language inherited from Pitch Deck (dark editorial).
   Not connected to /app's "Квартирный доктор" (light editorial — patient app).
   ========================================================================== */

/* ----- Tokens ------------------------------------------------------------- */

:root {
  /* Surfaces (deep navy, near-black with green undertone) */
  --bg: #0a141a;
  --bg-elev-1: #0d1a21;
  --bg-elev-2: #111f28;
  --bg-elev-3: #16272f;

  /* Borders (subtle, mostly transparent) */
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-teal: rgba(95, 212, 196, 0.28);
  --border-gold: rgba(201, 168, 122, 0.32);

  /* Text */
  --text-primary: #e8eef1;
  --text-secondary: #a3b2bb;
  --text-muted: #6b7c86;

  /* Accents (from pitch deck) */
  --teal: #5fd4c4;
  --teal-soft: #3aa294;
  --gold: #c9a87a;
  --gold-soft: #8a7350;

  /* Tints for cards */
  --tint-teal: rgba(95, 212, 196, 0.06);
  --tint-gold: rgba(201, 168, 122, 0.05);

  /* Type */
  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --max-w: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 9vw, 7rem);

  /* Easing */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ----- Reset / base ------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

button {
  font: inherit;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ----- Layout ------------------------------------------------------------- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--dark {
  background: var(--bg-elev-1);
  border-block: 1px solid var(--border-soft);
}

.section__head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  max-width: 880px;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--sub {
  margin-top: clamp(4rem, 9vw, 6rem);
}

.section__lede {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 720px;
}

.section__head--center .section__lede {
  margin-inline: auto;
}

.section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  .section__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* ----- Typography --------------------------------------------------------- */

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.kicker--gold {
  color: var(--gold);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text-primary);
}

.display--xl {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

.display__em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
  display: inline-block;
}

p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--teal);
  color: #0a141a;
  border-color: var(--teal);
}

.btn--primary:hover {
  background: #7ee0d3;
  border-color: #7ee0d3;
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn--secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: var(--bg-elev-2);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1.125rem 2rem;
  font-size: 1rem;
}

/* ----- Navigation --------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 20, 26, 0.75);
  border-bottom: 1px solid var(--border-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.875rem;
  gap: 2rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--teal);
  line-height: 1;
}

.nav__menu {
  display: none;
  gap: 1.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.nav__menu a:hover {
  color: var(--teal);
}

@media (min-width: 880px) {
  .nav__menu {
    display: flex;
  }
}

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

.hero {
  position: relative;
  padding-block: clamp(5rem, 12vw, 9rem) clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 60% 50% at 80% 20%,
      rgba(95, 212, 196, 0.08),
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 60% at 20% 80%,
      rgba(95, 212, 196, 0.04),
      transparent 70%
    ),
    var(--bg);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 920px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 6.5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  color: var(--text-primary);
}

.hero__title-em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
  display: inline-block;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 0 2.5rem;
}

.hero__subtitle em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--teal);
  font-size: 1.15em;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 3rem;
}

.hero__note {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 640px;
}

/* ----- Dots / decorations ------------------------------------------------- */

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.45rem;
}

.dot--teal {
  background: var(--teal);
  box-shadow: 0 0 12px rgba(95, 212, 196, 0.6);
}

/* ----- Problem ------------------------------------------------------------ */

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.problem-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.problem-list h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.problem-list p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

.quote {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(180deg, rgba(95, 212, 196, 0.06), rgba(95, 212, 196, 0.02));
  border: 1px solid var(--border-teal);
  border-radius: 10px;
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
}

.quote em {
  font-style: italic;
  color: var(--teal);
}

/* ----- Solution cards ----------------------------------------------------- */

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  position: relative;
  transition: all 0.3s var(--ease);
}

.card:hover {
  border-color: var(--border-teal);
  background: var(--bg-elev-2);
  transform: translateY(-2px);
}

.card--accent {
  border-top: 1px solid var(--teal-soft);
}

.card__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--teal-soft);
  opacity: 0.6;
  margin-bottom: 1rem;
  line-height: 1;
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.875rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.callout {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--tint-teal);
  border: 1px solid var(--border-teal);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.callout strong {
  color: var(--text-primary);
}

/* ----- Steps (How it works) ----------------------------------------------- */

.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--teal-soft);
  opacity: 0.7;
  line-height: 1;
}

.step h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

.step__quote {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 0.95rem !important;
  color: var(--text-primary) !important;
}

.step__tag {
  margin-top: auto;
  display: inline-block;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
}

.step__tag--teal {
  background: var(--tint-teal);
  color: var(--teal);
  border: 1px solid var(--border-teal);
}

.step__tag--gold {
  background: var(--tint-gold);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

/* ----- Value grid --------------------------------------------------------- */

.value-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
}

.value-card__metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tint-teal);
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.value-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================================
   Demo: product mockups in "Квартирный доктор" brand language.
   Inside .mockup-screen — completely different design tokens (light editorial,
   per DESIGN.md). The dark landing language stops at the mockup boundary.
   ========================================================================== */

.mockup-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 880px) {
  .mockup-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Wrapper: lives in the dark theme */
.mockup {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.mockup__chrome {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-inline: 0.25rem;
}

.mockup__step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
  color: var(--teal);
  line-height: 1;
}

.mockup__step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.mockup__step-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* The screen itself: paper-cream Квартирный-доктор canvas. */
.mockup-screen {
  /* Scoped tokens — DESIGN.md палитра. */
  --paper: #f4efe6;
  --surface: #faf7f1;
  --ink: #1a1a1a;
  --graphite: #6b6b63;
  --line: #d9d2c3;
  --forest: #2d4a3e;
  --forest-deep: #1f362c;
  --amber: #e8b04b;
  --amber-bg: #f7e8c8;
  --amber-text: #6b4a0f;

  --kd-sans: "Golos Text", -apple-system, BlinkMacSystemFont, sans-serif;
  --kd-serif: "PT Serif", Georgia, serif;
  --kd-mono: "JetBrains Mono", ui-monospace, monospace;

  background: var(--paper);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  font-family: var(--kd-sans);
  font-size: 15px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Subtle paper-edge shadow to ground the surface against dark bg */
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 12px 40px -8px rgba(0, 0, 0, 0.5);
  /* Stop the dark page text colors from inheriting */
  isolation: isolate;
  position: relative;
}

/* ---- Квартирный-доктор primitives ---- */

.kd-kicker {
  font-family: var(--kd-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
}

.kd-display {
  font-family: var(--kd-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.kd-display--md {
  font-size: clamp(1.375rem, 2.4vw, 1.625rem);
}

.kd-lede {
  margin: -0.25rem 0 0;
  color: var(--graphite);
  font-size: 15px;
}

.kd-body {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.kd-textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.125rem;
  font-family: var(--kd-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  min-height: 5rem;
  position: relative;
}

.kd-caret {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  background: var(--ink);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: kd-blink 1s steps(2) infinite;
}

@keyframes kd-blink {
  to {
    opacity: 0;
  }
}

.kd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kd-chip {
  padding: 0.5rem 0.875rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

.kd-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.kd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-family: var(--kd-sans);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}

.kd-btn--primary {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
}

.kd-disclaimer {
  font-family: var(--kd-mono);
  font-size: 11px;
  color: var(--graphite);
  letter-spacing: 0.04em;
}

/* ---- Clarify: stacked questions with selected pills ---- */

.kd-questions {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 0;
  list-style: none;
  padding: 0;
}

.kd-q {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--line);
}

.kd-q:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.kd-q__label {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.kd-q__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kd-pill {
  padding: 0.4rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--graphite);
}

.kd-pill--selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---- Result: urgency + verdict + clinic card ---- */

.kd-urgency {
  align-self: flex-start;
  display: inline-block;
  padding: 0.45rem 0.875rem;
  background: var(--amber-bg);
  color: var(--amber-text);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.kd-clinic {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kd-clinic__name {
  margin: 0;
  font-family: var(--kd-serif);
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
}

.kd-clinic__sub {
  margin: 0;
  font-size: 13px;
  color: var(--graphite);
}

.kd-clinic__data {
  margin: 0.5rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-family: var(--kd-mono);
  font-size: 13px;
}

.kd-clinic__data div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.5rem;
}

.kd-clinic__data dt {
  color: var(--graphite);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.kd-clinic__data dd {
  margin: 0;
  color: var(--ink);
}

.kd-clinic__cta {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.kd-safety {
  margin: 0.25rem 0 0;
  font-family: var(--kd-mono);
  font-size: 11px;
  color: var(--graphite);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* ---- Preparation: stepper ---- */

.kd-steps {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 0;
  list-style: none;
  padding: 0;
}

.kd-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.125rem;
}

.kd-step__num {
  font-family: var(--kd-serif);
  font-size: 26px;
  color: var(--graphite);
  line-height: 1;
}

.kd-step__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.kd-step__body h4 {
  margin: 0;
  font-family: var(--kd-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.kd-step__prep {
  border-left: 2px solid var(--line);
  padding: 0.25rem 0 0.25rem 0.875rem;
  font-size: 13px;
  color: var(--graphite);
  line-height: 1.5;
}

.kd-alert {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
}

.kd-alert strong {
  color: var(--forest-deep);
  font-weight: 600;
}

/* ---- Demo wrapper bits ---- */

.demo-disclaimer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-style: italic;
  max-width: 720px;
  margin-inline: auto;
}

.demo-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ----- Pilot grid --------------------------------------------------------- */

.pilot-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pilot-grid h3 {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}

.pilot-grid h3:not(:first-child) {
  margin-top: 1.25rem;
}

.pilot-grid__intro {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  padding: 0.5rem 0.875rem;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-primary);
}

.metrics {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.metrics li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.metrics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(95, 212, 196, 0.6);
}

/* ----- Team --------------------------------------------------------------- */

.team-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .team-grid--ops {
    grid-template-columns: repeat(3, 1fr);
  }
  .team-grid--med {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
    margin-inline: auto;
  }
}

.team-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-soft);
  border-top: 1px solid var(--teal-soft);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.team-card:hover {
  transform: translateY(-2px);
}

.team-card--gold {
  border-top-color: var(--gold-soft);
}

.team-card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.02);
  transition: filter 0.3s var(--ease);
}

.team-card:hover .team-card__photo img {
  filter: grayscale(0) contrast(1.05);
}

.team-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.team-card__body h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.team-card__role {
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.team-card__role--gold {
  color: var(--gold);
}

.team-card__body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0.75rem;
  flex: 1;
}

.team-card__tag {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  align-self: flex-start;
}

.team-card__tag--teal {
  background: var(--tint-teal);
  color: var(--teal);
  border: 1px solid var(--border-teal);
}

.team-card__tag--gold {
  background: var(--tint-gold);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

/* ----- Closing ------------------------------------------------------------ */

.section--closing {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev-1) 100%);
  position: relative;
  overflow: hidden;
}

.section--closing::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.4;
}

.closing__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 1.5rem auto 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.contact-note {
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.footer {
  border-top: 1px solid var(--border-soft);
  padding-block: 2rem;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  align-items: center;
  text-align: center;
}

.footer__safety {
  font-style: italic;
}

@media (min-width: 700px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ----- Reveal animations -------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ----- Selection --------------------------------------------------------- */

::selection {
  background: var(--teal);
  color: #0a141a;
}
