/* Dalton Stoltz: design system + layout. No framework. */

/* ---------- Tokens ---------- */
:root {
  --ink: #111318;
  --ink-2: #181b21;
  --ink-3: #22262e;
  --paper: #f7f7f5;
  --paper-2: #eeede8;
  --gold: #f2a93c;
  --gold-hover: #f6bb62;
  --gold-ink: #8a5a0e;          /* gold for text on light backgrounds (AA) */
  --text-dark: #111318;
  --muted-dark: #555a64;        /* secondary text on light */
  --text-light: #f7f7f5;
  --muted-light: #a3a8b2;       /* secondary text on dark */
  --line-light: rgba(17, 19, 24, 0.12);
  --line-dark: rgba(247, 247, 245, 0.12);

  --font-head: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1200px;
  --narrow: 760px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 136px);
  --header-h: 72px;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.section--light :focus-visible, .section--paper2 :focus-visible, .form :focus-visible { outline-color: var(--gold-ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 600; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.center { text-align: center; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted-light); }
.muted-dark { color: var(--muted-dark); }

/* ---------- Type scale ---------- */
.display { font-size: clamp(2.5rem, 6.2vw, 5.25rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.hero__name { display: block; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 0.875rem; }
h1 .display { display: block; }
.display-2 { font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; max-width: 18ch; }
.h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); letter-spacing: -0.028em; }
.h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.h4 { font-size: 1.1875rem; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--muted-light); max-width: 40em; }
.lead--sm { font-size: 1.125rem; }
.eyebrow {
  font-family: var(--font-head); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem;
}
.eyebrow--dark { color: var(--gold-ink); }
.caps-heading { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark); margin: 3rem 0 1rem; }
.caps-heading--light { color: var(--muted-light); margin-top: 0; }
.rule { display: block; width: 72px; height: 3px; background: var(--gold); margin: 2rem 0; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: -0.005em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hover); }
.btn--ghost { color: var(--text-light); border-color: rgba(247, 247, 245, 0.32); }
.btn--ghost:hover { border-color: var(--text-light); background: rgba(247, 247, 245, 0.06); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-3); }
.btn--outline { color: var(--ink); border-color: rgba(17, 19, 24, 0.3); }
.btn--outline:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.actions--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--font-head); font-weight: 600;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--gold-ink); padding-bottom: 2px;
}
.link-arrow::after { content: '→'; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow--light { color: var(--text-light); border-color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(17, 19, 24, 0.92);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s; color: var(--text-light);
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head);
  font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; text-decoration: none; color: inherit; white-space: nowrap;
}
.brand__mark { width: 22px; height: 20px; fill: var(--gold); flex: none; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; }
.site-nav a {
  display: block; padding: 8px 10px; font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  color: var(--muted-light); border-radius: var(--radius); transition: color 0.15s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text-light); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.menu-toggle { display: none; }

.mobile-menu { border-top: 1px solid var(--line-dark); padding: 8px var(--gutter) 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-menu ul { list-style: none; }
.mobile-menu nav a {
  display: block; padding: 14px 0; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600;
  text-decoration: none; border-bottom: 1px solid var(--line-dark); color: var(--text-light);
}
.mobile-menu nav a[aria-current="page"] { color: var(--gold); }
.mobile-menu__actions { display: grid; gap: 10px; margin-top: 20px; }

@media (max-width: 1180px) {
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 48px; height: 48px; background: none; border: 1px solid var(--line-dark); border-radius: var(--radius); cursor: pointer; color: inherit;
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s var(--ease), opacity 0.2s;
  }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ''; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -6px; }
  .menu-toggle__bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
}
@media (min-width: 1181px) { .mobile-menu { display: none !important; } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--light { background: var(--paper); color: var(--text-dark); }
.section--paper2 { background: var(--paper-2); color: var(--text-dark); }
.section--dark { background: var(--ink); color: var(--text-light); }
.section--ink2 { background: var(--ink-2); color: var(--text-light); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: none; flex-wrap: wrap; }
.section-head__intro { font-size: 1.125rem; color: var(--muted-dark); max-width: 40em; }
.section-head__intro--light { color: var(--muted-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--text-light); overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 10vw, 136px);
}
.hero::before, .page-hero::before {
  /* faint technical grid */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.35;
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 100%); mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero .display { max-width: 15ch; }

