@font-face { font-family: "Geist"; src: url(/fonts/geist-latin.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono-latin.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); }
html, body { margin: 0; }
[hidden] { display: none !important; }
/* Layout: a flight log. Midnight hero with live orbit tracks; then the long MSBAI stint as the
   main body of work on gridded engineering paper; then the studio's own projects; services,
   apps, about (press portrait + dated log), contact as a dark close. */
:root {
  --bg: #F2F4F6;
  --surface: #FFFFFF;
  --surface-2: #E8ECEF;
  --ink: #12161B;
  --muted: #59626B;
  --line: rgba(18, 22, 27, .12);
  --line-strong: rgba(18, 22, 27, .22);
  --signal: #E4571C;
  --blue: #2F6FDB;
  --ok: #1F8A57;
  --shadow: 0 1px 2px rgba(18,22,27,.05), 0 8px 28px rgba(18,22,27,.07);
  --shadow-lift: 0 2px 4px rgba(18,22,27,.06), 0 16px 40px rgba(18,22,27,.11);
  --warm-a: #FBF3EC;
  --warm-b: #F1E6DC;
  --night: #0D141C;
  --night-2: #172230;
  --night-ink: #EEF2F5;
  --night-muted: #A3AEBA;
  --night-line: rgba(238, 242, 245, .14);
  --glass: rgba(13, 20, 28, .72);
  --f-display: "Geist", -apple-system, "SF Pro Display", system-ui, "Segoe UI", sans-serif;
  --f-body: "Geist", -apple-system, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-h: 60px;
  --r-lg: 22px;
  --r-md: 14px;
  --wrap: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F141A; --surface: #161D25; --surface-2: #1D2630; --ink: #E8ECF0; --muted: #9BA6B1;
    --line: rgba(232,236,240,.12); --line-strong: rgba(232,236,240,.22); --signal: #FF7A45; --blue: #6AA3F5; --ok: #4CC38A;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.28);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.35), 0 16px 40px rgba(0,0,0,.4);
    --night: #0A1016; --night-2: #141E2A; --warm-a: #2A211B; --warm-b: #1C1713; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F141A; --surface: #161D25; --surface-2: #1D2630; --ink: #E8ECF0; --muted: #9BA6B1;
  --line: rgba(232,236,240,.12); --line-strong: rgba(232,236,240,.22); --signal: #FF7A45; --blue: #6AA3F5; --ok: #4CC38A;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.28);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.35), 0 16px 40px rgba(0,0,0,.4);
  --night: #0A1016; --night-2: #141E2A; --warm-a: #2A211B; --warm-b: #1C1713; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--f-mono); font-size: 13px; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { clip-path: none; width: auto; height: auto; padding: 8px 12px; background: var(--surface); color: var(--ink); z-index: 30; top: 8px; left: 8px; border-radius: 8px; }

/* buttons: small soft pills */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font: 500 15px/1 var(--f-body); text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: transform .18s cubic-bezier(.2,.7,.2,1), background-color .18s, border-color .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 14px; height: 14px; transition: transform .18s; }
.btn:hover svg { transform: translateX(2px); }
.btn--light { background: var(--night-ink); color: #0D141C; }
.btn--light:hover { box-shadow: 0 6px 20px rgba(238,242,245,.18); }
.btn--ghost-night { border-color: var(--night-line); color: var(--night-ink); background: rgba(238,242,245,.04); }
.btn--ghost-night:hover { border-color: rgba(238,242,245,.32); background: rgba(238,242,245,.08); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 14px; }
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; padding-bottom: 1px; }
.link:hover { background-size: 100% 1px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; text-decoration: none; }
.link-arrow svg { width: 13px; height: 13px; transition: transform .18s; }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: var(--glass); color: var(--night-ink); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--night-line); }
.nav .wrap { height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.brand small { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--night-muted); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--night-muted); transition: color .18s; }
.nav-links a:hover { color: var(--night-ink); }
@media (max-width: 820px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 85% 110%, var(--night-2) 0%, var(--night) 62%); color: var(--night-ink); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero .wrap { padding-top: calc(var(--nav-h) + clamp(72px, 10vw, 128px)); padding-bottom: clamp(56px, 8vw, 96px); }
.hero-copy { max-width: 680px; display: grid; gap: 24px; }
.pill { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(238,242,245,.05); font-size: 13px; color: var(--night-muted); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(228,87,28,.18); }
.hero h1 { font-size: clamp(40px, 6vw, 74px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.hero h1 span { color: var(--night-muted); }
.hero .lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: #C9D2DB; max-width: 58ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.proof { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 28px; padding-top: 24px; border-top: 1px solid var(--night-line); }
.proof div { display: grid; gap: 4px; }
.proof b { font-family: var(--f-display); font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.proof span { font-size: 14px; color: var(--night-muted); }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr 1fr; } }
.motion-toggle { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 20px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(13,20,28,.5); color: var(--night-muted); font: 500 13px var(--f-body); cursor: pointer; }
.motion-toggle:hover { color: var(--night-ink); }
@media (max-width: 760px) { .hero canvas { opacity: .5; } .motion-toggle { bottom: 10px; } }

/* sections */
main > section { padding-block: clamp(80px, 10vw, 128px); scroll-margin-top: var(--nav-h); }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 4vw, 48px); max-width: 780px; }
.eyebrow { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; }
.sec-head h2 .muted { font-weight: 500; }
.sec-head p { font-size: 17px; color: var(--muted); max-width: 62ch; }

