/* fonts:start (generated by scripts/vendor-fonts.mjs) */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(fonts/archivo-normal-400-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* fonts:end */

/* v5 Night line. Tokens and decisions: root/DESIGN.md. Amber (--line-c) is for lines, dots and edges, never text. */
:root {
  color-scheme: dark;
  --bg: #14130F;
  --surface: #1E1C17;
  --panel: #0C0B09;
  --ink: #EEE7D5;
  --muted: #A49C88;
  --rule: #38342B;
  --line-p: #EEE7D5;
  --line-c: #E8A13A;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: 24px;
  --max: 1248px;
  --inset: max(var(--gutter), (100% - var(--max)) / 2);
}
@media (min-width: 768px) { :root { --gutter: 48px; } }
@media (min-width: 1200px) { :root { --gutter: 96px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--font); font-stretch: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { padding-inline: var(--inset); }

header.site { padding-top: 24px; }
header.site .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.brand-line { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand { font: 600 expanded 20px/1.2 var(--font); text-decoration: none; }
header.site nav { display: flex; gap: 20px; }
@media (min-width: 768px) {
  #menu { position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; overflow: visible; color: inherit; background: none; }
}
header.site nav a { font-weight: 500; font-size: 15px; text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { text-decoration: underline; }
footer.site { border-top: 1px solid var(--rule); padding: 20px 0 32px; font-size: 13px; }
footer.site .wrap { display: flex; flex-direction: column; gap: 8px; }
footer.site p { color: var(--muted); }
footer.site nav a { font-weight: 500; text-decoration: none; }
/* Mobile menu: the section nav becomes a popover, drawn as a route whose last stop (Contact) is on the red line. */
.menu-open, .menu-close { display: none; }
@media (max-width: 767px) {
  .menu-open, .menu-close { display: grid; place-items: center; width: 44px; height: 44px; margin: -12px -10px -12px 0; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .menu-open span, .menu-open span::before, .menu-open span::after, .menu-close::before, .menu-close::after { content: ""; display: block; width: 24px; height: 3px; background: var(--ink); }
  .menu-open span { position: relative; }
  .menu-open span::before, .menu-open span::after { position: absolute; left: 0; }
  .menu-open span::before { top: -8px; }
  .menu-open span::after { top: 8px; background: var(--line-c); }
  .menu-open:focus-visible, .menu-close:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
  #menu:not(:popover-open) { display: none; }
  #menu:popover-open { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 96px var(--gutter) 64px; border: 0; background: var(--bg); color: var(--ink); overflow: hidden auto; }
  .menu-close { position: absolute; top: 14px; right: calc(var(--gutter) - 10px); margin: 0; }
  .menu-close::before, .menu-close::after { grid-area: 1 / 1; rotate: 45deg; }
  .menu-close::after { rotate: -45deg; }
  #menu a { position: relative; padding: 18px 0 18px 44px; font: 600 expanded min(40px, 10vw)/1.1 var(--font); letter-spacing: -0.02em; text-decoration: none; }
  #menu a::before { content: ""; position: absolute; z-index: 1; left: 0; top: calc(50% - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--line-p); }
  #menu a::after { content: ""; position: absolute; left: 6px; top: 50%; width: 4px; height: 100%; background: var(--line-p); }
  #menu a:last-child::before { left: -4px; top: calc(50% - 12px); width: 24px; height: 24px; border: 4px solid var(--line-c); background: var(--bg); box-sizing: border-box; }
  #menu a:last-child::after { background: var(--line-c); }
  #menu a:nth-last-child(2)::after { background: var(--line-c); }
}
@media (min-width: 768px) {
  header.site { padding-top: 40px; }
  .brand-line { gap: 16px; }
  .brand { font-size: 24px; }
  header.site nav { gap: 32px; }
  footer.site { padding: 24px 0 40px; font-size: 14px; }
  footer.site .wrap { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 24px; }
}

/* Route parts: a stop is a filled 16 px station, a ring is a 24 px interchange. */
.stn, .ring { position: absolute; z-index: 1; border-radius: 50%; }
.stn { width: 16px; height: 16px; background: var(--line-p); }
.ring { width: 24px; height: 24px; border: 4px solid var(--line-p); background: var(--bg); }
.stn.c { background: var(--line-c); }
.ring.c { border-color: var(--line-c); }
.seg { position: absolute; background: var(--line-p); }
.seg.c { background: var(--line-c); }
.link { position: absolute; background: var(--line-p); }

/* Hero: "Prototype." on the black line, "Maintain." where it turns red at --hx. */
.hero { --hx: 64px; display: flex; flex-direction: column; min-height: min(calc(100svh - 56px), 720px); padding-top: 40px; padding-bottom: 64px; padding-right: 0; overflow-x: clip; }
.hero h1, .sign { margin-top: auto; }
.hero h1 { font: 600 expanded clamp(min(54px, 14.5vw), 11.94vw, 172px)/0.92 var(--font); letter-spacing: -0.03em; }
.hero h1 > span { display: block; white-space: nowrap; }
.hero .maintain { margin-left: var(--hx); }
.hero h1 > .route { position: relative; height: 24px; margin: 18px 0 20px; }
.route::before, .route::after { content: ""; position: absolute; top: 10px; height: 4px; }
.route::before { left: 12px; width: var(--hx); background: var(--line-p); }
.route::after { left: calc(var(--hx) + 12px); right: 0; background: var(--line-c); }
.route .stn { left: 4px; top: 4px; }
.route .ring { left: var(--hx); top: 0; }
.hero p { margin: 32px 0 auto var(--hx); padding-right: var(--gutter); max-width: calc(480px + var(--gutter)); font-size: 18px; line-height: 1.45; color: var(--muted); }
.sign canvas { display: block; width: 100%; touch-action: pan-y; }
.sign-pause { align-self: flex-start; min-height: 44px; margin: 4px 0 0 var(--hx); padding: 0; border: 0; background: none; color: var(--muted); font: 500 13px/1.2 var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sign-pause:hover { color: var(--ink); }
.sign-pause:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.has-sign .hero h1 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 768px) {
  .hero { --hx: clamp(64px, 29.44vw, 424px); min-height: calc(100svh - 72px); padding-top: 48px; padding-bottom: 72px; }
  .hero h1 { letter-spacing: -0.035em; }
  .hero h1 > .route { margin: 36px 0 40px; }
  .hero p { margin-top: 48px; font-size: clamp(18px, 1.67vw, 22px); line-height: 1.42; }
}


.services { display: grid; gap: 56px; padding-top: 96px; }
.svc-num { font: 600 expanded 18px/1.2 var(--font); color: var(--muted); }
.svc-label { font-weight: 500; font-size: 13px; line-height: 1.2; color: var(--muted); }
.s1 { display: flex; flex-direction: column; gap: 18px; }
.s1 h2 { font: 600 expanded clamp(min(48px, 13vw), 6.67vw, 96px)/0.96 var(--font); letter-spacing: -0.025em; }
.s1 .lede { font-size: 18px; line-height: 1.5; max-width: 620px; }
.s1 .svc-label { margin-top: 12px; }
.stops li { position: relative; padding: 0 0 20px 32px; font-size: 18px; line-height: 1.33; }
.stops li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--line-p); }
.stops li::after { content: ""; position: absolute; left: 6px; top: 20px; bottom: 0; width: 4px; background: var(--line-p); }
.stops li:last-child { padding-bottom: 0; }
.stops li:last-child::after { content: none; }
.s2 { display: flex; flex-direction: column; gap: 16px; padding: 32px 24px 40px; background: var(--surface); border-left: 4px solid var(--line-c); }
.s2 h2 { font: 600 expanded 30px/1.06 var(--font); letter-spacing: -0.01em; }
.s2 p { font-size: 16px; line-height: 1.5; }
.s2 .svc-label { margin-top: 8px; }
.ledger li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.4; }
@media (min-width: 768px) {
  .svc-num { font-size: 22px; }
  .svc-label { font-size: 15px; }
  .s1 { gap: 28px; }
  .s1 h2 { line-height: 0.94; }
  .s1 .lede { font-size: 22px; line-height: 1.45; }
  .s1 .svc-label { margin: 20px 0 16px; }
  .stops li { padding: 0 0 24px 36px; font-size: 20px; line-height: 1.3; }
  .stops li::before { top: 5px; }
  .stops li::after { top: 21px; }
  .s2 { gap: 20px; padding: 48px 44px 64px; }
  .s2 h2 { font-size: 40px; line-height: 1.04; }
  .s2 p { font-size: 18px; }
  .s2 .svc-label { margin-top: 12px; }
  .ledger li { padding: 14px 0; font-size: 17px; }
}
@media (min-width: 1024px) {
  .services { grid-template-columns: minmax(0, 720fr) minmax(0, 464fr); gap: 64px; padding-top: 144px; }
}

.title { font: 600 expanded clamp(min(31px, 8vw), 3.9vw, 56px)/1.2 var(--font); letter-spacing: -0.015em; }

.process { padding-top: 112px; padding-right: 0; }
.process .title { padding-right: var(--gutter); }
.map { margin-top: 40px; }
.step h3 { font: 600 expanded 30px/1.2 var(--font); letter-spacing: -0.01em; }
.step h3 .n { color: var(--muted); margin-right: 0.3em; }
.step p { font-size: 16px; line-height: 1.5; }
.lbl { display: block; font-weight: 500; font-size: 13px; line-height: 1.2; }
@media (max-width: 767px) {
  .step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0 var(--gutter) 44px 80px; }
  .lbl.d { display: none; }
  .rail { position: absolute; left: 0; top: 0; bottom: 0; width: 60px; }
  .seg { width: 4px; }
  .seg.a { left: 10px; }
  .seg.b { left: 46px; }
  .seg.full { top: 0; bottom: 0; }
  .seg.out { top: 12px; bottom: 0; }
  .seg.in { top: 0; height: 12px; }
  .stn { top: 4px; }
  .stn.a { left: 4px; }
  .stn.b { left: 40px; }
  .ring { top: 0; }
  .ring.a { left: 0; }
  .ring.b { left: 36px; }
  .link { left: 12px; top: 10px; width: 36px; height: 4px; }
  .map::after { content: ""; display: block; width: 4px; height: 72px; margin-left: 46px; background: var(--line-c); }
}
@media (min-width: 768px) {
  .process { padding-top: 160px; padding-bottom: 144px; }
  .map { display: grid; grid-template-columns: repeat(4, minmax(0, 312px)) minmax(48px, 1fr); margin-top: 72px; }
  .step { position: relative; padding: 168px clamp(16px, 3.33vw, 48px) 0 0; }
  .step h3 { font-size: clamp(22px, 2.22vw, 32px); }
  .step p { margin-top: 14px; font-size: 17px; }
  .lbl { position: absolute; left: 0; font-size: 15px; }
  .lbl.top { top: 0; }
  .lbl.bottom { top: 106px; }
  .lbl.m { display: none; }
  .rail { position: absolute; left: 0; right: 0; top: 32px; height: 64px; }
  .seg { height: 4px; }
  .seg.a { top: 10px; }
  .seg.b { top: 50px; }
  .seg.full { left: 0; right: 0; }
  .seg.out { left: 12px; right: 0; }
  .seg.in { left: 0; width: 12px; }
  .stn { left: 4px; }
  .stn.a { top: 4px; }
  .stn.b { top: 44px; }
  .ring { left: 0; }
  .ring.a { top: 0; }
  .ring.b { top: 40px; }
  .link { left: 10px; top: 12px; width: 4px; height: 40px; }
  .map::after { content: ""; height: 4px; margin-top: 82px; background: var(--line-c); }
}

.projects { padding-block: 96px; }
.projects > h2 { padding-inline: var(--inset); font-size: clamp(min(36px, 9.3vw), 3.9vw, 56px); }
.project { display: grid; gap: 32px; min-width: 0; margin-top: 56px; padding: 48px var(--inset) 0; border-top: 1px solid var(--rule); }
.project-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.project .count { font: 600 expanded 18px/1.2 var(--font); color: var(--muted); }
.project.kusoma { --brand: #3FB8AE; --on-brand: #2B1022; }
.project.ws { --brand: #F7E59C; --on-brand: #2C1D18; }
.project.dg { --brand: #6E9CC9; --on-brand: #0E0F11; }
.project.sp { --brand: #9CC77E; --on-brand: #2C2420; }
.project.ki { --brand: #8FA6FF; --on-brand: #14130F; }
.project h3 { display: flex; align-items: center; gap: 0.3em; font: 600 expanded clamp(44px, 5.2vw, 76px)/0.95 var(--font); letter-spacing: -0.03em; }
.project.ki h3 { font-size: clamp(28px, 3.05vw, 44px); }
.app-icon { flex: none; width: 0.82em; height: 0.82em; border-radius: 22%; }
.project .tagline { font-size: 20px; line-height: 1.4; }
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
.journey li { position: relative; padding-top: 22px; font-weight: 500; font-size: 13px; line-height: 1.2; color: var(--muted); }
.journey li::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.journey li::after { content: ""; position: absolute; left: 12px; right: 0; top: 4px; height: 4px; background: var(--brand); }
.journey [aria-current] { color: var(--ink); }
.journey [aria-current]::before { left: -4px; top: -4px; width: 20px; height: 20px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 30%, transparent); }
.journey [aria-current]::after, .journey [aria-current] ~ li::after { background: var(--rule); }
.journey [aria-current] ~ li::before { border: 2px solid var(--rule); background: var(--bg); }
.journey li:last-child::after { content: none; }
.project .status { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.project .status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.cta { align-self: flex-start; padding: 13px 20px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 16px; text-decoration: none; }
.cta:hover { text-decoration: underline; }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (min-width: 768px) {
  .project-text { gap: 20px; }
  .project .count { font-size: 22px; }
  .project .tagline { font-size: 24px; }
  .journey li { font-size: 15px; }
  .project .status { font-size: 16px; }
}
@media (min-width: 1024px) {
  .projects { padding-block: 160px; }
  .project { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: center; gap: 72px; margin-top: 72px; padding-top: 72px; }
}

.proto { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone { position: relative; width: min(300px, 78vw); aspect-ratio: 430 / 930; padding: 9px; border: 1px solid var(--rule); border-radius: 46px; background: var(--panel); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--brand) 45%, transparent); }
.proto-screen { display: block; width: 100%; height: 100%; border-radius: 37px; object-fit: cover; cursor: pointer; }
.proto-screen[hidden] { display: none; }
.proto-live { cursor: default; touch-action: manipulation; }
.proto-live.hot { cursor: pointer; }
.proto-nav { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--rule); border-radius: 999px; }
.proto-nav button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 14px/1 var(--font); cursor: pointer; }
.proto-nav button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.proto-nav button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.proto-caption { max-width: 300px; min-height: 2.9em; font-size: 15px; line-height: 1.45; color: var(--muted); text-align: center; }
.proto-caption b { display: block; font-weight: 600; color: var(--ink); }

.join { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin-top: 8px; }
.join label { font-weight: 600; font-size: 16px; }
.join-row { display: flex; flex-wrap: wrap; gap: 8px; }
.join input[type="email"] { flex: 1 1 220px; min-height: 48px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); font: 400 16px var(--font); }
.join input[type="email"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.join button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--brand); color: var(--on-brand); font: 600 16px var(--font); cursor: pointer; }
.join button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.join button:disabled { opacity: 0.6; cursor: progress; }
.join-note { font-size: 13px; color: var(--muted); }
.join-result:not(:empty) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-left: 4px solid var(--brand); background: var(--surface); font-weight: 500; }
.join.joined .join-row { display: none; }
.more { align-self: flex-start; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .phone.turn { animation: turn 0.5s cubic-bezier(0.2, 0.9, 0.2, 1); }
}
@keyframes turn { from { transform: perspective(900px) rotateY(-24deg) scale(0.97); } }

