
/* Design system: drafting paper. Warm cream sheet, a quiet column grid that runs the
   full page, ruler ticks on the frame, mono annotations, ruled tables. Charcoal blocks
   carry the actions. Motifs stay at hairline weight so they read as texture, not decoration. */
:root {
  --paper: #efe6db;
  --paper-2: #e8ddd0;
  --ink: #23242b;
  --ink-2: #4c4a48;
  --ink-3: #645e58;
  --line: rgba(35,36,43,.10);      /* blueprint grid on paper */
  --line-2: rgba(35,36,43,.22);    /* ruled tables, rulers */
  --charcoal: #24252c;
  --charcoal-2: #2c2d35;
  --cream: #eee2d5;
  --cream-dim: #b9b0a6;
  --cline: rgba(238,226,213,.13);  /* grid on dark / painting */
  --slate: #55667e;
  --rose: #c49a9f;
  --rose-ink: #7d4f56;
  --lime: #c7d79c;
  --lime-ink: #1f2416;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ui: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --g: max(16px, 4vw);                       /* side gutter */
  --cw: min(1240px, calc(100vw - 2 * var(--g)));   /* content width */
  --fw: min(1560px, calc(100vw - 2 * max(12px, 2vw))); /* frame width */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--ui); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; position: relative; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.wrap { width: var(--cw); margin: 0 auto; position: relative; z-index: 1; }

/* ---- Motif 1: page-long column grid (content edges + thirds) ---- */
.sheet { position: absolute; inset: 0 auto 0 50%; width: var(--cw); transform: translateX(-50%); pointer-events: none; z-index: 0;
  background:
    linear-gradient(var(--line), var(--line)) 0 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) calc(100% / 3) 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) calc(200% / 3) 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 100% 0 / 1px 100% no-repeat; }
.sheet::before, .sheet::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.sheet::before { left: calc((var(--cw) - var(--fw)) / 2 + 40px); }
.sheet::after { right: calc((var(--cw) - var(--fw)) / 2 + 40px); }

/* ---- Motif 2: ruler ticks ---- */
.ruler-x { height: 14px; width: var(--fw); margin: 0 auto; position: relative; z-index: 1;
  background:
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 80px) 0 100% / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 8px) 0 100% / 100% 5px no-repeat; }
.mono { font-family: var(--mono); }
.label { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Hero ---------- */
.frame { position: relative; width: var(--fw); margin: 0 auto; z-index: 1; }
.frame::before { content: ""; position: absolute; top: 0; bottom: 0; left: -14px; width: 14px;
  background:
    repeating-linear-gradient(180deg, var(--line-2) 0 1px, transparent 1px 80px) 100% 0 / 12px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--line-2) 0 1px, transparent 1px 8px) 100% 0 / 5px 100% no-repeat; }
