/* Mindwright.ai — Dark Neumorphism v2 */
/* Typography: Playfair Display (display) · Jost (body) · JetBrains Mono (labels) */

/* ── TOKENS ──────────────────────────────────────────── */
:root {
  /* ─ Surface stack ─────────────────────────────────── */
  /* Midnight navy — dark but breathable, not near-black  */
  --bg:             #1f2840;   /* page floor                    */
  --surface:        #273249;   /* lifted sections / nav mobile  */
  --surface-inset:  #161e34;   /* concave inputs / troughs      */

  /* ─ Neumorphic shadow pair ────────────────────────── */
  /* Straddle --bg with clear ~12pt L differential each side */
  --neu-light:      #32446a;   /* highlight face (top-left)     */
  --neu-dark:       #0d1122;   /* shadow face (bottom-right)    */

  /* ─ Shadow scales (convex raised) ────────────────── */
  --shadow-xs: -3px -3px 7px var(--neu-light),   3px  3px  7px var(--neu-dark);
  --shadow-sm: -6px -6px 14px var(--neu-light),  6px  6px 14px var(--neu-dark);
  --shadow-md: -9px -9px 20px var(--neu-light),  9px  9px 20px var(--neu-dark);
  --shadow-lg:-13px-13px 28px var(--neu-light), 13px 13px 28px var(--neu-dark);

  /* ─ Inset (concave / pressed) ────────────────────── */
  --inset-sm: inset  4px  4px  9px var(--neu-dark), inset -4px -4px  9px var(--neu-light);
  --inset-md: inset  6px  6px 14px var(--neu-dark), inset -6px -6px 14px var(--neu-light);

  /* ─ Amber ────────────────────────────────────────── */
  --amber:        #c8933c;
  --amber-light:  #dba84f;
  --amber-dim:    rgba(200, 147, 60, 0.12);
  --amber-border: rgba(200, 147, 60, 0.30);
  --amber-glow:   0 0 32px rgba(200, 147, 60, 0.24);

  /* ─ Indigo accent ────────────────────────────────── */
  --indigo:        #96a8e8;   /* periwinkle blue — 5.2:1 on --bg   */
  --indigo-light:  #b0c0f4;
  --indigo-dim:    rgba(150, 168, 232, 0.12);
  --indigo-border: rgba(150, 168, 232, 0.28);
  --indigo-glow:   0 0 28px rgba(150, 168, 232, 0.20);

  /* ─ Violet accent ────────────────────────────────── */
  --violet:        #b08de8;   /* soft purple — 4.8:1 on --bg       */
  --violet-light:  #c8a8f4;
  --violet-dim:    rgba(176, 141, 232, 0.12);

  /* ─ Text ─────────────────────────────────────────── */
  --text:       #f0ede6;   /* warm near-white — 12:1 on --bg    */
  --text-mid:   #bcc5db;   /* medium — 7.2:1 on --bg            */
  --text-muted: #9da8c4;   /* muted — 5.6:1 on --bg (WCAG AA)   */
  --text-dim:   #4a5a7e;   /* dim — ornamental / footer labels  */

  /* ─ Fonts ────────────────────────────────────────── */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Jost', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Consolas', monospace;

  /* ─ Geometry ─────────────────────────────────────── */
  --radius-sm:  10px;
  --radius:     18px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-pill: 999px;

  /* ─ Layout ───────────────────────────────────────── */
  --max-w:    1080px;
  --max-text: 720px;

  /* ─ Motion ───────────────────────────────────────── */
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-mid:  250ms;
  --dur-slow: 380ms;
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.72;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; cursor: pointer; }
ul, ol { list-style: none; }

