/* MODCAD.ai: a drawing sheet on vellum. One family (Archivo), width axis as the typographic voice. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --vellum: #edefeb;
  --paper: #f8f9f6;
  --graphite: #1e2226;
  --lead: #535b63;
  --rule: #c5cbc4;
  --rule-soft: #d9ddd6;
  --amber: #e19a2e;
  --amber-deep: #c9821a;
  --amber-ink: #8a5a12;
  --datum: #2e5e8c;
  --ready: #3f8a5a;
  --focus: #2e5e8c;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-media: 12px;

  --fs-small: 0.875rem;   /* 14 */
  --fs-body: 1.0625rem;   /* 17 */
  --fs-lede: clamp(1.125rem, 1.4vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 1.5rem);
  --fs-h2: clamp(1.875rem, 3.4vw, 2.875rem);
  --fs-h1: clamp(2.5rem, 6.2vw, 5.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--vellum);
  color: var(--graphite);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--datum); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--graphite); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  background: var(--amber); color: var(--graphite);
  font: inherit; font-weight: 600; font-stretch: 104%; text-decoration: none;
  border: 1.5px solid var(--amber); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: var(--graphite); }
.btn-quiet { background: transparent; border-color: var(--rule); }
.btn-quiet:hover { background: var(--paper); border-color: var(--graphite); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: var(--fs-small); }
.btn-full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(237, 239, 235, .88); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-row { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-stretch: 125%; letter-spacing: .02em; font-size: 1.0625rem; }
.brand img { border-radius: 7px; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 26px; font-size: .9375rem; }
.nav-links a { text-decoration: none; color: var(--lead); }
.nav-links a:hover { color: var(--graphite); }
@media (max-width: 860px) { .nav nav { display: none; } .nav .btn-small { margin-left: auto; } }

/* ---------- hero: the sheet ---------- */
.hero { padding: clamp(16px, 3vw, 36px) 0 clamp(40px, 6vw, 72px); }
.sheet {
  position: relative;
  border: 1.5px solid var(--graphite);
  outline: 1px solid var(--rule);
  outline-offset: 7px;
  padding: clamp(28px, 4.5vw, 64px) clamp(20px, 4vw, 56px) 0;
  margin: 8px;
}
.zones { position: absolute; display: flex; color: var(--lead); font-size: 11px; font-stretch: 112%; pointer-events: none; }
.zones span { flex: 1; text-align: center; position: relative; }
.zones-top { left: 0; right: 0; top: -22px; }
.zones-top span + span::before { content: ""; position: absolute; left: 0; top: 2px; height: 9px; border-left: 1px solid var(--rule); }
.zones-side { top: 0; bottom: 0; left: -22px; flex-direction: column; width: 12px; }
.zones-side span { display: flex; align-items: center; justify-content: center; }
.zones-side span + span::before { content: ""; position: absolute; top: 0; left: 1px; width: 9px; border-top: 1px solid var(--rule); }
@media (max-width: 700px) { .zones { display: none; } .sheet { outline: none; margin: 0; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 56px); align-items: end; }
h1 {
  font-size: var(--fs-h1);
  font-weight: 640;
  font-stretch: 116%;
  line-height: 1.0;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.lede { font-size: var(--fs-lede); color: var(--lead); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-media { margin-top: clamp(28px, 4vw, 48px); }

/* title block: bottom-right corner of the sheet */
.titleblock { display: grid; grid-template-columns: repeat(4, auto); margin-top: clamp(28px, 4vw, 48px); margin-left: auto; margin-right: calc(-1 * clamp(20px, 4vw, 56px)); width: min(100% + clamp(20px, 4vw, 56px), 640px); border-top: 1.5px solid var(--graphite); border-left: 1.5px solid var(--graphite); }
.titleblock > div { padding: 10px 16px 12px; border-right: 1px solid var(--rule); }
.titleblock > div:last-child { border-right: 0; }
.titleblock dt { font-size: 12px; color: var(--lead); }
.titleblock dd { font-weight: 600; font-stretch: 112%; font-size: .9375rem; }
.titleblock .tb-num dd { color: var(--ready); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .lede { margin-top: 4px; }
  .titleblock { grid-template-columns: repeat(2, 1fr); width: auto; margin-left: calc(-1 * clamp(20px, 4vw, 56px)); }
  .titleblock > div:nth-child(2) { border-right: 0; }
  .titleblock > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ---------- media frames ---------- */
.media { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-media); overflow: hidden; box-shadow: 0 40px 70px -50px rgba(30, 34, 38, .55); }
.media video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--vellum); }
.media figcaption { padding: 12px 16px; font-size: var(--fs-small); color: var(--lead); border-top: 1px solid var(--rule-soft); background: var(--paper); }
.media-toggle {
  position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--rule); background: rgba(248, 249, 246, .9); cursor: pointer;
  display: grid; place-items: center; opacity: 0; transition: opacity .2s;
}
.media:hover .media-toggle, .media-toggle:focus-visible, .media.paused .media-toggle { opacity: 1; }
@media (hover: none) { .media-toggle { opacity: 1; } }
.ico-pause, .ico-play { display: block; width: 12px; height: 14px; }
.ico-pause { border-left: 4px solid var(--graphite); border-right: 4px solid var(--graphite); }
.ico-play { width: 0; height: 0; border-left: 13px solid var(--graphite); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }

/* filmstrip of stills */
.strip { background: none; }
.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.frames li { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.frames img { width: 100%; aspect-ratio: 920 / 760; object-fit: cover; }
.frames span { display: block; padding: 10px 12px; font-size: 13px; line-height: 1.35; color: var(--lead); border-top: 1px solid var(--rule-soft); }
.strip figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--lead); }
@media (max-width: 560px) { .frames { grid-template-columns: 1fr; } .frames img { aspect-ratio: 16 / 10; } }

/* ---------- sections ---------- */
section { padding: clamp(56px, 9vw, 120px) 0; }
.section-title { font-size: var(--fs-h2); font-weight: 640; font-stretch: 112%; line-height: 1.08; letter-spacing: -0.008em; text-wrap: balance; }

.problem { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(24px, 4vw, 40px); }
.problem .big { font-size: clamp(1.375rem, 2.4vw, 2rem); line-height: 1.38; font-weight: 450; text-wrap: pretty; }

.what .section-title { margin-bottom: clamp(32px, 5vw, 56px); }
.view { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(28px, 5vw, 80px); padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--rule); }
.view-copy { display: contents; }
.view-copy > .view-title, .view-copy > .section-title, .view-copy > p, .view-copy > .status-note { grid-column: 1; }
.view-copy > .notes { grid-column: 2; grid-row: 1 / span 4; align-self: end; }
.view-copy p { margin-top: 18px; max-width: 36em; }
.view-media { grid-column: 1 / -1; margin-top: clamp(28px, 4vw, 44px); }
/* view titles drawn like drawing view labels: circled number, rule beneath */
.view-title { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; font-size: var(--fs-h3); font-weight: 620; font-stretch: 108%; line-height: 1.2; padding-bottom: 14px; border-bottom: 2px solid var(--graphite); }
.bubble { display: grid; place-items: center; width: 36px; height: 36px; border: 1.5px solid var(--graphite); border-radius: 50%; font-size: 15px; font-weight: 650; margin-top: -4px; }

.notes { margin-top: 22px; display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--rule); }
.notes li { position: relative; padding-left: 22px; color: var(--lead); font-size: .975rem; }
.notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; border-top: 1.5px solid var(--amber); }

.status-note { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--lead); }
.view-copy .status-note { margin-top: 22px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-amber { background: var(--amber); }
.dot-ready { background: var(--ready); }
.dot-datum { background: var(--datum); }

@media (max-width: 860px) { .view { grid-template-columns: 1fr; } .view-copy > .notes { grid-column: 1; grid-row: auto; } }

/* ---------- flow: grid bubbles along a datum line ---------- */
.flow { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: clamp(32px, 5vw, 56px); position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 22px; right: 0; top: 22px; border-top: 1px dashed var(--lead); opacity: .6; }
.steps li { position: relative; }
.step-bubble { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--graphite); border-radius: 50%; background: var(--paper); font-weight: 650; }
.steps h3 { margin-top: 18px; font-size: 1.125rem; font-weight: 640; font-stretch: 110%; }
.steps p { margin-top: 6px; font-size: .95rem; color: var(--lead); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; border-top: 0; border-left: 1px dashed var(--lead); }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; }
  .steps h3 { margin-top: 10px; }
  .steps p { grid-column: 2; }
}