.hero { position: relative; overflow: hidden; isolation: isolate; color: var(--cream); background: #2b2a28 url("hero.jpg") 50% 100% / auto 145% no-repeat; min-height: clamp(520px, 66vh, 680px); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30,31,38,.72), rgba(30,31,38,.25) 55%, rgba(30,31,38,0) 80%), linear-gradient(180deg, rgba(30,31,38,.35), rgba(30,31,38,0) 30%); }
.hgrid { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hgrid::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: var(--cw); transform: translateX(-50%);
  background:
    linear-gradient(var(--cline), var(--cline)) 0 0 / 1px 100% no-repeat,
    linear-gradient(var(--cline), var(--cline)) calc(100% / 3) 0 / 1px 100% no-repeat,
    linear-gradient(var(--cline), var(--cline)) calc(200% / 3) 0 / 1px 100% no-repeat,
    linear-gradient(var(--cline), var(--cline)) 100% 0 / 1px 100% no-repeat; }
.hgrid::after { content: ""; position: absolute; inset: 0 40px; border-left: 1px solid var(--cline); border-right: 1px solid var(--cline);
  background: linear-gradient(var(--cline), var(--cline)) 0 84px / 100% 1px no-repeat, linear-gradient(var(--cline), var(--cline)) 0 calc(100% - 140px) / 100% 1px no-repeat; }
.bar { position: relative; z-index: 2; width: var(--cw); margin: 0 auto; height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .mark { width: 34px; height: 34px; }
.brand .word { height: 22px; width: auto; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); font: 400 15px var(--mono); }
.nav a { opacity: .85; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.hero-body { position: relative; z-index: 2; width: var(--cw); margin: 0 auto; padding: clamp(64px, 9vh, 110px) 0 230px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(46px, 5.4vw, 84px); line-height: .98; letter-spacing: -.03em; margin: 0; max-width: 15ch; }
.hero .sub { margin: 22px 0 0; max-width: 36ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: #e6dbcf; }

/* survey line traced from the painting */
.survey { position: absolute; bottom: 0; left: 50%; height: 145%; width: auto; aspect-ratio: 2402 / 802; transform: translateX(-50%); z-index: 1; pointer-events: none; }
.survey path { fill: none; vector-effect: non-scaling-stroke; }
.survey .c1 { stroke: rgba(238,226,213,.6); stroke-width: 1; }
.survey .c2 { stroke: rgba(238,226,213,.28); stroke-width: 1; }
.survey g { fill: rgba(238,226,213,.8); stroke: rgba(238,226,213,.45); }
.survey line { stroke-width: 1; vector-effect: non-scaling-stroke; }
.survey circle { stroke: none; }
.survey text { stroke: none; font-size: 10px; font-family: var(--mono); letter-spacing: .05em; fill: rgba(238,226,213,.78); }

/* ---------- Three paths ---------- */
.paths { position: relative; z-index: 3; width: var(--cw); margin: -140px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--charcoal); color: var(--cream); }
.path { padding: 22px clamp(20px, 2.4vw, 32px) 30px; display: grid; align-content: start; gap: 0; border-left: 1px solid var(--cline); }
.path:first-child { border-left: 0; }
.path .n { font: 400 12px var(--mono); color: var(--cream-dim); padding-bottom: 12px; border-bottom: 1px solid var(--cline); margin-bottom: 22px; }
.path h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.1; letter-spacing: -.015em; }
.path p { margin: 8px 0 22px; font: 400 15px/1.5 var(--mono); color: #d8cdc1; max-width: 34ch; }
.go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 15px var(--mono); color: var(--lime); justify-self: start; }
.go i, .rlink i { font-style: normal; display: inline-block; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.go:hover i, .go:focus-visible i, .rlink:hover i, .rlink:focus-visible i { transform: translateX(4px); }
.go:hover { color: #dbe8b6; }
.btn { display: inline-flex; align-items: center; justify-content: center; justify-self: start; background: var(--lime); color: var(--lime-ink); font: 500 15px/1 var(--mono); padding: 13px 20px; min-height: 44px; border: 0; border-radius: 0; cursor: pointer; transition: background .2s; white-space: nowrap; }
.btn:hover { background: #d6e3b0; }

/* ---------- Sections on paper ---------- */
section { padding-block: clamp(80px, 10vw, 140px) 0; }
h2.big { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.sec-n { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; margin-bottom: clamp(28px, 3.4vw, 48px); border-bottom: 1px solid var(--line-2); }
.sec-n span:last-child { color: var(--ink-3); }
.lead { margin: 14px 0 0; max-width: 40ch; color: var(--ink-2); font-size: 17px; }
.rlink { font: 500 15px var(--mono); color: var(--rose-ink); }
.rlink:hover { color: var(--ink); }

/* problem + brief */
.problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0; align-items: start; }
.problem > div:first-child { padding-right: clamp(20px, 3vw, 48px); }
.brief { border: 1px solid var(--line-2); background: rgba(239,230,219,.7); }
.brief header { padding: 12px 16px 14px; border-bottom: 1px solid var(--line-2); }
.brief header b { display: block; margin-top: 4px; font: 400 clamp(22px, 2vw, 28px)/1.2 var(--ui); letter-spacing: -.01em; }
.brief dl { margin: 0; display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr); font: 400 14.5px/1.5 var(--mono); }
.brief dt, .brief dd { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
.brief dt { font-weight: 500; border-right: 1px solid var(--line-2); }
.brief dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* last mile */
.mile { margin-top: clamp(64px, 8vw, 110px); }
.mile-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.disc { margin: 10px 0 0; font: 400 14px var(--mono); color: var(--ink-2); }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.person { padding: 18px clamp(14px, 1.6vw, 22px) 0; border-left: 1px solid var(--line-2); }
.person:first-child { border-left: 0; padding-left: 0; }
.person:last-child { padding-right: 0; }
.person img { width: 100%; height: clamp(220px, 21vw, 300px); object-fit: cover; }
.person .label { display: block; margin-top: 14px; }
.person h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -.01em; }
.person p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.fine { margin: 18px 0 0; font: 400 12px var(--mono); color: var(--ink-3); }

/* how it works: charcoal plate */
.how { background: var(--charcoal); color: var(--cream); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.how > div:first-child { padding: clamp(28px, 3.4vw, 48px); border-right: 1px solid var(--cline); }
.how .label { color: var(--cream-dim); }
.how h2.big { margin-top: 18px; font-size: clamp(34px, 3.4vw, 50px); }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step { padding: clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 32px); border-left: 1px solid var(--cline); min-width: 0; }
.step:first-child { border-left: 0; }
.step .n { font: 400 12px var(--mono); color: var(--cream-dim); display: block; padding-bottom: 12px; border-bottom: 1px solid var(--cline); }
.step h3 { margin: 22px 0 6px; font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -.01em; }
.step p { margin: 0; font: 400 14.5px/1.55 var(--mono); color: #d8cdc1; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* launch tools */
.tools { border: 1px solid var(--line-2); background: rgba(239,230,219,.6); }
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line-2); }
.tabs button { flex: 1 0 auto; padding: 16px 20px; background: none; border: 0; border-left: 1px solid var(--line-2); color: var(--ink-3); font: 500 14px var(--mono); cursor: pointer; white-space: nowrap; text-align: left; transition: color .2s, background .2s; }
.tabs button:first-child { border-left: 0; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--cream); background: var(--charcoal); }
.panels { display: grid; }
.panels > .panel { grid-area: 1 / 1; transition: opacity .25s ease; }
.panels > .panel.off { opacity: 0; visibility: hidden; pointer-events: none; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: stretch; }
.panel > div:first-child { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line-2); display: grid; align-content: start; }
.panel h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -.02em; }
.panel p { margin: 10px 0 26px; color: var(--ink-2); font-size: 16px; max-width: 30ch; }
.stage { padding: clamp(20px, 3vw, 40px); }
.screen { background: var(--charcoal); color: var(--cream); }
.screen-top { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--cline); font: 400 13px var(--mono); }
.screen-top span:last-child { color: var(--cream-dim); }
.screen-body { padding: 14px 16px 16px; font-size: 15px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--cline); font: 400 13px var(--mono); }
.chips span { border: 1px solid var(--cline); padding: 3px 9px; color: #d8cdc1; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--cline); }
.list li:last-child { border-bottom: 0; }
.list b { font-weight: 600; display: block; }
.list small { color: var(--cream-dim); font: 400 12.5px var(--mono); }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0 6px; }
.meter i { height: 3px; background: rgba(238,226,213,.18); }
.meter i.on { background: var(--rose); }
.meter.lime i { background: var(--lime); }
.meter.lime { grid-template-columns: repeat(4, 1fr); }
.ok { color: var(--lime); } .warn { color: var(--rose); } .todo { color: #a9b6c8; }
.paper { background: var(--paper); color: var(--ink); padding: 14px 16px; }
.paper h4 { margin: 0 0 8px; font-family: var(--display); font-size: 22px; font-weight: 400; }
.paper dl { margin: 0; display: grid; grid-template-columns: auto 1fr; font: 400 14px var(--mono); }
.paper dt, .paper dd { margin: 0; padding: 8px 0; border-top: 1px solid var(--line-2); }
.paper dt { color: var(--ink-3); padding-right: 16px; }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--cline); }
.figs small { color: var(--cream-dim); font: 400 12.5px var(--mono); display: block; }
.figs strong { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cover { margin: 14px 0 0; }
.cover strong { color: var(--lime); font-size: 24px; margin-right: 6px; }

/* field notes */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.note { padding: 18px clamp(14px, 1.6vw, 22px) 0; border-left: 1px solid var(--line-2); }
.note:first-child { border-left: 0; padding-left: 0; }
.note:last-child { padding-right: 0; }
.note img { width: 100%; height: clamp(200px, 19vw, 270px); object-fit: cover; }
.note .label { display: block; margin-top: 14px; }
.note h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; letter-spacing: -.01em; }
.note p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; max-width: 40ch; }
.note a.rlink { display: inline-block; margin-top: 12px; font-size: 14px; }

