/* The live demo, zoning calculator and writing. Drafting-room palette: film, graphite, non-photo blue construction lines, yellow trace for the agent's work. Type matches the home page: Instrument Sans, with Instrument Serif for headings. */
/* Fallbacks sized to the web fonts, so the headline keeps its line breaks while they load */
@font-face { font-family: "Instrument Serif Fallback"; src: local("Times New Roman"), local("Georgia"); size-adjust: 92%; }
@font-face { font-family: "Instrument Sans Fallback"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 97%; }

:root {
  --film: #f4f4f1;
  --sheet: #ffffff;
  --graphite: #1c1b19;
  --lead: #52514b;
  --faint: #6a6962;
  --rule: rgba(28, 27, 25, 0.13);
  --rule-strong: rgba(28, 27, 25, 0.3);
  --blue: #7db6cc;
  --blue-ink: #2f7896;
  --trace: #f2de6a;
  --trace-ink: #6e5c00;
  --font: "Instrument Sans", "Instrument Sans Fallback", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Instrument Serif Fallback", "Times New Roman", serif;
  --gutter: clamp(16px, 4.5vw, 64px);
  --maxw: 1280px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--film);
  color: var(--graphite);
  font: 400 18px/1.55 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--trace); color: var(--graphite); }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; }
h1, h2, .sec-title, .set-head h3, .bd-title h3 { font-family: var(--serif); font-weight: 400; font-stretch: normal; letter-spacing: -0.008em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 16px var(--gutter);
  background: linear-gradient(rgba(244, 244, 241, 0.97), rgba(244, 244, 241, 0.75) 60%, rgba(244, 244, 241, 0));
  transition: background .3s, box-shadow .3s;
}
.nav.solid { background: var(--film); box-shadow: 0 1px 0 var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand span { font-size: 25px; font-weight: 660; font-stretch: 108%; letter-spacing: -0.035em; line-height: 1; }
.brand-mark { width: 30px; height: 30px; display: block; }
.brand-mark .t { fill: #1d2125; }
.brand-mark .g { fill: #fff; }
.foot .brand-mark .t { fill: #fff; }
.foot .brand-mark .g { fill: #1d2125; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--lead); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--graphite); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; white-space: nowrap;
  background: var(--graphite); color: var(--sheet);
  border: 1px solid var(--graphite); border-radius: 3px;
  font: 600 16px/1 var(--font); font-stretch: 104%; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #3a3e44; }
.btn-quiet { background: transparent; color: var(--graphite); border-color: var(--rule-strong); }
.btn-quiet:hover { background: var(--sheet); border-color: var(--graphite); }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-trace { background: var(--trace); color: var(--graphite); border-color: var(--trace); margin-top: 32px; height: 54px; padding: 0 28px; font-size: 17px; }
.btn-trace:hover { background: #f7e98f; }

/* story */
.story { position: relative; }
.story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--film); }
.story-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 72% 82% at 64% 54%, rgba(244,244,241,0) 55%, rgba(244,244,241,.75) 82%, var(--film) 100%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hl {
  position: absolute; left: 0; top: 0;
  font-size: 13px; font-weight: 500; font-stretch: 80%; letter-spacing: .01em;
  color: var(--graphite); white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: opacity .35s;
}
.hl.lead { transform: translate(0, -100%); padding: 0 0 12px 0; border-left: 1.5px solid #fff; }
.hl.lead > span { display: inline-block; background: rgba(255,255,255,.94); padding: 3px 8px; box-shadow: 0 2px 10px rgba(20,24,28,.18); }
.hl.lead::before { content: ""; position: absolute; left: -4px; bottom: -4px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--graphite); }
.hl.tr { color: var(--trace-ink); }
.hl.tr.lead::before { background: #c9a90b; }
.hl.blue { color: var(--blue-ink); }
.hl.bubble { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--blue-ink); color: var(--blue-ink); display: grid; place-items: center; background: var(--sheet); font-size: 11px; font-stretch: 100%; }
.hl.plain { color: var(--blue-ink); }

.stage-rail {
  position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%);
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
  font-size: 14px; font-stretch: 80%; font-weight: 500; color: var(--faint);
}
.stage-rail li { display: flex; align-items: center; gap: 10px; transition: color .3s; }
.stage-rail li::after { content: ""; width: 16px; height: 3px; background: var(--rule); transition: width .3s, background .3s; }
.stage-rail li.on { color: var(--graphite); }
.stage-rail li.on::after { width: 40px; background: var(--trace); }

.story-steps { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.step {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 80px;
  max-width: calc(560px + var(--gutter) * 2);
  pointer-events: none;
  background: linear-gradient(90deg, var(--film) 0%, rgba(244,244,241,.94) 68%, rgba(244,244,241,0) 100%);
}
.step > * { pointer-events: auto; max-width: 440px; }
.step-intro { max-width: calc(720px + var(--gutter) * 2); background: linear-gradient(90deg, var(--film) 0%, rgba(244,244,241,.9) 55%, rgba(244,244,241,0) 100%); }
.step-intro > * { max-width: 700px; }
.step h1 { font-size: clamp(42px, 5vw, 74px); font-stretch: 112%; font-weight: 640; line-height: .98; letter-spacing: -0.04em; }
.lede { margin-top: 28px; font-size: 20px; line-height: 1.5; color: var(--lead); max-width: 34em; }
.cta-row { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.step-k { font-size: 15px; font-stretch: 80%; font-weight: 600; color: var(--blue-ink); margin-bottom: 14px; }
.step h2 { font-size: clamp(32px, 3.4vw, 46px); font-stretch: 112%; font-weight: 620; line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 18px; }
.step p { color: var(--lead); }
.tools { margin-top: 20px; font-size: 14px; font-stretch: 80%; font-weight: 500; color: var(--faint); }

/* work log over the story */
.worklog {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 28px; width: 320px;
  background: rgba(255, 255, 255, 0.94); border: 1px solid var(--rule); border-radius: 4px;
  box-shadow: 0 12px 40px rgba(20, 24, 28, .16);
  padding: 14px 16px 10px;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s;
}
.worklog.on { opacity: 1; transform: none; }
.wl-title { font-size: 12px; font-stretch: 85%; color: var(--faint); }
.wl-job { font-size: 15px; font-weight: 600; margin: 2px 0 10px; }
.worklog ol { list-style: none; margin: 0; padding: 0; }
.worklog li { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 8px; padding: 7px 8px; margin: 0 -8px; border-radius: 3px; font-size: 14px; color: var(--faint); transition: background .3s, color .3s; }
.worklog .ic { display: flex; gap: 4px; }
.worklog .ic img, .worklog .ic svg { width: 18px; height: 18px; opacity: .45; transition: opacity .3s; }
.worklog .st { font-size: 12px; font-stretch: 85%; }
.worklog li.done { color: var(--graphite); }
.worklog li.done .ic img, .worklog li.done .ic svg, .worklog li.now .ic img, .worklog li.now .ic svg { opacity: 1; }
.worklog li.done .st::before { content: "✓ "; color: var(--blue-ink); }
.worklog li.now { background: var(--trace); color: var(--graphite); font-weight: 600; }

.msg { margin: 6px 0 18px; padding: 16px 18px; background: var(--sheet); border-left: 3px solid var(--trace); box-shadow: 0 8px 30px rgba(20,24,28,.08); }
.msg-to { font-size: 13px; font-stretch: 85%; color: var(--faint); margin-bottom: 6px; }
.msg p:last-child { color: var(--graphite) !important; font-size: 19px; line-height: 1.45; }
.tools img { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }
.tools img:not(:first-child) { margin-left: 10px; }

.logos-sec { background: var(--sheet); padding: clamp(64px, 8vw, 104px) 0; }
.logos-sec .sec-title { font-size: clamp(28px, 3vw, 40px); }
.logos { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.logos li { display: flex; align-items: center; gap: 12px; padding: 16px 16px; background: var(--film); border-radius: 4px; font-weight: 550; font-size: 16px; }
.logos img { width: 28px; height: 28px; object-fit: contain; }
.logos em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; font-stretch: 90%; padding: 2px 6px; border-radius: 3px; color: var(--graphite); border: 1px solid var(--rule-strong); }
.logos em.screen { border-style: dashed; border-color: var(--blue-ink); color: var(--blue-ink); }


/* site form in the hero */
.site-form { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--rule); max-width: 560px; }
.site-form label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.sf-row { display: flex; gap: 8px; }
.sf-row input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--sheet); font: 400 16px var(--font); color: var(--graphite); }
.sf-row input:focus { outline: 2px solid var(--blue-ink); outline-offset: 1px; border-color: transparent; }
.sf-row .btn { height: 44px; }
.sf-row .btn:disabled { opacity: .5; cursor: progress; }
.sf-status { margin-top: 10px; font-size: 14px; color: var(--lead); max-width: 34em; }
.site-caption { position: absolute; z-index: 3; left: 46%; bottom: 16px; font-size: 12px; font-stretch: 88%; color: var(--lead); max-width: 23%; line-height: 1.4; }


/* live reading log over the model */
.reading {
  position: absolute; z-index: 3; top: 92px; right: var(--gutter); width: 390px;
  background: rgba(255, 255, 255, 0.95); border: 1px solid var(--rule); border-radius: 4px;
  box-shadow: 0 14px 44px rgba(20, 24, 28, .14);
  padding: 14px 16px 12px; pointer-events: none;
  opacity: 0; transform: translateY(-6px); transition: opacity .45s, transform .45s;
}
.reading.on { opacity: 1; transform: none; }
.reading.on.away { opacity: 0; }
.rd-title { font-size: 12px; font-stretch: 85%; color: var(--faint); margin-bottom: 10px; }
.reading ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.reading li { display: grid; grid-template-columns: 14px 1fr; column-gap: 10px; font-size: 13.5px; line-height: 1.35; animation: rd-in .35s ease-out; }
.rd-ic { grid-row: span 2; width: 12px; height: 12px; margin-top: 3px; border-radius: 50%; border: 1.6px solid var(--rule-strong); border-top-color: var(--graphite); animation: rd-spin .8s linear infinite; }
.reading li.done .rd-ic { animation: none; border: 0; background: var(--blue-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.reading li.bad .rd-ic { animation: none; border: 0; background: #b5462f; }
.rd-k { font-weight: 600; color: var(--graphite); }
.rd-v { color: var(--lead); }
.rd-v:empty { display: none; }
@keyframes rd-spin { to { transform: rotate(360deg); } }
@keyframes rd-in { from { opacity: 0; transform: translateY(4px); } }


/* the work around the work */
.ad-assume { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px 32px; align-items: end; padding: 18px 20px; background: var(--film); border-radius: 4px; }
.ad-assume label { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 15px; color: var(--lead); }
.ad-assume output { font-weight: 600; color: var(--graphite); font-variant-numeric: tabular-nums; }
.ad-assume input[type=range], .ad-progress input[type=range] { grid-column: 1 / -1; width: 100%; -webkit-appearance: none; appearance: none; background: transparent; height: 20px; cursor: pointer; }
.ad-assume p { font-size: 13.5px; color: var(--faint); line-height: 1.45; }
.ad-docs { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.ad-col h3 { font-size: 23px; font-stretch: 108%; letter-spacing: -0.02em; }
.ad-src { display: flex; align-items: center; gap: 6px; margin: 6px 0 14px; font-size: 14px; color: var(--faint); font-stretch: 90%; }
.ad-src img { width: 18px; height: 18px; }
.doc { background: #fff; border: 1px solid var(--rule); border-radius: 2px; padding: 22px 22px 20px; box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 18px 40px -18px rgba(20,24,28,.22); font-size: 13px; line-height: 1.45; color: var(--graphite); }
.doc-firm { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--faint); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.doc-title { font-size: 17px; font-weight: 640; font-stretch: 106%; letter-spacing: -0.015em; }
.doc-sub { color: var(--faint); margin-top: 2px; font-size: 12.5px; }
.doc-dl { margin: 14px 0 0; }
.doc-dl div { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 5px 0; border-top: 1px solid var(--rule); }
.doc-dl dt { color: var(--faint); }
.doc-dl dd { margin: 0; }
.doc-t { width: 100%; border-collapse: collapse; margin-top: 14px; font-variant-numeric: tabular-nums; }
.doc-t th { text-align: left; font-weight: 600; font-size: 11.5px; color: var(--faint); padding: 0 0 6px; border-bottom: 1px solid var(--rule-strong); }
.doc-t td { padding: 6px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.doc-t th:not(:first-child), .doc-t td:not(:first-child) { text-align: right; padding-left: 8px; white-space: nowrap; }
.doc-t.iv { font-size: 12px; }
.doc-t.iv td:first-child { font-size: 11.5px; padding-right: 4px; }
.doc-t.iv th:not(:first-child), .doc-t.iv td:not(:first-child) { padding-left: 6px; }
.doc-t.bl td:first-child { width: 30px; font-weight: 600; }
.doc-t.bl td:nth-child(2) { text-align: left; width: 100%; }
.bar { position: relative; display: block; height: 8px; background: var(--film); border-radius: 4px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); border-radius: 4px; }
.bar b { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--graphite); }
.doc-t.bl tr.over .bar i { background: #d8873a; }
.doc-flag { margin-top: 12px; padding: 9px 11px; background: var(--trace); border-radius: 2px; font-size: 12.5px; }
.doc-k { margin-top: 16px; font-weight: 600; font-size: 12px; }
.doc-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.doc-thumbs span { aspect-ratio: 4 / 3; border-radius: 2px; background: linear-gradient(160deg, #d9dfe3 0 45%, #b9c2b4 45% 62%, #cfc8bb 62%); }
.doc-thumbs span:nth-child(2) { background: linear-gradient(170deg, #e5e1d8 0 40%, #a9a297 40% 70%, #d6d2c9 70%); }
.doc-thumbs span:nth-child(3) { background: linear-gradient(150deg, #cfd9df 0 50%, #8f8a80 50% 58%, #c7c9be 58%); }
.doc-note { margin-top: 8px; color: var(--faint); font-size: 12px; }
.ad-progress { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.ad-progress label { display: grid; grid-template-columns: 1fr auto; font-size: 12.5px; color: var(--lead); }
.ad-progress output { font-variant-numeric: tabular-nums; color: var(--graphite); font-weight: 600; }
.ad-progress input[type=range] { height: 16px; }
.doc-sum { margin: 14px 0 0; font-variant-numeric: tabular-nums; }
.doc-sum div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--lead); }
.doc-sum dd { margin: 0; }
.doc-sum .due { margin-top: 4px; padding-top: 8px; border-top: 2px solid var(--graphite); color: var(--graphite); font-weight: 650; font-size: 15px; }
.doc-status { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border: 1px solid var(--rule-strong); border-radius: 999px; }
.doc-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d8a23a; }


/* the photograph in the story stage, matched to the model's camera, edges feathered into the live view */
.stage-photo { position: absolute; z-index: 1; top: 0; left: 50%; height: 100%; width: auto; transform: translateX(-50%); opacity: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.step-link { color: var(--graphite); font-weight: 600; text-decoration: underline; text-decoration-color: var(--trace); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* the board */
.board-sec { background: var(--graphite); color: var(--film); }
.board-sec .sec-intro { color: rgba(244,244,241,.72); }
.board { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); background: #fff; color: var(--graphite); border-radius: 2px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); overflow: hidden; }
.bd-view { position: relative; min-height: 460px; overflow: hidden; cursor: ew-resize; user-select: none; touch-action: pan-y; background: #ddd; }
.bd-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-photo { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.bd-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.bd-handle span { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.bd-handle span::before, .bd-handle span::after { content: ""; position: absolute; top: 14px; border: 6px solid transparent; }
.bd-handle span::before { left: 6px; border-right: 7px solid var(--graphite); border-left: 0; }
.bd-handle span::after { right: 6px; border-left: 7px solid var(--graphite); border-right: 0; }
.bd-view:focus-visible { outline: 3px solid var(--trace); outline-offset: -3px; }
.bd-tag { position: absolute; top: 14px; padding: 4px 9px; background: rgba(255,255,255,.92); border-radius: 2px; font-size: 12.5px; font-weight: 600; }
.bd-tag.l { left: 14px; } .bd-tag.r { right: 14px; }
.bd-side { display: flex; flex-direction: column; gap: 18px; padding: 26px 26px 22px; border-left: 1px solid var(--rule); }
.bd-k { font-size: 12px; font-weight: 600; color: var(--faint); }
.bd-title h3 { font-size: 26px; font-stretch: 110%; letter-spacing: -0.025em; margin-top: 4px; line-height: 1.05; }
.bd-addr { margin-top: 6px; color: var(--lead); font-size: 14.5px; }
.bd-figs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule-strong); }
.bd-figs div { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.bd-figs div:nth-child(odd) { padding-right: 10px; }
.bd-figs dt { font-size: 11.5px; color: var(--faint); }
.bd-figs dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.bd-figs .wide { grid-column: 1 / -1; }
.bd-figs .wide dd { font-size: 14px; font-weight: 500; }
.bd-draw { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bd-draw figure { margin: 0; }
.bd-draw img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 1px solid var(--rule); }
.bd-draw figcaption { font-size: 11.5px; color: var(--faint); margin-top: 5px; }
.bd-foot { margin-top: auto; font-size: 11.5px; color: var(--faint); line-height: 1.45; }
.bd-actions { margin-top: 22px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.board-sec .btn { background: var(--trace); color: var(--graphite); border-color: var(--trace); }
.board-sec .btn:hover { background: #f7e98f; }
.board-sec .btn-quiet { background: transparent; color: var(--film); border-color: rgba(244,244,241,.4); }
.board-sec .btn-quiet:hover { background: rgba(255,255,255,.08); border-color: var(--film); }
.board-sec .btn:disabled { opacity: .55; cursor: progress; }
.bd-status { font-size: 14px; color: rgba(244,244,241,.72); }

.zoning-page { padding-top: 140px; }
.zp-back { margin-bottom: 18px; font-size: 15px; }


/* hero: the address box is the main action */
.hero-try { margin-top: 34px; padding-top: 0; border-top: 0; max-width: 600px; }
.hero-try label { font-size: 15px; color: var(--lead); font-weight: 500; }
.hero-try .sf-row { gap: 0; background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 4px; padding: 5px; box-shadow: 0 10px 30px -14px rgba(20,24,28,.35); }
.hero-try .sf-row:focus-within { border-color: var(--graphite); }
.hero-try .sf-row input { border: 0; height: 50px; font-size: 17px; background: transparent; }
.hero-try .sf-row input:focus { outline: none; }
.hero-try .sf-row .btn { height: 50px; padding: 0 24px; font-size: 16px; }
.scroll-cue { margin-top: 44px; font-size: 13px; font-weight: 500; color: var(--faint); display: flex; align-items: center; gap: 10px; }
.scroll-cue::before { content: ""; width: 1px; height: 28px; background: linear-gradient(var(--faint), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* the close sits over the photograph */
#visit { background: linear-gradient(90deg, rgba(24,26,29,.94) 0%, rgba(24,26,29,.82) 50%, rgba(24,26,29,.45) 100%), url(assets/board/default-photo.jpg) center 40% / cover; }


/* documents panel while the photograph renders */
.bd-docs { position: absolute; left: 16px; bottom: 16px; width: min(400px, calc(100% - 32px)); background: rgba(255,255,255,.96); border-radius: 4px; box-shadow: 0 14px 40px rgba(0,0,0,.25); padding: 14px 16px 12px; z-index: 2; }
.bd-docs-k { font-size: 12px; font-weight: 600; color: var(--faint); margin-bottom: 8px; }
.bd-docs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bd-docs li { display: grid; grid-template-columns: 14px 64px 1fr; gap: 8px; align-items: baseline; font-size: 13px; animation: rd-in .35s ease-out; }
.bd-docs li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; align-self: center; background: var(--blue-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.bd-docs .num { font-weight: 700; font-variant-numeric: tabular-nums; }
.bd-docs .what { color: var(--lead); }
.bd-docs-t { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--rule); font-size: 13px; font-weight: 600; }
.bd-docs-t:empty { display: none; }

/* the drawing set */
.set { margin-top: 56px; }
.set-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.set-head h3 { font-size: clamp(28px, 3vw, 40px); font-stretch: 110%; letter-spacing: -0.03em; }
.set-sub { margin-top: 8px; color: rgba(244,244,241,.72); max-width: 40em; }
.set-body { margin-top: 22px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.set-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 90px; }
.set-list button { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 3px; font-size: 14px; color: rgba(244,244,241,.75); }
.set-list button:hover { background: rgba(255,255,255,.06); color: var(--film); }
.set-list button.on { background: var(--film); color: var(--graphite); }
.set-list button:focus-visible { outline: 2px solid var(--trace); }
.set-list .sn { font-weight: 700; font-variant-numeric: tabular-nums; }
.set-list .ok { font-size: 11px; color: var(--trace); opacity: 0; transition: opacity .3s; }
.set-list .ok.on { opacity: 1; }
.set-list button.on .ok { color: var(--blue-ink); }
.set-sheet { position: relative; background: #fff; border-radius: 2px; aspect-ratio: 420 / 297; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.set-sheet svg { display: block; width: 100%; height: 100%; }
.set-qa { margin-top: 28px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
.qa-head h4 { font-size: 17px; font-weight: 650; color: var(--film); }
.qa-head p { margin-top: 6px; font-size: 14px; line-height: 1.45; color: rgba(244,244,241,.62); }
.qa-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(244,244,241,.1); border: 1px solid rgba(244,244,241,.1); border-radius: 3px; overflow: hidden; }
.qa-list li { display: grid; grid-template-columns: 16px 1fr; grid-template-rows: auto auto; gap: 4px 10px; padding: 14px 16px; background: var(--graphite); font-size: 14px; line-height: 1.4; color: rgba(244,244,241,.88); }
.qa-list .mk { grid-row: 1 / 3; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%2324272b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.qa-list .rev .mk { background: var(--trace) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.2v4.6M8 11.3v.1' fill='none' stroke='%2324272b' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.qa-list .rev .w { color: var(--trace); }
.qa-list:empty { display: none; }
.qa-list .r { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(244,244,241,.45); }

.jobs-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.job { display: flex; flex-direction: column; padding: 28px 28px 30px 0; border-bottom: 1px solid var(--rule); }
.job + .job { padding-left: 28px; border-left: 1px solid var(--rule); }
.job:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.job-k { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-stretch: 80%; font-weight: 600; color: var(--blue-ink); }
.job-k span { color: var(--faint); font-weight: 500; }
.job h3 { margin-top: 10px; font-size: 25px; font-stretch: 108%; font-weight: 620; line-height: 1.1; letter-spacing: -0.02em; }
.job-ask { margin-top: 16px; padding: 12px 14px; background: var(--film); border-left: 3px solid var(--trace); border-radius: 0 3px 3px 0; font-size: 16px; line-height: 1.45; color: var(--graphite); }
.job-back { margin-top: 16px; font-size: 15.5px; line-height: 1.5; color: var(--lead); font-variant-numeric: tabular-nums; }
.job-back > span:first-child { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--trace-ink); }
.set-sheet .plot { position: absolute; inset: 0; animation: plot 1.4s cubic-bezier(.4,.1,.2,1) both; }
.set-sheet .plot-bar { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--trace); box-shadow: 0 0 18px 4px rgba(242,222,106,.55); animation: plotbar 1.4s cubic-bezier(.4,.1,.2,1) both; pointer-events: none; }
@keyframes plot { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes plotbar { from { left: 0; opacity: 1; } 92% { opacity: 1; } to { left: 100%; opacity: 0; } }

/* sections */
.sec { padding: clamp(96px, 12vw, 168px) 0; }
.sec-sheet { background: var(--sheet); }
.sec-dark { background: var(--graphite); color: var(--film); }
.sec-title { font-size: clamp(36px, 4.4vw, 60px); font-stretch: 112%; font-weight: 620; line-height: 1.02; letter-spacing: -0.035em; max-width: 16em; }
.sec-intro { margin-top: 20px; color: var(--lead); max-width: 36em; font-size: 20px; }


/* how */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.how-steps { list-style: none; margin: 48px 0 0; padding: 0; counter-reset: k; }
.how-steps li { counter-increment: k; position: relative; padding: 0 0 36px 64px; }
.how-steps li::before {
  content: counter(k); position: absolute; left: 0; top: -4px;
  width: 38px; height: 34px; display: grid; place-items: center;
  font-size: 15px; font-weight: 600; color: var(--graphite);
  background: var(--trace);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.how-steps h3 { font-size: 23px; font-stretch: 108%; letter-spacing: -0.02em; margin-bottom: 8px; }
.how-steps p { color: var(--lead); }

.trace-fig { margin: 0; position: sticky; top: 120px; }
.trace-sheet { position: relative; background: var(--sheet); border: 1px solid var(--rule-strong); aspect-ratio: 4 / 3; overflow: hidden; }
.plan { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-grid path { fill: none; stroke: var(--blue); stroke-width: 1; stroke-dasharray: 10 3 2 3; }
.p-wall path { fill: none; stroke: var(--graphite); stroke-width: 3; }
.p-thin path { fill: none; stroke: var(--graphite); stroke-width: 1; }
.p-dim path { fill: none; stroke: var(--lead); stroke-width: 1; }
.p-dim text { font: 500 11px var(--font); font-stretch: 80%; fill: var(--lead); }
.trace {
  position: absolute; inset: 18% 4% 4% 26%;
  background: rgba(242, 222, 106, 0.5);
  box-shadow: 0 10px 30px rgba(36,39,43,.12);
  transform: rotate(-1deg);
  transform-origin: 80% 0;
  transition: transform .7s cubic-bezier(.3,.7,.2,1), opacity .5s;
  mix-blend-mode: multiply;
}
.trace svg { position: absolute; left: -37.14%; top: -23.08%; width: 142.86%; height: 128.21%; transform: rotate(1deg); transform-origin: 85% 18%; overflow: visible; }
.t-x { fill: none; stroke: #3a3200; stroke-width: 1.4; }
.t-cloud { fill: none; stroke: #4b4100; stroke-width: 1.6; }
.t-new { fill: rgba(255,255,255,.35); stroke: #3a3200; stroke-width: 1.4; }
.t-arrow { fill: none; stroke: #3a3200; stroke-width: 1.6; stroke-linecap: round; }
.trace-note { position: absolute; left: 6%; bottom: 5%; max-width: 70%; font-size: 15px; font-style: italic; font-stretch: 84%; line-height: 1.35; color: #3a3200; }
.trace-sheet.lifted .trace { transform: translate(14%, -112%) rotate(-7deg); opacity: 0; }
.trace-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.trace-hint { font-size: 14px; color: var(--faint); font-stretch: 90%; }

/* software */
.harness { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.harness-text p { color: var(--lead); margin-top: 20px; max-width: 32em; }
.harness-fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.legend { display: flex; gap: 24px; font-size: 14px; font-stretch: 85%; color: var(--lead); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 10px; }
.legend i { display: inline-block; width: 30px; border-top: 1.5px solid var(--graphite); }
.legend .lg-screen { border-top: 1.5px dashed var(--blue-ink); }
.h-ring { fill: none; stroke: var(--rule); stroke-width: 1; }
.h-link { fill: none; stroke: var(--graphite); stroke-width: 1.2; opacity: .5; transition: opacity .2s; }
.h-link.screen { stroke: var(--blue-ink); stroke-dasharray: 6 5; opacity: .9; }
.h-node rect { fill: var(--sheet); stroke: var(--graphite); stroke-width: 1; }
.h-node.screen rect { stroke: var(--blue-ink); stroke-dasharray: 3 2; }
.h-node text { font: 500 13px var(--font); font-stretch: 88%; fill: var(--graphite); }
.h-core circle { fill: var(--graphite); }
.h-core .g { fill: #fff; }
.h-core text { font: 650 21px var(--font); font-stretch: 108%; letter-spacing: -0.03em; fill: var(--sheet); }
.harness-fig svg.focus .h-link { opacity: .12; }
.harness-fig svg.focus .h-link.on { opacity: 1; }

/* memory */
.memory { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.memory-text > p { color: var(--lead); margin-top: 20px; max-width: 30em; }
.memory-list { list-style: none; padding: 0; margin: 32px 0 0; }
.memory-list button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: block; padding: 10px 12px; margin-left: -12px;
  font-size: 18px; color: var(--lead); border-radius: 2px;
}
.memory-list button:hover { color: var(--graphite); }
.memory-list button.on { color: var(--graphite); background: var(--trace); }
.memory-list button:focus-visible { outline: 2px solid var(--blue-ink); }
.memory-q { margin-top: 28px; min-height: 112px; border-left: 3px solid var(--trace); padding-left: 18px; }
.memory-ask { font-size: 23px; font-stretch: 104%; font-weight: 560; letter-spacing: -0.015em; line-height: 1.25; }
.memory-sub { margin-top: 8px; color: var(--lead); font-size: 16px; }

.stack-wrap { height: clamp(420px, 50vw, 620px); display: grid; place-items: center; perspective: 2200px; perspective-origin: 50% 30%; }
.stack { position: relative; width: min(430px, 70vw); aspect-ratio: 1.3; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-36deg); }
.sheet {
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--graphite);
  transition: transform .7s cubic-bezier(.2,.7,.2,1), background .3s, box-shadow .3s;
  cursor: pointer;
}
.sheet svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet .s-ln { fill: none; stroke: var(--graphite); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sheet .s-lt { fill: none; stroke: var(--faint); stroke-width: .8; vector-effect: non-scaling-stroke; }
.sheet .s-bl { fill: none; stroke: var(--blue); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sheet .s-fill { fill: #e4e6e2; stroke: none; }
.sheet .s-ink { fill: var(--graphite); stroke: none; }
.sheet .s-tag { position: absolute; left: 10px; top: 8px; font-size: 11px; font-weight: 600; font-stretch: 80%; color: var(--lead); }
.sheet.on { background: rgba(247, 233, 150, .96); box-shadow: -24px 30px 50px rgba(36,39,43,.14); }
.sheet.on .s-tag { color: var(--graphite); }

/* envelope */
.env { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: 1fr auto; grid-template-areas: "c f" "o f"; background: var(--sheet); border: 1px solid var(--rule-strong); }
.env-canvas-wrap { grid-area: c; position: relative; min-height: 540px; }
#env-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#env-canvas:active { cursor: grabbing; }
.env-hint { position: absolute; left: 18px; top: 14px; color: var(--faint); font-size: 14px; font-stretch: 85%; pointer-events: none; }
.env-controls { grid-area: f; border-left: 1px solid var(--rule); padding: 8px 22px 18px; }
.env-controls fieldset { border: 0; padding: 0 0 10px; margin: 0; }
.env-controls legend { padding: 16px 0 4px; font-size: 15px; font-weight: 600; }
.env-controls label { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 8px; padding: 4px 0; font-size: 15px; color: var(--lead); }
.env-controls output { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--graphite); font-weight: 500; }
.env-controls input[type=range] { grid-column: 1 / -1; width: 100%; margin: 6px 0 2px; -webkit-appearance: none; appearance: none; background: transparent; height: 20px; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--rule); }
input[type=range]::-moz-range-track { height: 2px; background: var(--rule); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--graphite); }
input[type=range]::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--graphite); }
input[type=range]:hover::-webkit-slider-thumb, input[type=range]:focus-visible::-webkit-slider-thumb { background: var(--trace); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(47,120,150,.25); }
.env-out { grid-area: o; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--rule); }
.env-out div { padding: 14px 16px 16px; border-right: 1px solid var(--rule); }
.env-out div:last-child { border-right: 0; }
.env-out dt { color: var(--faint); font-size: 13px; font-stretch: 85%; margin-bottom: 4px; }
.env-out dd { margin: 0; font-size: 17px; font-weight: 560; font-variant-numeric: tabular-nums; }
.env-limit { background: var(--trace); }
.env-limit dt { color: var(--trace-ink); }

/* visit */
.visit { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.visit p { color: rgba(244,244,241,.75); margin-top: 22px; max-width: 32em; font-size: 20px; }
.terms { list-style: none; margin: 0; padding: 0; }
.terms li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid rgba(244,244,241,.16); color: var(--film); }
.terms li::before { content: ""; position: absolute; left: 0; top: 26px; width: 12px; height: 3px; background: var(--trace); }

/* footer */
.foot { background: var(--graphite); color: var(--film); padding: 0 0 48px; }
.foot-in { display: flex; gap: 28px 40px; align-items: center; flex-wrap: wrap; padding-top: 40px; border-top: 1px solid rgba(244,244,241,.16); }
.foot-post { font-weight: 600; text-decoration-color: var(--trace); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.foot-note { margin-left: auto; color: rgba(244,244,241,.55); font-size: 14px; max-width: 30em; }

/* responsive */
@media (max-width: 1080px) {
  .set-body { grid-template-columns: 1fr; }
  .set-list { position: static; flex-direction: row; overflow-x: auto; }
  .set-list button { grid-template-columns: auto; white-space: nowrap; }
  .set-list .st2, .set-list .ok { display: none; }
  .set-qa { grid-template-columns: 1fr; }
  .qa-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job:nth-child(3n + 1) { padding-left: 28px; border-left: 1px solid var(--rule); }
  .job:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .board { grid-template-columns: 1fr; }
  .bd-view { aspect-ratio: 3 / 2; min-height: 0; }
  .bd-side { border-left: 0; border-top: 1px solid var(--rule); }
  .ad-docs { grid-template-columns: 1fr; max-width: 560px; }
  .ad-assume { grid-template-columns: 1fr 1fr; }
  .ad-assume p { grid-column: 1 / -1; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worklog { width: 280px; }
  .how, .harness, .memory, .visit { grid-template-columns: 1fr; }
  .trace-fig { position: relative; top: 0; }
  .env { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "c" "o" "f"; }
  .env-controls { border-left: 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
  .env-out { grid-template-columns: repeat(4, 1fr); }
  .env-out div { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero-try .sf-row { flex-direction: row; }
  .hero-try .sf-row input { flex: 1; }
  .hero-try .sf-row .btn { padding: 0 16px; }
  .scroll-cue { display: none; }
  .ad-assume { grid-template-columns: 1fr; }
  .reading { display: none; }
  .reading li { font-size: 12.5px; }
  .site-caption { display: none; }
  .sf-row { flex-direction: column; }
  .sf-row input { flex: none; }
  .worklog { display: none; }
  .logos { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 16px; }
  .stage-rail { display: none; }
  .step, .step-intro {
    justify-content: flex-end; padding: 96px var(--gutter) 40px; max-width: none;
    background: linear-gradient(0deg, var(--film) 0%, rgba(244,244,241,.96) 45%, rgba(244,244,241,0) 75%);
  }
  .lede { font-size: 18px; }
  .qa-list { grid-template-columns: 1fr; }
  .jobs-grid { grid-template-columns: 1fr; }
  .job, .job + .job, .job:nth-child(3n + 1) { padding: 24px 0 26px; border-left: 0; }
  .stack-wrap { height: 360px; order: -1; }
  .env-canvas-wrap { min-height: 380px; }
  .env-controls { grid-template-columns: 1fr; }
  .env-out { grid-template-columns: 1fr 1fr; }
  .foot-note { margin-left: 0; }
}
@media (max-width: 480px) {
  .nav-links { display: none; }
  .nav .btn-small { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .set-sheet .plot, .set-sheet .plot-bar { animation: none; }
  .set-sheet .plot-bar { display: none; }
  .scroll-cue::before { animation: none; }
  .rd-ic, .reading li { animation: none; }
  .trace, .sheet, .stage-rail li { transition: none; }
}

/* Headings and wordmark match the home page */
.step h1, .step h2, .sec-title, .set-head h3 { font-weight: 400; }
.brand span { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.005em; }
.brand { align-items: baseline !important; gap: 9px; }
.brand-mark { flex: none; width: 35px !important; height: 22.2px !important; }
.face-shade { fill: #5a4321; } .face-lit { fill: #b08a4c; }
.foot .face-shade { fill: #94723c; } .foot .face-lit { fill: #dcbd83; }

/* Instrument Serif wants open spacing */
.step h1 { letter-spacing: -0.008em; line-height: 0.95; }
.step h2, .sec-title { letter-spacing: -0.006em; }
