/* ==========================================================================
   élan advisory — design system
   Dark & premium. Serif display (Fraunces) + neutral sans (Inter).
   ========================================================================== */

:root {
  /* Surfaces */
  --ink:        #0A0B0D;
  --ink-2:      #0F1116;
  --ink-3:      #14171E;
  --ink-4:      #1B1F28;

  /* Lines */
  --line:       rgba(255, 255, 255, 0.09);
  --line-2:     rgba(255, 255, 255, 0.15);

  /* Type */
  --text:       #EDEEF2;
  --text-2:     #C3C7D1;
  --muted:      #9BA0AB;
  --faint:      #7C828E;

  /* Accents */
  --amber:      #E9B44C;
  --amber-2:    #F3D08A;
  --amber-dim:  rgba(233, 180, 76, 0.12);
  --sage:       #7BC0B4;
  --sage-dim:   rgba(123, 192, 180, 0.12);
  --rose:       #DE8F84;
  --rose-dim:   rgba(222, 143, 132, 0.12);
  --violet:     #9B93D6;

  /* Type scale */
  --display: 'Fraunces Variable', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------- reset -- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

/* Ambient grain — gives the dark surface a premium, non-flat feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 1; }

::selection { background: var(--amber); color: #0A0B0D; }

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

/* -------------------------------------------------------------- layout -- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow { max-width: var(--wrap-narrow); }

section { padding-block: clamp(4.5rem, 10vw, 8rem); }
section.tight { padding-block: clamp(3rem, 6vw, 5rem); }

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
  margin: 0;
}

/* ------------------------------------------------------------ typography -- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: 'opsz' 40;
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); letter-spacing: -0.012em; }
h4 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; letter-spacing: -0.005em; }

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

.lede {
  font-size: clamp(1.1rem, 1.9vw, 1.32rem);
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

.muted { color: var(--muted); }
.small { font-size: 0.9rem; line-height: 1.6; }
.xs { font-size: 0.8rem; line-height: 1.55; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.25rem;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--amber);
  opacity: 0.6;
}

.eyebrow.plain::before { display: none; }
.eyebrow.sage { color: var(--sage); }
.eyebrow.sage::before { background: var(--sage); }

.accent { color: var(--amber); }
.serif-em {
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: 'opsz' 40;
}

/* ------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 550;
  letter-spacing: -0.005em;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--amber);
  color: #17130A;
  box-shadow: 0 6px 24px -8px rgba(233, 180, 76, 0.55);
}
.btn-primary:hover {
  background: var(--amber-2);
  box-shadow: 0 12px 34px -10px rgba(233, 180, 76, 0.7);
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-dim);
}

.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.86rem; }

.btn-arrow::after {
  content: '→';
  transition: transform 0.25s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--amber);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.94rem;
  border-bottom: 1px solid rgba(233, 180, 76, 0.28);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.textlink:hover { border-color: var(--amber); gap: 0.7rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* -------------------------------------------------------------- header -- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}

/* Wordmark */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.logo-mark {
  font-family: var(--display);
  font-size: 1.5rem;
  font-style: italic;
  font-variation-settings: 'opsz' 40;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(102deg, var(--amber-2), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-word {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 480;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after,
.nav a[aria-current='page']::after { transform: scaleX(1); }
.nav a[aria-current='page'] { color: var(--text); }

.header-cta { display: inline-flex; }

/* The in-nav CTA is for the mobile drawer only */
.nav .btn { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 17px; height: 1.5px;
  background: currentColor;
  position: relative;
  transition: background 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 17px; height: 1.5px;
  background: currentColor;
  transition: transform 0.28s var(--ease);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 11, 13, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.75rem;
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav a::after { display: none; }
  .nav .btn { display: inline-flex; margin-top: 1.25rem; }
}

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  padding-top: clamp(9rem, 17vh, 12rem);
  padding-bottom: clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -32%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1150px, 145vw);
  aspect-ratio: 1 / 0.72;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 50% at 50% 50%, rgba(233, 180, 76, 0.15), transparent 68%),
    radial-gradient(ellipse 38% 42% at 26% 62%, rgba(123, 192, 180, 0.11), transparent 70%),
    radial-gradient(ellipse 34% 38% at 76% 40%, rgba(155, 147, 214, 0.10), transparent 70%);
  filter: blur(26px);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 78%);
  z-index: 0;
}