/* closing */
.finale { padding-block: clamp(96px, 11vw, 150px) clamp(64px, 8vw, 110px); }
.close { background: var(--charcoal); color: var(--cream); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.close > div { padding: clamp(28px, 4vw, 56px); }
.close > div:last-child { border-left: 1px solid var(--cline); display: grid; align-content: end; gap: 18px; }
.close .label { color: var(--cream-dim); }
.close h2.big { margin-top: 18px; font-size: clamp(40px, 5vw, 72px); }
.close p { margin: 16px 0 0; color: #d8cdc1; font: 400 15px/1.55 var(--mono); max-width: 46ch; }
.price { display: grid; font: 400 14px var(--mono); }
.price span { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--cline); color: #d8cdc1; }
.price b { color: var(--lime); font-weight: 500; }
.close .go { font-size: 14px; }

/* footer */
footer { position: relative; z-index: 1; background: var(--charcoal); color: var(--cream); }
footer::before { content: ""; display: block; height: 12px; width: var(--fw); margin: 0 auto;
  background: repeating-linear-gradient(90deg, var(--cline) 0 1px, transparent 1px 80px) 0 0 / 100% 12px no-repeat, repeating-linear-gradient(90deg, var(--cline) 0 1px, transparent 1px 8px) 0 0 / 100% 5px no-repeat; }
.foot { width: var(--cw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.foot > div { padding: 48px clamp(16px, 2vw, 28px) 40px; border-left: 1px solid var(--cline); }
.foot > div:first-child { border-left: 0; padding-left: 0; }
.foot .lock { display: inline-flex; align-items: center; gap: 12px; }
.foot .lock img:first-child { width: 30px; height: 30px; }
.foot .lock img:last-child { height: 19px; width: auto; margin-top: 3px; }
.foot p { margin: 16px 0 0; max-width: 30ch; color: var(--cream-dim); font-size: 15px; }
.foot h4 { margin: 0 0 16px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cream-dim); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font: 400 14px var(--mono); }
.foot ul a { color: #d8cdc1; transition: color .2s; }
.foot ul a:hover { color: var(--cream); }
.foot-base { width: var(--cw); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 16px 0 28px; border-top: 1px solid var(--cline); color: var(--cream-dim); font: 400 12px var(--mono); }

@media (max-width: 960px) {
  .nav a.hide-m { display: none; }
  .paths, .problem, .how, .panel, .close, .foot { grid-template-columns: minmax(0, 1fr); }
  .paths { margin-top: -120px; }
  .path { border-left: 0; border-top: 1px solid var(--cline); }
  .path:first-child { border-top: 0; }
  .hero-body { padding-bottom: 170px; }
  .problem > div:first-child { padding: 0 0 24px; }
  .how > div:first-child, .panel > div:first-child { border-right: 0; border-bottom: 1px solid var(--cline); }
  .panel > div:first-child { border-bottom-color: var(--line-2); }
  .steps.three { grid-template-columns: minmax(0, 1fr); }
  .step { border-left: 0; border-top: 1px solid var(--cline); }
  .step:first-child { border-top: 0; }
  .close > div:last-child { border-left: 0; border-top: 1px solid var(--cline); }
  .foot > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--cline); padding-block: 28px; }
  .foot > div:first-child { border-top: 0; }
  .sheet { background: linear-gradient(var(--line), var(--line)) 0 0 / 1px 100% no-repeat, linear-gradient(var(--line), var(--line)) 100% 0 / 1px 100% no-repeat; }
  .hgrid::before { background: linear-gradient(var(--cline), var(--cline)) 0 0 / 1px 100% no-repeat, linear-gradient(var(--cline), var(--cline)) 100% 0 / 1px 100% no-repeat; }
}
@media (max-width: 720px) {
  .people, .notes { grid-template-columns: minmax(0, 1fr); }
  .person, .note { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--line-2); padding-bottom: 24px; }
  .person:first-child, .note:first-child { border-top: 0; }
  .survey text { display: none; }
  .brand .word { display: none; }
  .frame::before, .sheet::before, .sheet::after, .hgrid::after { display: none; }
  .brief dl { grid-template-columns: minmax(0, 1fr); }
  .brief dt { border-right: 0; border-bottom: 0; padding-bottom: 0; color: var(--ink-3); }
  .brief dl > dt:nth-last-child(2) { border-bottom: 0; }
}

/* motion: opacity, wipes and drawn lines only. Nothing travels, nothing floats. */
.path { position: relative; transition: background .3s; }
.path:hover { background: rgba(255,255,255,.025); }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.path:hover::before, .path:focus-within::before { transform: scaleX(1); }
.tabs button { transition: color .25s, background-color .25s; }
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transition: opacity .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .rv.in { opacity: 1; }
  .js .sec-n { border-bottom-color: transparent; position: relative; }
  .js .sec-n::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line-2); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
  .js .sec-n.in::after { transform: scaleX(1); }
  .js .wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .wipe.in { clip-path: inset(0); }
  .survey { animation: trace 2.4s cubic-bezier(.3,.6,.2,1) .35s both; }
  .survey g { animation: fadein .8s ease 2s both; }
  .hero h1, .hero .sub, .crumb { animation: fadein 1s ease both; }
  .hero .sub { animation-delay: .12s; }
  @keyframes trace { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
}