/* ── LAYOUT ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 36px;
}
.container--text {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 0 36px;
}
@media (max-width: 600px) {
  .container, .container--text { padding: 0 22px; }
}

/* ── NAV ─────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  box-shadow: 0 4px 20px var(--neu-dark), 0 1px 0 rgba(255,255,255,0.03);
  transition: box-shadow var(--dur-slow) var(--ease);
}
.site-nav.scrolled {
  box-shadow: 0 6px 28px var(--neu-dark), 0 1px 0 var(--amber-border), var(--amber-glow);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 36px;
  height: 66px;
  display: flex;
  align-items: center;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
  margin-right: auto;
}
.nav-brand span { color: var(--amber); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links li a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), box-shadow var(--dur-mid) var(--ease);
  white-space: nowrap;
  display: block;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--text-mid);
  box-shadow: var(--inset-sm);
}
.nav-links .nav-cta a {
  color: var(--amber);
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
}
.nav-links .nav-cta a:hover {
  color: var(--amber-light);
  box-shadow: var(--shadow-sm), var(--amber-glow);
}
.nav-toggle {
  display: none;
  background: var(--bg);
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-fast), color var(--dur-fast);
}
.nav-toggle:active { box-shadow: var(--inset-sm); color: var(--text); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    padding: 14px 32px;
    border-radius: 0;
    box-shadow: none;
    font-size: 11px;
  }
  .nav-links li a:hover,
  .nav-links li a.active { box-shadow: none; color: var(--amber); background: rgba(200,147,60,0.06); }
  .nav-links .nav-cta { padding: 12px 24px; }
  .nav-links .nav-cta a { border-radius: var(--radius-pill); box-shadow: var(--shadow-xs); text-align: center; }
  .nav-inner { padding: 0 22px; }
}

/* ── DIVIDER RULE ────────────────────────────────────── */
.rule {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0.40;
}
.rule::before, .rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--amber), transparent);
}
.rule-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bg);
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

/* ── EYEBROW ─────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 130px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}
.hero--short {
  min-height: 54vh;
  padding-top: 148px;
  padding-bottom: 76px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.09;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, transparent 30%, var(--bg) 80%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
}
.hero-body {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Hero title — Playfair Display, editorial scale */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  /* Subtle neumorphic text relief */
  text-shadow:
    -1px -1px 0 rgba(255,255,255,0.03),
     1px  1px 3px var(--neu-dark);
}
.hero-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--amber);
  text-shadow:
    -1px -1px 4px rgba(200, 147, 60, 0.30),
     1px  1px 4px rgba(0, 0, 0, 0.5);
}

/* Hero subtitle — Jost, readable */
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 400;
  color: var(--text-mid);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.72;
  letter-spacing: 0.01em;
}

/* ── FRAMEWORK STACK ─────────────────────────────────── */
.stack-table {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  overflow: hidden;
  margin: 0 auto 52px;
  text-align: left;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--bg);
}
.stack-cell {
  padding: 13px 28px;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.035);
}
.stack-row-last { border-bottom: none; }

/* Empty top-left corner */
.stack-corner {
  border-right: 1px solid rgba(255,255,255,0.04);
}

/* Column headers: Outer / Inner */
.stack-col-head {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.stack-col-head--inner {
  color: var(--indigo);
  border-right: none;
}

/* Row labels */
.stack-label {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid rgba(255,255,255,0.04);
  min-width: 110px;
}

/* Outer column — amber */
.stack-outer {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--amber-light);
  border-right: 1px solid rgba(255,255,255,0.04);
}

/* Inner column — indigo */
.stack-inner {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--indigo-light);
}

