@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/newsreader-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #07080b;
  --paper-2: #101219;
  --ink: #f2f3f5;
  --muted: #a3a8b3;
  --pine: #7c9cff;
  --pine-deep: #a9bcff;
  --line: #22252e;
  --soft: #161922;
  --copper: #7c9cff;
  --focus: #7c9cff;
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --header: 4.25rem;
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--pine-deep);
}

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

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  text-decoration: none;
  padding: 0.65rem 0.9rem;
}

.skip:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap,
.header-inner,
.footer-inner,
.band-inner {
  width: var(--wrap);
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

h3 {
  font-size: 1.35rem;
}

.eyebrow,
.kicker,
.fact-kicker,
.band-kicker,
.piece-status {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
}

.lede {
  font-size: 1.3rem;
  line-height: 1.45;
  max-width: 38rem;
}

.lede + .lede,
.prose p + p,
.timeline p + p,
.help-block p + p {
  margin-top: 0.85rem;
}

.muted,
.fine,
.fact-label,
.portrait figcaption,
.piece-meta {
  color: var(--muted);
}

.fine,
.fact-label,
.portrait figcaption,
.piece-meta,
.form-help {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-top: 4px solid var(--pine);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1rem;
  position: relative;
}

.wordmark,
.footer-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.9rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.site-nav ul,
.footer-nav ul,
.jump-list {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  padding: 0;
}

.site-nav a,
.footer-nav a {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.7rem 0.1rem;
  display: inline-block;
}

.site-nav a[aria-current="page"] {
  color: var(--pine);
  box-shadow: inset 0 -2px 0 var(--pine);
}

.site-nav a:hover,
.footer-nav a:hover {
  color: var(--pine);
}

main:focus {
  outline: none;
}

main:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.hero {
  width: var(--wrap);
  margin: 0 auto;
  padding: 2.75rem 0 2rem;
  display: grid;
  gap: 2rem;
  align-items: end;
}

.hero-copy .eyebrow {
  margin-bottom: 0.85rem;
}

.hero-copy h1 {
  max-width: 12em;
}

.hero-copy .lede {
  margin-top: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.button {
  color: #07080b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  background: var(--pine);
  color: var(--paper);
  border: 1px solid var(--pine-deep);
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  line-height: 1.2;
}

.button:hover {
  background: var(--pine-deep);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: #2e323d;
}

.button-secondary:hover {
  background: transparent;
  border-color: var(--pine);
  color: var(--pine-deep);
}

.portrait {
  max-width: 320px;
}

.portrait img {
  width: 100%;
  background: var(--soft);
  border: 1px solid var(--line);
}

.portrait figcaption {
  margin-top: 0.5rem;
}

.band {
  background: var(--pine);
  color: var(--paper);
}

.band-inner {
  padding: 2.4rem 0;
}

.band-kicker {
  color: #c9d3ff;
}

.band-line {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: 0.4rem;
}

.band-sub {
  margin-top: 0.55rem;
  max-width: 36rem;
  color: #f2f3f5;
}

.section {
  width: var(--wrap);
  margin: 0 auto;
  padding: 3.25rem 0;
}

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-head p {
  max-width: 38rem;
}

.facts,
.arc,
.card-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.facts li,
.arc a,
.card-grid a,
.help-block,
.panel,
.piece,
.linkedin-slot {
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.facts li,
.card-grid a,
.help-block,
.panel,
.linkedin-slot {
  padding: 1.2rem 1.2rem 1.25rem;
}

.fact-kicker {
  margin-bottom: 0.7rem;
}

.fact-value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.fact-sentence,
.approved {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--pine-deep);
  text-wrap: balance;
}

.fact-label {
  margin-top: 0.75rem;
}

.record-note {
  margin-top: 1.15rem;
  max-width: 42rem;
  font-size: 1.2rem;
}

.arc a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 8.5rem;
  padding: 1rem 1.05rem;
  text-decoration: none;
  color: inherit;
}

.arc-index {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--pine);
}