/* ---- tool pages ---- */
.sub-hero { min-height: clamp(300px, 40vh, 400px); }
.sub-hero .hero-body { padding: clamp(40px, 6vh, 72px) 0 clamp(40px, 6vh, 64px); }
.sub-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 5vw, 76px); line-height: 1; letter-spacing: -.03em; margin: 0; max-width: 16ch; }
.crumb { margin: 0 0 18px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #e6dbcf; }
.crumb a { opacity: .8; transition: opacity .2s; } .crumb a:hover { opacity: 1; }
.crumb span { opacity: .5; margin: 0 8px; }
.tool-sec { padding-block: clamp(56px, 7vw, 96px) 0; }
.tool-sec .wrap > .sec-n { margin-bottom: clamp(20px, 2.6vw, 32px); }
.intro { margin: 0 0 clamp(20px, 2.4vw, 32px); max-width: 60ch; color: var(--ink-2); font-size: 17px; }
.fld { display: grid; gap: 8px; }
.fld > .label, .fld > label.label { color: var(--ink-3); }
input[type=text], input[type=number], select, textarea { width: 100%; background: #e4d9cb; color: var(--ink); border: 0; border-bottom: 1px solid rgba(35,36,43,.35); border-radius: 0; padding: 12px 14px; font: 400 16px/1.4 var(--ui); min-height: 44px; transition: background .2s, border-color .2s; }
textarea { resize: vertical; min-height: 88px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; background: #eadfd2; }
.hint { font: 400 12.5px var(--mono); color: var(--ink-3); }
.chips2 { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .add { min-height: 44px; padding: 10px 16px; background: #e2d6c8; color: var(--ink); border: 0; border-radius: 0; font: 500 14px var(--mono); cursor: pointer; transition: background .25s, color .25s; }
.chip:hover, .add:hover { background: #d8cab9; }
.chip[aria-pressed="true"], .add[aria-pressed="true"] { background: var(--charcoal); color: var(--cream); }
.add { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); margin-bottom: 16px; }
.fgroup { display: grid; gap: 10px; align-content: start; }
.note-line { margin: 0 0 clamp(20px, 2.4vw, 32px); font: 400 13px var(--mono); color: var(--ink-3); }
.progs { border-top: 1px solid var(--line-2); }
.prog { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr) minmax(0, .8fr) minmax(0, .9fr); gap: 20px clamp(16px, 2.4vw, 32px); align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.prog[hidden] { display: none; }
.prog h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.015em; line-height: 1.1; }
.runby { display: block; margin-top: 6px; font: 400 13px var(--mono); color: var(--ink-3); }
.p-blurb { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 52ch; }
.p-meta { display: grid; gap: 6px; align-content: start; }
.p-act { display: grid; gap: 8px; justify-items: start; }
.p-act .go { color: var(--rose-ink); min-height: 40px; }
.p-act .go:hover { color: var(--ink); }
.empty { padding: 40px 0; font: 400 15px var(--mono); color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.shortbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 0 0; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

.tool-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); border: 1px solid var(--line-2); background: rgba(239,230,219,.6); }
.tool-main { padding: clamp(20px, 2.8vw, 40px); display: grid; gap: 22px; align-content: start; }
.tool-side { background: var(--charcoal); color: var(--cream); padding: clamp(22px, 2.8vw, 40px); align-self: stretch; }
.tool-side .label { color: var(--cream-dim); }
.sticky { position: sticky; top: 24px; display: grid; gap: 18px; }
.grp { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0 10px; border-bottom: 1px solid var(--line-2); margin-top: 10px; }
.grp:first-child { margin-top: 0; }
.chk { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: center; min-width: 0; }
.chk legend { float: left; width: calc(100% - 330px); padding: 0; font-size: 16px; line-height: 1.45; }
.seg { display: inline-flex; gap: 0; justify-self: end; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 76px; padding: 0 12px; background: #e2d6c8; color: var(--ink); font: 500 13px var(--mono); transition: background .25s, color .25s; }
.seg label:hover span { background: #d8cab9; }
.seg input:checked + span { background: var(--charcoal); color: var(--cream); }
.seg input[value="yes"]:checked + span { background: var(--lime); color: var(--lime-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--slate); outline-offset: 2px; }
.rn { display: flex; align-items: baseline; gap: 12px; }
.rn b { font: 400 clamp(64px, 6vw, 96px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-width: 1.2ch; }
.rn span { font: 400 14px var(--mono); color: #d8cdc1; }
.meter10, .meter12 { display: grid; gap: 4px; }
.meter10 { grid-template-columns: repeat(10, 1fr); } .meter12 { grid-template-columns: repeat(12, 1fr); }
.meter10 i, .meter12 i { height: 4px; background: rgba(238,226,213,.18); transition: background .35s; }
.meter10 i.on { background: var(--lime); } .meter12 i.on { background: var(--lime); }
.fix { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.fix li { counter-increment: f; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 8px; padding: 12px 0; border-top: 1px solid var(--cline); min-height: 84px; align-content: start; font-size: 15px; }
.fix li::before { content: counter(f, decimal-leading-zero); font: 400 12px var(--mono); color: var(--cream-dim); padding-top: 3px; }
.fix li small { grid-column: 2; font: 400 12.5px var(--mono); color: var(--lime); }
.fix li.none { color: var(--cream-dim); }

.paper2 { background: var(--paper); color: var(--ink); padding: clamp(20px, 2.4vw, 32px); min-height: 520px; display: grid; align-content: start; gap: 6px; }
.paper2 h2 { margin: 6px 0 10px; font: 400 clamp(26px, 2.4vw, 34px)/1.1 var(--display); letter-spacing: -.015em; min-height: 2.2em; }
.paper2 dl { margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); font: 400 13.5px/1.5 var(--mono); }
.paper2 dt, .paper2 dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line-2); overflow-wrap: anywhere; }
.paper2 dt { font-weight: 500; color: var(--ink-3); padding-right: 12px; }
.paper2 .foot-note { margin-top: 12px; font: 400 12px var(--mono); color: var(--ink-3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn.alt { background: #e2d6c8; color: var(--ink); } .btn.alt:hover { background: #d8cab9; }

.rg { display: grid; gap: 6px; }
.rg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rg-top output { font: 500 15px var(--mono); font-variant-numeric: tabular-nums; min-width: 8ch; text-align: right; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; padding: 0; min-height: 0; border: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 1px; background: rgba(35,36,43,.4); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -8px; background: var(--charcoal); border: 0; border-radius: 0; }
input[type=range]::-moz-range-track { height: 1px; background: rgba(35,36,43,.4); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; background: var(--charcoal); border: 0; border-radius: 0; }
input[type=range]:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
.figs2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--cline); }
.figs2 small { display: block; font: 400 12.5px var(--mono); color: var(--cream-dim); }
.figs2 strong { display: block; font: 400 clamp(28px, 2.6vw, 38px)/1.1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cover2 { display: flex; align-items: baseline; gap: 14px; }
.cover2 b { font: 400 clamp(64px, 6vw, 96px)/1 var(--display); color: var(--lime); letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-width: 1.4ch; }
.cover2 span { font: 400 14px var(--mono); color: #d8cdc1; }
.msg { margin: 0; min-height: 4.2em; font: 400 13.5px/1.55 var(--mono); color: #d8cdc1; }
.split { display: grid; gap: 0; }
.split > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--cline); font: 400 13.5px var(--mono); font-variant-numeric: tabular-nums; }
.split b { font-weight: 500; color: var(--cream); }

.next-sec { padding-block: clamp(72px, 9vw, 120px) clamp(64px, 8vw, 110px); }
.nextbox { background: var(--charcoal); color: var(--cream); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.nx-head { padding: clamp(28px, 3.4vw, 48px); border-right: 1px solid var(--cline); }
.nx-head .label { color: var(--cream-dim); }
.nx-head h2.big { margin-top: 18px; font-size: clamp(34px, 3.4vw, 50px); }
.nx-head p { margin: 16px 0 0; font: 400 14.5px/1.55 var(--mono); color: #d8cdc1; max-width: 30ch; }
.nx-list { list-style: none; margin: 0; padding: 0; }
.nx-row { position: relative; display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 32px); border-top: 1px solid var(--cline); transition: background .3s; }
.nx-row:first-child { border-top: 0; }
.nx-row:hover { background: rgba(255,255,255,.025); }
.nx-row::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.nx-row:first-child::before { top: 0; }
.nx-row:hover::before, .nx-row:focus-within::before { transform: scaleX(1); }
.nx-row .tag { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cream-dim); }
.nx-row .tag.lime { color: var(--lime); }
.nx-row h3 { margin: 0; font: 400 clamp(22px, 2vw, 28px)/1.15 var(--display); letter-spacing: -.01em; }
.nx-row p { margin: 4px 0 0; font: 400 13.5px/1.5 var(--mono); color: #cfc4b8; }

@media (max-width: 960px) {
  .filters, .tool-grid, .nextbox { grid-template-columns: minmax(0, 1fr); }
  .prog { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .p-meta { grid-auto-flow: column; justify-content: start; gap: 16px; }
  .chk { grid-template-columns: minmax(0, 1fr); }
  .chk legend { float: none; width: auto; }
  .seg { justify-self: stretch; } .seg label { flex: 1; } .seg span { width: 100%; min-width: 0; }
  .nx-head { border-right: 0; border-bottom: 1px solid var(--cline); }
  .nx-row { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .two { grid-template-columns: 1fr; }
}
@media print {
  body * { visibility: hidden; }
  #preview, #preview * { visibility: visible; }
  #preview { position: absolute; left: 0; top: 0; width: 100%; min-height: 0; }
}

.rt.dirt { border: 1px solid var(--ink); margin-top: 28px; }
.rt.dirt caption { caption-side: top; padding: 8px 12px; border: 1px solid var(--ink); border-bottom: 0; margin-bottom: -1px; }
.rt.dirt td { padding: 0 16px; border-bottom: 1px solid var(--ink); border-left: 1px solid var(--ink); height: 72px; }
.rt.dirt td:first-child { border-left: 0; padding: 0 16px 0 0; font-size: 24px; }
.rt.dirt tr:last-child td { border-bottom: 0; }
.rt.dirt .nm { display: flex; align-items: center; gap: 16px; }
.rt.dirt .nm img { display: block; width: 72px; height: 72px; object-fit: cover; }
.rt.dirt .nm b { font: 400 24px var(--display); letter-spacing: -.01em; color: var(--ink); }
@media (max-width: 860px) { .rt.dirt td { height: auto; border: 0; padding: 4px 0; } .rt.dirt tr { padding: 12px; } .rt.dirt td:first-child { padding: 0; } }

/* ---- section pages ---- */
.band2 { min-height: clamp(190px, 17vw, 250px) !important; background-size: cover !important; background-position: 50% var(--bp, 60%) !important; }
.band2 .survey { display: none; }
.pg { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 104px); }
.pg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pg-grid.solo { grid-template-columns: minmax(0, 1fr); }
.pg .kick { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; }
.pg h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 68px); line-height: 1.04; letter-spacing: -.02em; max-width: 16ch; text-wrap: balance; }
.pg h1.wide { max-width: 22ch; }
.pg .lede { margin: 18px 0 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 46ch; }
.rt { width: 100%; border-collapse: collapse; margin-top: clamp(32px, 4vw, 52px); }
.rt caption { text-align: left; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 12px; }
.rt th { text-align: left; font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 0 16px 10px 0; border-bottom: 1px solid var(--ink); }
.rt td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line-2); vertical-align: baseline; font-size: 16px; color: var(--ink-2); }
.rt td:first-child { font-family: var(--display); font-size: 22px; color: var(--ink); letter-spacing: -.01em; }
.rt td.mono { font: 400 13px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.rt a { white-space: nowrap; color: var(--rose-ink); font: 500 14px var(--mono); }
.rt tr.person td { vertical-align: middle; }
.rt .mono-i { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--charcoal); color: var(--cream); font: 500 13px var(--mono); letter-spacing: .04em; }
.rt .nm { display: flex; align-items: center; gap: 16px; }
.dk { background: var(--charcoal); color: var(--cream); padding: clamp(24px, 2.6vw, 36px); }
.dk .label { color: var(--cream-dim); }
.dk h2 { margin: 14px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.01em; }
.dk p { margin: 14px 0 0; color: var(--cream-dim); font-size: 15px; }
.dk ul { list-style: none; margin: 22px 0 0; padding: 0; }
.dk li { padding: 14px 0; border-top: 1px solid var(--cline); font-size: 16px; }
.dk .btn { margin-top: 24px; }
.dk .fine { margin: 14px 0 0; font: 400 13px var(--mono); color: var(--cream-dim); }
.fil { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: clamp(28px, 3vw, 40px); padding-bottom: 12px; border-bottom: 1px solid var(--line-2); font: 500 14px var(--mono); }
.fil span.loc { margin-right: auto; color: var(--ink-3); }
.fil button { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; color: var(--ink-3); cursor: pointer; position: relative; }
.fil button[aria-pressed="true"] { color: var(--ink); }
.fil button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 3px; background: var(--lime); }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line-2); }
.steps3 div { padding: 0 20px 22px 0; }
.steps3 div + div { padding-left: 20px; border-left: 1px solid var(--line-2); }
.steps3 b { display: block; font: 400 12px var(--mono); color: var(--ink-3); padding-bottom: 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 16px; }
.steps3 h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.12; }
.fm label { display: block; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 20px 0 8px; }
.fm label:first-child { margin-top: 0; }
.fm input, .fm textarea, .fm select { width: 100%; background: transparent; border: 1px solid var(--ink); border-radius: 0; padding: 12px 14px; font: 400 16px var(--sans, 'Noto Sans', sans-serif); color: var(--ink); min-height: 48px; }
.fm textarea { min-height: 96px; resize: vertical; }
.fm input:focus-visible, .fm textarea:focus-visible, .fm select:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.fm .btn { margin-top: 24px; width: 100%; justify-content: center; }
.fm .note2 { margin: 12px 0 0; font: 400 13px var(--mono); color: var(--ink-3); }
.fm .done { margin-top: 16px; font: 500 14px var(--mono); color: var(--rose-ink); }
.price2 { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: clamp(36px, 4vw, 56px); flex-wrap: wrap; }
.price2 b { display: block; font: 400 clamp(46px, 5vw, 72px)/1 var(--display); letter-spacing: -.02em; }
.price2 span { font-size: 16px; color: var(--ink-2); }
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(36px, 4vw, 56px); }
.who figure { margin: 0; }
.who img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.who figcaption { padding-top: 12px; border-top: 1px solid var(--ink); margin-top: 0; }
.who h3 { margin: 12px 0 4px; font-family: var(--display); font-weight: 400; font-size: 22px; }
.who p { margin: 0; font-size: 15px; color: var(--ink-2); }
.who small { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.sheet-card { margin-top: clamp(36px, 4vw, 56px); border: 1px solid var(--ink); background: var(--paper-2, #f4ece2); }
.sheet-card .hd { padding: 12px 16px; border-bottom: 1px solid var(--ink); font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.sheet-card .hd b { display: block; margin-top: 6px; font: 400 22px var(--display); text-transform: none; letter-spacing: -.01em; }
.sheet-card dl { margin: 0; display: grid; grid-template-columns: 160px 1fr; }
.sheet-card dt, .sheet-card dd { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.sheet-card dt { font: 500 13px var(--mono); border-right: 1px solid var(--line-2); }
.sheet-card dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 860px) {
  .pg-grid { grid-template-columns: minmax(0, 1fr); }
  .steps3, .who { grid-template-columns: minmax(0, 1fr); }
  .steps3 div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); padding-top: 18px; }
  .rt thead { display: none; }
  .rt tr { display: grid; grid-template-columns: 1fr; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
  .rt td { border: 0; padding: 4px 0; }
  .sheet-card dl { grid-template-columns: 1fr; }
  .sheet-card dt { border-right: 0; border-bottom: 0; padding-bottom: 0; }
}
/* lime accents: small, deliberate touches */
::selection { background: var(--lime); color: var(--charcoal); }
.sec-n span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--lime); box-shadow: 0 0 0 1px rgba(36,37,44,.28); vertical-align: 1px; }
.tabs button[aria-selected="true"] { box-shadow: inset 0 3px 0 var(--lime); }
.chip[aria-pressed="true"], .add[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--lime); }
.foot h4 { color: var(--lime); }
.foot .lock { position: relative; }
input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--lime); }
input[type=range]::-moz-range-thumb { box-shadow: 0 0 0 3px var(--lime); }
input[type=range]:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; }
.label.on-hero::before, .crumb::before { background: var(--lime); }
/* painting shown whole, not zoomed */
.hero { background-color: #26262b; background-size: cover; background-position: 50% 100%; }
.hero.sub-hero { background-size: cover !important; background-position: 50% var(--bp, 100%) !important; min-height: clamp(340px, 30vw, 460px); }
.hero:not(.sub-hero) { background-size: 118% auto !important; background-position: 50% calc(100% - 128px) !important; }
.hero:not(.sub-hero) .survey { inset: auto; left: 50%; bottom: 128px; width: 118%; height: auto; aspect-ratio: 2402 / 802; transform: translateX(-50%); }
.hero.sub-hero .survey { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; }
@media (max-width: 760px) { .hero:not(.sub-hero) { background-size: auto 62% !important; background-position: 50% calc(100% - 120px) !important; } .hero:not(.sub-hero) .survey { height: 62%; width: auto; bottom: 120px; } .hero.sub-hero { min-height: 400px; } }

/* ---- nav: refined, readable on any painting ---- */
.hero .bar::before { content: ""; position: absolute; left: -100vw; right: -100vw; top: 0; height: 150px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(24,25,31,.62), rgba(24,25,31,.28) 55%, rgba(24,25,31,0)); }
.nav { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; gap: clamp(20px, 2.4vw, 34px); font: 500 14px var(--mono); letter-spacing: .02em; }
.nav a { opacity: 1; color: var(--cream); text-shadow: 0 1px 14px rgba(20,21,26,.55); transition: color .2s, background .2s; }
.nav a:hover { color: var(--lime); }
.nav > a.si { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; background: var(--cream); color: var(--charcoal); font-weight: 500; text-shadow: none; box-shadow: 0 6px 20px rgba(14,15,19,.28); }
.nav > a.si:hover { background: var(--lime); color: var(--charcoal); }
.nav a:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
/* ---- background motifs, kept at a whisper ---- */
.pg { background-image: url(motifs/l-03-registration-crosshairs.svg), url(motifs/l-09-survey-circles.svg), var(--cap, none), url(motifs/l-01-contour-divider.svg);
  background-repeat: no-repeat; background-position: 100% 6%, 0 38%, calc((100% - var(--cw)) / 2) calc(100% - 34px), 50% 100%; background-size: 300px, 300px, 420px 26px, 100% 200px; }