@media (max-width: 600px) {
  .stack-table { font-size: 13px; }
  .stack-cell { padding: 11px 16px; }
  .stack-label { min-width: 80px; font-size: 9px; }
  .stack-outer, .stack-inner { font-size: 13px; }
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition:
    box-shadow var(--dur-mid) var(--ease-out),
    transform   var(--dur-fast) var(--ease),
    color       var(--dur-fast),
    background  var(--dur-fast);
}
.btn--primary {
  background: var(--amber);
  color: var(--bg);
  font-weight: 500;
  box-shadow: var(--shadow-sm), var(--amber-glow);
}
.btn--primary:hover {
  background: var(--amber-light);
  box-shadow: var(--shadow-md), 0 0 44px rgba(200, 147, 60, 0.32);
  transform: translateY(-2px);
}
.btn--primary:active {
  box-shadow: var(--inset-sm);
  transform: translateY(0);
}
.btn--ghost {
  background: var(--bg);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  color: var(--amber);
  box-shadow: var(--shadow-md), 0 0 24px rgba(200, 147, 60, 0.12);
  transform: translateY(-1px);
}
.btn--ghost:active {
  box-shadow: var(--inset-sm);
  color: var(--text-mid);
  transform: translateY(0);
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ── SECTIONS ────────────────────────────────────────── */
.section { padding: 100px 0; }
.section--tight { padding: 68px 0; }
.section--dark { background: var(--surface); }
.section-head {
  text-align: center;
  margin-bottom: 68px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.022em;
  margin-bottom: 22px;
}
.section-head p {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.72;
}

/* ── PROBLEM GRID ────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}
.problem-item {
  background: var(--bg);
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-mid) var(--ease-out), transform var(--dur-fast);
}
.problem-item:hover {
  box-shadow: var(--shadow-md), 0 0 24px rgba(200, 147, 60, 0.08);
  transform: translateY(-2px);
}
.problem-marker {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--amber);
  margin-top: 5px;
  flex-shrink: 0;
  opacity: 0.85;
}
.problem-item p {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.40;
}
@media (max-width: 640px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* ── PERSONA / FEATURE CARDS ─────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--dur-mid) var(--ease-out), transform var(--dur-fast);
}
.card:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(200, 147, 60, 0.10);
  transform: translateY(-4px);
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}
.card h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.card p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.72;
  flex: 1;
}
.card ul { display: flex; flex-direction: column; gap: 10px; }
.card ul li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.48;
}
.card ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--amber);
  opacity: 0.6;
}
.card .btn { margin-top: 10px; align-self: flex-start; }

/* ── ABOUT STRIP ─────────────────────────────────────── */
.about-strip {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 760px) { .about-strip { grid-template-columns: 1fr; gap: 36px; } }
.about-strip-meta .name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.about-strip-meta .title-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 26px;
}
.about-strip-meta .cred-list { display: flex; flex-direction: column; gap: 10px; }
.about-strip-meta .cred-list li {
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.45;
}
.about-strip-meta .cred-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--amber);
}
.about-strip-text p {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-mid);
  line-height: 1.78;
  margin-bottom: 18px;
  max-width: 640px;
}
.about-strip-text p:last-child { margin-bottom: 0; }
.about-strip-text strong { color: var(--text); font-weight: 500; }

/* ── CONTACT ─────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 88px;
  align-items: start;
}
@media (max-width: 820px) { .contact-wrap { grid-template-columns: 1fr; gap: 44px; } }
.contact-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.contact-intro p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 16px;
}
.contact-intro .email-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--amber);
  transition: color var(--dur-fast);
}
.contact-intro .email-link:hover { color: var(--amber-light); }

/* Form */
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 9px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--surface-inset);
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--inset-md);
  transition: box-shadow var(--dur-mid) var(--ease-out);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  box-shadow: var(--inset-md), 0 0 0 1.5px var(--amber-border), var(--amber-glow);
}
.form-field 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='%2358617a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-color: var(--surface-inset);
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-field select option { background: var(--surface); color: var(--text); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }
.form-btn { width: 100%; justify-content: center; font-size: 11px; padding: 17px 28px; }
.form-success, .form-error {
  display: none;
  text-align: center;
  padding: 48px 20px;
}
.form-success h3, .form-error h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}
.form-success h3 { color: var(--amber-light); }
.form-error h3 { color: #c84444; }
.form-success p, .form-error p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── 7 STEPS ─────────────────────────────────────────── */
.steps {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step {
  display: flex;
  gap: 36px;
  padding: 38px 42px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow var(--dur-mid) var(--ease-out), transform var(--dur-fast);
}
.step:hover {
  box-shadow: var(--shadow-md), 0 0 28px rgba(200, 147, 60, 0.08);
  transform: translateY(-2px);
}
.step-num {
  width: 52px; height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--amber);
}
.step-meta { flex: 1; }
.step-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
  opacity: 0.70;
}
.step h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.10;
  letter-spacing: -0.018em;
  margin-bottom: 12px;
}
.step p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.72;
}
@media (max-width: 640px) { .step { padding: 28px 24px; gap: 20px; } }