/* Motion for the static page. Only when the visitor has not asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 > span:first-child { animation: rise 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
  .route::before { transform-origin: 0 50%; animation: draw 0.6s 0.35s cubic-bezier(0.6, 0, 0.2, 1) both; }
  .route::after { transform-origin: 0 50%; animation: draw 1.1s 0.9s cubic-bezier(0.6, 0, 0.2, 1) both; }
  .route .stn { animation: pop 0.45s 0.2s cubic-bezier(0.2, 1.8, 0.4, 1) both; }
  .route .ring { animation: pop 0.5s 0.85s cubic-bezier(0.2, 1.8, 0.4, 1) both; }
  .hero .maintain { animation: slide 0.8s 0.95s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
  .hero p { animation: rise 0.7s 1.2s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
  #menu:popover-open a { animation: slide 0.5s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
  #menu:popover-open a:nth-of-type(2) { animation-delay: 60ms; }
  #menu:popover-open a:nth-of-type(3) { animation-delay: 120ms; }
  #menu:popover-open a:nth-of-type(4) { animation-delay: 180ms; }


  .email { position: relative; display: inline-block; }
  .email::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100vw; height: 4px; background: var(--line-c); transform: scaleX(var(--run, 0)); transform-origin: 0 50%; transition: transform 0.7s cubic-bezier(0.6, 0, 0.2, 1); }
  .email:is(:hover, :focus-visible) { --run: 1; text-decoration: none; }
  .contact { overflow-x: clip; }

  @view-transition { navigation: auto; }
  .brand { view-transition-name: brand; }
}

/* Hooks for assets/js/motion.js (GSAP). It adds html.has-motion and tweens these properties; without it they
   rest at 1 and the page is static. */
