/* Legendary Construction & Design
   Palette lifted from the existing site: dusty blue #7BA5BC, charcoal, cool off-white.
   Mobile-first. Zones (.z-*) set their own foreground/rule colours. */

:root {
  --ink: #14181b;
  --ink-2: #1b2125;
  --slate: #22313b;
  --slate-2: #2c3f4b;
  --blue: #7BA5BC;
  --blue-soft: #a9c6d6;
  --blue-ink: #3b6881;
  --paper: #f2f4f4;
  --paper-2: #e3e8e9;
  --text: #14181b;
  --muted: #55626a;
  --muted-d: #9fb0b9;

  --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --nav-h: 68px;
  --slope: clamp(14px, 2.4vw, 38px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--blue); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- zones ---------- */
.z-paper { --bg: var(--paper); --fg: var(--text); --fg-2: var(--muted); --rule: rgba(20, 24, 27, .16); --accent: var(--blue-ink); }
.z-ink   { --bg: var(--ink);   --fg: #eef2f3; --fg-2: var(--muted-d); --rule: rgba(238, 242, 243, .16); --accent: var(--blue); }
.z-slate { --bg: var(--slate); --fg: #eef2f3; --fg-2: #a9bcc7; --rule: rgba(238, 242, 243, .18); --accent: var(--blue); }
.z-blue  { --bg: var(--blue);  --fg: var(--ink); --fg-2: #274454; --rule: rgba(20, 24, 27, .3); --accent: var(--ink); }
.zone { background: var(--bg); color: var(--fg); position: relative; }
.slope { clip-path: polygon(0 var(--slope), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--slope) * -1); }

/* slanted top edge for pinned sections, where clip-path is unsafe */
.edge { position: absolute; left: 0; right: 0; top: -1px; height: var(--slope); background: var(--prev, var(--paper)); clip-path: polygon(0 0, 100% 0, 0 100%); z-index: 2; pointer-events: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: clamp(72px, 11vw, 150px); }

/* ---------- type ---------- */
.label {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-2); display: flex; align-items: center; gap: .8em; font-weight: 500;
}
.label .no { color: var(--accent); }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; flex: none; }
.label.plain::before { display: none; }
.h2 {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(2.1rem, 5.4vw, 4.1rem); font-variation-settings: "opsz" 72;
}
.h2 em { font-style: normal; color: var(--accent); }
.h3 { font-family: var(--f-display); font-weight: 650; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--fg-2); max-width: 56ch; }
.mono { font-family: var(--f-mono); }