/* ── SERVICES ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 820px) { .services-grid { grid-template-columns: 1fr; } }
.service-item {
  background: var(--bg);
  padding: 46px 38px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-mid) var(--ease-out), transform var(--dur-fast);
}
.service-item:hover {
  box-shadow: var(--shadow-md), 0 0 32px rgba(200, 147, 60, 0.10);
  transform: translateY(-3px);
}
.service-item .service-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.service-item h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.service-item p {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.72;
}

/* ── FRAMEWORK PAGE ──────────────────────────────────── */
.fw-section {
  padding: 84px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.fw-section:last-child { border-bottom: none; }
.fw-section h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 0.95;
  margin-bottom: 28px;
}
.fw-section .lead {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-style: italic;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.58;
  max-width: 680px;
  margin-bottom: 34px;
}
.fw-section p {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.82;
  max-width: 680px;
  margin-bottom: 18px;
}
.fw-section p:last-child { margin-bottom: 0; }

/* Triad */
.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 52px 0;
  max-width: 740px;
}
.triad-item {
  background: var(--bg);
  padding: 38px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-mid) var(--ease-out);
}
.triad-item:hover { box-shadow: var(--shadow-md), 0 0 28px rgba(200, 147, 60, 0.10); }
.triad-item h4 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--amber-light);
  margin-bottom: 14px;
}
.triad-item p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.66;
  margin-bottom: 0;
  max-width: none;
}
@media (max-width: 600px) { .triad { grid-template-columns: 1fr; } }

/* Article links */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 36px 0;
  max-width: 680px;
}
.article-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-mid) var(--ease-out), transform var(--dur-fast);
}
.article-link:hover {
  box-shadow: var(--shadow-md), 0 0 24px rgba(200, 147, 60, 0.09);
  transform: translateY(-2px);
}
.article-link-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
}
.article-link-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 20px;
}
.article-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  margin-left: 10px;
  transition: color var(--dur-fast), transform var(--dur-fast);
}
.article-link:hover .article-arrow { color: var(--amber); transform: translate(3px, -3px); }

/* ── ABOUT PAGE ──────────────────────────────────────── */
.bio-section {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 72px;
  padding: 76px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  align-items: start;
}
.bio-section:last-child { border-bottom: none; }
.bio-section-label h3 {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber);
}
.bio-section-content h4 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.00;
  margin-bottom: 22px;
}
.bio-section-content .lead {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 20px);
  font-style: italic;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.68;
  margin-bottom: 22px;
  max-width: 640px;
}
.bio-section-content p {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.82;
  margin-bottom: 16px;
  max-width: 640px;
}
.bio-section-content p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .bio-section { grid-template-columns: 1fr; gap: 18px; } }

/* Credential badges */
.cred-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.cred-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  color: var(--text-mid);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  box-shadow: var(--shadow-xs);
}

/* ── CTA BAND ─────────────────────────────────────────── */
.cta-band {
  background: var(--surface);
  padding: 88px 0;
  text-align: center;
  box-shadow:
    inset 0 3px 20px rgba(0,0,0,0.45),
    inset 0 -3px 20px rgba(0,0,0,0.45);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin-bottom: 20px;
}
.cta-band p {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.72;
}

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  box-shadow: inset 0 6px 24px rgba(0,0,0,0.50);
  padding: 60px 0 44px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}
.footer-brand .brand-name span { color: var(--amber); }
.footer-brand p {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  max-width: 250px;
  line-height: 1.68;
}
.footer-nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-nav-col h4 {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-nav-col ul li { margin-bottom: 10px; }
.footer-nav-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--dur-fast);
}
.footer-nav-col ul li a:hover { color: var(--amber); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.65;
  letter-spacing: 0.05em;
}
.footer-bottom a { color: var(--text-muted); transition: color var(--dur-fast); }
.footer-bottom a:hover { color: var(--amber); }

/* ── ACCENT COLOR CYCLING ────────────────────────────── */
/* Rotate amber → indigo → violet across repeated elements */

/* Card tags */
.card:nth-child(2) .card-tag                { color: var(--indigo); }
.card:nth-child(3) .card-tag                { color: var(--violet); }

/* Card hover glow matches tag color */
.card:nth-child(2):hover { box-shadow: var(--shadow-lg), 0 0 40px rgba(150, 168, 232, 0.12); }
.card:nth-child(3):hover { box-shadow: var(--shadow-lg), 0 0 40px rgba(176, 141, 232, 0.12); }

/* Problem markers — pair up every 3 */
.problem-item:nth-child(3n+2) .problem-marker { color: var(--indigo); }
.problem-item:nth-child(3n+3) .problem-marker { color: var(--violet); }

