/* Built on the Beach portfolio. Tokens, type, and layout follow docs/design/DESIGN_DIRECTION.md. */
@font-face { font-family: "Archivo"; src: url(/fonts/Archivo-var.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url(/fonts/FragmentMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
:root {
  --ground: #FAF6EF; --ground-2: #F4EBDA; --sand: #F3DDB3; --paper: #FFFFFF;
  --ink: #1E3240; --ink-2: #4B5F6E; --ink-3: #566B7A;
  --line: rgba(30,50,64,.14); --line-strong: rgba(30,50,64,.28);
  --accent: #0E7490; --accent-deep: #155E75; --accent-hover: #155E75; --live: #E4572E;
  --bezel: #141C22; --shadow: 30,50,64; --selection: #CDE9F0;
  --font-text: "Archivo", system-ui, sans-serif;
  --font-data: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 48px; --max: 1200px;
  --ease-ios: cubic-bezier(.32,.72,0,1); --t-push: 350ms; --t-sheet: 400ms; --t-fade: 200ms;
  --series-1: #0F8AA8; --series-2: #E4572E; --series-3: #6B4FBB;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ground: #0F1A21; --ground-2: #16242D; --sand: #2A3A45; --paper: #121B22;
  --ink: #EEF3F5; --ink-2: #B3C2CB; --ink-3: #8597A3;
  --line: rgba(238,243,245,.14); --line-strong: rgba(238,243,245,.28);
  --accent: #5CC2DC; --accent-deep: #8ED7EA; --accent-hover: #4AB0CB; --live: #F0785A;
  --bezel: #0A0F13; --shadow: 0,0,0; --selection: #1F4F5E;
  --series-1: #2F9BB7; --series-2: #E8623A; --series-3: #8878E6;
} }
:root[data-theme="dark"] {
  --ground: #0F1A21; --ground-2: #16242D; --sand: #2A3A45; --paper: #121B22;
  --ink: #EEF3F5; --ink-2: #B3C2CB; --ink-3: #8597A3;
  --line: rgba(238,243,245,.14); --line-strong: rgba(238,243,245,.28);
  --accent: #5CC2DC; --accent-deep: #8ED7EA; --accent-hover: #4AB0CB; --live: #F0785A;
  --bezel: #0A0F13; --shadow: 0,0,0; --selection: #1F4F5E;
  --series-1: #2F9BB7; --series-2: #E8623A; --series-3: #8878E6;
}
@media (max-width: 1023px) { :root { --gutter: 20px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--font-text); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
::selection { background: var(--selection); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, li:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.data { font-family: var(--font-data); font-size: 13px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; transition: color .15s ease; }
.link:hover { color: var(--accent-deep); }
.chip { font-family: var(--font-data); font-size: 12.5px; font-weight: 400; line-height: 1.4; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
a.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip.status { color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.chip.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.chip.status.live::before { background: var(--live); }
h2.sec { font-size: 34px; font-weight: 600; font-stretch: 108%; letter-spacing: -0.015em; line-height: 1.1; padding: 0 0 24px; border-bottom: 1px solid var(--line-strong); margin: 128px 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ground); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
@media (max-width: 1023px) { body { font-size: 16px; } h2.sec { font-size: 28px; margin: 80px 0 24px; } }

/* ---------- masthead ---------- */
.mast { position: sticky; top: 0; z-index: 10; height: 64px; background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mast::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity .2s ease; }
.mast.scrolled::after { opacity: 1; }
.mast .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.mast .logo img { height: 34px; width: auto; }
.mast .logo .dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mast .logo .light { display: none; } :root:not([data-theme="light"]) .mast .logo .dark { display: block; } }
:root[data-theme="dark"] .mast .logo .light { display: none; } :root[data-theme="dark"] .mast .logo .dark { display: block; }
.mast nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.mast nav a { padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .15s ease, color .15s ease; }
.mast nav a:hover { border-bottom-color: var(--ink); }
.mast nav a[aria-current="page"] { color: var(--accent); }
@media (max-width: 1023px) { .mast nav { gap: 20px; font-size: 14px; } .mast .logo img { height: 30px; } }

.mast nav a { white-space: nowrap; }
.mast .logo img { flex: none; }
@media (max-width: 520px) {
  .mast { height: auto; }
  .mast .wrap { flex-wrap: wrap; row-gap: 2px; padding-top: 10px; padding-bottom: 6px; }
  .mast .logo img { height: 28px; }
  .mast nav { width: 100%; justify-content: space-between; gap: 12px; }
}

/* ---------- opening and shelf ---------- */
.stage { display: grid; grid-template-columns: 7fr 5fr; column-gap: 24px; align-items: start; }
.stage.noshelf { grid-template-columns: minmax(0, 880px); }
.opening { padding: 96px 0 64px; }
.opening.tight { padding-bottom: 0; }
.display.full { max-width: none; }
.group.first { padding-top: 0; }
.crumb.flush { padding-top: 0; }
.display.full { margin-top: 24px; }
.display { font-size: clamp(42px, 5.4vw, 72px); font-weight: 700; font-stretch: 112%; line-height: 1; letter-spacing: -0.025em; max-width: 13ch; }
.lead { margin-top: 32px; font-size: 22px; line-height: 1.4; color: var(--ink-2); max-width: 44ch; }
.counts { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 6px 0; }
.counts a { padding: 8px 0; margin-right: 24px; border-bottom: 1px solid transparent; }
.counts a:hover { border-bottom-color: var(--ink-3); }
.counts a b { font-weight: 500; color: var(--ink); }
.shelf { position: sticky; top: 96px; height: 620px; margin-top: 96px; }
.shelf .mac { position: absolute; right: 0; top: 0; width: 100%; }
.shelf .phone { position: absolute; left: 0; top: 150px; --w: 212px; z-index: 2; }
.shelf.duo { height: 640px; }
.shelf.duo .phone { --w: 212px; left: auto; right: 150px; top: 0; }
.shelf.duo .phone.second { right: 0; top: 60px; z-index: 1; }
.shelf.solo { height: 560px; }
.shelf.solo .phone { left: auto; right: 80px; top: 0; --w: 260px; }
.shelf.solo .mac { top: 0; }
@media (max-width: 1023px) {
  .opening { padding: 56px 0 40px; display: block; }
  .lead { margin-top: 20px; font-size: 19px; }
  .counts { margin-top: 28px; }
  .shelf { display: none; }
}
.phone { position: relative; width: var(--w, 390px); aspect-ratio: 402 / 874; background: var(--bezel); border-radius: calc(var(--w) * .137); padding: calc(var(--w) * .026); box-shadow: 0 1px 2px rgba(var(--shadow), .18), 0 24px 48px -16px rgba(var(--shadow), .35); }
.phone .screen { position: absolute; inset: calc(var(--w) * .026); border-radius: calc(var(--w) * .112); overflow: hidden; background: var(--paper); }
.phone .island { position: absolute; top: 1.3%; left: 50%; width: 31.3%; height: 4.2%; transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 5; pointer-events: none; }
.shelf .phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .22s cubic-bezier(.2,0,0,1); }
.shelf img[hidden] { display: block; opacity: 0; }
.shelf picture { display: contents; }
.mac { width: 100%; aspect-ratio: 1440 / 900; border-radius: 12px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(var(--shadow), .12), 0 32px 64px -24px rgba(var(--shadow), .35); display: flex; flex-direction: column; }
.mac .bar { height: 38px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--ground-2); border-bottom: 1px solid var(--line); }
.mac .bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); }
.mac .win { position: relative; flex: 1; overflow: hidden; }
.shelf .mac .win img { position: absolute; inset: 0; width: 140%; height: auto; max-width: none; object-fit: cover; object-position: top left; transition: opacity .22s cubic-bezier(.2,0,0,1) .06s; }
@media (prefers-reduced-motion: reduce) { .shelf .phone .screen img, .shelf .mac .win img { transition: none; } }

/* ---------- index ---------- */
.index { padding: 64px 0 0; }
.group { padding-top: 48px; }
.group:first-child { padding-top: 0; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 0 12px; border-bottom: 1px solid var(--line-strong); }
.group-head h2 { font-size: 34px; font-weight: 600; font-stretch: 108%; letter-spacing: -0.015em; line-height: 1.1; }
.group-head h2 a:hover { text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1.5px; }
.group-intro { max-width: 52ch; color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 20px; column-gap: 16px; align-items: center; min-height: 88px; padding: 16px 0; border-bottom: 1px solid var(--line); position: relative; transition: background-color .15s ease; }
.row:focus-visible { background: var(--ground-2); }
.row:hover .name, .row:focus-visible .name { text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1.5px; }
.row .n { font-family: var(--font-data); font-size: 13px; color: var(--ink-3); padding-top: 4px; align-self: start; }
.row .name { font-size: 22px; font-weight: 600; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1.2; }
.row .promise { color: var(--ink-2); font-size: 16px; margin-top: 4px; max-width: 52ch; }
.row .meta { max-width: 320px; display: flex; gap: 6px 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.row .go { color: var(--ink-3); transition: color .15s ease; }
.row:hover .go { color: var(--ink); }
.row .thumb { display: none; }
@media (max-width: 1023px) {
  .group { padding-top: 40px; } .group-head h2 { font-size: 28px; } .stage { display: block; } .index { padding-top: 24px; }
  .row { grid-template-columns: 28px 1fr 44px; min-height: 72px; padding: 14px 0; }
  .row .name { font-size: 19px; }
  .row .promise { font-size: 15px; }
  .row .meta { grid-column: 2; justify-content: flex-start; margin-top: 8px; }
  .row .go { display: none; }
  .row .thumb:empty { visibility: hidden; }
  .row .thumb { display: block; grid-column: 3; grid-row: 1 / span 2; width: 44px; height: 92px; border-radius: 8px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
  .row .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .row .thumb.wide img { width: 160px; max-width: none; height: 100%; object-fit: cover; object-position: top left; }
  .chip { font-size: 12px; }
}
.row.skill { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
.row.skill .promise { max-width: none; }
.row.skill .meta { justify-content: flex-start; }
@media (max-width: 1023px) { .row.skill { grid-template-columns: 28px 1fr; } .row.skill .meta { grid-column: 2; } }
.note { color: var(--ink-3); font-size: 15px; padding: 20px 0; border-bottom: 1px solid var(--line); }

/* ---------- how ---------- */
.how { padding: 128px 0 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.how h2 { grid-column: 1 / span 12; font-size: 34px; font-weight: 600; font-stretch: 108%; letter-spacing: -0.015em; line-height: 1.1; padding-bottom: 24px; border-bottom: 1px solid var(--line-strong); margin-bottom: 32px; }
.how .text { grid-column: 1 / span 8; max-width: 64ch; color: var(--ink-2); }
.how .text p + p { margin-top: 16px; }
.how ul { grid-column: 8 / span 5; }
.how li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.how li:first-child { border-top: 1px solid var(--line); }
.how li .n { font-family: var(--font-data); font-size: 13px; color: var(--ink-3); padding-top: 3px; }
@media (max-width: 1023px) { .how { padding-top: 80px; display: block; } .how h2 { font-size: 28px; } .how ul { margin-top: 32px; } }

/* ---------- footer ---------- */
footer { margin-top: 128px; padding: 48px 0 56px; border-top: 1px solid var(--line-strong); }
footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
footer .mark { display: flex; align-items: center; gap: 14px; }
footer .mark img { width: 32px; height: 32px; border-radius: 8px; }
footer .mark b { font-weight: 600; }
footer .mark span { display: block; color: var(--ink-3); font-size: 14px; }
footer nav { display: flex; gap: 24px; font-size: 15px; }
@media (max-width: 1023px) { footer { margin-top: 80px; } }

/* ---------- project hero ---------- */
.crumb { padding: 40px 0 0; display: flex; gap: 10px; }
.crumb a:hover { color: var(--ink); }
.hero { padding: 24px 0 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.hero .say { grid-column: 1 / span 5; grid-row: 1; padding-top: 24px; }
.hero .facts { grid-column: 1 / span 5; grid-row: 2; }
.hero .demo { grid-column: 6 / span 7; grid-row: 1 / span 3; min-width: 0; }
.hero.wide .say, .hero.wide .facts { grid-column: 1 / span 4; }
.hero.wide .demo { grid-column: 5 / span 8; }
.hero.wide h1 { font-size: clamp(32px, 3.4vw, 46px); overflow-wrap: anywhere; }
.hero h1 { font-size: clamp(36px, 4.2vw, 56px); font-weight: 700; font-stretch: 112%; line-height: 1.02; letter-spacing: -0.02em; }
.hero .lead { margin-top: 24px; font-size: 21px; line-height: 1.4; color: var(--ink-2); max-width: 34ch; }
.hero .chips { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 500; font-size: 16px; margin-top: 32px; transition: background-color .15s ease; }
.btn:hover { background: var(--accent-hover); }
:root[data-theme="dark"] .btn { color: #0F1A21; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #0F1A21; } }
.disclaimer { margin-top: 24px; font-size: 14px; color: var(--ink-3); max-width: 48ch; }
.hero.nodemo .say, .hero.nodemo .facts { grid-column: 1 / span 7; }
.hero.nodemo .lead { max-width: 44ch; }
@media (max-width: 1023px) {
  .hero, .hero.wide { display: flex; flex-direction: column; padding-top: 16px; }
  .hero .say { padding-top: 32px; order: 1; }
  .hero .demo { order: 2; margin-top: 24px; }
  .hero .facts { order: 3; }
  .hero .lead { font-size: 19px; margin-top: 16px; }
  .hero .chips { margin-top: 24px; }
  .btn { margin-top: 24px; }
}

/* ---------- tour ---------- */
.tour { display: grid; grid-template-columns: 390px 1fr; column-gap: 32px; align-items: start; }
.tour .phone { --w: 390px; }
.tour.mac-tour { display: block; }
.tour .phone .screen { background: #F3F7FA; }
.layer { position: absolute; inset: 0; background: #F3F7FA; will-change: transform, opacity; }
.layer img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.layer[hidden] { display: none; }
.hot { position: absolute; background: transparent; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 8px; touch-action: manipulation; }
.hot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, 44px); transform: translateY(-50%); }
.hot::after { content: ""; position: absolute; inset: -6px; border: 2px solid var(--accent); border-radius: 12px; opacity: 0; pointer-events: none; }
.hot.pulse::after { animation: pulse .9s ease-out 1; }
@keyframes pulse { 0% { opacity: .4; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.06); } }
.layer.under { transition: transform var(--t-push) var(--ease-ios), opacity var(--t-push) var(--ease-ios), border-radius var(--t-sheet) var(--ease-ios); }
.layer.enter-push { transform: translateX(100%); }
.layer.enter-sheet { transform: translateY(100%); border-radius: 12px 12px 0 0; overflow: hidden; }
.layer.enter-tab { opacity: 0; }
.layer.moving { transition: transform var(--t-push) var(--ease-ios), opacity var(--t-fade) ease; }
.layer.moving.enter-sheet { transition-duration: var(--t-sheet); }
.layer.pushed-under { transform: translateX(-30%); opacity: .9; }
.layer.sheet-under { transform: scale(.92); border-radius: 10px; opacity: .7; }
.steps { padding-top: 6px; }
.steps li { font-size: 15px; line-height: 1.45; display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 11px 0 11px 14px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); }
.js .steps li { cursor: pointer; }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li .n { font-family: var(--font-data); font-size: 13px; color: var(--ink-3); padding-top: 3px; }
.steps li[aria-current="step"] { color: var(--ink); font-weight: 500; }
.steps li[aria-current="step"]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--accent); }
.js .steps li:hover { color: var(--ink); }
.controls { display: none; gap: 8px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.js .controls { display: flex; }
.controls button { font: 500 14px/1 var(--font-text); color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; height: 36px; padding: 0 14px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.controls button:disabled { opacity: .45; cursor: default; }
.controls button:disabled:hover { background: transparent; border-color: var(--line-strong); }
.controls button:hover { background: var(--ground-2); border-color: var(--ink-3); }
.sample-note { margin-top: 12px; }
.caption, .dots { display: none; }
.mac-tour .tourframe { aspect-ratio: auto; }
.tourscroll { min-width: 0; }
.phone-only { display: none; }
.mac-tour .tourframe .win { flex: none; aspect-ratio: 1440 / 900; background: #F3F7FA; }
.mac-tour .layer img { object-position: top left; }
.mac-tour .steps { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 32px; margin-top: 24px; }
.mac-tour .steps li:nth-child(2) { border-top: 1px solid var(--line); }
@media (max-width: 1023px) {
  .tour { display: block; }
  .tour .phone { --w: min(100vw - 40px, 360px); margin: 0 auto; }
  .js .steps { display: none; }
  .js .caption { display: block; text-align: center; margin: 20px auto 0; max-width: 36ch; color: var(--ink-2); font-size: 15px; min-height: 2.6em; }
  .js .dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
  .dots i.on { background: var(--accent); }
  .controls { justify-content: center; }
  .sample-note { text-align: center; }
  .mac-tour .steps { display: block; }
  .mac-tour .steps { margin-top: 16px; }
}
@media (max-width: 699px) {
  .tour.desk-only { display: none; }
  .tour.phone-only { display: block; }
  /* A Mac tour with no phone variant: the window at twice the width, scrolled sideways. Never a 4x shrink. */
  .tourscroll { overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-color: var(--line-strong) transparent; }
  .tourscroll .tourframe { width: 200%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .layer, .layer.under, .layer.moving { transition: none !important; } .hot.pulse::after { animation: none; } html { scroll-behavior: auto; } }

/* ---------- project body ---------- */
.prose { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.prose .text { grid-column: 1 / span 7; max-width: 64ch; color: var(--ink-2); }
.prose .text p + p { margin-top: 16px; }
.prose .diagram { grid-column: 8 / span 5; margin: 0; }
.prose.nodiagram .text { grid-column: 1 / span 8; }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { margin-top: 10px; }
@media (max-width: 1023px) { .prose { display: block; } .prose .diagram { margin-top: 32px; } }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-family: var(--font-data); font-size: 13px; font-weight: 400; color: var(--ink-3); padding: 0 0 10px; border-bottom: 1px solid var(--line-strong); }
td { padding: 14px 24px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td:first-child { font-weight: 500; width: 32%; }
td:last-child { color: var(--ink-2); padding-right: 0; }
@media (max-width: 1023px) { table, thead, tbody, tr, th, td { display: block; } thead { display: none; } tr { border-bottom: 1px solid var(--line); padding: 14px 0; } td, td:first-child { border: 0; padding: 0; width: auto; } td:last-child { margin-top: 4px; } }
.notes li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 12px; max-width: 72ch; }
.notes li .n { font-family: var(--font-data); font-size: 13px; color: var(--ink-3); padding-top: 3px; }
.spec { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; margin: 0; }
.spec div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--font-data); font-size: 13px; color: var(--ink-3); padding-top: 3px; }
.spec dd { margin: 0; }
.spec .chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; }
@media (max-width: 1023px) { .spec { grid-template-columns: 1fr; } .spec div { grid-template-columns: 120px 1fr; } }
.gallery { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 0 24px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-color: var(--line-strong) transparent; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: start; }
.gallery .phone { --w: 240px; }
.gallery .phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gallery .mac { width: 460px; aspect-ratio: auto; }
.gallery .mac .bar { height: 22px; padding: 0 10px; gap: 6px; }
.gallery .mac .bar i { width: 8px; height: 8px; }
.gallery .mac .win { flex: none; aspect-ratio: 1440 / 900; }
.gallery .mac .win img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.plainframe { width: 200px; border-radius: 28px; overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(var(--shadow), .12), 0 32px 64px -24px rgba(var(--shadow), .35); }
.plainframe img { width: 100%; height: auto; }
.gallery figure.watch figcaption { max-width: 200px; }
.gallery figcaption { margin-top: 12px; max-width: 240px; font-size: 14px; color: var(--ink-2); }
.gallery.macg figcaption { max-width: 460px; }
@media (max-width: 1023px) { .gallery .mac { width: 320px; } .gallery.macg figcaption { max-width: 320px; } }
.next { margin-top: 128px; }
.next .row { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; column-gap: 16px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); min-height: 0; }
.next .row .promise { margin-top: 4px; }
.nextlabel { align-self: start; white-space: nowrap; }
@media (max-width: 1023px) { .next { margin-top: 80px; } .next .row { grid-template-columns: minmax(0, 1fr) 20px; } .nextlabel { grid-column: 1; grid-row: 2; padding-top: 8px; } .next .row .go { display: block; grid-column: 2; grid-row: 1; } }

/* ---------- plain pages ---------- */
.page { padding: 64px 0 0; max-width: 64ch; }
.page h1 { font-size: clamp(36px, 4.2vw, 56px); font-weight: 700; font-stretch: 112%; line-height: 1.02; letter-spacing: -0.02em; }
.page .lead { max-width: 44ch; }
.page p + p { margin-top: 16px; }
.page .body { margin-top: 32px; color: var(--ink-2); }

/* ---------- skills ---------- */
.row.skill .chip.more { border-style: dashed; color: var(--ink-3); }
.row.skill .chip.more:hover { color: var(--ink); }

/* ---------- tablet board frame (DESIGN_DIRECTION 1.12) ---------- */
.board { width: 100%; background: var(--bezel); border-radius: 18px; padding: 12px; box-shadow: 0 1px 2px rgba(var(--shadow), .18), 0 24px 48px -16px rgba(var(--shadow), .35); }
.board .win { position: relative; border-radius: 8px; overflow: hidden; background: #F3F7FA; aspect-ratio: var(--ar, 16 / 10); }
.board .layer img { object-position: top left; }
.gallery .board { width: 460px; }
@media (max-width: 1023px) { .gallery .board { width: 320px; } }

/* ---------- spec plates ---------- */
.platestrip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--line-strong) transparent; padding-bottom: 8px; }
.plate { margin: 0; flex: 0 0 100%; scroll-snap-align: start; min-width: 0;
  --plate-paper: #FFFFFF; --plate-ink: #1E3240; --plate-ink-2: #4B5F6E; --plate-grid: rgba(30,50,64,.10); --plate-accent: #0E7490; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plate { --plate-paper: #121B22; --plate-ink: #EEF3F5; --plate-ink-2: #B3C2CB; --plate-grid: rgba(238,243,245,.10); --plate-accent: #5CC2DC; } }
:root[data-theme="dark"] .plate { --plate-paper: #121B22; --plate-ink: #EEF3F5; --plate-ink-2: #B3C2CB; --plate-grid: rgba(238,243,245,.10); --plate-accent: #5CC2DC; }
.plate svg { width: 100%; height: auto; display: block; background: var(--plate-paper); border: 1px solid var(--line); border-radius: 0; font-family: var(--font-data); }
.plate figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); max-width: 64ch; }

/* ---------- architecture drawing ---------- */
.arch { font-family: var(--font-data); }

/* ---------- terminal ---------- */
.term { max-width: 720px; }
.termwin { border-radius: 10px; overflow: hidden; background: #0F1A21; color: #EEF3F5; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(var(--shadow), .12), 0 32px 64px -24px rgba(var(--shadow), .35); }
.termwin .bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #16242D; border-bottom: 1px solid rgba(238,243,245,.14); }
.termwin .bar i { width: 12px; height: 12px; border-radius: 50%; background: rgba(238,243,245,.28); }
.termbody { margin: 0; padding: 20px; font: 400 13px/1.55 var(--font-data); white-space: pre-wrap; overflow-wrap: anywhere; aspect-ratio: 16 / 10; overflow: auto; max-height: 520px; scrollbar-color: rgba(238,243,245,.28) transparent; }
.termbody .tl { display: block; min-height: 1.55em; padding-left: 2ch; text-indent: -2ch; }
.termbody .tl.cmd { padding-left: 0; text-indent: 0; }
.termbody .tl.cmd b { color: var(--accent); font-weight: 400; margin-right: 1ch; }
:root:not([data-theme="dark"]) .termbody .tl.cmd b { color: #5CC2DC; }
.termbody .cursor { display: inline-block; width: 1ch; height: 1.1em; background: #EEF3F5; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .termbody .cursor { display: none; } }
.term-actions { margin-top: 12px; display: none; gap: 20px; }
.js .term-actions { display: flex; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--accent); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; cursor: pointer; }
.linkbtn:hover { color: var(--accent-hover); }
.term-cap { margin-top: 12px; }

/* ---------- charts ---------- */
.charts { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.chartbox { min-width: 0; }
.chartbox { margin: 0; }
.chartbox .ct { font-weight: 500; margin-bottom: 8px; }
.chartbox .plot { overflow-x: auto; }
.chartbox svg { width: 100%; height: auto; display: block; overflow: visible; }
@media (max-width: 699px) { .chartbox .plot svg { min-width: 560px; } }
.chartbox .ax { font: 400 11px var(--font-data); fill: var(--ink-3); }
.chartbox .lab { font: 400 11px var(--font-data); fill: var(--ink-2); }
.chartbox .line { stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chartbox .s1 { stroke: var(--accent); fill: var(--accent); }
.chartbox .line.s1 { fill: none; }
.chartbox .s2d { stroke: var(--ink-2); fill: var(--ink-2); stroke-dasharray: 4 3; }
.chartbox .line.s2d { fill: none; }
.chartbox .line.s2d, .chartbox .dot.s2d { stroke: var(--ink-2); }
.chartbox .dot.s2d { stroke-dasharray: none; }
.chartbox .s2 { stroke: var(--series-2); fill: var(--series-2); }
.chartbox .line.s2 { fill: none; }
.chartbox .s3 { stroke: var(--series-3); fill: var(--series-3); }
.chartbox .line.s3 { fill: none; }
.chartbox .m1 { stroke: var(--series-1); fill: var(--series-1); } .chartbox .m2 { stroke: var(--series-2); fill: var(--series-2); } .chartbox .m3 { stroke: var(--series-3); fill: var(--series-3); }
.chartbox .line.m1, .chartbox .line.m2, .chartbox .line.m3 { fill: none; }
.chartbox .bar { stroke: none; }
.chartbox .dot { stroke: var(--ground); stroke-width: 1.5; stroke-dasharray: none; }
.chartbox .src { margin-top: 8px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
.legend .lg { display: inline-flex; align-items: center; gap: 8px; }
.legend .sw { width: 20px; height: 0; border-top: 2px solid var(--accent); }
.legend .sw.s2d { border-top: 2px dashed var(--ink-2); }
.legend .sw.m1 { border-top-color: var(--series-1); } .legend .sw.m2 { border-top-color: var(--series-2); } .legend .sw.m3 { border-top-color: var(--series-3); }
details.tbl { margin-top: 8px; }
details.tbl summary { cursor: pointer; font-family: var(--font-data); font-size: 13px; color: var(--ink-3); }
details.tbl table { margin-top: 12px; font-size: 14px; }
.chartbox.stat { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.statv { font: 700 56px/1 var(--font-text); font-stretch: 112%; letter-spacing: -0.02em; }
.stat figcaption { margin-top: 12px; display: grid; gap: 4px; }

.tblscroll { overflow-x: auto; }
.tblscroll table { min-width: 480px; }
.tblscroll td, .tblscroll th { padding-right: 16px; }
.tblscroll td:first-child { width: auto; }

@media (max-width: 699px) {
  .platestrip { scroll-snap-type: x proximity; }
  .plate { flex: 0 0 300%; }
  p.platehint { display: block; }
  .plate figcaption { position: sticky; left: 0; max-width: calc(50% - 8px); }
}

.platehint { display: none; margin-top: 8px; }
.chartbox .plot.nobar svg { min-width: 0; }
@media (max-width: 1023px) {
  .term, .term > *, .termbody, .termwin { width: 100%; max-width: none; }
  .termbody { aspect-ratio: auto; min-height: 300px; }
}
.prose .text p.built { margin-top: 20px; font-size: 14px; color: var(--ink-3); }
.prose .text h3.ptitle { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 14px; }

/* ---------- fund stage (FUND_FOCUS 1.2) ---------- */
.fundstage { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 96px 0; margin-top: 16px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.fundstage a { display: block; min-width: 0; }
.fundstage .data { display: block; margin-top: 16px; }
.fundstage a:hover .data, .fundstage a:focus-visible .data { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; }
.fundstage .dev-mac { grid-column: 1 / span 7; position: relative; z-index: 1; }
.fundstage .dev-phone { grid-column: 8 / span 5; margin-left: -72px; position: relative; z-index: 2; }
.fundstage .mac { aspect-ratio: auto; }
.fundstage .mac .win { flex: none; }
.fundstage .mac .win img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.fundstage .phone { --w: 232px; }
.fundstage .phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 1023px) {
  .fundstage { display: flex; flex-direction: column; align-items: stretch; padding: 48px 0; gap: 40px; margin-top: 0; }
  .fundstage .dev-phone { margin-left: 0; }
  .fundstage .phone { --w: 220px; margin: 0 auto; }
  .fundstage .dev-phone .data { text-align: center; }
}
.opening + .fundstage { margin-top: 0; }
.fundstage + .stage .index { padding-top: 64px; }
.fundstage + .stage .shelf { margin-top: 64px; }
@media (max-width: 1023px) { .fundstage + .stage .index { padding-top: 40px; } }

/* ---------- fund project pages: walkthrough, numbers, call to action ---------- */
.walk { display: flex; flex-direction: column; gap: 96px; padding-top: 16px; }
.wt { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.wt h3 { font-size: 22px; font-weight: 600; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1.2; }
.wt-text p { margin-top: 12px; max-width: 48ch; color: var(--ink-2); }
.wt-screen { min-width: 0; }
.wt-mac .wt-text { grid-column: 1 / span 5; grid-row: 1; }
.wt-mac .wt-screen { grid-column: 6 / span 7; grid-row: 1; }
.wt-mac.flip .wt-text { grid-column: 8 / span 5; }
.wt-mac.flip .wt-screen { grid-column: 1 / span 7; }
.wt-phone .wt-text { grid-column: 1 / span 6; grid-row: 1; }
.wt-phone .wt-screen { grid-column: 7 / span 5; grid-row: 1; container-type: inline-size; display: flex; justify-content: center; }
.wt-phone.flip .wt-text { grid-column: 7 / span 6; }
.wt-phone.flip .wt-screen { grid-column: 2 / span 5; }
.wt .mac { aspect-ratio: auto; }
.wt .mac .win { flex: none; }
.wt .mac .win img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.wt .phone { --w: 80cqw; }
.wt .phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 1023px) {
  .walk { gap: 56px; }
  .wt { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .wt-screen { container-type: inline-size; }
  .wt-phone .wt-screen { display: flex; justify-content: center; }
  .wt .phone { --w: min(78cqw, 280px); }
  .wt h3 { font-size: 19px; }
}
.numbers { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); }
.numbers li { padding: 8px 24px; border-left: 1px solid var(--line); min-width: 0; }
.numbers li:first-child { border-left: 0; padding-left: 0; }
.numbers b { display: block; font: 700 56px/1 var(--font-text); font-stretch: 112%; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.numbers .data { display: block; margin-top: 12px; }
@media (max-width: 1023px) {
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers li, .numbers li:first-child { border-left: 1px solid var(--line); padding: 20px 16px 20px 16px; }
  .numbers li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .numbers li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .numbers b { font-size: 44px; }
}
.cta p { font-size: 22px; line-height: 1.4; color: var(--ink-2); max-width: 44ch; }
.cta .link { overflow-wrap: anywhere; }
@media (max-width: 1023px) { .cta p { font-size: 19px; } }

/* ---------- /fund/ landing ---------- */
.build { max-width: 64ch; }
.build h3 { font-size: 22px; font-weight: 600; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1.2; margin-top: 40px; }
.build h3:first-child { margin-top: 0; }
.build p { margin-top: 10px; color: var(--ink-2); }
.index.flat { padding-top: 0; }
.teasers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.teaser { display: block; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.teaser h3 { font-size: 22px; font-weight: 600; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1.2; }
.teaser:hover h3, .teaser:focus-visible h3 { text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1.5px; }
.teaser p { margin-top: 10px; color: var(--ink-2); max-width: 52ch; }
.teaser .data { display: block; margin-top: 12px; }
.fund-note { margin-top: 96px; }
@media (max-width: 1023px) { .teasers { display: block; } .teaser { padding-right: 0; } .fund-note { margin-top: 56px; } .build h3 { margin-top: 32px; } }
.opening .say .display { max-width: 16ch; }
@media (max-width: 1023px) {
  .fundstage .mac .bar, .wt .mac .bar { height: 24px; padding: 0 10px; gap: 6px; }
  .fundstage .mac .bar i, .wt .mac .bar i { width: 8px; height: 8px; }
}