.arc-name {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.arc a:hover,
.card-grid a:hover {
  border-color: var(--pine);
}

.card-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.card-grid h3 {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.card-grid p,
.help-block p,
.timeline p,
.prose p,
.panel p,
.linkedin-slot p {
  max-width: 62ch;
}

.cta-panel {
  padding-bottom: 4rem;
}

.panel {
  padding: 1.5rem;
}

.page-hero {
  width: var(--wrap);
  margin: 0 auto;
  padding: 2.75rem 0 0.5rem;
}

.page-hero h1 {
  max-width: 16ch;
  margin-top: 0.7rem;
}

.page-hero .lede {
  margin-top: 1rem;
}

.layout {
  width: var(--wrap);
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.split {
  display: grid;
  gap: 1.75rem;
}

.chapter-nav ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.chapter-nav a {
  font-family: var(--sans);
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  padding: 0.4rem 0;
}

.chapter-nav a:hover {
  color: var(--pine);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.timeline > li {
  padding: 1.6rem 0 1.7rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}

.timeline .kicker {
  margin-bottom: 0.4rem;
}

.timeline h2 {
  margin-bottom: 0.75rem;
}

.operate {
  margin-top: 2rem;
}

.operate h2 {
  margin-bottom: 0.7rem;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0.25rem;
}

.jump a {
  font-family: var(--sans);
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper-2);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
}

.jump a:hover {
  border-color: var(--pine);
  color: var(--pine-deep);
}

.help-stack {
  display: grid;
  gap: 0.75rem;
}

.help-block {
  scroll-margin-top: 5.5rem;
}

.help-block h2 {
  margin-bottom: 0.7rem;
}

.closing {
  margin-top: 1.25rem;
}

.writing-intro,
.contact-intro {
  max-width: 42rem;
}

.piece-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.piece {
  padding: 1.15rem 1.2rem 1.2rem;
}

.piece h2 {
  font-size: 1.55rem;
  margin: 0.35rem 0 0.45rem;
}

.form-panel,
.linkedin-slot {
  margin-top: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span,
fieldset legend {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
}

fieldset {
  border: 1px solid var(--line);
  padding: 0.8rem 0.9rem 0.9rem;
  display: grid;
  gap: 0.45rem;
  background: var(--paper);
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  min-height: 44px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid #2e323d;
  background: #0c0e13;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  border-radius: 2px;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-error {
  font-family: var(--sans);
  color: #ffb4a8;
  background: #2a1414;
  border: 1px solid #5a2a2a;
  padding: 0.75rem 0.9rem;
}

.form-error ul {
  margin: 0.35rem 0 0 1.1rem;
}

.form-success {
  font-family: var(--sans);
  background: #c9d3ff;
  border: 1px solid #2e3a66;
  color: var(--ink);
  padding: 1rem;
}

.form-success p + p,
.form-success .actions {
  margin-top: 0.75rem;
}

.form-help {
  margin-top: 0.8rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 5.5rem;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-name {
  display: inline-block;
  margin-bottom: 0.3rem;
}

.footer-nav ul {
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.noscript {
  width: var(--wrap);
  margin: 1rem auto;
  font-family: var(--sans);
  font-size: 0.95rem;
}

/* Header-mounted Ask control: in-flow, never covers page content */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: 0.35rem;
}

.ask-toggle {
  position: static;
  z-index: auto;
  min-height: 40px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--pine);
  background: var(--pine);
  color: #07080b;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: none;
  white-space: nowrap;
}

.ask-toggle:hover {
  background: var(--pine-deep);
  border-color: var(--pine-deep);
}

.ask-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.28);
}

.ask-panel {
  position: fixed;
  z-index: 40;
  top: calc(var(--header) + 0.65rem);
  right: max(1rem, env(safe-area-inset-right));
  bottom: auto;
  width: min(24rem, calc(100vw - 1.5rem));
  height: auto;
  max-height: calc(100dvh - var(--header) - 1.5rem);
  display: flex;
  flex-direction: column;
  background: #101219;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}

.ask-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.85rem 0.75rem;
  background: var(--pine);
  color: var(--paper);
}

.ask-head h2 {
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--paper);
}

.ask-head p {
  color: #c9d3ff;
  font-size: 0.82rem;
  margin-top: 0.2rem;
  max-width: 18rem;
}

.ask-close {
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(243, 238, 230, 0.45);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.ask-note {
  background: #151a2b;
  color: #c9d3ff;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
}

.ask-log {
  flex: 1;
  overflow: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ask-msg {
  max-width: 95%;
  padding: 0.6rem 0.7rem;
}

.ask-msg p + p {
  margin-top: 0.5rem;
}

.ask-msg-assistant {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
}

.ask-msg-user {
  align-self: flex-end;
  background: var(--pine);
  color: var(--paper);
}

.ask-msg a {
  color: var(--pine-deep);
}

.ask-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.85rem 0.75rem;
}

.ask-suggestions button {
  font-family: var(--sans);
  font-size: 0.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.3rem 0.7rem;
  text-align: left;
  white-space: normal;
}

.ask-suggestions button:hover {
  border-color: var(--pine);
}

.ask-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem;
  border-top: 1px solid var(--line);
}

.ask-form input {
  flex: 1;
  min-width: 0;
  font-family: var(--sans);
  font-size: 16px;
}

.ask-form button {
  background: var(--pine);
  color: var(--paper);
  border: 1px solid var(--pine-deep);
  min-height: 44px;
  padding: 0 0.85rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.split-intro .portrait {
  margin-bottom: 1.25rem;
}

@media (min-width: 800px) {
  .section-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 2rem;
  }

  .facts {
    grid-template-columns: 1.05fr 0.8fr 1.25fr;
  }

  .arc,
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .site-footer .footer-inner > .fine:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.35fr 0.72fr;
    gap: 4rem;
    padding: 4.25rem 0 3rem;
  }

  .portrait {
    max-width: none;
    justify-self: end;
    width: min(100%, 380px);
  }

  .split-intro .portrait {
    width: 100%;
    max-width: 16rem;
    justify-self: start;
  }

  .split {
    grid-template-columns: 16rem 1fr;
    gap: 3rem;
    align-items: start;
  }

  .split-intro {
    position: sticky;
    top: 5.5rem;
  }

  .arc {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.25rem 1.25rem 0.8rem;
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.8rem 0;
  }

  .ask-panel {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
  }
}