/* ---------- buttons / links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 54px; padding: 0 28px; border-radius: 2px; overflow: hidden; isolation: isolate;
  font-family: var(--f-display); font-weight: 650; font-size: 1.02rem; letter-spacing: -.005em; text-decoration: none;
  transition: transform .2s var(--ease), color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--blue); color: var(--ink); }
.btn-primary::before { background: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark::before { background: var(--slate-2); }
.btn-ghost { border: 1px solid var(--rule); color: var(--fg); }
.btn-ghost::before { background: var(--fg); }
.btn-ghost:hover { color: var(--bg); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .6em; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--fg); min-height: 44px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow:hover { border-color: var(--accent); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); color: #eef2f3; transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease); }
.nav.solid { background: rgba(20, 24, 27, .94); box-shadow: 0 1px 0 rgba(238, 242, 243, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand-t { display: grid; line-height: 1.05; }
.brand-t b { font-family: var(--f-display); font-weight: 750; letter-spacing: .09em; font-size: 1rem; }
.brand-t i { font-style: normal; font-family: var(--f-mono); font-size: .56rem; letter-spacing: .2em; color: var(--blue); text-transform: uppercase; margin-top: 3px; }
.nav-links { display: none; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav-links a:not(.btn) {
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 10px 0; position: relative;
}
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-dd { position: relative; }
.nav-dd > a { display: inline-flex; align-items: center; }
.nav-dd > a::before { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); margin-left: 9px; order: 2; opacity: .7; }
.dd { position: absolute; top: 100%; left: -22px; padding-top: 14px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s; }
.nav-dd:hover .dd, .nav-dd:focus-within .dd { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dd-in { background: var(--ink); border: 1px solid rgba(238, 242, 243, .16); min-width: 270px; padding: 8px; display: grid; }
.nav-links .dd-in a:not(.btn) { display: flex; gap: 14px; padding: 13px 14px; letter-spacing: .1em; }
.nav-links .dd-in a:not(.btn)::after { display: none; }
.nav-links .dd-in a:hover { background: rgba(123, 165, 188, .14); }
.dd-in a b { color: var(--blue); font-weight: 500; }
.dd-in a.all { border-top: 1px solid rgba(238, 242, 243, .14); margin-top: 6px; padding-top: 16px; color: var(--blue); }
.nav-phone { font-family: var(--f-display); font-weight: 650; font-size: .98rem; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.nav-phone svg { width: 16px; height: 16px; color: var(--blue); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: .92rem; }
.burger { width: 46px; height: 46px; display: grid; place-content: center; gap: 6px; margin-right: -10px; }
.burger span { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .45s var(--ease), opacity .3s; transform-origin: center; }
.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: #eef2f3; padding: calc(var(--nav-h) + 28px) var(--gutter) 28px;
  display: flex; flex-direction: column; justify-content: space-between; visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease), visibility 0s .7s; overflow-y: auto;
}
.menu-open .menu { visibility: visible; clip-path: inset(0); transition: clip-path .7s var(--ease), visibility 0s; }
.menu nav { display: grid; }
.menu nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(238, 242, 243, .14);
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; font-size: clamp(2.1rem, 9vw, 3.4rem); line-height: 1.05; text-decoration: none; min-height: 44px;
}
.menu nav a small { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; color: var(--blue); font-weight: 500; }
.menu nav .acc-btn { display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(238, 242, 243, .14); font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; font-size: clamp(2.1rem, 9vw, 3.4rem); line-height: 1.05; text-align: left; min-height: 44px; }
.menu nav .acc-btn small { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; color: var(--blue); font-weight: 500; }
.acc-btn i { margin-left: auto; align-self: center; width: 12px; height: 12px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-3px) rotate(45deg); transition: transform .45s var(--ease); flex: none; margin-right: 6px; }
.acc.open .acc-btn i { transform: translateY(2px) rotate(-135deg); }
.menu nav .sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc.open .sub { grid-template-rows: 1fr; }
.menu nav .sub-in { overflow: hidden; visibility: hidden; transition: visibility 0s .5s; }
.acc.open .sub-in { visibility: visible; transition: visibility 0s; }
.menu nav .sub a { padding: 14px 0 14px 34px; font-size: clamp(1.4rem, 5.8vw, 2rem); font-weight: 600; border-bottom: 1px solid rgba(238, 242, 243, .08); }
.menu nav .sub a.all { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 500; padding-block: 16px; border-bottom: 1px solid rgba(238, 242, 243, .14); }
.menu-foot { display: grid; gap: 12px; margin-top: 28px; }
.menu-foot .mono { font-size: .78rem; color: var(--muted-d); letter-spacing: .06em; }
body.menu-open { overflow: hidden; }

.callbar { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; transform: translateY(110%); transition: transform .5s var(--ease); padding-bottom: env(safe-area-inset-bottom); background: var(--ink); box-shadow: 0 -1px 0 rgba(238, 242, 243, .14); }
.callbar.show { transform: none; }
.callbar a { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--f-display); font-weight: 650; text-decoration: none; font-size: 1rem; }
.callbar a:first-child { background: var(--blue); color: var(--ink); }
.callbar a:last-child { color: #fff; }
.callbar svg { width: 18px; height: 18px; }
.menu-open .callbar { transform: translateY(110%); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; padding-top: var(--nav-h); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 118%; object-fit: cover; object-position: 62% 40%; will-change: transform; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 24, 27, .55) 0%, rgba(20, 24, 27, .35) 18%, rgba(20, 24, 27, .82) 52%, var(--ink) 100%);
}
.hero-grid { padding-block: 40px clamp(36px, 6vw, 72px); display: grid; gap: 40px; }
.hero h1 {
  font-family: var(--f-display); font-weight: 750; letter-spacing: -.04em; line-height: .96;
  font-size: clamp(2.7rem, 10.4vw, 6.2rem); font-variation-settings: "opsz" 96; margin: 22px 0 24px; max-width: 12ch;
}
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lede { color: #cbd7dd; margin-bottom: 30px; }
.hero .label { color: #d3dee3; }
.hero-cta { display: grid; gap: 12px; }
.hero-proof { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--rule); display: grid; gap: 14px; }
.hero-proof li { display: flex; align-items: baseline; gap: 14px; font-size: .96rem; color: #dbe5ea; }
.hero-proof b { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: -.02em; color: #fff; min-width: 3.1ch; font-weight: 700; }
.hero-note { display: none; }
.hero-edge { position: absolute; left: 0; right: 0; bottom: -1px; height: var(--slope); background: var(--paper); clip-path: polygon(0 100%, 100% 0, 100% 100%); z-index: 1; }

/* ---------- strip ---------- */
.strip { background: var(--paper); color: var(--ink); overflow: hidden; padding: 6px 0 calc(var(--slope) * .4); border-bottom: 1px solid rgba(20, 24, 27, .12); }
.strip-track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.strip-track span { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; padding: 14px 0; white-space: nowrap; }
.strip-track span::after { content: "+"; margin: 0 1.6em; color: var(--blue-ink); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- problem ---------- */
.problem-grid { display: grid; gap: 52px; }
.problem-l .h2 { margin: 22px 0 28px; max-width: 13ch; }
.problem-photo { margin-top: 36px; }
.problem-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cap { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); padding-top: 10px; display: flex; gap: 10px; }
.cap::before { content: "Fig."; color: var(--accent); }
.faults li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; padding: 28px 0; border-top: 1px solid var(--rule); }
.faults li:last-child { border-bottom: 1px solid var(--rule); }
.faults .n { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); padding-top: .6em; }
.faults h3 { font-family: var(--f-display); font-weight: 650; font-size: clamp(1.4rem, 2.8vw, 2rem); letter-spacing: -.02em; line-height: 1.1; }
.faults p { grid-column: 2; color: var(--fg-2); max-width: 52ch; }