/* ---------- audiences ---------- */
.audiences { margin-top: clamp(28px, 4vw, 48px); border-top: 2px solid var(--graphite); }
.audiences > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 64px); padding: 26px 0; border-bottom: 1px solid var(--rule); }
.audiences dt { font-size: var(--fs-h3); font-weight: 620; font-stretch: 108%; line-height: 1.25; }
.audiences dd { color: var(--lead); max-width: 36em; }
@media (max-width: 760px) { .audiences > div { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- principles ---------- */
.principles { padding-top: 0; }
.principle-list { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border-top: 2px solid var(--graphite); }
.principle-list > div { padding: 22px 22px 26px 0; border-bottom: 1px solid var(--rule); }
.principle-list dt { font-weight: 640; font-stretch: 108%; font-size: 1.0625rem; line-height: 1.3; }
.principle-list dd { margin-top: 8px; color: var(--lead); font-size: .95rem; }

/* ---------- next ---------- */
.next { background: var(--graphite); color: #e9ece7; }
.next .view-next { border-top: 0; padding: 0; }
.next .view-copy > p:not(.status-note) { grid-column: 1; }
@media (min-width: 861px) { .next .view-copy > p:nth-of-type(3) { grid-column: 2; grid-row: 2 / span 2; align-self: end; } }
.next .section-title { color: #fff; margin-top: 14px; }
.next .status-note { color: #b9c0bd; }
.next .view-copy p:not(.status-note) { color: #c9cfcb; }
.next .media { border-color: #3a4046; }
.next .media figcaption { background: #262b30; border-top-color: #3a4046; color: #b9c0bd; }

/* ---------- roadmap ---------- */
.road { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--graphite); }
.road-col { padding: 24px 28px 8px 0; }
.road-col + .road-col { padding-left: 28px; border-left: 1px solid var(--rule); }
.road-col h3 { display: flex; gap: 10px; align-items: center; font-size: 1.0625rem; font-weight: 640; font-stretch: 108%; }
.road-col ul { margin-top: 16px; display: grid; gap: 12px; }
.road-col li { color: var(--lead); font-size: .975rem; padding-bottom: 12px; border-bottom: 1px solid var(--rule-soft); }
.road-col li:last-child { border-bottom: 0; }
@media (max-width: 860px) { .road { grid-template-columns: 1fr; } .road-col + .road-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

/* ---------- faq ---------- */
.faq .section-title { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 2px solid var(--graphite); }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.0625rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 1.5px solid var(--graphite); border-bottom: 1.5px solid var(--graphite); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
details p { padding: 0 0 22px; color: var(--lead); max-width: 40em; }

/* ---------- access form ---------- */
.access { background: var(--paper); border-top: 1px solid var(--rule); }
.access-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.access-copy p { margin-top: 18px; color: var(--lead); max-width: 30em; }
@media (max-width: 900px) { .access-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { font-size: .9375rem; font-weight: 560; }
.opt { font-weight: 400; color: var(--lead); font-size: .8125rem; margin-left: 4px; }
input, select, textarea {
  font: inherit; color: var(--graphite); width: 100%;
  background: #fff; border: 1.5px solid var(--rule); border-radius: 9px; padding: 11px 13px; min-height: 48px;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--datum); box-shadow: 0 0 0 3px rgba(46, 94, 140, .18); }
input[aria-invalid="true"] { border-color: #b23b26; }
.err { color: #b23b26; font-size: var(--fs-small); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-weight: 560; }
.form-msg.ok { color: var(--ready); }
.form-msg.bad { color: #b23b26; }
.fine { font-size: 13px; color: var(--lead); }

/* ---------- footer ---------- */
.foot { padding: 48px 0 40px; }
.titleblock-foot { width: 100%; margin: 0; grid-template-columns: 1.4fr repeat(4, auto); border: 1.5px solid var(--graphite); }
.titleblock-foot .tb-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-stretch: 125%; letter-spacing: .02em; }
.titleblock-foot .tb-brand img { border-radius: 8px; }
.titleblock-foot .tb-num dd { color: var(--graphite); }
.foot .fine { margin-top: 14px; }
@media (max-width: 860px) {
  .titleblock-foot { grid-template-columns: 1fr 1fr; }
  .titleblock-foot .tb-brand { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--rule); }
  .titleblock-foot > div:nth-child(n+2) { border-top: 0; }
  .titleblock-foot > div:nth-child(odd) { border-right: 0; }
  .titleblock-foot > div:nth-child(n+4) { border-top: 1px solid var(--rule); }
}

/* ---------- simple pages ---------- */
.page { padding: clamp(40px, 8vw, 96px) 0; }
.page h1 { font-size: var(--fs-h2); font-stretch: 112%; }
.page p, .page li { margin-top: 16px; color: var(--lead); max-width: 40em; }
.page ul { list-style: disc; padding-left: 20px; }