.tool-sec { background-image: url(motifs/l-09-survey-circles.svg), url(motifs/l-03-registration-crosshairs.svg); background-repeat: no-repeat; background-position: 100% 0, 0 100%; background-size: 340px, 260px; }
.next-sec { background-image: url(motifs/l-06-elevation-profile.svg); background-repeat: no-repeat; background-position: 50% 0; background-size: 100% auto; }
.dk, .nextbox { background-image: url(motifs/d-09-survey-circles.svg), url(motifs/d-02-ruler-ticks.svg); background-repeat: no-repeat, repeat-x; background-position: 100% 100%, 0 0; background-size: 280px, 800px 15px; }
#how, .finale, .close { background-image: url(motifs/d-03-registration-crosshairs.svg), url(motifs/d-02-ruler-ticks.svg); background-repeat: no-repeat, repeat-x; background-position: 100% 0, 0 0; background-size: 320px, 800px 12px; }
#tools { background-image: url(motifs/l-06-elevation-profile.svg); background-repeat: no-repeat; background-position: 50% 100%; background-size: 100% auto; }
#notes { background-image: url(motifs/l-01-contour-divider.svg); background-repeat: no-repeat; background-position: 50% 100%; background-size: 100% 220px; }
#problem { background-image: url(motifs/l-03-registration-crosshairs.svg), url(motifs/cap-home.svg); background-repeat: no-repeat; background-position: 100% 0, calc((100% - var(--cw)) / 2) calc(100% - 20px); background-size: 300px, 420px 26px; }
@media (max-width: 760px) { .pg, .tool-sec { background-size: 200px, 200px, 360px 26px, 100% 140px; } }
/* path cards: heading, text and call to action share rows across all three */
.path { grid-template-rows: auto auto 1fr auto; align-content: stretch; }
.path p { margin-bottom: 20px; }
.path .btn, .path .go { align-self: end; min-height: 44px; height: 44px; padding-top: 0; padding-bottom: 0; }
.path .go { padding-left: 0; }
/* backdrop mat behind the example screens: paper tone, fine grain, inner hairline */
.stage { position: relative; background-color: var(--st, #71819a); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .1 0 0 0 0 .16 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); box-shadow: none; }
.stage::before, .stage::after { content: ""; position: absolute; pointer-events: none; }
.stage::before { left: 0; right: 0; top: 0; height: 12px; background: repeating-linear-gradient(90deg, rgba(238,226,213,.16) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, rgba(238,226,213,.26) 0 1px, transparent 1px 50px); background-size: 100% 6px, 100% 12px; background-repeat: repeat-x; background-position: 0 0; }
.stage::after { top: 0; bottom: 0; left: 0; width: 12px; background: repeating-linear-gradient(180deg, rgba(238,226,213,.16) 0 1px, transparent 1px 10px), repeating-linear-gradient(180deg, rgba(238,226,213,.26) 0 1px, transparent 1px 50px); background-size: 6px 100%, 12px 100%; background-repeat: repeat-y; background-position: 0 0; }
.stage .screen { position: relative; z-index: 1; box-shadow: 0 22px 40px -22px rgba(24,25,31,.5); }
.cover, .screen .cover { color: #d8cdc1; }


























/* ---- full navigation, launch-tools menu, mobile menu ---- */
.nav .nv, .nav .mnav { display: none; }
.nav { gap: clamp(14px, 1.6vw, 26px); font-size: 13.5px; }
.nav .dd { position: relative; }
.nav .dd-menu { position: absolute; top: 100%; left: -16px; min-width: 210px; padding: 8px 0; margin-top: 10px; background: var(--charcoal); box-shadow: 0 18px 40px -16px rgba(14,15,19,.6); opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; z-index: 30; }
.nav .dd::before { content: ""; position: absolute; left: -16px; right: -16px; top: 100%; height: 14px; }
.nav .dd:hover .dd-menu, .nav .dd:focus-within .dd-menu { opacity: 1; visibility: visible; }
.nav .dd-menu a { display: block; padding: 11px 16px; text-shadow: none; font-size: 13.5px; }
.nav .dd-menu a:hover { background: rgba(255,255,255,.06); }
.nav .mnav { position: relative; }
.nav .mnav summary { list-style: none; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; padding: 0 4px; color: var(--cream); text-shadow: 0 1px 14px rgba(20,21,26,.55); }
.nav .mnav summary::-webkit-details-marker { display: none; }
.nav .mnav-list { position: fixed; left: 12px; right: 12px; top: 72px; background: var(--charcoal); padding: 8px 0 12px; box-shadow: 0 24px 50px -16px rgba(14,15,19,.7); z-index: 200; }
@media (min-width: 560px) { .nav .mnav-list { left: auto; width: 320px; right: 24px; } }
.hero .hero-body { z-index: 1; }
.hero.sub-hero { overflow-x: clip; overflow-y: visible; }
.frame:has(> .sub-hero) { position: relative; z-index: 50; }
.nav .mnav-list a { display: block; padding: 11px 18px; text-shadow: none; }
.nav .mnav-list b { display: block; padding: 14px 18px 4px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.nav .dd > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .8; }
.nav .mnav-list { max-height: calc(100vh - 90px); overflow: auto; }
@media (min-width: 1100px) { .nav .nv { display: inline-flex; align-items: center; } }
@media (max-width: 1099px) { .nav .mnav { display: block; } }
/* ---- forms ---- */
.fm .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fm .err { margin-top: 14px; font: 500 14px var(--mono); color: #8c3b3b; }
.fm.sent .fields { display: none; }
.sent-msg { padding: 8px 0; }
.sent-msg h2 { margin: 0 0 12px; font: 400 clamp(28px, 3vw, 40px)/1.1 var(--display); }

/* ---- tool example stages: one size, centred, each in a palette tint ---- */
.stage { display: flex; align-items: center; min-height: 380px; }
.stage .screen { width: 100%; height: 300px; overflow: hidden; }
#p-grant .stage { --st: #71819a; }
#p-triage .stage { --st: #a58c92; }
#p-pilot .stage { --st: #94a08a; }
#p-budget .stage { --st: #7f969a; }
@media (max-width: 760px) { .stage { min-height: 0; } .stage .screen { height: auto; min-height: 280px; } }

/* ---- guides ---- */
.gh-cl { margin-top: clamp(36px, 4vw, 56px); }
.gh-cl:first-of-type { margin-top: 0; }
.gh-cl h2 { margin: 0; font: 400 clamp(28px, 3vw, 40px)/1.1 var(--display); letter-spacing: -.015em; }
.gh-cl > p { margin: 8px 0 0; color: var(--ink-2); max-width: 56ch; }
.gh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 22px; border-top: 1px solid var(--ink); }
.gcard { padding: 18px clamp(14px, 1.6vw, 22px) 26px 0; border-left: 1px solid var(--line-2); padding-left: clamp(14px, 1.6vw, 22px); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; }
.gcard:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.gcard img { width: 100%; height: 150px; object-fit: cover; display: block; }
.gcard .label { margin-top: 14px; display: block; }
.gcard h3 { margin: 6px 0 0; font: 400 22px/1.18 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.gcard h3 a { color: var(--ink); }
.gcard h3 a:hover { color: var(--rose-ink); }
.gcard p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.gcard .mins { margin-top: auto; padding-top: 14px; font: 400 12px var(--mono); color: var(--ink-3); letter-spacing: .04em; }
.art { min-width: 0; max-width: 68ch; }
.art .meta { font: 400 12px var(--mono); color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.art h1 { max-width: 22ch; font-size: clamp(34px, 4.2vw, 56px); }
.tldr { margin: 26px 0 0; padding: 18px 20px; background: var(--charcoal); color: var(--cream); }
.tldr b { display: block; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--lime); margin-bottom: 8px; }
.art .tldr p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--cream); }
.art .meta { margin: 0 0 12px; }
.art h1 { margin-top: 0; }
.art .cta-box p, .cta-box p { font-size: 15px; }
.art h2 { margin: 44px 0 0; font: 400 clamp(26px, 2.6vw, 34px)/1.15 var(--display); letter-spacing: -.01em; scroll-margin-top: 24px; }
.art p { margin: 14px 0 0; font-size: 17.5px; line-height: 1.62; color: var(--ink-2); }
.art ul { margin: 14px 0 0; padding-left: 22px; }
.art li { margin: 8px 0; font-size: 17.5px; line-height: 1.55; color: var(--ink-2); }
.art .faq h3 { margin: 26px 0 0; font: 400 21px/1.25 var(--display); }
.art .faq p { margin-top: 8px; }
.art .rel { margin: 14px 0 0; padding: 0; list-style: none; }
.art .rel li { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.art .rel a { font: 400 20px/1.25 var(--display); color: var(--ink); }
.art .rel a:hover { color: var(--rose-ink); }
.art .note-gen { margin-top: 36px; font: 400 13px/1.5 var(--mono); color: var(--ink-3); }
.aside { position: sticky; top: 24px; display: grid; gap: 20px; }
.toc { border-top: 1px solid var(--ink); padding-top: 12px; }
.toc b { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.toc a { display: block; padding: 8px 0; color: var(--ink-2); font-size: 15px; border-bottom: 1px solid var(--line-2); }
.toc a:hover { color: var(--rose-ink); }
.cta-box { background: var(--charcoal); color: var(--cream); padding: 20px; }
.cta-box h3 { margin: 0; font: 400 24px/1.15 var(--display); }
.cta-box p { margin: 10px 0 0; color: rgba(238,226,213,.82); font-size: 15px; }
.cta-box .btn { margin-top: 18px; width: 100%; }
.cta-box .rlink { display: inline-block; margin-top: 14px; color: var(--lime); }
.crumb { font: 400 12px var(--mono); color: var(--ink-3); letter-spacing: .04em; margin-bottom: 18px; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--rose-ink); }
.art h3 { margin: 28px 0 0; font: 400 21px/1.25 var(--display); }
.art p a, .art li a, .art td a, .art .callout a { color: var(--rose-ink); font-weight: 500; }
.art p a:hover, .art li a:hover, .art td a:hover { color: var(--ink); }
.art strong { color: var(--ink); font-weight: 600; }
.stat { margin: 24px 0 0; padding: 16px 0 14px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: baseline; }
.stat b { font: 400 clamp(40px, 5vw, 58px)/1 var(--display); letter-spacing: -.02em; color: var(--ink); grid-row: span 2; }
.art .stat p { margin: 0; font-size: 16px; line-height: 1.45; }
.stat a { font: 400 12px var(--mono); letter-spacing: .04em; color: var(--ink-3); margin-top: 6px; }
.stat a:hover { color: var(--rose-ink); }
.tbl { margin: 22px 0 0; overflow-x: auto; border-top: 1px solid var(--ink); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; line-height: 1.45; color: var(--ink-2); min-width: 120px; }
.tbl td:first-child { color: var(--ink); font-weight: 600; }
.callout { margin: 22px 0 0; padding: 14px 18px; border-left: 3px solid var(--rose); background: rgba(196,154,159,.14); }
.callout b { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--rose-ink); }
.art .callout p { margin: 6px 0 0; font-size: 16px; line-height: 1.5; }
.art .src { margin: 14px 0 0; padding-left: 22px; }
.art .src li { font-size: 15px; line-height: 1.45; margin: 8px 0; word-break: break-word; }
.art .src li span { color: var(--ink-3); }
@media (max-width: 900px) { .gh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gcard:nth-child(3n+1) { border-left: 1px solid var(--line-2); padding-left: clamp(14px, 1.6vw, 22px); } .gcard:nth-child(2n+1) { border-left: 0; padding-left: 0; } .aside { position: static; } }
@media (max-width: 600px) { .gh-grid { grid-template-columns: 1fr; } .gcard, .gcard:nth-child(n) { border-left: 0; padding-left: 0; } }

.prog h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.015em; line-height: 1.1; }
.steps3 h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.12; }
.person h2 { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -.01em; }