/* ---------- stack (systems) ---------- */
.stack { padding-block: clamp(64px, 9vw, 120px) 0; }
.stack-head { display: grid; gap: 18px; margin-bottom: 44px; }
.stack-head .h2 { max-width: 14ch; }
.stack-rail { display: none; }
.stack-stage { display: block; }
.sys { display: grid; gap: 28px; padding-block: 40px; border-top: 1px solid var(--rule); }
.sys-copy .h3 { margin: 14px 0 14px; }
.sys-sum { color: var(--fg-2); max-width: 46ch; margin-bottom: 22px; }
.sys-layers { display: grid; margin-bottom: 26px; border-top: 1px solid var(--rule); }
.sys-layers li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.ln-n { width: 24px; height: 24px; border: 1px solid var(--accent); border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: .72rem; color: var(--accent); }
.ln-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: .95rem; }
.ln-t b { font-weight: 600; }
.ln-t i { font-style: normal; color: var(--fg-2); font-size: .85rem; }
.sys-art { position: relative; order: -1; }
.stack-svg { width: 100%; height: auto; max-height: 70svh; margin-inline: auto; overflow: visible; }
.call-n { font-family: var(--f-mono); font-size: 13px; fill: #eef2f3; font-weight: 500; }
.stack-tail { padding-block: 36px 0; }

/* ---------- why ---------- */
.why-grid { display: grid; gap: 44px; }
.why-l .h2 { margin: 22px 0 22px; max-width: 12ch; }
.why-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 2px 10px; padding: 26px 0; border-top: 1px solid var(--rule); }
.why-list li:last-child { border-bottom: 1px solid var(--rule); }
.why-list .n { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); padding-top: .55em; }
.why-list h3 { font-family: var(--f-display); font-weight: 650; font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -.02em; line-height: 1.15; }
.why-list p { grid-column: 2; color: var(--fg-2); max-width: 54ch; margin-top: 6px; }

/* ---------- numbers ---------- */
.numbers { overflow: hidden; padding-block: clamp(56px, 8vw, 110px) clamp(64px, 9vw, 120px); }
.giant { font-family: var(--f-display); font-weight: 800; letter-spacing: -.04em; line-height: .9; white-space: nowrap; font-size: clamp(4.2rem, 17vw, 15rem); width: max-content; display: flex; gap: .35em; will-change: transform; }
.giant span:nth-child(even) { -webkit-text-stroke: 2px var(--ink); color: transparent; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; margin-top: clamp(44px, 6vw, 84px); }
.stat { border-top: 1px solid var(--rule); padding-top: 18px; }
.stat-n { font-family: var(--f-display); font-weight: 750; letter-spacing: -.04em; line-height: .95; font-size: clamp(3.4rem, 9vw, 6.4rem); display: flex; align-items: flex-start; }
.stat-n sup { font-size: .38em; margin: .2em 0 0 .08em; letter-spacing: 0; font-weight: 650; }
.stat p { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 12px; color: var(--fg-2); max-width: 20ch; line-height: 1.5; }

