/* VFuture Labs tokens and the established Research action accent. */
:root {
  color-scheme: light;
  --background: #F7F9F9;
  --surface: #FFFFFF;
  --surface-raised: #EAF2F2;
  --foreground: #172124;
  --muted-foreground: #52636A;
  --primary: #0B7378;
  --primary-hover: #075A5E;
  --border: #DCE3E5;
  --input: #7B8E91;
  --ring: #0B7378;
  --action: #552BBB;
  --action-hover: #432399;
  --action-foreground: #FFFFFF;
  --accent-text: #432399;
  --planned: #8B5B1B;
  --pin: #172124;
  --pin-active: #552BBB;
  --pin-foreground: #FFFFFF;
  --sans: "Be Vietnam Pro", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --control-radius: 8px;
  --panel-radius: 12px;
  --transition: 180ms;
}

@media screen {
  :root {
    color-scheme: dark;
    --background: #080B0D;
    --surface: #101719;
    --surface-raised: #142023;
    --foreground: #F1F5F5;
    --muted-foreground: #A5B5B7;
    --primary: #45C6CA;
    --primary-hover: #98E6E6;
    --border: #2A3A3D;
    --input: #657B7E;
    --ring: #45C6CA;
    --action: #C9B3FF;
    --action-hover: #E5DAFF;
    --action-foreground: #080B0D;
    --accent-text: #D8C8FF;
    --planned: #E5BB77;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 1rem/1.6 var(--sans);
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
[id] { scroll-margin-block-start: 2rem; }
.shell { width: min(1220px, calc(100% - 80px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: var(--surface);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.header-inner, .footer-inner {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, max-content) max-content 1fr;
  gap: 16px;
}
.main-nav { justify-self: end; }
.language-switch {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 12px;
  border: 1px solid var(--input);
  border-radius: var(--control-radius);
  color: var(--foreground);
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
}
.language-switch:hover { background: var(--surface-raised); text-decoration: underline; }
.brand-lockup {
  position: relative;
  min-width: 0;
  padding: 8px 0 8px 52px;
  line-height: 1.5;
}
.wordmark {
  display: block;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.brand-mark {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 8px;
  width: 32px;
  height: auto;
  margin-block-start: -16px;
}
.brand-endorsement {
  display: inline-block;
  color: var(--primary);
  font-size: .8125rem;
  font-weight: 500;
  text-decoration: none;
}
.brand-endorsement:hover { color: var(--primary-hover); }
.wordmark:hover, .brand-endorsement:hover { text-decoration: underline; }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.site-header nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--accent-text); }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-header nav .nav-action {
  border: 1px solid var(--input);
  border-radius: var(--control-radius);
  padding-inline: 16px;
  color: var(--accent-text);
}
.site-header nav .nav-action:hover, .site-header nav .nav-action[aria-current] { background: var(--surface-raised); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-block: clamp(32px, 5vw, 72px);
}
.eyebrow {
  color: var(--muted-foreground);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.5;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: 4px;
  border-radius: 50%;
  background: var(--planned);
}
.intake-window, .timeline dt, .rubric .timeline dd {
  font-family: var(--mono);
  font-weight: 400;
}
h1, h2 {
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.2;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h1 em, h2 em { font-style: normal; }
.hero h1, .page-hero h1 { margin-block: 16px; }
.hero h1 em { color: var(--accent-text); }
.hero-lead {
  max-width: 46ch;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-block: 24px 16px;
}
.button, .text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  font-size: .875rem;
  font-weight: 600;
}
.button {
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  background: var(--action);
  color: var(--action-foreground);
  text-decoration: none;
}
.button:hover { background: var(--action-hover); }
.button span, .text-link span, .nav-action span { font-size: 1.15em; }
.text-link { color: var(--accent-text); }
.text-link:hover { text-decoration-thickness: 2px; }
.hero-note { color: var(--muted-foreground); font-size: .85rem; }

.hero-figure {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  background: var(--surface);
}
.map-image { position: relative; background: var(--surface-raised); }
.map-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--foreground);
  font-size: .8125rem;
  font-weight: 600;
}
.map-pin {
  position: absolute;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid var(--pin-foreground);
  border-radius: 50%;
  background: var(--pin);
  color: var(--pin-foreground);
  font-size: 1rem;
  font-weight: 700;
}
.map-pin:hover, .map-pin[aria-pressed="true"] { background: var(--pin-active); }
.map-pin[aria-pressed="true"] { border-width: 4px; }
.map-pin:focus-visible { outline-color: var(--pin-foreground); outline-offset: 4px; box-shadow: 0 0 0 8px var(--pin); }
.site-a { left: 29%; top: 58%; }
.site-b { left: 73%; top: 52%; }
.hero-figure figcaption {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px;
}
.figure-title {
  display: block;
  width: fit-content;
  margin-bottom: 3px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.figure-title:hover { text-decoration: underline; }
.figure-readout { color: var(--muted-foreground); font-size: .8rem; }
.figure-readout strong { color: var(--accent-text); margin-inline-end: 5px; }
.round-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--input);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--accent-text);
  font-size: 1.2rem;
  text-decoration: none;
}
.round-arrow:hover { border-color: var(--action-hover); background: var(--action-hover); color: var(--action-foreground); }