.stops li::before { scale: var(--pop, 1); }
.stops li::after { scale: 1 var(--rail, 1); transform-origin: 50% 0; }
.map::after { scale: 1 var(--tail, 1); transform-origin: 50% 0; }
@media (min-width: 768px) { .map::after { scale: var(--tail, 1) 1; transform-origin: 0 50%; } }
.has-motion .email::after { transition: none; }
.w { display: inline-block; overflow: clip; vertical-align: bottom; padding: 0 0.04em 0.14em; margin: 0 -0.04em -0.14em; }
.w > span { display: inline-block; }


.strip { position: fixed; z-index: 10; inset: 0 0 auto; height: 14px; pointer-events: none; }
.strip::before { content: ""; position: absolute; inset: 6px 0 auto; height: 2px; background: var(--rule); }
.strip-line { position: absolute; inset: 5px 0 auto; height: 4px; clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0); }
.strip-p, .strip-c { position: absolute; top: 0; bottom: 0; }
.strip-p { left: 0; width: calc(var(--turn, 1) * 100%); background: var(--line-p); }
.strip-c { left: calc(var(--turn, 1) * 100%); right: 0; background: var(--line-c); }
.strip-stn { position: absolute; top: 2px; left: clamp(6px, calc(var(--at, 0) * 100%), calc(100% - 6px)); width: 10px; height: 10px; translate: -50% 0; border: 2px solid var(--rule); border-radius: 50%; background: var(--bg); transition: background-color 0.2s, border-color 0.2s, scale 0.35s cubic-bezier(0.2, 1.8, 0.4, 1); }
.strip-stn.on { scale: 1.3; border-color: var(--line-p); background: var(--line-p); }
.strip-stn.c.on { border-color: var(--line-c); background: var(--bg); }
@keyframes rise { from { opacity: 0; translate: 0 24px; } }
@keyframes slide { from { opacity: 0; translate: 48px 0; } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes pop { from { transform: scale(0); } }

.contact { display: flex; flex-direction: column; gap: 16px; padding-block: 72px; border-top: 1px solid var(--rule); }
.contact h2 { font-weight: 500; font-size: 13px; line-height: 1.2; color: var(--muted); }
.email { font: 600 expanded min(72px, 5vw)/1.2 var(--font); letter-spacing: -0.01em; text-decoration: none; overflow-wrap: anywhere; }
.email:hover { text-decoration: underline; }
@media (min-width: 768px) {
  .contact { gap: 24px; padding-block: 144px 120px; }
  .contact h2 { font-size: 15px; }
  .email { padding-top: 16px; letter-spacing: -0.02em; }
}

.legal { padding-top: 64px; padding-bottom: 72px; }
.legal h1 { font: 600 expanded clamp(44px, 7vw, 96px)/1 var(--font); letter-spacing: -0.03em; margin-bottom: 24px; }
.legal h2 { font: 600 expanded 22px/1.25 var(--font); margin: 40px 0 12px; }
.legal p, .legal ul { max-width: 66ch; margin-bottom: 16px; }
.legal ul { list-style: disc; padding-left: 20px; }
.legal .note { color: var(--muted); font-size: 15px; }
@media (min-width: 768px) {
  .legal { padding-top: 120px; padding-bottom: 120px; }
  .legal h2 { font-size: 26px; margin-top: 56px; }
  body:has(.legal) { font-size: 18px; }
}

/* One page per scroll at every size: the hero, each section and each project is a full-height stop.
   Header + hero, the projects title + the first project, and contact + footer share a page, so those pairs
   split 100svh by the fixed heights below. */
:root { --head: 56px; --title: 72px; --foot: 104px; }
@media (min-width: 1024px) { :root { --head: 72px; --title: 120px; --foot: 90px; } }
html { scroll-snap-type: y mandatory; }
header.site, .services, .process, .projects, .project:not(:first-of-type), .contact { scroll-snap-align: start; scroll-snap-stop: always; }
header.site { height: var(--head); }
.hero { min-height: calc(100svh - var(--head)); }
.services, .process { min-height: 100svh; }
.projects { padding-block: 0; }
.projects > h2 { height: var(--title); padding-top: 24px; }
.project { min-height: 100svh; margin-top: 0; }
.project:first-of-type { min-height: calc(100svh - var(--title)); border-top: 0; }
.contact { min-height: calc(100svh - var(--foot)); justify-content: center; }

/* Below 1024px a project is one column: name on top, the phone takes the free height, the form at the bottom. */
@media (max-width: 1023.98px) {
  .project { display: flex; flex-direction: column; gap: 8px; height: 100svh; padding-block: 12px; }
  .project:first-of-type { height: calc(100svh - var(--title)); }
  .project-text { display: contents; }
  .project h3 { order: -2; font-size: 30px; }
  .project.ki h3 { font-size: 24px; }
  .project .tagline { order: -1; font-size: 16px; }
  .project .status { font-size: 13px; }
  .project .count, .journey { display: none; }
  .proto { flex: 1 1 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; justify-items: center; gap: 8px; }
  .phone { width: auto; height: 100%; padding: 6px; border-radius: 30px; }
  .proto-screen { position: absolute; top: 6px; left: 6px; width: calc(100% - 12px); height: calc(100% - 12px); border-radius: 24px; }
  .proto-caption { min-height: 0; font-size: 13px; }
  .join { margin-top: 0; gap: 6px; }
  .join-row { flex-wrap: nowrap; }
  .join input[type="email"] { flex: 1 1 0; min-width: 0; }
  .join button { padding-inline: 16px; }
  .join label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 1024px) {
  .services, .process { padding-block: 96px; }
  .services { align-content: center; }
  .project { padding-block: 48px; }
  .project:first-of-type { padding-block: 24px; }
  .phone { width: min(300px, calc((100svh - 320px) * 430 / 930)); }
}