/* ---------- field (horizontal) ---------- */
.field { padding-block: clamp(64px, 9vw, 120px) 0; overflow: hidden; }
.field-head { display: grid; gap: 18px; margin-bottom: 44px; }
.field-head .h2 { max-width: 12ch; }
.field-track { display: flex; gap: 14px; padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: clamp(56px, 8vw, 100px); scrollbar-width: none; }
.field-track::-webkit-scrollbar { display: none; }
.shot { flex: none; width: min(78vw, 360px); scroll-snap-align: start; }
.shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.shot:nth-child(even) img { aspect-ratio: 1 / 1; }
.shot figcaption { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); padding-top: 12px; display: flex; gap: 10px; }
.shot figcaption b { color: var(--blue); font-weight: 500; }

/* ---------- beyond ---------- */
.beyond-grid { display: grid; gap: 52px; }
.beyond .h2 { margin: 22px 0 24px; max-width: 13ch; }
.beyond-list { margin-top: 34px; }
.beyond-list li { font-family: var(--f-display); font-weight: 650; letter-spacing: -.03em; font-size: clamp(1.7rem, 4.6vw, 3rem); line-height: 1.1; padding: 14px 0; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; transition: padding .45s var(--ease), color .3s; }
.beyond-list li:last-child { border-bottom: 1px solid var(--rule); }
.beyond-list li small { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); font-weight: 400; text-align: right; }
.beyond-photos { position: relative; padding-bottom: 26%; }
.beyond-photos img:first-child { width: 78%; aspect-ratio: 4 / 5; object-fit: cover; }
.beyond-photos img:last-child { position: absolute; right: 0; bottom: 0; width: 56%; aspect-ratio: 1; object-fit: cover; border: 8px solid var(--paper); }

/* ---------- process ---------- */
.process-grid { display: grid; gap: 44px; }
.process .h2 { margin: 22px 0 22px; max-width: 11ch; }
.steps { position: relative; padding-left: 36px; }
.steps-line { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }
.steps-line i { position: absolute; inset: 0; background: var(--blue); transform-origin: top; transform: scaleY(0); }
.step { position: relative; padding-bottom: 44px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: -36px; top: 8px; width: 15px; height: 15px; border-radius: 50%; background: var(--slate); border: 1px solid var(--blue); }
.step.on::before { background: var(--blue); }
.step .no { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; color: var(--blue); text-transform: uppercase; }
.step h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; font-size: clamp(2rem, 5vw, 3.2rem); margin: 8px 0 12px; }
.step p { color: var(--fg-2); max-width: 46ch; }