.commitment { border-block: 1px solid var(--border); background: var(--surface-raised); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 28px; }
.facts > div { padding-inline: clamp(16px, 3vw, 40px); border-inline-start: 1px solid var(--border); }
.facts > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.facts dt { color: var(--muted-foreground); font-size: .8125rem; font-weight: 600; }
.facts dd { margin-top: 4px; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1.25; letter-spacing: -.03em; }
.facts small { display: block; margin-top: 4px; color: var(--muted-foreground); font-size: .8125rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; }

.journey { display: grid; grid-template-columns: minmax(245px, .7fr) minmax(0, 1fr); gap: clamp(32px, 8vw, 122px); padding-block: clamp(54px, 8vw, 118px); }
.section-intro h2 { margin-block: 14px 15px; }
.section-intro > p:not(.eyebrow) { max-width: 42ch; color: var(--muted-foreground); }
.section-intro .text-link { margin-top: 8px; }
.support-band {
  padding-block: clamp(40px, 6vw, 80px);
  border-block-end: 1px solid var(--border);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.info-card, .note-panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  background: var(--surface);
}
.info-card h3, .note-panel h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.4;
}
.info-card p, .note-panel p { color: var(--muted-foreground); }
.note-panel { margin-block: 16px; background: var(--surface-raised); }
.note-panel:last-child { margin-bottom: 0; }
details { border-block-end: 1px solid var(--border); }
details:first-child { border-block-start: 1px solid var(--border); }
summary {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary:hover strong, details[open] summary strong { color: var(--accent-text); }
details p { padding-block: 0 19px; color: var(--muted-foreground); }
.stages summary { display: grid; grid-template-columns: 76px 1fr auto; }
.stages summary > span:first-child { color: var(--accent-text); font-size: .85rem; font-weight: 700; }
.stages details p { margin-inline-start: 90px; }
.disclosure-icon {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--accent-text);
}
.disclosure-icon::before, .disclosure-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  transform: translate(-50%, -50%);
  background: currentColor;
  content: "";
}
.disclosure-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .disclosure-icon::after { display: none; }

.next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-block-end: 64px;
  padding: clamp(26px, 4.5vw, 60px);
  border-radius: var(--panel-radius);
  background: var(--surface-raised);
}
.next-step h2 { margin-block: 8px; }
.next-step p:not(.eyebrow) { max-width: 55ch; color: var(--muted-foreground); }
.next-step .button { flex-shrink: 0; }
.site-footer { border-block-start: 1px solid var(--border); }
.footer-inner { min-height: 88px; color: var(--muted-foreground); font-size: .85rem; }