.portrait { margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40%; height: 3px; background: var(--gold); }
.portrait--placeholder {
  display: grid; place-items: center; border: 1px dashed rgba(247, 247, 245, 0.22);
  background: radial-gradient(120% 80% at 70% 20%, #262a33 0%, var(--ink-2) 70%);
}
.portrait__mono { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 9vw, 7rem); letter-spacing: -0.05em; color: rgba(247, 247, 245, 0.1); }
.portrait--placeholder figcaption {
  position: absolute; bottom: 16px; left: 16px; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-light);
}

.page-hero {
  position: relative; background: var(--ink); color: var(--text-light); overflow: hidden;
  padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 8vw, 104px);
}
.page-hero > .container { position: relative; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.page-hero__media .portrait { max-width: 360px; margin-left: auto; }
.page-hero--article { padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero--article h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -0.03em; font-weight: 800; }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.875rem; color: var(--muted-light); margin-bottom: 1.5rem; }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article__meta { color: var(--muted-light); font-size: 0.9375rem; margin: 0; }
.article__meta a { color: var(--text-light); }
.jump { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 2rem; }
.jump a { color: var(--muted-light); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-dark); padding-bottom: 2px; }
.jump a:hover { color: var(--text-light); border-color: var(--gold); }

.badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 0.8125rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(242, 169, 60, 0.4); padding: 6px 12px; border-radius: 999px; margin-bottom: 1.5rem;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- Pillars ---------- */
.pillars { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.pillar { padding: 32px 32px 8px 0; display: flex; flex-direction: column; align-items: flex-start; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line-light); }
.pillar p { color: var(--muted-dark); flex: 1; }
.pillar__num { font-family: var(--font-head); font-weight: 700; color: var(--gold-ink); font-size: 0.875rem; letter-spacing: 0.1em; margin-bottom: 2.5rem; }
.pillars--plain .pillar { padding-bottom: 0; }

/* ---------- Proof ---------- */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.proof--light { grid-template-columns: repeat(2, 1fr); border-color: var(--line-light); }
.proof--two { grid-template-columns: repeat(2, 1fr); }
.ledger--wide { margin: 0 0 40px; }
.proof__item { padding: 32px 32px 32px 0; }
.proof__item + .proof__item { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.proof--light .proof__item + .proof__item { border-color: var(--line-light); }
.proof__figure { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.04em; line-height: 1; color: var(--gold); margin: 0 0 0.75rem; }
.proof--light .proof__figure { color: var(--ink); }
.proof__label { color: var(--muted-light); margin: 0; max-width: 28ch; }
.proof--light .proof__label { color: var(--muted-dark); }
.proof__note { font-size: 0.8125rem; color: var(--muted-light); margin: 16px 0 clamp(48px, 7vw, 80px); max-width: 60em; }
.proof__note--dark { color: var(--muted-dark); }

/* ---------- Split / ledger ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); margin-bottom: 40px; }
.tag { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.tag--dark { color: var(--gold-ink); }
.ledger { list-style: none; border-top: 1px solid var(--line-dark); margin-top: 1.5rem; }
.ledger li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.ledger strong { font-family: var(--font-head); font-weight: 600; }
.ledger span { color: var(--muted-light); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 24px; }
.step__num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--gold); font-family: var(--font-head); font-weight: 700; margin-bottom: 20px;
}
.step p { color: var(--muted-dark); margin: 0; }

/* ---------- Community band ---------- */
.community-band { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.community-band__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.community-band .h2 { margin: 0; }

/* ---------- Post list ---------- */
.post-list { list-style: none; border-top: 1px solid var(--line-light); margin-bottom: 2rem; }
.post-row a {
  display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line-light); text-decoration: none; transition: background-color 0.2s;
}
.post-row__meta { font-size: 0.8125rem; color: var(--muted-dark); letter-spacing: 0.04em; }
.post-row__title { font-family: var(--font-head); font-weight: 700; font-size: 1.3125rem; line-height: 1.25; letter-spacing: -0.015em; }
.post-row__desc { color: var(--muted-dark); font-size: 0.9375rem; }
.post-row a:hover .post-row__title { text-decoration: underline; text-decoration-color: var(--gold-ink); }

/* ---------- FAQ ---------- */
.faqs { border-top: 1px solid var(--line-light); margin: 2rem 0; }
.faq { border-bottom: 1px solid var(--line-light); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1875rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--gold-ink); }
.faq[open] summary::after { content: '–'; }
.faq > div { padding: 0 0 20px; color: var(--muted-dark); max-width: 60ch; }