/* ---------- voices ---------- */
.voices-grid { display: grid; gap: 52px; }
.voices .h2 { margin: 22px 0 26px; max-width: 11ch; }
.recs { display: flex; align-items: flex-end; gap: 16px; padding-top: 20px; border-top: 1px solid var(--rule); }
.recs b { font-family: var(--f-display); font-weight: 750; font-size: clamp(4.5rem, 12vw, 8rem); line-height: .8; letter-spacing: -.05em; color: var(--accent); }
.recs span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); line-height: 1.5; padding-bottom: 4px; }
.quote { padding: 28px 0; border-top: 1px solid var(--rule); }
.quote:last-child { border-bottom: 1px solid var(--rule); }
.quote p { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.22; font-size: clamp(1.3rem, 2.6vw, 1.85rem); max-width: 30ch; }
.quote.big p { font-size: clamp(1.8rem, 4.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em; max-width: 22ch; }
.quote cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.quote cite b { color: var(--accent); font-weight: 500; }

/* ---------- area ---------- */
.area-grid { display: grid; gap: 40px; }
.area .h2 { margin: 22px 0 22px; max-width: 12ch; }
.plot { width: 100%; height: auto; overflow: visible; }
.plot text { font-family: var(--f-mono); fill: var(--fg-2); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.plot .hq { fill: #fff; font-size: 13px; font-weight: 500; }
.plot .grat { stroke: rgba(238, 242, 243, .1); stroke-width: 1; }
.plot .route { stroke: var(--blue); stroke-width: 1; fill: none; stroke-dasharray: 3 5; opacity: .75; }
.plot .dot { fill: var(--blue); }
.plot .ring { fill: none; stroke: var(--blue); stroke-width: 1; }
.cities { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.cities li { padding: 4px 0; }
.cities li:first-child { color: #fff; }

@media (max-width: 639px) { .plot text { font-size: 17px; } .plot .hq { font-size: 19px; } .plot .dot { r: 6; } }

/* ---------- faq ---------- */
.faq-grid { display: grid; gap: 40px; }
.faq .h2 { margin: 22px 0 0; max-width: 11ch; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; min-height: 44px; font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 22px; height: 22px; position: relative; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--accent); transition: transform .45s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { padding: 0 0 26px; color: var(--fg-2); max-width: 60ch; }

/* ---------- closer ---------- */
.closer { padding-block: clamp(80px, 12vw, 170px); overflow: hidden; }
.closer-grid { display: grid; gap: 36px; position: relative; }
.closer .h2 { font-size: clamp(2.5rem, 8.6vw, 7rem); max-width: 11ch; margin: 22px 0 0; letter-spacing: -.045em; }
.closer .lede { color: var(--fg-2); }
.closer-cta { display: grid; gap: 12px; margin-top: 8px; }
.fud { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); margin-top: 22px; }
.fud li::before { content: "+"; margin-right: .6em; color: var(--accent); }
.closer-logo { display: none; width: clamp(110px, 12vw, 170px); height: auto; border-radius: 50%; margin-bottom: 28px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #dbe5ea; padding: 72px 0 calc(100px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; gap: 44px; }
.foot .brand { margin-bottom: 18px; }
.foot p { color: var(--muted-d); max-width: 36ch; font-size: .98rem; }
.foot h4 { font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.foot ul { display: grid; gap: 2px; }
.foot li a { display: inline-block; text-decoration: none; padding: 7px 0; min-height: 36px; color: #dbe5ea; }
.foot li a:hover { color: var(--blue); }
.foot-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(238, 242, 243, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }

/* ---------- inner page hero ---------- */
.phero { padding: calc(var(--nav-h) + clamp(56px, 10vw, 140px)) 0 clamp(64px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.phero .h1 { font-family: var(--f-display); font-weight: 750; letter-spacing: -.04em; line-height: .96; font-size: clamp(2.6rem, 9vw, 6.4rem); font-variation-settings: "opsz" 96; margin: 22px 0 26px; max-width: 13ch; }
.phero .h1 em { font-style: normal; color: var(--blue); }
.phero .lede { color: #c3d1d8; }
.phero-bg { position: absolute; inset: 0; z-index: -2; }
.phero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 24, 27, .5), var(--ink) 96%); }
.phero .hero-cta { margin-top: 30px; }

/* ---------- systems page ---------- */
.compare { border-top: 1px solid var(--rule); }
.compare .row { display: grid; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.compare .row.head { display: none; }
.compare .c { font-size: .98rem; }
.compare .c::before { content: attr(data-l); display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.compare .c.sys-name { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 8px; }
.compare .c.sys-name::before { display: none; }

.chapter { padding-block: clamp(72px, 10vw, 140px); }
.chapter-head { display: grid; gap: 20px; margin-bottom: 44px; }
.chapter-head .h2 { max-width: 14ch; }
.chapter-grid { display: grid; gap: 40px; }
.chapter-copy p { max-width: 54ch; margin-bottom: 18px; color: var(--fg-2); }
.chapter-copy p:first-of-type { color: var(--fg); font-size: 1.15rem; }
.spec { margin-top: 28px; border-top: 1px solid var(--rule); }
.spec div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .96rem; }
.spec dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-top: .3em; }
.chapter .sys-layers { margin: 26px 0 0; }
.chapter-photos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 6vw, 72px); }
.chapter-photos img { width: 100%; height: 100%; object-fit: cover; }
.chapter-photos .p1 { grid-column: 1 / 5; aspect-ratio: 3 / 2; }
.chapter-photos .p2 { grid-column: 5 / 7; aspect-ratio: 3 / 4; }
.chapter-photos .p3 { grid-column: 1 / 3; aspect-ratio: 1; }
.chapter-photos .p4 { grid-column: 3 / 7; aspect-ratio: 16 / 9; }
.chapter-photos .p2 { margin-top: 0; }

/* ---------- about ---------- */
.story-grid { display: grid; gap: 40px; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story-copy .h2 { margin: 22px 0 26px; max-width: 13ch; }
.story-copy p { color: var(--fg-2); margin-bottom: 18px; max-width: 56ch; }
.story-copy p.first { color: var(--fg); font-size: 1.2rem; }
.lead-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 32px; }
.mono-mark { width: 88px; height: 88px; border-radius: 50%; background: var(--slate); color: var(--blue); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.9rem; letter-spacing: -.02em; border: 1px solid var(--blue); }
.lead-card h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; }
.lead-card p { margin: 2px 0 0; font-size: .92rem; }
.pillars li { display: grid; gap: 6px; padding: 30px 0; border-top: 1px solid var(--rule); }
.pillars li:last-child { border-bottom: 1px solid var(--rule); }
.pillars .n { font-family: var(--f-mono); font-size: .76rem; color: var(--accent); }
.pillars h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-size: clamp(1.9rem, 4.6vw, 3.2rem); }
.pillars p { color: var(--fg-2); max-width: 46ch; }

/* ---------- quote page ---------- */
.quote-wrap { padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 100px)); padding-bottom: clamp(72px, 10vw, 140px); }
.quote-grid { display: grid; gap: 48px; }
.quote-side .h2 { margin: 22px 0 22px; max-width: 10ch; font-size: clamp(2.6rem, 8vw, 5.4rem); }
.reach { margin-top: 34px; border-top: 1px solid var(--rule); }
.reach a, .reach div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; align-items: baseline; min-height: 56px; }
.reach .k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.reach .v { font-family: var(--f-display); font-weight: 650; font-size: 1.2rem; letter-spacing: -.01em; overflow-wrap: anywhere; }
.form { display: grid; gap: 22px; }
.fld { display: grid; gap: 8px; min-width: 0; }
.fld label, .fld legend { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); padding: 0; }
.fld input, .fld select, .fld textarea {
  width: 100%; min-width: 0; min-height: 54px; padding: 14px 16px; border-radius: 2px; border: 1px solid var(--rule);
  background: rgba(255, 255, 255, .04); color: var(--fg); font: inherit; font-size: 1rem; appearance: none; -webkit-appearance: none; transition: border-color .3s, background .3s;
}
.z-paper .fld input, .z-paper .fld select, .z-paper .fld textarea { background: #fff; border-color: rgba(20, 24, 27, .22); }
.fld select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.fld select option { color: #14181b; }
.fld textarea { min-height: 130px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(123, 165, 188, .28); }
.fld .err { color: #d9604f; font-size: .85rem; min-height: 0; display: none; }
.z-ink .fld .err, .z-slate .fld .err { color: #ff9a8a; }
.fld.bad .err { display: block; }
.fld.bad input, .fld.bad select, .fld.bad textarea { border-color: #d9604f; }
.fld-row { display: grid; gap: 22px; }
fieldset.fld { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 2px; font-size: .95rem; transition: background .25s, color .25s, border-color .25s; }
.chip input:checked + span { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form .btn { width: 100%; }
.form-note { font-size: .88rem; color: var(--fg-2); }
.form-done { display: none; padding: 40px 0; }
.form-done.show { display: block; }
.form-done svg { width: 64px; height: 64px; color: var(--blue); margin-bottom: 20px; }
.form-done svg path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.form-done.show svg path { animation: draw .9s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-done h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.03em; line-height: 1.02; margin-bottom: 12px; }
.form-done p { color: var(--fg-2); max-width: 44ch; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .hero-cta { grid-template-columns: auto auto; justify-content: start; }
  .closer-cta { grid-template-columns: auto auto; justify-content: start; }
  .fld-row { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shot { width: 340px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .compare .row:not(.head) { grid-template-columns: 1.05fr 1.2fr 1.4fr 1.2fr; gap: 6px 28px; }
  .compare .c.sys-name { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  :root { --nav-h: 84px; }
  .brand img { width: 54px; height: 54px; }
  .burger, .menu, .callbar { display: none; }
  .nav-links { display: flex; }
  .foot { padding-bottom: 56px; }

  .hero::before { background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 30%, rgba(20, 24, 27, .74) 52%, rgba(20, 24, 27, .12) 100%), linear-gradient(180deg, rgba(20, 24, 27, .55) 0, transparent 22%, transparent 70%, var(--ink) 100%); }
  .hero { align-items: center; }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; padding-block: 60px 96px; }
  .hero h1 { margin-top: 28px; }
  .hero-note { display: block; align-self: end; justify-self: end; text-align: right; max-width: 24ch; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); line-height: 1.7; }
  .hero-note::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 0 16px auto; border: 1px solid var(--blue); border-radius: 50%; background: radial-gradient(circle, var(--blue) 0 3px, transparent 4px); }
  .hero-proof { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; }
  .hero-proof li { flex-direction: column; gap: 2px; align-items: flex-start; }
  .hero-proof b { font-size: 1.9rem; }

  .problem-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8vw; }
  .problem-l { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
  .faults li { grid-template-columns: 90px minmax(0, 1fr); padding: 40px 0; }
  .faults p { grid-column: 2; }

  /* pinned stack */
  .stack { padding-bottom: 0; }
  .stack-pin { height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 6px); }
  .stack-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-bottom: 6px; }
  .stack-head .h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); max-width: none; }
  .stack-rail { display: flex; gap: 0; border-top: 1px solid var(--rule); position: relative; margin-bottom: 0; }
  .stack-rail button { flex: 1; text-align: left; padding: 14px 0 12px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); transition: color .3s; min-height: 44px; }
  .stack-rail button.on { color: #fff; }
  .stack-rail button b { color: var(--blue); font-weight: 500; margin-right: .8em; }
  .stack-rail .bar { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
  .stack-stage { position: relative; flex: 1; min-height: 0; }
  .sys { position: absolute; inset: 0; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5vw; align-items: center; border-top: 0; padding-block: 12px 28px; }
  .sys:not(:first-child) { visibility: hidden; }
  .sys-copy .h3 { margin: 10px 0 10px; }
  .sys-sum { margin-bottom: 14px; }
  .sys-layers { margin-bottom: 18px; }
  .sys-layers li { padding: 7px 0; }
  .sys-art { height: 100%; display: flex; align-items: center; order: 0; }
  .stack-svg { max-height: 100%; }
  .stack-tail { display: none; }

  .why-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8vw; }
  .why-l { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
  .why-list li { grid-template-columns: 90px minmax(0, 1fr); padding: 34px 0; }

  .field { padding-bottom: 0; }
  .field-pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); }
  .field-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-bottom: 30px; }
  .field-head .h2 { max-width: none; font-size: clamp(2rem, 3.6vw, 3.2rem); }
  .field-track { overflow: visible; scroll-snap-type: none; width: max-content; padding-bottom: 0; gap: 22px; }
  .shot { width: 31vh; max-width: 340px; min-width: 250px; }
  .shot img { aspect-ratio: auto; height: 46vh; min-height: 300px; }
  .shot:nth-child(even) img { height: 38vh; min-height: 250px; aspect-ratio: auto; }
  .shot:nth-child(even) { align-self: flex-end; }
  .shot:nth-child(odd) { align-self: flex-start; }
  .shot:nth-child(3n) { width: 42vh; max-width: 460px; }

  .beyond-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 7vw; align-items: center; }
  .beyond-list li:hover { padding-left: 18px; color: var(--accent); }

  .process-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8vw; }
  .process-l { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
  .steps { padding-left: 64px; }
  .steps-line { left: 11px; }
  .step { padding-bottom: 96px; }
  .step::before { left: -64px; top: 12px; width: 23px; height: 23px; }

  .voices-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8vw; }
  .voices-r { display: grid; }
  .quote:nth-child(2) { margin-left: 12%; }
  .quote:nth-child(3) { margin-left: 4%; }

  .area-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6vw; align-items: center; }
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8vw; }
  .faq-l { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }

  .closer-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; }
  .closer-logo { display: block; }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }

  .phero .h1 { max-width: 14ch; }
  .chapter-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .chapter-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 7vw; align-items: start; }
  .chapter.flip .chapter-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .chapter.flip .chapter-copy { order: 2; }
  .chapter .sys { position: static; visibility: visible; display: block; padding: 0; border: 0; }
  .chapter-art { position: sticky; top: calc(var(--nav-h) + 24px); }
  .compare .row.head { display: grid; border-bottom-color: var(--fg); }
  .compare .row.head .c { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  .compare .row.head .c::before { display: none; }
  .compare .row { padding: 28px 0; grid-template-columns: 1.05fr 1.2fr 1.4fr 1.2fr; gap: 6px 28px; }
  .compare .c::before { display: none; }
  .compare .c.sys-name { grid-column: auto; margin: 0; }
  .compare .row.head, .compare .row:not(.head) { grid-template-columns: 1fr 1.25fr 1.4fr 1.2fr 1.3fr; }
  .compare .c5 { display: block; }

  .story-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8vw; align-items: start; }
  .story-photo { position: sticky; top: calc(var(--nav-h) + 30px); }
  .pillars li { grid-template-columns: 90px minmax(0, 6fr) minmax(0, 5fr); align-items: baseline; gap: 20px; padding: 44px 0; }

  .quote-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8vw; align-items: start; }
  .quote-side { position: sticky; top: calc(var(--nav-h) + 40px); }
}