/* MSBAI intro band */
.org { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; margin-bottom: 20px; }
.org-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px; display: grid; gap: 16px; align-content: start; }
.org-card h3 { font-size: 22px; letter-spacing: -.02em; font-weight: 600; }
.org-card p { color: var(--muted); }
.units { display: grid; gap: 0; border-top: 1px solid var(--line); }
.units div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.units b { font-weight: 600; }
.units span { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); }
.paper { display: grid; gap: 8px; }
.paper q { font-family: var(--f-display); font-size: 17px; line-height: 1.4; font-weight: 500; quotes: none; letter-spacing: -.01em; }
@media (max-width: 900px) { .org { grid-template-columns: 1fr; } }

/* work grid */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.case { grid-column: span 6; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.case:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.w7 { grid-column: span 7; } .w5 { grid-column: span 5; } .w4 { grid-column: span 4; } .w8 { grid-column: span 8; } .w12 { grid-column: span 12; }
.case-vis { position: relative; height: var(--vh, 300px); overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.case-body { display: grid; gap: 10px; padding: 24px 26px 26px; align-content: start; flex: 1; }
.case-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); }
.case h3 { font-size: 21px; line-height: 1.22; letter-spacing: -.02em; font-weight: 600; }
.case p { color: var(--muted); max-width: 60ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tags span { font-family: var(--f-mono); font-size: 12.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.case .link-arrow { margin-top: 4px; justify-self: start; }
@media (max-width: 980px) { .case, .w7, .w5, .w4, .w8, .w12 { grid-column: span 12; } .case-vis { height: auto; min-height: 240px; } }

/* gridded engineering paper */
.vis-grid { background-color: var(--surface-2); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.frag { position: absolute; inset: 26px 26px auto 26px; max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.frag.center { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(86%, 440px); }
@media (max-width: 980px) { .frag, .frag.center { position: relative; inset: auto; transform: none; margin: 24px; width: auto; } }
.frag-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.frag-head b { font-weight: 600; font-size: 14px; }
.frag-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.chip.warn { color: var(--signal); background: color-mix(in srgb, var(--signal) 12%, transparent); }
.chip.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.svgvis { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 980px) { .svgvis { position: relative; height: 260px; } }

.regimes { display: grid; gap: 10px; padding: 14px 16px; }
.regime { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 12px; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2F6FDB, #5AA0F2); width: var(--w); }

.rows { display: grid; }
.rows div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.rows div:last-child { border-bottom: 0; }
.rows b { font-weight: 500; font-size: 14px; }
.rows .mono { color: var(--muted); font-size: 12.5px; }

.plan { display: grid; gap: 2px; padding: 10px 12px 12px; margin: 0; }
.plan li { list-style: none; display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.plan li.on { color: var(--ink); }
.plan li.run { color: var(--ink); background: var(--surface-2); }
.plan li i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-strong); justify-self: center; }
.plan li.on i { background: var(--ok); border-color: var(--ok); }
.plan li.run i { background: var(--signal); border-color: var(--signal); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 25%, transparent); } }

.term { background: #0E1318; color: #D7DEE5; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.7; padding: 14px 16px; border-radius: var(--r-md); box-shadow: var(--shadow); }
.term .p { color: #7FA7E6; } .term .g { color: #6FD39B; } .term .d { color: #8A96A3; }

.record { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; padding: 14px 16px; margin: 0; }
.record dt { color: var(--muted); font-family: var(--f-mono); font-size: 12.5px; }
.record dd { margin: 0; font-size: 14px; }

.stages { display: flex; gap: 4px; padding: 12px 16px 4px; }
.stages span { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); }
.stages span.done { background: var(--ok); } .stages span.now { background: var(--signal); }
.stage-labels { display: flex; justify-content: space-between; padding: 4px 16px 10px; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }

.order { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px 16px; }
.order span { border: 1px solid var(--line); border-radius: 8px; padding: 8px 6px; text-align: center; font-size: 13px; }
.order span.sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; font-weight: 500; }
.outs { display: flex; gap: 6px; padding: 0 16px 14px; flex-wrap: wrap; }
.outs i { font-style: normal; font-family: var(--f-mono); font-size: 11.5px; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.outs i.on { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }

.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 16px 14px; }
.groups div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 6px; }
.groups b { font-size: 13px; font-weight: 600; }
.dots { display: flex; gap: 4px; flex-wrap: wrap; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); }
.dots i.f { background: #F2A541; border-color: transparent; }

/* SeeMee + myphone */
.vis-seemee { background: radial-gradient(90% 80% at 30% 100%, rgba(242,120,48,.24), transparent 65%), linear-gradient(160deg, var(--warm-a), var(--warm-b)); }
.phones { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; gap: 18px; padding-top: 30px; }
.phone { width: 160px; flex: none; border-radius: 30px; padding: 6px; background: #0E1114; box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 24px 48px rgba(40,20,8,.25); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.phone img { border-radius: 24px; width: 100%; height: auto; }
.phone.back { transform: translateY(34px); }
.case:hover .phone.front { transform: translateY(-4px); }
@media (max-width: 980px) { .phones { position: relative; padding: 26px 0 0; height: 300px; } }
.vis-myphone { background: radial-gradient(70% 90% at 50% 100%, #1B2430, #050608 70%); }
.classic { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; gap: 28px; padding-top: 28px; }
.classic img { width: 150px; height: auto; transition: transform .45s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
.classic img + img { transform: translateY(22px); }
.case:hover .classic img:first-child { transform: translateY(-4px); }
@media (max-width: 980px) { .classic { position: relative; height: 300px; padding-top: 24px; } .classic img { width: 120px; } }

.group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: clamp(48px, 6vw, 72px) 0 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.group-title h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }

/* services */
.svc { border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.svc-row h3 { font-size: 21px; letter-spacing: -.02em; font-weight: 600; }
.svc-row p { color: var(--muted); max-width: 58ch; }
.svc-row .mono { color: var(--muted); text-align: right; }
.svc-row .mono a { color: var(--ink); }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; gap: 8px; } .svc-row .mono { text-align: left; } }
.process { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.process h3 { grid-column: 1 / -1; font-size: 15px; font-weight: 500; color: var(--muted); font-family: var(--f-body); }
.process ol { display: contents; }
.process li { list-style: none; display: grid; gap: 6px; padding-top: 16px; border-top: 2px solid var(--ink); counter-increment: step; }
.process li::before { content: counter(step); font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.process b { font-size: 17px; font-weight: 600; }
.process span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* apps */
#apps { padding-block: 0 clamp(80px, 10vw, 128px); }
.apps { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.apps h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.025em; font-weight: 600; }
.app { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: center; }
.app img { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 6px 18px rgba(228,87,28,.22); }
.app p { color: var(--muted); }
.app .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 15px; }
@media (max-width: 860px) { .apps { grid-template-columns: 1fr; } }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--r-lg); overflow: hidden; background: #111; box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.portrait:hover img { transform: scale(1.025); }
.about-copy { display: grid; gap: 20px; }
.bio { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 58ch; }
.log { margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.log li { list-style: none; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.log .mono { color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.log b { font-weight: 600; }
.log span.muted { display: block; font-size: 15px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 380px; } }

/* close + footer */
.close { background: var(--night); color: var(--night-ink); }
.close .wrap { display: grid; gap: 28px; }
.close h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; max-width: 16ch; }
.close p { color: var(--night-muted); font-size: 18px; max-width: 52ch; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mail output { font-family: var(--f-mono); font-size: clamp(18px, 2.2vw, 24px); color: var(--night-ink); padding: 10px 16px; border: 1px solid var(--night-line); border-radius: 12px; user-select: all; }
.close .facts { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--night-muted); }
footer { background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; color: var(--night-muted); }
footer a:hover { color: var(--night-ink); }

/* policy pages */
.page { padding-top: calc(var(--nav-h) + 72px); padding-bottom: 96px; }
.page article { max-width: 720px; display: grid; gap: 18px; }
.page h1 { font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.03em; font-weight: 600; line-height: 1.05; }
.page h2 { font-size: 21px; font-weight: 600; margin-top: 14px; }
.page p, .page li { color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.page ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.page strong { color: var(--ink); font-weight: 500; }
.app-row { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.app-row img { width: 56px; height: 56px; border-radius: 13px; }

html:not(.show-pending) [data-gate] { display: none !important; }
html.show-pending [data-gate] { outline: 2px dashed color-mix(in srgb, var(--signal) 70%, transparent); outline-offset: 4px; }
.review { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 25; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--night-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.review button { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--night-muted); font: 500 13px var(--f-body); cursor: pointer; }
.review button[aria-pressed="true"] { background: var(--night-ink); color: #0D141C; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