/* ---------- Closing CTA ---------- */
.closing__inner { max-width: 960px; }
.closing .display-2 { max-width: 22ch; }

/* ---------- About ---------- */
.prose { font-size: 1.125rem; line-height: 1.75; }
.prose h2 { margin: 2.2em 0 0.6em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin: 1.8em 0 0.5em; font-size: 1.3125rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--ink); text-decoration-color: var(--gold-ink); text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 2em 0; padding-left: 1.2em; border-left: 3px solid var(--gold); font-size: 1.25rem; }
.prose .note { background: var(--paper-2); border-left: 3px solid var(--gold-ink); padding: 14px 18px; font-size: 0.9375rem; }
.prose--story h2 { margin-top: 0; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.timeline { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-dark); }
.timeline__item { position: relative; padding: 36px 24px 0 0; }
.timeline__item::before { content: ''; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); border: 2px solid var(--muted-light); }
.timeline__item--next::before { background: var(--gold); border-color: var(--gold); }
.timeline__when { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.timeline__item p:last-child { color: var(--muted-light); font-size: 0.9375rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.two-col--wide { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); }
.link-list { list-style: none; border-top: 1px solid var(--line-light); }
.link-list li { border-bottom: 1px solid var(--line-light); padding: 14px 0; }
.link-list a { font-family: var(--font-head); font-weight: 600; text-decoration-color: var(--gold-ink); }
.link-list--press span { display: block; color: var(--muted-dark); font-size: 0.875rem; margin-top: 4px; }

/* ---------- Work ---------- */
.entries { border-top: 1px solid var(--line-light); }
.entry { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line-light); }
.entry__body p { color: var(--muted-dark); }
.entry__body p:last-child { margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line-light); padding: 8px 14px; border-radius: 999px; font-size: 0.9375rem; background: #fff; }
.numbered { padding-left: 1.4em; margin: 1.5rem 0; }
.numbered li { padding: 6px 0 6px 4px; }
.numbered li::marker { color: var(--gold-ink); font-family: var(--font-head); font-weight: 700; }
.numbered--light li { color: var(--text-light); border-bottom: 1px solid var(--line-dark); padding: 12px 0 12px 6px; }
.numbered--light li::marker { color: var(--gold); }