@media (min-width: 1280px) {
  .sys { gap: 7vw; }
}

/* short desktop windows: keep the pinned stage inside the viewport */
@media (min-width: 900px) and (max-height: 760px) {
  .sys-sum { display: none; }
  .sys-layers li { padding: 5px 0; }
  .sys-copy .h3 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip-track { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- service pages ---------- */
.about-grid { display: grid; gap: 40px; }
.big-p p { font-family: var(--f-display); font-weight: 500; letter-spacing: -.015em; line-height: 1.32; font-size: clamp(1.25rem, 2.3vw, 1.8rem); margin-bottom: 22px; max-width: 34ch; }
.big-p p:first-child { color: var(--fg); }
.big-p p:not(:first-child) { color: var(--fg-2); font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
.about-grid .spec { margin-top: 34px; }
.about-grid .h2 { max-width: 11ch; }

.layers .sys { position: static; visibility: visible; display: grid; gap: 40px; padding: 0; border: 0; }
.layers .sys-art { order: -1; }
.layers .sys-copy .lede { color: var(--fg-2); }

.masonry { columns: 2; column-gap: 12px; margin-top: 40px; }
.ph-fig { break-inside: avoid; margin: 0 0 12px; }
.ph { display: block; width: 100%; overflow: hidden; background: var(--ink-2); cursor: zoom-in; position: relative; }
.ph img { width: 100%; height: auto; transition: transform .8s var(--ease), opacity .4s; }
.ph:hover img { transform: scale(1.04); }
.ph::after { content: "+"; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: var(--blue); font-family: var(--f-mono); font-size: 1.2rem; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease); }
.ph:hover::after, .ph:focus-visible::after { opacity: 1; transform: none; }
.ph-fig figcaption { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); padding-top: 8px; }
.gal-head .h2, .log-head .h2 { max-width: 14ch; }

.log-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.log-btns { display: flex; gap: 8px; flex: none; }
.log-btns button { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--rule); transition: background .3s, color .3s, transform .2s; }
.log-btns button:hover { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.log-btns button:active { transform: scale(.96); }
.log-btns svg { width: 20px; height: 20px; }
.log-btns button:first-child svg { transform: scaleX(-1); }
.log-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 10px; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
.log-track::-webkit-scrollbar { display: none; }
.log-item { flex: none; width: min(66vw, 270px); scroll-snap-align: start; }
.log-item .ph img { aspect-ratio: 9 / 16; object-fit: cover; }
.log-item p { font-family: var(--f-display); font-weight: 650; font-size: 1.25rem; letter-spacing: -.02em; padding-top: 14px; }
.log-item p b { font-family: var(--f-mono); font-size: .72rem; color: var(--blue); font-weight: 500; margin-right: 10px; letter-spacing: .12em; }
.log-item span { display: block; color: var(--fg-2); font-size: .92rem; line-height: 1.45; margin-top: 4px; }
.gal-head { margin-top: clamp(64px, 9vw, 120px); }

.more { border-top: 1px solid var(--rule); }
.more-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 4px 12px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--rule); text-decoration: none; min-height: 44px; transition: padding .45s var(--ease), color .3s; }
.more-row .n { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); }
.more-row .t { font-family: var(--f-display); font-weight: 650; letter-spacing: -.02em; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.1; }
.more-row .d { grid-column: 2; color: var(--fg-2); font-size: .98rem; }
.more-row svg { width: 22px; height: 22px; grid-row: 1; grid-column: 3; transition: transform .35s var(--ease); color: var(--accent); }
.more-row:hover svg { transform: translateX(6px); }