.page-hero { background: var(--surface-raised); padding-block: clamp(45px, 6vw, 87px); border-block-end: 1px solid var(--border); }
.page-intro { display: grid; grid-template-columns: 1fr minmax(240px, .48fr); align-items: center; gap: 40px; }
.status-card { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--border); border-radius: var(--panel-radius); background: var(--surface); }
.status-card h2 { margin-block: 8px; font-size: 1.25rem; letter-spacing: -.025em; }
.status-card > p:not(.eyebrow) { color: var(--muted-foreground); font-size: .92rem; }
.status-card .text-link { margin-top: 4px; }
.article-layout { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 780px); gap: clamp(35px, 8vw, 100px); padding-block: 58px 80px; }
.page-nav { position: sticky; top: 25px; align-self: start; display: grid; gap: 4px; }
.page-nav .eyebrow { margin-bottom: 8px; }
.page-nav a { padding: 6px 0; color: var(--muted-foreground); font-weight: 600; }
.page-nav a:hover { color: var(--accent-text); }
.article-body > section { padding-block: 32px; border-bottom: 1px solid var(--border); }
.article-body > section:first-child { padding-top: 0; }
.article-body > section:last-child { padding-bottom: 0; border-bottom: 0; }
.article-body section h2 { margin-bottom: 16px; }
.article-body p { max-width: 66ch; color: var(--muted-foreground); }
.article-body p + p { margin-top: 12px; }
.timeline > div { display: grid; grid-template-columns: minmax(115px, .55fr) 1fr; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--border); }
.timeline > div:last-child { border-bottom: 0; }
.timeline dt { color: var(--foreground); font-size: .875rem; }
.timeline dd { color: var(--muted-foreground); }
.numbered-list { margin: 0 0 20px; padding-inline-start: 1.5rem; }
.numbered-list li { padding: 4px 0 9px 5px; }
.numbered-list li::marker { color: var(--accent-text); font-weight: 700; }
.rubric { padding: 0 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.rubric .timeline > div { grid-template-columns: 1fr auto; }
.rubric .timeline dt { font-family: var(--sans); font-size: 1rem; font-weight: 500; }
.rubric p { margin-top: 8px; font-size: .88rem; }
.action-list {
  margin: 0;
  padding-inline-start: 1.5rem;
  color: var(--muted-foreground);
}
.action-list li { padding-inline-start: 4px; margin-bottom: 8px; }
.action-list li::marker { color: var(--accent-text); font-weight: 700; }
.action-list strong, .faq-list summary strong { color: var(--foreground); }
.faq-list summary .disclosure-icon { flex: 0 0 26px; }

.project-hero h1 { max-width: 31ch; }
.project-hero .hero-lead { max-width: 58ch; }
.section-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; }
.section-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--accent-text); font-size: .875rem; font-weight: 600; }
.section-links a:hover { text-decoration-thickness: 2px; }
.investigation { display: grid; grid-template-columns: 1.22fr 1fr; align-items: start; gap: clamp(30px, 5.5vw, 85px); padding-block: clamp(35px, 6vw, 80px); }
.project-map .map-image { overflow: hidden; border-radius: var(--panel-radius); }
.project-map figcaption { margin-top: 10px; color: var(--muted-foreground); font-size: .83rem; }
.site-details h2 { margin-bottom: 18px; }
.site-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.site-controls button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--input); border-radius: var(--control-radius); background: var(--surface); color: var(--accent-text); font-size: .875rem; font-weight: 600; }
.site-controls button:hover { background: var(--surface-raised); }
.site-controls button[aria-pressed="true"] { border-color: var(--action); background: var(--action); color: var(--action-foreground); text-decoration: underline; }
.site-detail { margin-bottom: 10px; padding: clamp(17px, 2vw, 26px); border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.site-detail h3, .method-grid h3 { margin-block: 5px; font-size: 1.13rem; line-height: 1.3; }
.site-detail p:last-child, .method-grid p { color: var(--muted-foreground); }
.method-section { padding-block: 45px 60px; border-block: 1px solid var(--border); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.method-grid article { padding: 19px; border-top: 2px solid var(--primary); background: var(--surface); }
.field-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 80px);
  padding-block: clamp(40px, 6vw, 80px);
}
.field-table { width: 100%; border-collapse: collapse; color: var(--muted-foreground); }
.field-table caption {
  padding-bottom: 8px;
  color: var(--foreground);
  font-weight: 600;
  text-align: start;
}
.field-table th, .field-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
  text-align: start;
  vertical-align: top;
}
.field-table th { color: var(--foreground); font-weight: 600; }
.field-table thead { background: var(--surface-raised); }