.career { list-style: none; border-top: 1px solid var(--line-dark); }
.career__item { display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr); gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line-dark); }
.career__when { font-family: var(--font-head); font-weight: 600; color: var(--gold); font-size: 0.9375rem; margin: 0.35em 0 0; }
.career__item h3 { margin-bottom: 0.3em; }
.career__item h3 a { text-decoration-color: var(--gold); }
.career__meta { font-size: 0.875rem; letter-spacing: 0.04em; color: var(--muted-light); margin-bottom: 1rem; }
.career__item p:not(.career__when):not(.career__meta) { color: #d4d6db; max-width: 62ch; }
.career__list { padding-left: 1.2em; color: #d4d6db; max-width: 62ch; }
.career__list li { margin-bottom: 0.35em; }
.career__list li::marker { color: var(--gold); }

/* ---------- Iron Lead ---------- */
.services { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.services li { padding: 32px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.services p { color: var(--muted-dark); margin: 0; }

/* ---------- Community ---------- */
.page-hero--community .display-2 { max-width: 20ch; }
.curriculum { list-style: none; border-top: 1px solid var(--line-dark); }
.curriculum li { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
.curriculum__num { font-family: var(--font-head); font-weight: 800; font-size: 1.75rem; color: var(--gold); letter-spacing: -0.02em; }
.curriculum p { color: var(--muted-light); margin: 0; max-width: 56ch; }

/* ---------- Article ---------- */
.section--article { padding-top: clamp(32px, 5vw, 56px); }
.article__image { margin: 0 0 2.5rem; }
.article__image img { border-radius: var(--radius); width: 100%; }
.author-box { margin-top: 3.5rem; padding: 28px; background: var(--paper-2); border-left: 3px solid var(--gold); }
.author-box p { margin-bottom: 0.75em; }
.author-box p:last-child { margin: 0; }
.author-box .eyebrow { margin-bottom: 0.75rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.enquiry-types { margin: 1.5rem 0 3rem; border-top: 1px solid var(--line-light); }
.enquiry-types > div { padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.enquiry-types dt { font-family: var(--font-head); font-weight: 700; margin-bottom: 4px; }
.enquiry-types dd { margin: 0; color: var(--muted-dark); }
.contact-info .caps-heading { margin-top: 0; }

.form { background: #fff; border: 1px solid var(--line-light); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted-dark); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid rgba(17, 19, 24, 0.22); border-radius: var(--radius); padding: 12px 14px; min-height: 48px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 169, 60, 0.35); }
.field [aria-invalid="true"] { border-color: #b42318; }
.field__error { color: #b42318; font-size: 0.875rem; margin: 6px 0 0; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 16px 0 0; font-weight: 500; min-height: 1.5em; }
.form__status.is-success { color: #1d6b3a; }
.form__status.is-error { color: #b42318; }
.form.is-sending button { opacity: 0.7; pointer-events: none; }

/* ---------- 404 ---------- */
.page-hero--404 { min-height: 60vh; display: flex; align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-light); padding: 72px 0 32px; border-top: 1px solid var(--line-dark); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer__line { color: var(--muted-light); margin-top: 16px; max-width: 34ch; font-size: 0.9375rem; }
.site-footer__heading { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer nav a, .site-footer li a { color: var(--text-light); text-decoration: none; font-size: 0.9375rem; }
.site-footer li a:hover { color: var(--gold); }
.site-footer__base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: var(--muted-light); font-size: 0.875rem; }
.site-footer__base p { margin: 0; }

/* ---------- Reveal (only when JS + motion allowed) ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline { grid-template-columns: 1fr; padding-left: 8px; }
  .timeline::before { left: 15px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline__item { padding: 0 0 32px 40px; }
  .timeline__item::before { left: 0; top: 4px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .post-row a { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .hero__grid, .page-hero__grid { grid-template-columns: 1fr; }
  .hero__media .portrait, .page-hero__media .portrait { max-width: 320px; aspect-ratio: 4 / 5; margin: 0; }
  /* Keep the headline first on phones; an empty placeholder adds nothing there. */
  .hero__media:has(.portrait--placeholder), .page-hero__media:has(.portrait--placeholder) { display: none; }
  .pillars, .proof, .proof--light, .proof--two { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line-light); }
  .pillar__num { margin-bottom: 1rem; }
  .proof__item, .proof__item + .proof__item { padding: 24px 0; border-left: 0; }
  .proof__item + .proof__item { border-top: 1px solid var(--line-dark); }
  .proof--light .proof__item + .proof__item { border-top-color: var(--line-light); }
  .split, .two-col, .two-col--wide, .community-band__grid, .contact-grid, .entry { grid-template-columns: 1fr; }
  .entry { gap: 8px; }
  .career__item { grid-template-columns: 1fr; gap: 6px; padding: 28px 0; }
  .ledger li { grid-template-columns: 1fr; gap: 4px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .steps, .services { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .curriculum li { grid-template-columns: 1fr; gap: 6px; }
  .prose { font-size: 1.0625rem; }
  .section-head--row { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .closing, .actions { display: none; }
  .section--dark, .hero, .page-hero { background: #fff; color: #000; }
}