.lb { position: fixed; inset: 0; z-index: 200; background: rgba(12, 15, 17, .96); display: grid; grid-template-rows: 1fr auto; padding: 18px var(--gutter) 22px; visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s; color: #eef2f3; }
.lb.open { visibility: visible; opacity: 1; transition: opacity .35s, visibility 0s; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding-block: 52px 12px; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }
.lb-bar p { max-width: 60ch; line-height: 1.5; text-transform: none; letter-spacing: .02em; font-size: .88rem; }
.lb-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(238, 242, 243, .24); color: #fff; flex: none; transition: background .3s, color .3s; }
.lb-btn:hover { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-x { position: absolute; top: 14px; right: var(--gutter); }
.lb-nav { display: flex; gap: 8px; }
.lb-prev svg { transform: scaleX(-1); }
body.lb-open { overflow: hidden; }

@media (min-width: 640px) {
  .masonry { columns: 3; column-gap: 14px; }
  .ph-fig { margin-bottom: 14px; }
  .masonry.cols4 { columns: 3; }
  .log-item { width: 270px; }
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8vw; }
  .about-grid > div:first-child { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
  .layers .sys { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 6vw; align-items: center; }
  .layers .sys-art { order: 0; }
  .masonry.cols4 { columns: 4; }
  .more-row { grid-template-columns: 70px minmax(0, 5fr) minmax(0, 6fr) 30px; gap: 20px; padding: 34px 0; }
  .more-row .d { grid-column: 3; }
  .more-row svg { grid-column: 4; }
  .more-row:hover { padding-left: 18px; }
}
.crumb { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }

/* on-site photo grid (about) */
.onsite-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.onsite-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) { .onsite-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.onsite-grid .wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