.application-back { margin-bottom: 4px; }
.application-steps {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  background: var(--surface);
}
.application-steps ol { margin: 0; padding-inline-start: 1.25rem; }
.application-steps li { padding-inline-start: 4px; }
.application-steps li::marker { color: var(--accent-text); font-weight: 600; }
.application-steps a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--accent-text);
  font-size: .875rem;
  font-weight: 600;
}
.application-layout { max-width: 920px; padding-block: clamp(32px, 6vw, 80px); }
.application-section + .application-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.application-section h2 { margin-bottom: 12px; }
.application-section > p,
.application-provider > p { max-width: 65ch; margin-bottom: 12px; color: var(--muted-foreground); }
.draft-form {
  display: grid;
  gap: 24px;
  margin-top: 24px;
  padding: clamp(12px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  background: var(--surface);
}
.draft-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
}
.draft-label label { font-weight: 600; }
.draft-field p { margin-bottom: 8px; color: var(--muted-foreground); font-size: .875rem; }
.draft-field textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--input);
  border-radius: var(--control-radius);
  background: var(--background);
  color: var(--foreground);
  font: inherit;
  resize: vertical;
}
.copy-button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--input);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--accent-text);
  font-size: .875rem;
  font-weight: 600;
}
.copy-button:hover { background: var(--surface-raised); }
.application-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.draft-status { min-height: 1.5em; color: var(--muted-foreground); font-size: .875rem; }
.application-frame {
  display: block;
  width: 100%;
  height: clamp(560px, 80vh, 860px);
  margin-top: 16px;
  border: 1px solid var(--input);
  border-radius: var(--panel-radius);
  background: var(--surface);
}

@media (max-width: 1100px) {
  .hero-actions { column-gap: 14px; }
  .hero-actions .button { padding-inline: 12px; }
}
@media (max-width: 820px) {
  .shell { width: calc(100% - 48px); }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 4px 12px;
    padding-block: 8px;
  }
  .main-nav { grid-column: 1 / -1; justify-self: start; }
  .hero { gap: 25px; }
  .hero-actions { margin-block: 18px 14px; }
  .facts > div { padding-inline: 14px; }
  .site-header nav { gap: 18px; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .site-header nav { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; }
  .site-header nav a { padding-inline: 0; }
  .site-header nav .nav-action { padding-inline: 8px; }
  .hero, .journey, .page-intro, .article-layout, .investigation, .method-grid, .info-grid, .field-section { grid-template-columns: minmax(0, 1fr); }
  .hero-figure figcaption { min-height: 94px; padding-inline: 13px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; padding-block: 23px; }
  .facts > div:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .stages summary { grid-template-columns: 63px 1fr auto; gap: 8px; }
  .stages details p { margin-inline-start: 0; }
  .next-step { flex-direction: column; align-items: flex-start; margin-block-end: 45px; }
  .footer-inner { flex-wrap: wrap; justify-content: flex-start; gap: 8px 19px; padding-block: 17px; }
  .page-intro { gap: 23px; }
  .article-layout { gap: 25px; padding-block: 29px 45px; }
  .page-nav { position: static; display: flex; flex-wrap: wrap; gap: 3px 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border); font-size: .9rem; }
  .page-nav .eyebrow { flex-basis: 100%; }
  .page-nav a { display: inline-flex; min-height: 44px; align-items: center; }
  .section-links { gap: 0 16px; }
}
@media (max-width: 370px) {
  .site-header nav a { font-size: .83rem; }
  .site-header nav .nav-action span { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: background-color var(--transition), color var(--transition), border-color var(--transition); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .disclosure-icon::before, .disclosure-icon::after { border-top: 1px solid ButtonText; }
  .map-pin[aria-pressed="true"] { border-color: Highlight; }
  .map-pin:focus-visible { outline-color: Highlight; }
}
@media print {
  .site-header nav, .language-switch, .site-footer, .skip-link, .page-nav, .section-links, .site-controls, .map-pin, .button { display: none !important; }
  .shell { width: 100%; }
  .article-layout, .investigation { display: block; padding-block: 15px; }
  .page-hero { padding-block: 15px; }
  .site-detail[hidden], .figure-readout [hidden] { display: block !important; }
}