@media (max-width: 640px) {
  html.ask-open,
  body.ask-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ask-panel {
    animation: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ask-panel {
    animation: ask-rise 160ms ease-out;
  }
}

@keyframes ask-rise {
  from {
    transform: translateY(8px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

@media (forced-colors: active) {
  .button,
  .ask-toggle,
  .nav-toggle,
  .ask-close {
    border: 1px solid ButtonText;
  }
}

@media print {
  .ask-toggle,
  .ask-panel,
  .ask-backdrop,
  .nav-toggle,
  .skip,
  .actions {
    display: none !important;
  }

  .site-header {
    position: static;
  }

  body {
    background: #0c0e13;
    color: #000;
  }

  a {
    text-decoration: underline;
  }
}

/* ===== Editorial dark redesign ===== */
body { background: radial-gradient(1200px 600px at 75% -10%, rgba(124,156,255,0.16), transparent 60%), var(--paper); }
.site-header { background: rgba(7,8,11,0.72); backdrop-filter: blur(14px); border-top: 0; border-bottom: 1px solid var(--line); }
.button { border-radius: 999px; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(124,156,255,0.28); }
.button-secondary { color: var(--ink); }
.ed-hero { width: var(--wrap); margin: 0 auto; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ed-hero .who { display: flex; align-items: center; gap: .85rem; font-family: var(--sans); color: var(--muted); font-size: .95rem; margin-bottom: 1.6rem; }
.headshot { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1px solid var(--line); }
.ed-hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; }
.ed-hero h1 em { color: var(--pine-deep); }
.ed-hero .sub { margin-top: 1.4rem; font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 32rem; }
.ask-card { background: linear-gradient(180deg, rgba(124,156,255,0.10), rgba(16,18,25,0.9) 40%); border: 1px solid #2a2f3d; border-radius: 20px; padding: 1.5rem; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(124,156,255,0.06) inset; font-family: var(--sans); }
.ask-card-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.ask-card h2 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
.pill { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pine-deep); border: 1px solid rgba(124,156,255,0.35); border-radius: 999px; padding: .25rem .6rem; white-space: nowrap; }
.ask-card .hint { color: var(--muted); font-size: .88rem; margin-top: .35rem; }
.ask-form-inline { display: flex; gap: .5rem; margin-top: 1.1rem; }
.ask-form-inline input { border-radius: 999px !important; padding-left: 1rem !important; background: #0a0c11 !important; }
.ask-form-inline button, .ask-form button { border-radius: 999px; min-height: 44px; padding: 0 1.1rem; background: var(--pine); color: #07080b; border: 0; font-family: var(--sans); font-weight: 600; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.chips button, .link-chip { font-family: var(--sans); font-size: .85rem; color: var(--ink); background: #141722; border: 1px solid #2a2f3d; border-radius: 999px; padding: .45rem .8rem; cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s; }
.chips button:hover, .link-chip:hover { border-color: var(--pine); background: #182036; }
.ask-answer { margin-top: 1rem; min-height: 1rem; }
.ask-answer .q { color: var(--muted); font-size: .85rem; margin-bottom: .4rem; }
.ask-answer .a { font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; color: var(--ink); }
.ask-answer .a p + p { margin-top: .6rem; }
.ask-answer .links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.ask-answer .src { font-size: .75rem; color: var(--muted); margin-top: .7rem; }
.ed-section { width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.ed-section .eyebrow { color: var(--pine-deep); }
.ed-section h2.big { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.08; font-weight: 500; max-width: 48rem; margin-top: .5rem; }
.ideas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.2rem; list-style: none; padding: 0; }
.idea { height: 100%; background: linear-gradient(160deg, #121521, #0b0d12); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: .9rem; transition: transform .25s ease, border-color .25s ease; }
.idea:hover { transform: translateY(-3px); border-color: #384063; }
.idea .theme { font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: .5rem; }
.idea .theme span:last-child { color: var(--pine-deep); }
.idea h3 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.idea p { color: var(--muted); }
.cred { font-family: var(--sans); color: var(--muted); font-size: .98rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: center; text-align: center; padding: 2rem 0; }
.cred strong { color: var(--ink); font-weight: 500; }
.help-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: end; }
.help-row p { color: var(--muted); font-size: 1.12rem; max-width: 36rem; margin-top: 1rem; }
.final-cta { text-align: center; }
.final-cta h2 { margin-left: auto; margin-right: auto; }
.final-cta .actions { justify-content: center; margin-top: 1.8rem; }
.about-head { display: flex; gap: 1.5rem; align-items: center; }
.about-head img { width: 160px; height: 200px; border-radius: 18px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.fade-in { animation: fadeUp .7s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } }
@media (max-width: 860px) {
  .ed-hero, .help-row { grid-template-columns: 1fr; }
  .ideas { grid-template-columns: 1fr; }
  .cred { justify-content: flex-start; text-align: left; flex-direction: column; gap: .5rem; }
  .about-head { flex-direction: column; align-items: flex-start; }
  .about-head img { width: 140px; height: 175px; }
}
/* Inner pages */
.ed-page-hero { width: var(--wrap); margin: 0 auto; padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem); }
.ed-page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 500; max-width: 60rem; margin-top: .6rem; }
.ed-page-hero h1 em { color: var(--pine-deep); }
.ed-page-hero .sub, .final-cta .sub { margin-top: 1.4rem; font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.final-cta .sub.center { margin-left: auto; margin-right: auto; }
.center-hero { text-align: center; min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.center-hero .actions { justify-content: center; margin-top: 1.8rem; }
.ideas-3 { grid-template-columns: repeat(3, 1fr); }
.contact-wrap { max-width: 720px; }
.contact-wrap .form-panel { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 20px; }
.contact-wrap fieldset { border: 0; padding: 0; }
.contact-wrap legend, .contact-wrap .field span { font-family: var(--sans); color: var(--muted); }
.contact-wrap .choice { color: var(--ink); font-family: var(--sans); }
.contact-wrap input[type="text"], .contact-wrap input[type="email"], .contact-wrap textarea { border-radius: 12px; background: #0a0c11; }
.ask-toggle { background: var(--pine); color: #07080b; border-color: var(--pine); box-shadow: none; font-weight: 600; }
.ask-toggle:hover { background: var(--pine-deep); }
.ask-panel.ask-card {
  padding: 1.3rem;
  height: auto;
  max-height: calc(100dvh - var(--header) - 1.5rem);
  /* Fully opaque surface — no page text bleed through translucent gradient */
  background: #101219;
  background-image: none;
  opacity: 1;
  isolation: isolate;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: auto;
}
.ask-panel .ask-card-top {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
}
.ask-panel .ask-card-top h2 {
  white-space: nowrap;
  flex: 0 0 auto;
  line-height: 1.2;
}
.ask-panel .ask-card-top .pill {
  flex: 0 1 auto;
  max-width: 100%;
}
@media (max-width: 1000px) { .ideas-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .ideas-3 { grid-template-columns: 1fr; } }
.contact-wrap { max-width: none; border-top: 0; padding-top: 0; }
.contact-wrap .form-panel { max-width: 720px; }
.contact-wrap fieldset, .contact-wrap .choice { background: transparent; }
/* Search-style hero */
.search-hero { min-height: calc(100svh - var(--header)); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 3rem 1.25rem 2rem; position: relative;
  background: radial-gradient(700px 380px at 50% 55%, rgba(124,156,255,0.14), transparent 70%); }
.search-inner { width: min(720px, 100%); }
.search-hero .who { justify-content: center; font-family: var(--sans); color: var(--muted); display: flex; align-items: center; gap: .7rem; font-size: .95rem; }
.search-hero .who strong { color: var(--ink); font-weight: 500; }
.search-hero h1 { margin-top: 1.4rem; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 500; }
.search-hero h1 em { color: var(--pine-deep); }
.ask-search-wrap { margin-top: 2.8rem; font-family: var(--sans); text-align: left; display: flex; flex-direction: column; gap: 0; }
.ask-search { display: flex; align-items: center; gap: .5rem; background: #0f121a; border: 1px solid #2e3446; border-radius: 999px; padding: .45rem .45rem .45rem 1.2rem; box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(124,156,255,.10); transition: box-shadow .25s, border-color .25s; }
.ask-search:focus-within { border-color: var(--pine); box-shadow: 0 0 0 4px rgba(124,156,255,.22), 0 0 60px rgba(124,156,255,.30); }
.ask-ico { width: 20px; height: 20px; color: var(--muted); flex: none; }
.ask-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; color: var(--ink); font-size: 1.08rem; min-height: 52px; padding: 0 .3rem !important; outline: none; }
.ask-search input:focus-visible { outline: none; }
.ask-search button { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--pine); color: #07080b; font-size: 1.35rem; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s; }
.ask-search button:hover { transform: translateX(2px); background: var(--pine-deep); }
.ask-meta { margin-top: 1.1rem; text-align: center; font-size: .8rem; color: var(--muted); }
.ask-meta .pill { font-size: .66rem; padding: .18rem .5rem; margin-right: .35rem; }
.ask-search-wrap .chips { justify-content: center; margin-top: 1.15rem; }
.ask-search-wrap .ask-answer { order: 0; margin-top: 0.85rem; min-height: 0; }
.ask-search-wrap .ask-answer:not(:empty) { margin-top: 0.85rem; background: linear-gradient(180deg, rgba(124,156,255,0.08), rgba(16,18,25,0.92) 50%); border: 1px solid #2a2f3d; border-radius: 20px; padding: 1.35rem 1.55rem; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.ask-search-wrap .ask-privacy { margin-top: 0.85rem; text-align: center; max-width: 36rem; margin-left: auto; margin-right: auto; }
.ask-search-wrap .capture-chips { justify-content: center; margin-top: 0.85rem; }
.scroll-cue { margin-top: 3.2rem; font-family: var(--sans); font-size: .85rem; color: var(--muted); text-decoration: none; }
.scroll-cue:hover { color: var(--ink); }
@media (max-width: 600px) { .ask-search input { font-size: 1rem; } .search-hero .who { font-size: .85rem; } }

/* ===== Career history timeline ===== */
.history-wrap {
  padding-top: 0.5rem;
  padding-bottom: 5rem;
  max-width: min(780px, var(--wrap));
  position: relative;
}
.ht-mount { width: 100%; }
@media (min-width: 900px) {
  .timeline-page-layout {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
}
.ht-mount-home {
  max-width: none;
  padding-bottom: 3.5rem;
}
.ht-dialog-nav,
.ht-dialog-close {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #121521;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, background .2s ease, opacity .2s ease;
}
.ht-dialog-nav:hover:not(:disabled),
.ht-dialog-close:hover {
  border-color: #384063;
  background: #171b2a;
}
.ht-dialog-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.ht-frame { position: relative; }
.ht-scroller {
  position: relative;
  outline: none;
}
.ht-edge {
  display: none;
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3.5rem;
  z-index: 2;
}
.ht-edge-start {
  left: 0;
  background: linear-gradient(90deg, var(--paper), transparent);
}
.ht-edge-end {
  right: 0;
  background: linear-gradient(270deg, var(--paper), transparent);
}
.ht-mount.ht-at-start .ht-edge-start { opacity: 0; }
.ht-mount.ht-at-end .ht-edge-end { opacity: 0; }
.history-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.history-timeline::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(124,156,255,0.55), rgba(34,37,46,0.9) 85%);
  border-radius: 2px;
}
.ht-item {
  position: relative;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 1rem;
  padding: 0 0 1.35rem;
  scroll-margin-top: 5.5rem;
}
.ht-item:last-child { padding-bottom: 0; }
.ht-item.is-current .ht-dot {
  background: var(--pine);
  box-shadow: 0 0 0 4px rgba(124,156,255,0.28);
}
.ht-marker {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 1.35rem;
}
.ht-rail-year { display: none; }
.ht-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--pine);
  box-shadow: 0 0 0 4px rgba(124,156,255,0.15);
  flex: none;
}
.ht-card {
  background: linear-gradient(160deg, #121521, #0b0d12);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.25rem 1.3rem;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.ht-card:hover {
  border-color: #384063;
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.ht-card:focus-within {
  border-color: #4a5f9a;
}
.ht-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.ht-year {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 0.35rem;
}
.ht-copy-link {
  flex: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 8px;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
  line-height: 1.2;
}
.ht-copy-link:hover,
.ht-copy-link.is-copied {
  color: var(--pine);
  border-color: var(--line);
  background: rgba(124,156,255,0.08);
}
.ht-copy-link-text {
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
}
.ht-card h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.ht-card h2 + p:not(.ht-role) { margin-top: 0.55rem; }
.ht-role {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.ht-summary {
  color: var(--ink);
  max-width: 62ch;
  margin-bottom: 0.85rem;
}
.ht-open {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pine);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.ht-open:hover { text-decoration: underline; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s ease;
}

/* Desktop / tablet: horizontal rail */
@media (min-width: 900px) {
  .ht-mount[data-layout="horizontal"] {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
  .ht-mount[data-layout="horizontal"] .ht-edge { display: block; opacity: 1; transition: opacity .2s ease; }
  .ht-mount[data-layout="horizontal"] .ht-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0.75rem 0 1.5rem;
    cursor: grab;
    touch-action: pan-x;
  }
  .ht-mount[data-layout="horizontal"] .ht-scroller.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }
  .ht-mount[data-layout="horizontal"] .ht-scroller.is-dragging * {
    cursor: grabbing;
  }
  .ht-mount[data-layout="horizontal"] .history-timeline {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    width: max-content;
    min-width: 100%;
    min-height: 26rem;
    padding: 0 2.5rem 0.75rem;
  }
  .ht-mount[data-layout="horizontal"] .history-timeline::before {
    left: 2.5rem;
    right: 2.5rem;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 2px;
    transform: translateY(-1px);
    background: linear-gradient(90deg, rgba(124,156,255,0.55), rgba(34,37,46,0.9) 90%);
  }
  .ht-mount[data-layout="horizontal"] .ht-item {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;
    gap: 0;
    padding: 0;
    scroll-snap-align: center;
    scroll-margin-inline: 1.25rem;
    min-height: 24rem;
  }
  .ht-mount[data-layout="horizontal"] .ht-marker {
    grid-row: 2;
    padding-top: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
  }
  .ht-mount[data-layout="horizontal"] .ht-rail-year {
    display: block;
    font-family: var(--sans);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }
  .ht-mount[data-layout="horizontal"] .ht-item:nth-child(odd) .ht-card {
    grid-row: 1;
    align-self: end;
    margin-bottom: 0.7rem;
  }
  .ht-mount[data-layout="horizontal"] .ht-item:nth-child(even) .ht-card {
    grid-row: 3;
    align-self: start;
    margin-top: 0.7rem;
  }
  .ht-mount[data-layout="horizontal"] .ht-card {
    width: 100%;
    text-align: left;
    max-height: 11.25rem;
    overflow: hidden;
    padding: 1rem 1.05rem 1.05rem;
    display: flex;
    flex-direction: column;
  }
  .ht-mount[data-layout="horizontal"] .ht-card h2 {
    font-size: 1.05rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ht-mount[data-layout="horizontal"] .ht-summary {
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.55rem;
    flex: 1;
  }
  .ht-mount[data-layout="horizontal"] .ht-role {
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ht-mount[data-layout="horizontal"] .ht-open { margin-top: auto; }
  .ht-mount-home[data-layout="horizontal"] .history-timeline { min-height: 24rem; }
  .ht-mount-home[data-layout="horizontal"] .ht-item {
    flex-basis: 280px;
    width: 280px;
    min-height: 28rem;
  }
  .ht-mount-home[data-layout="horizontal"] .ht-card { max-height: 12.5rem; }
}

/* Home section chrome */
.home-timeline {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.home-timeline .home-timeline-head {
  max-width: var(--wrap);
  margin: 0 auto 1rem;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.home-timeline .home-timeline-head .sub { margin-top: 0.65rem; max-width: 40rem; }
.home-timeline .home-timeline-more {
  max-width: var(--wrap);
  margin: 0.5rem auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Dialog / expanded entry */
body.ht-dialog-open { overflow: hidden; }
.ht-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.ht-dialog-root[hidden] { display: none !important; }
.ht-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(6px);
}
.ht-dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: linear-gradient(160deg, #141826, #0b0d12);
  border: 1px solid #2c3348;
  border-radius: 20px;
  padding: 1.35rem 1.4rem 1.45rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
}
.ht-dialog-root.is-open .ht-dialog {
  transform: none;
  opacity: 1;
  transition: transform .28s ease, opacity .28s ease;
}
.ht-dialog-root.is-open .ht-dialog-backdrop {
  animation: htFade .28s ease;
}
.ht-dialog-root.ht-no-motion .ht-dialog,
.ht-dialog-root.ht-no-motion .ht-dialog-backdrop {
  transition: none !important;
  animation: none !important;
  transform: none;
  opacity: 1;
}
@keyframes htFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ht-dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.ht-dialog h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.ht-dialog-body {
  color: var(--ink);
  line-height: 1.55;
  margin-top: 0.35rem;
}
.ht-dialog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.ht-dialog-count {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  [data-reveal].is-in { transition: none; }
  .ht-card { transition: none; }
  .ht-mount[data-layout="horizontal"] .ht-scroller {
    scroll-behavior: auto;
  }
  .ht-dialog-root.is-open .ht-dialog {
    transition: none;
  }
}

.search-hero .hero-intro { margin: 1.35rem auto 0; max-width: 34rem; font-size: clamp(1.02rem, 1.6vw, 1.12rem); line-height: 1.5; color: var(--muted); text-align: center; }
.ideas-frame { margin: 1rem 0 1.4rem; max-width: 42rem; color: var(--muted); }
.search-hero h1 { max-width: 32ch; margin-left: auto; margin-right: auto; }

/* Visual timeline redesign: org line, stat tiles, photos, news, lightbox */
.ht-org {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.ht-role { font-style: italic; }
.ht-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.6rem;
  margin: 0.9rem 0;
}
.ht-stat {
  background: rgba(124,156,255,0.07);
  border: 1px solid #2a3150;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ht-stat-fig { font-family: var(--sans); font-weight: 700; font-size: 1.25rem; line-height: 1.15; color: var(--pine-deep); }
.ht-stat-label { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.ht-moments { margin: 0.9rem 0 0; padding-left: 1.15rem; }
.ht-moments li { margin-bottom: 0.3rem; }
.ht-moments li::marker { color: var(--pine); }
.ht-news { margin: 1rem 0; }
.ht-news-title { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; }
.ht-news ul { list-style: none; margin: 0; padding: 0; }
.ht-news li { display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; margin-bottom: 0.45rem; line-height: 1.4; }
.ht-news-icon { flex: none; color: var(--pine); position: relative; top: 3px; }
.ht-news a { color: var(--pine-deep); text-decoration: underline; text-underline-offset: 2px; flex: 1 1 14rem; }
.ht-news-date { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
.ht-photos { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.9rem; }
.ht-photo { margin: 0; width: 180px; }
.ht-thumb { display: block; padding: 0; border: 1px solid var(--line); background: var(--soft); border-radius: 12px; overflow: hidden; cursor: zoom-in; width: 100%; aspect-ratio: 4 / 3; }
.ht-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.ht-thumb:hover img { transform: scale(1.04); }
.ht-thumb:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ht-photo figcaption { font-size: 0.8rem; font-style: italic; color: var(--muted); margin-top: 0.4rem; line-height: 1.35; }
.ht-photos-compact { gap: 0.4rem; margin: 0.2rem 0 0.6rem; flex-wrap: nowrap; }
.ht-photos-compact .ht-photo { width: 64px; flex: none; }
.ht-photos-compact .ht-thumb { border-radius: 10px; }
.ht-card .ht-stats { margin: 0.2rem 0 0.6rem; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 0.4rem; }
.ht-card .ht-stat { padding: 0.4rem 0.55rem; }
.ht-card .ht-stat-fig { font-size: 0.98rem; }
.ht-card .ht-stat-label { font-size: 0.7rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ht-dialog { width: min(760px, 100%); }
.ht-dialog-text { margin: 0; }
.ht-lightbox { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ht-lightbox[hidden] { display: none !important; }
.ht-lb-backdrop { position: absolute; inset: 0; background: rgba(3,4,7,0.9); }
.ht-lb-figure { position: relative; z-index: 1; margin: 0; max-width: min(1100px, 100%); display: flex; flex-direction: column; align-items: center; }
.ht-lb-img { max-width: 100%; max-height: 78vh; border-radius: 12px; display: block; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.ht-lb-caption { color: var(--ink); font-style: italic; font-size: 0.95rem; margin-top: 0.75rem; text-align: center; max-width: 60ch; }
.ht-lb-close { position: absolute; top: -0.5rem; right: -0.5rem; z-index: 2; }
.ht-lb-nav { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.ht-lb-nav[hidden] { display: none; }
@media (min-width: 900px) {
  .ht-mount[data-layout="horizontal"] .ht-card { max-height: 18.5rem; }
  .ht-mount[data-layout="horizontal"] .ht-item,
  .ht-mount-home[data-layout="horizontal"] .ht-item { min-height: 40rem; }
  .ht-mount[data-layout="horizontal"] .history-timeline,
  .ht-mount-home[data-layout="horizontal"] .history-timeline { min-height: 40rem; }
  .ht-mount-home[data-layout="horizontal"] .ht-card { max-height: 18.5rem; }
  .ht-mount[data-layout="horizontal"] .history-timeline::after {
    content: ""; position: absolute; right: 2.1rem; top: 50%; transform: translateY(-50%);
    border: 7px solid transparent; border-left: 10px solid #384063;
  }
}
@media (max-width: 899px) {
  .ht-card h2 { font-size: 1.3rem; }
  .ht-summary, .ht-dialog-body { font-size: 1rem; }
  .ht-photos { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; }
  .ht-photos .ht-photo { flex: 0 0 85%; scroll-snap-align: start; }
  .ht-photos-compact .ht-photo { flex: 0 0 72px; }
  .ht-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) { .ht-stats { grid-template-columns: 1fr; } }
@media (min-width: 900px) {
  .ht-mount[data-layout="horizontal"] .ht-card,
  .ht-mount-home[data-layout="horizontal"] .ht-card { max-height: none; }
  .ht-mount[data-layout="horizontal"] .ht-card > * { flex-shrink: 0; }
  .ht-mount[data-layout="horizontal"] .ht-summary { flex: 0 0 auto; }
}

/* Ask Simon assistant: label, capture chips and confirm cards */
.ai-label { font-weight: 600; }
.ai-tag { display: inline-block; font: 600 .72rem/1 var(--sans); letter-spacing: .02em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .55rem; margin-bottom: .4rem; }
.ask-privacy, .cc-privacy, .cc-note { font: .78rem/1.45 var(--sans); color: var(--muted); margin: .4rem 0; }
.capture-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.capture-chips button, .cc-offer button { font: 500 .82rem var(--sans); color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .75rem; cursor: pointer; }
.capture-chips button:hover, .cc-offer button:hover { border-color: var(--pine); }
.capture-card { display: grid; gap: .35rem; margin-top: .8rem; padding: 1rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; font-family: var(--sans); }
.capture-card label { font-size: .82rem; color: var(--muted); }
.capture-card input, .capture-card textarea, .capture-card select { font: .95rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; width: 100%; box-sizing: border-box; }
.capture-card textarea { min-height: 5.5rem; resize: vertical; }
.cc-title { font-weight: 600; margin: 0; }
.cc-consent { display: flex; gap: .5rem; align-items: flex-start; color: var(--ink) !important; }
.cc-consent input { width: auto; margin-top: .2rem; }
.cc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cc-actions { display: flex; gap: .5rem; margin-top: .3rem; }
.cc-actions button { font: 600 .9rem var(--sans); border-radius: 8px; padding: .5rem .9rem; cursor: pointer; border: 1px solid var(--line); background: var(--soft); color: var(--ink); }
.cc-actions button[type="submit"] { background: var(--pine); color: #07080b; border-color: var(--pine); }
.cc-status { font-size: .85rem; color: var(--pine-deep); min-height: 1em; margin: 0; }
.src-chip { font-size: .8rem; }


/* article page */
.idea-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.idea-link .idea h3 {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}
.article-page {
  padding-bottom: 2rem;
}
.article-hero {
  width: min(40rem, var(--wrap));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 0 0.25rem;
}
.article-hero .article-kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
}
.article-hero .article-kicker a {
  color: var(--pine-deep);
  text-decoration: none;
}
.article-hero .article-kicker a:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}
.article-hero .article-topic {
  color: var(--pine);
}
.article-hero .article-kicker-sep {
  color: #3a4050;
  font-weight: 400;
}
.article-hero h1 {
  margin-top: 1rem;
  max-width: 18ch;
  font-size: clamp(2.15rem, 4.8vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.article-hero .dek {
  margin-top: 1.15rem;
  max-width: 34rem;
  color: var(--muted);
  font-style: italic;
  font-size: clamp(1.08rem, 1.7vw, 1.22rem);
  line-height: 1.45;
}
.article-back {
  text-decoration: none;
  color: inherit;
}
.article-back:hover {
  color: var(--pine-deep);
}
.article-body {
  width: min(40rem, var(--wrap));
  margin: 0 auto;
  padding: 1.75rem 0 5rem;
  max-width: 40rem;
}
.article-body > p,
.article-body > ul,
.article-body > ol {
  max-width: 38rem;
}
.article-body > p {
  margin-top: 0;
  margin-bottom: 1.15rem;
  line-height: 1.68;
}
.article-body > p + p {
  margin-top: 1.15rem;
}
.article-body h2 {
  margin-top: 2.85rem;
  margin-bottom: 1rem;
  font-size: clamp(1.28rem, 2.2vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.018em;
  font-weight: 500;
  color: #e8eaef;
  max-width: 28ch;
}
.article-body h2:first-of-type {
  margin-top: 2.2rem;
}
.article-body ol,
.article-body ul {
  margin: 1.15rem 0 1.5rem 1.15rem;
  display: grid;
  gap: 0.65rem;
  line-height: 1.6;
}
.article-body li {
  padding-left: 0.2rem;
}
.article-closing {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  max-width: 38rem;
  color: var(--muted);
}
.article-body.article-body-crisis > p {
  margin-bottom: 1.35rem;
  line-height: 1.72;
}
.article-body.article-body-crisis h2 {
  margin-top: 3.1rem;
}

/* Shared article diagrams: neutral/mono + one muted accent */
.article-diagram {
  margin: 2rem 0 2.35rem;
  padding: 1.15rem 1.15rem 1.05rem;
  background: linear-gradient(180deg, #10131b, #0b0d12);
  border: 1px solid #232836;
  border-radius: 16px;
  max-width: 40rem;
}
.article-diagram figcaption {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.85rem;
  line-height: 1.45;
  max-width: 48ch;
}
.article-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}
.article-diagram .diag-label {
  font-family: var(--sans);
  font-size: 13px;
  fill: #c5cad6;
}
.article-diagram .diag-muted {
  font-family: var(--sans);
  font-size: 12px;
  fill: #7d8494;
}
.article-diagram .diag-line {
  stroke: #3a4258;
  stroke-width: 1.5;
  fill: none;
}
.article-diagram .diag-accent {
  stroke: #7c9cff;
  fill: #7c9cff;
}
.article-diagram .diag-node {
  fill: #151a27;
  stroke: #3a4258;
  stroke-width: 1.5;
}
.article-diagram .diag-node-accent {
  fill: rgba(124,156,255,0.12);
  stroke: #7c9cff;
  stroke-width: 1.5;
}
.article-photo {
  margin: 1.6rem 0 2.1rem;
  max-width: 40rem;
}
.article-photo img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #232836;
  background: #10131b;
}
.article-photo figcaption {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.65rem;
  font-style: italic;
  line-height: 1.4;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 640px) {
  .article-hero,
  .article-body {
    width: var(--wrap);
  }
}


/* diagram responsive shells: desktop SVG, mobile stack */
.article-diagram .diag-stack { display: none; list-style: none; margin: 0; padding: 0; }
.article-diagram .diag-wide { display: block; }

/* mobile diagram stacks (Ask is header-mounted; no FAB clearance) */
@media (max-width: 720px) {
  .ask-toggle {
    min-height: 40px;
    padding: 0 0.8rem;
    font-size: 0.85rem;
  }
  /* Diagrams: hide shrunk SVG, show stacked readable list */
  .article-diagram .diag-wide {
    display: none;
  }
  .article-diagram .diag-stack {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .article-diagram .diag-stack > li {
    display: grid;
    grid-template-columns: 1.6rem 1fr;
    gap: 0.65rem;
    align-items: start;
    padding: 0.7rem 0.75rem;
    background: #151a27;
    border: 1px solid #2a3145;
    border-radius: 12px;
  }
  .article-diagram .diag-stack .diag-step {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--pine);
    line-height: 1.4;
    padding-top: 0.15rem;
  }
  .article-diagram .diag-stack strong {
    display: block;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
  }
  .article-diagram .diag-stack li > div > span {
    display: block;
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.15rem;
    line-height: 1.35;
  }
  .article-diagram.diag-continuum .diag-stack > li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .article-diagram.diag-continuum .diag-stack .diag-step {
    margin-bottom: 0.1rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .article-diagram.diag-window .diag-stack > li.diag-focus {
    border-color: #7c9cff;
    background: rgba(124,156,255,0.10);
  }
}
@media (min-width: 721px) {
  .article-diagram .diag-stack {
    display: none;
  }
  .article-diagram .diag-wide {
    display: block;
  }
}

@media (max-width: 420px) {
  .ask-toggle {
    font-size: 0;
    letter-spacing: 0;
    padding: 0 0.75rem;
  }
  .ask-toggle::after {
    content: "Ask";
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0;
  }
}