/* Steps — cycle step numbers */
.step:nth-child(3n+2) .step-num  { color: var(--indigo); }
.step:nth-child(3n+2) .step-label { color: var(--indigo); opacity: 0.70; }
.step:nth-child(3n+3) .step-num  { color: var(--violet); }
.step:nth-child(3n+3) .step-label { color: var(--violet); opacity: 0.70; }

/* Service tags */
.service-item:nth-child(2) .service-tag { color: var(--indigo); }
.service-item:nth-child(3) .service-tag { color: var(--violet); }
.service-item:nth-child(5) .service-tag { color: var(--indigo); }
.service-item:nth-child(6) .service-tag { color: var(--violet); }

/* Triad — each vertex its own color */
.triad-item:nth-child(1) h4 { color: var(--amber-light); }
.triad-item:nth-child(2) h4 { color: var(--violet-light); }
.triad-item:nth-child(3) h4 { color: var(--indigo-light); }

/* Cred badges — soft color variation */
.cred-badge:nth-child(3n+2) { color: var(--indigo); }
.cred-badge:nth-child(3n+3) { color: var(--violet); }

/* Article arrows — indigo on hover feels more alive than amber */
.article-link:hover .article-arrow { color: var(--indigo); transform: translate(3px, -3px); }

/* Rule decorators — add a subtle indigo/violet gradient variant */
.section--dark .rule::before,
.section--dark .rule::after {
  background: linear-gradient(to right, transparent, var(--indigo), transparent);
}

/* ── REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── GLOSSARY PAGE ───────────────────────────────────── */

/* Alpha quick-jump index */
.gloss-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 48px 0 60px;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
}
.gloss-alpha-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
  transition: color var(--dur-fast), box-shadow var(--dur-mid) var(--ease);
  white-space: nowrap;
}
.gloss-alpha-pill:hover {
  color: var(--amber);
  box-shadow: var(--shadow-sm), 0 0 14px rgba(200,147,60,0.10);
}

/* Section group */
.gloss-group {
  padding: 88px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.gloss-group:last-child { border-bottom: none; }
.gloss-group-head {
  margin-bottom: 64px;
  max-width: 680px;
}
.gloss-group-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 0.95;
  margin-bottom: 18px;
}
.gloss-group-head p {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.78;
}

/* Individual entry */
.gloss-entry {
  padding: 56px 0;
  border-bottom: 1px solid rgba(255,255,255,0.035);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
  scroll-margin-top: 88px;
}
.gloss-entry:last-child { border-bottom: none; padding-bottom: 0; }
.gloss-entry-label {
  position: sticky;
  top: 90px;
}
.gloss-term {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--amber-light);
  margin-bottom: 10px;
}
.gloss-origin {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Entry content */
.gloss-def {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 20px);
  font-style: italic;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.58;
  margin-bottom: 20px;
}
.gloss-text {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.82;
  margin-bottom: 14px;
}
.gloss-text:last-of-type { margin-bottom: 28px; }

/* Related terms */
.gloss-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.gloss-related-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
}
.gloss-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 5px 12px;
  background: var(--bg);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  transition: color var(--dur-fast), box-shadow var(--dur-mid) var(--ease);
}
.gloss-pill:hover {
  color: var(--amber);
  box-shadow: var(--shadow-sm);
}

/* Section accent color modifiers */
.gloss-group--indigo .gloss-term         { color: var(--indigo-light); }
.gloss-group--indigo .eyebrow            { color: var(--indigo); }
.gloss-group--indigo .gloss-alpha-pill:hover,
.gloss-group--indigo .gloss-pill:hover   { color: var(--indigo); }

.gloss-group--violet .gloss-term         { color: var(--violet-light); }
.gloss-group--violet .eyebrow            { color: var(--violet); }
.gloss-group--violet .gloss-alpha-pill:hover,
.gloss-group--violet .gloss-pill:hover   { color: var(--violet); }

@media (max-width: 760px) {
  .gloss-entry {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 44px 0;
  }
  .gloss-entry-label { position: static; }
  .gloss-alpha { padding: 36px 0 44px; }
}

/* ── UTILITIES ───────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