/* ---- directory ---- */
.dir-head { max-width: 760px; }
.dlay { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(28px, 3vw, 44px); }
.dside { position: sticky; top: 24px; }
.dtool { display: grid; gap: 18px; }
.fil.v { flex-direction: column; flex-wrap: nowrap; gap: 0; margin-top: 28px; padding-bottom: 0; border-bottom: 0; border-top: 1px solid var(--ink); }
.fil.v span.loc { margin: 14px 0 6px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.fil.v button { text-align: left; padding: 12px 0; border-top: 1px solid var(--line-2); width: 100%; }
.fil.v button:first-of-type { border-top: 0; }
.fil.v button[aria-pressed="true"]::after { display: none; }
.fil.v button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 3px 0 0 var(--lime); padding-left: 12px; }
.dtool label { display: block; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.dtool input[type=search], .dtool select { width: 100%; background: transparent; border: 1px solid var(--ink); border-radius: 0; padding: 12px 14px; min-height: 48px; font: 400 16px 'Noto Sans', sans-serif; color: var(--ink); }
.dtool input:focus-visible, .dtool select:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.dtool .dopen { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; font: 500 14px var(--mono); letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.dtool .dopen input { width: 18px; height: 18px; accent-color: var(--charcoal); }
.dcount { margin: 0; font: 400 13px var(--mono); color: var(--ink-3); }
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 32px); margin-top: 18px; }
.pcard { display: flex; flex-direction: column; padding: 20px 0 28px; border-top: 1px solid var(--ink); border-bottom: 0; min-width: 0; }
.pcard .ph { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block; background: var(--paper-2); }
.pcard .kindline { margin-top: 14px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pcard h3 { margin: 6px 0 0; font: 400 26px/1.1 var(--display); letter-spacing: -.01em; }
.pcard h3 button { all: unset; cursor: pointer; }
.pcard h3 button:hover { color: var(--rose-ink); }
.pcard h3 button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.pcard .bl { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.pcard .tg { margin: 10px 0 0; font: 400 13px var(--mono); color: var(--ink-3); }
.pcard .rg { margin: 12px 0 0; display: flex; justify-content: space-between; gap: 12px; font: 400 13px var(--mono); color: var(--ink-3); }
.pcard .st::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--ink-3); opacity: .45; }
.pcard .st.on::before { background: var(--lime); opacity: 1; box-shadow: 0 0 0 1px rgba(36,37,44,.28); }
.pcard .acts { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.pcard .acts .btn { min-height: 44px; padding: 12px 16px; font-size: 14px; }
.pcard .acts .rlink { background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer; }
.dempty { padding: clamp(32px, 5vw, 64px) 0; max-width: 56ch; }
.dempty h2 { margin: 0; font: 400 clamp(26px, 2.6vw, 34px)/1.15 var(--display); }
.dempty p { margin: 12px 0 0; color: var(--ink-2); }
.dempty .btn { margin-top: 20px; }
.djoin { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: clamp(40px, 5vw, 72px); }
.djoin h2 { margin: 0; font: 400 clamp(26px, 2.6vw, 34px)/1.1 var(--display); }
.djoin p { margin: 10px 0 0; color: var(--cream-dim); max-width: 52ch; }
.djoin .btn { margin: 0; }
dialog.prof { padding: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
dialog.prof::backdrop { background: rgba(24,25,31,.62); }
.prof .pg2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.prof .pl { padding: clamp(20px, 3vw, 32px); border-right: 1px solid var(--line-2); }
.prof .pr { padding: clamp(20px, 3vw, 32px); }
.prof .ph { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block; }
.prof h2 { margin: 16px 0 0; font: 400 32px/1.1 var(--display); letter-spacing: -.01em; }
.prof .bio { margin: 14px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.prof .meta { margin: 14px 0 0; font: 400 13px var(--mono); color: var(--ink-3); }
.prof .pr h3 { margin: 0 0 4px; font: 400 24px/1.15 var(--display); }
.prof .pr .sub { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }
.prof .x { position: absolute; top: 8px; right: 8px; background: none; border: 0; min-width: 44px; min-height: 44px; font: 500 14px var(--mono); color: var(--ink-3); cursor: pointer; }
.prof .x:hover { color: var(--ink); }
.prof .closed { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .dlay { grid-template-columns: 1fr; } .dside { position: static; } .fil.v { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; border-top: 0; } .fil.v button { width: auto; border-top: 0; } .fil.v button[aria-pressed="true"] { box-shadow: none; padding-left: 0; } .dtool { grid-template-columns: 1fr 1fr; } .dtool .dsearch { grid-column: 1 / -1; } .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dgrid { grid-template-columns: 1fr; } .dtool { grid-template-columns: 1fr; } .djoin { grid-template-columns: 1fr; } .prof .pg2 { grid-template-columns: 1fr; } .prof .pl { border-right: 0; border-bottom: 1px solid var(--line-2); } }

.adrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.adrow h3 { margin: 0; font: 400 22px/1.2 var(--display); }
.adrow p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.adrow .m { font: 400 13px var(--mono); color: var(--ink-3); }
.adrow .bt { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.adrow select { background: transparent; border: 1px solid var(--ink); padding: 10px 12px; font: 400 14px var(--mono); border-radius: 0; min-height: 44px; }
.adrow .btn { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.adrow .quiet { background: none; border: 0; color: var(--rose-ink); font: 500 14px var(--mono); cursor: pointer; min-height: 44px; padding: 0 8px; }
@media (max-width: 640px) { .adrow { grid-template-columns: 1fr; } }