.hero .wrap { position: relative; z-index: 1; }

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em {
  font-style: italic;
  font-variation-settings: 'opsz' 60;
  background: linear-gradient(100deg, var(--amber-2) 10%, var(--amber) 55%, var(--sage) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { max-width: 62ch; }
.hero .btn-row { margin-top: 2.4rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  margin-top: 3.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
}
.chip::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}
.chip.sage::before { background: var(--sage); }
.chip.violet::before { background: var(--violet); }

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

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: linear-gradient(168deg, var(--ink-3), var(--ink-2) 62%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
  overflow: hidden;
}

.card-hover:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 18px 46px -22px rgba(0, 0, 0, 0.85);
}

.card h3 { margin-bottom: 0.65rem; }
.card p { color: var(--muted); font-size: 0.96rem; }

.card-num {
  font-family: var(--display);
  font-size: 0.9rem;
  font-variation-settings: 'opsz' 14;
  color: var(--amber);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1.1rem;
}

/* Two-track service cards */
.track {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(168deg, var(--ink-3), var(--ink-2) 65%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.track::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent 72%);
}
.track.sage::before { background: linear-gradient(90deg, var(--sage), transparent 72%); }
.track ul { margin-top: auto; }

/* Lists */
.ticks {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.7rem;
}
.ticks li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.55;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.38em;
  width: 5px; height: 9px;
  border-right: 1.6px solid var(--amber);
  border-bottom: 1.6px solid var(--amber);
  transform: rotate(45deg);
}
.ticks.sage li::before { border-color: var(--sage); }

/* ---------------------------------------------------------------- stats -- */

.stat-band {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 130% at 50% 0%, rgba(233, 180, 76, 0.05), transparent 70%),
    var(--ink-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--ink-2);
  padding: clamp(1.4rem, 2.4vw, 2rem);
}
.stat-fig {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  font-variation-settings: 'opsz' 60;
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}
.stat p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.stat cite {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.03em;
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ frameworks -- */

.fw {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(168deg, var(--ink-3), var(--ink-2) 70%);
  overflow: hidden;
}
.fw + .fw { margin-top: clamp(2rem, 4vw, 3.25rem); }

.fw-head {
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.5rem, 3vw, 2.4rem) 0;
  max-width: 78ch;
}
.fw-head h3 { margin-bottom: 0.55rem; }
.fw-head p { color: var(--muted); font-size: 0.98rem; }

.fw-canvas {
  padding: clamp(1.25rem, 3vw, 2.4rem);
  overflow-x: auto;
}
.fw-canvas svg { width: 100%; height: auto; min-width: 480px; }

.fw-foot {
  border-top: 1px solid var(--line);
  padding: 1.1rem clamp(1.5rem, 3vw, 2.4rem);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
}
.fw-foot strong { color: var(--text-2); font-weight: 600; margin-right: 0.4rem; }

/* SVG shared type */
.svg-label { font-family: 'Inter Variable', 'Inter', sans-serif; font-size: 13px; font-weight: 600; fill: #EDEEF2; }
.svg-sub   { font-family: 'Inter Variable', 'Inter', sans-serif; font-size: 11.5px; font-weight: 400; fill: #9BA0AB; }
.svg-tiny  { font-family: 'Inter Variable', 'Inter', sans-serif; font-size: 10px;  font-weight: 500; fill: #7C828E; letter-spacing: 0.08em; }
.svg-axis  { font-family: 'Inter Variable', 'Inter', sans-serif; font-size: 10.5px; font-weight: 600; fill: #7C828E; letter-spacing: 0.13em; text-transform: uppercase; }
.svg-num   { font-family: 'Fraunces Variable', Georgia, serif; font-size: 22px; font-weight: 400; fill: #E9B44C; }
.svg-quad  { font-family: 'Fraunces Variable', Georgia, serif; font-size: 19px; font-weight: 400; }

/* --------------------------------------------------------------- about -- */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; } }

.portrait {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink-3);
  aspect-ratio: 4 / 5;
  position: relative;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.portrait-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(233,180,76,0.10), transparent 65%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px);
  color: var(--faint);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.portrait-placeholder span:first-child { font-size: 1.6rem; color: var(--amber); opacity: 0.5; }

.bio p { color: var(--text-2); }
.bio p + p { margin-top: 1.15em; }

.pull {
  border-left: 2px solid var(--amber);
  padding: 0.3rem 0 0.3rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  font-style: italic;
  font-variation-settings: 'opsz' 40;
  line-height: 1.42;
  color: var(--text);
}

/* ------------------------------------------------------------- process -- */

.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1.5rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n {
  font-family: var(--display);
  font-size: 1.7rem;
  font-variation-settings: 'opsz' 30;
  color: var(--amber);
  line-height: 1;
  opacity: 0.85;
}
.step h4 { margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.96rem; margin: 0; }
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ----------------------------------------------------------------- faq -- */

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-weight: 550;
  font-size: 1.02rem;
  position: relative;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--amber); }
.faq summary::after {
  content: '';
  position: absolute;
  right: 0.5rem; top: 50%;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--amber);
  border-bottom: 1.5px solid var(--amber);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.28s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p {
  color: var(--muted);
  font-size: 0.97rem;
  padding: 0 3rem 1.5rem 0;
  margin: 0;
  max-width: 72ch;
}

/* ---------------------------------------------------------------- form -- */

.form-card {
  background: linear-gradient(168deg, var(--ink-3), var(--ink-2) 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
}

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.field .req { color: var(--amber); }

input[type='text'],
input[type='email'],
input[type='url'],
select,
textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239BA0AB' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
select option { background: #14171E; color: var(--text); }

textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(0, 0, 0, 0.45);
}
::placeholder { color: var(--faint); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

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

.form-note {
  font-size: 0.82rem;
  color: var(--faint);
  margin-top: 1.1rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------------ cta -- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: -60% -10% auto -10%;
  height: 150%;
  background:
    radial-gradient(ellipse 40% 50% at 30% 60%, rgba(233, 180, 76, 0.13), transparent 70%),
    radial-gradient(ellipse 36% 46% at 72% 45%, rgba(123, 192, 180, 0.10), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { max-width: 18ch; }

/* -------------------------------------------------------------- footer -- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 2.5rem;
  background: var(--ink);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }

.footer-top p { font-size: 0.92rem; color: var(--muted); max-width: 38ch; margin-top: 1rem; }
.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-col a {
  text-decoration: none;
  font-size: 0.93rem;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--faint);
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--amber); }

/* ------------------------------------------------------- page headers -- */

.page-head {
  padding-top: clamp(8rem, 15vh, 10.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-head::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: min(900px, 130vw);
  height: 130%;
  background: radial-gradient(ellipse 45% 50% at 50% 50%, rgba(233, 180, 76, 0.10), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head .lede { max-width: 60ch; }

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

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

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

/* ------------------------------------------------------------- utility -- */

.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.section-head { max-width: 66ch; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; }

/* ---------------------------------------------------------- photo row -- */

.photo-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 760px) { .photo-row { grid-template-columns: 1fr; } }

.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-3);
}
.shot img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
@media (max-width: 760px) { .shot img { height: 300px; } }

.shot figcaption {
  padding: 0.9rem 1.15rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Side-by-side portrait + text block */
.split {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
.split.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
@media (max-width: 820px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > *:first-child { order: 2; }
}

.framed {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-3);
}
.framed img { width: 100%; height: auto; display: block; }

.note-box {
  border: 1px dashed rgba(233, 180, 76, 0.42);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  background: rgba(233, 180, 76, 0.035);
}
.note-box h4 { color: var(--amber); margin-bottom: 0.5rem; }
.note-box p { font-size: 0.9rem; color: var(--text-2); }

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.1rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.meta-line b {
  color: var(--faint);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-right: 0.45rem;
}

/* Links that sit inside running prose */
.lede .textlink, p .textlink { display: inline; }

/* Negative list — same rhythm as .ticks, but a dash in rose */
.ticks.no li::before {
  border: 0;
  width: 9px;
  height: 1.6px;
  background: var(--rose);
  border-radius: 1px;
  transform: none;
  top: 0.72em;
  left: 0.15rem;
}

/* --------------------------------------------------------- assessment -- */

.qbox {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(168deg, var(--ink-3), var(--ink-2) 70%);
  padding: 1.5rem 1.6rem 1.6rem;
  margin: 0 0 1rem;
}
.qbox legend {
  font-size: 1.02rem;
  font-weight: 550;
  line-height: 1.45;
  color: var(--text);
  padding: 0;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.qn {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--amber);
  flex-shrink: 0;
}
.opts { display: grid; gap: 0.5rem; margin-top: 1.1rem; }
.opt {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.94rem;
  color: var(--text-2);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.opt:hover { border-color: var(--line-2); background: rgba(255,255,255,0.02); }
.opt input { accent-color: var(--amber); margin-top: 0.2rem; flex-shrink: 0; }
.opt:has(input:checked) {
  border-color: var(--amber);
  background: var(--amber-dim);
  color: var(--text);
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 92px;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.bar-row:first-child { border-top: 1px solid var(--line); }
.bar-label strong { display: block; font-weight: 550; font-size: 0.98rem; }
.bar-pos { font-size: 0.78rem; color: var(--faint); letter-spacing: 0.04em; }
.bar-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; }
.bar-state { font-size: 0.82rem; font-weight: 600; text-align: right; }
.b-low { background: var(--rose); color: var(--rose); }
.b-mid { background: var(--amber); color: var(--amber); }
.b-hi  { background: var(--sage);  color: var(--sage); }
.bar-state.b-low, .bar-state.b-mid, .bar-state.b-hi { background: none; }
@media (max-width: 620px) {
  .bar-row { grid-template-columns: 1fr 70px; }
  .bar-track { grid-column: 1 / -1; order: 3; }
}

/* ------------------------------------------------ assessment, grouped -- */

.progress-wrap {
  position: sticky;
  top: 74px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0 1rem;
  background: linear-gradient(180deg, var(--ink) 72%, transparent);
  margin-bottom: 0.75rem;
}
.progress-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-2), var(--amber));
  transition: width 0.35s var(--ease);
}
#progress { white-space: nowrap; }

.qgroup {
  border: 1px solid var(--line);
  border-left: 2px solid var(--gc, var(--amber));
  border-radius: var(--radius-lg);
  background: linear-gradient(168deg, var(--ink-3), var(--ink-2) 70%);
  padding: 1.5rem clamp(1.25rem, 3vw, 1.9rem) 1.7rem;
  margin-bottom: 1.1rem;
}
.qgroup-head {
  padding-bottom: 1rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}
.qgroup-pos {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gc, var(--amber));
  margin-bottom: 0.4rem;
}
.qgroup-head h3 { margin: 0; font-size: 1.35rem; }

.q + .q { margin-top: 1.6rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.q-text {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 1rem;
}
.q.done .qn { background: var(--gc, var(--amber)); color: #0A0B0D; border-color: transparent; }
.qn {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

/* --------------------------------------------------- model on homepage -- */

.model-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 860px) { .model-grid { grid-template-columns: 1fr; } }

.model-layers { display: grid; gap: 0.6rem; }
.mlayer {
  border: 1px solid var(--line);
  border-left: 3px solid var(--mc, var(--amber));
  border-radius: 12px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--mc) 8%, transparent), var(--ink-2) 65%);
  padding: 0.95rem 1.2rem;
}
.mlayer .mpos, .mrail .mpos {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mc, var(--amber));
  margin-bottom: 0.25rem;
}
.mlayer strong, .mrail strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 0.15rem;
}
.msys { font-size: 0.86rem; color: var(--muted); }

.model-rails { display: grid; gap: 0.6rem; align-content: stretch; }
.mrail {
  border: 1px solid var(--line);
  border-top: 3px solid var(--mc, var(--amber));
  border-radius: 12px;
  background: linear-gradient(168deg, var(--ink-3), var(--ink-2) 70%);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mrail p { font-size: 0.88rem; color: var(--muted); margin: 0.35rem 0 0; }
