/* ==========================================================================
   Leengate — style.css
   Palette taken from the logo: crimson #AF302E, steel #69747B / #8D949B.
   ========================================================================== */

/* Self-hosted Geist + Geist Mono (SIL OFL 1.1, see assets/fonts/LICENSE.md). Latin + Latin-Ext subsets. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/geist-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; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/geist-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/geist-mono-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; }

:root {
  --red: #af302e;
  --red-deep: #8c2422;
  --red-bright: #e5584f;           /* crimson for use on dark grounds */
  --ink: #121416;
  --char: #1c1f22;
  --char-2: #272b2f;
  --steel: #69747b;
  --steel-2: #8d949b;
  --steel-3: #c5cacd;
  --mist: #f0f0ee;
  --bone: #f7f6f3;
  --paper: #ffffff;
  --muted: #5d656b;
  --line: rgba(18, 20, 22, .12);
  --line-dark: rgba(255, 255, 255, .14);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 22px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- type primitives ---------- */
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; text-transform: uppercase; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--red); flex: none; }
.on-dark .eyebrow { color: rgba(255,255,255,.62); }
.h-xl { font-size: clamp(2.7rem, 6.6vw, 6.4rem); letter-spacing: -0.05em; line-height: .94; }
.h-lg { font-size: clamp(2.1rem, 4.4vw, 4rem); letter-spacing: -0.045em; line-height: .98; }
.h-md { font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -0.035em; line-height: 1.05; }
.lede { font-size: .95rem; color: var(--muted); line-height: 1.65; max-width: 46ch; }
.lede-lg { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); line-height: 1.6; max-width: 52ch; }
.on-dark .lede, .on-dark .lede-lg { color: rgba(255,255,255,.7); }
.muted { color: var(--muted); }
.red { color: var(--red); }

/* ---------- buttons & links ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 10px 0 24px;
  border-radius: 999px; background: var(--bg); color: var(--fg); border: 0;
  font-weight: 500; font-size: .95rem; letter-spacing: -0.01em; white-space: nowrap;
  transition: background .3s, color .3s, transform .3s var(--ease-out);
}
.btn .arr {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--fg); color: var(--bg); transition: transform .4s var(--ease-out);
}
.btn .arr svg { width: 14px; height: 14px; }
.btn:hover .arr { transform: rotate(-45deg); }
.btn-red { --bg: var(--red); --fg: #fff; }
.btn-red:hover { --bg: var(--red-deep); }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-ghost { background: transparent; color: currentColor; padding: 0 22px; box-shadow: inset 0 0 0 1px currentColor; }
.btn-ghost:hover { background: rgba(127,127,127,.12); }
.link {
  display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: gap .4s var(--ease-out);
}
.link:hover { gap: 14px; }
.link svg { width: 13px; height: 13px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; color: #fff;
  transition: background .4s, color .4s, box-shadow .4s, transform .5s var(--ease-out);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: block; width: 176px; flex: none; position: relative; }
.brand img { width: 100%; height: auto; transition: opacity .35s; }
.brand .logo-color { position: absolute; inset: 0; opacity: 0; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  position: relative; padding: 10px 14px; font-size: .92rem; font-weight: 450; border-radius: 999px;
  transition: background .25s;
}
.nav a:not(.btn):hover { background: rgba(127,127,127,.16); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; background: var(--red);
}
.nav .btn { height: 44px; margin-left: 10px; font-size: .9rem; padding-left: 20px; }
.nav .btn .arr { width: 28px; height: 28px; }
.site-header.is-solid, .site-header.is-light {
  background: rgba(255,255,255,.92); color: var(--ink);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid .logo-color, .site-header.is-light .logo-color { opacity: 1; }
.site-header.is-solid .logo-white, .site-header.is-light .logo-white { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(127,127,127,.18); position: relative; }
.menu-btn span { position: absolute; left: 15px; right: 15px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.menu-btn span:nth-child(1) { top: 20px; } .menu-btn span:nth-child(2) { top: 27px; }
.menu-open .menu-btn span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 23.5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 0;
    padding: 110px var(--pad) 40px; background: var(--char); color: #fff;
    clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); visibility: hidden;
  }
  .nav a:not(.btn) { font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -0.04em; padding: 8px 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav a[aria-current="page"]::after { left: auto; right: 0; top: 50%; bottom: auto; width: 10px; height: 10px; margin: -5px 0 0; }
  .nav .btn { margin: 28px 0 0; height: 56px; justify-content: space-between; }
  .menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .menu-open .site-header { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open .site-header .logo-white { opacity: 1; } .menu-open .site-header .logo-color { opacity: 0; }
  .menu-open, html:has(body.menu-open) { overflow: hidden; }
  .brand { width: 150px; z-index: 2; }
}

/* ---------- registration marks (survey motif) ---------- */
.reg { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.reg::before, .reg::after { content: ""; position: absolute; background: currentColor; }
.reg::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.reg::after { top: 50%; left: 0; right: 0; height: 1px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; max-height: 1100px; color: #fff; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.08); animation: heroIn 2.6s var(--ease-out) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,12,14,.55) 0%, rgba(10,12,14,0) 26%),
    linear-gradient(0deg, rgba(10,12,14,.88) 0%, rgba(10,12,14,.35) 42%, rgba(10,12,14,0) 70%),
    linear-gradient(90deg, rgba(10,12,14,.45) 0%, rgba(10,12,14,0) 60%);
}
.hero .wrap { position: relative; padding-top: 140px; }
.hero h1 { max-width: 13ch; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: block; transform: translateY(105%); animation: lineUp 1.2s var(--ease-out) forwards; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { to { transform: none; } }
.hero h1 em { font-style: normal; color: var(--red-bright); }
.hero-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; margin-top: 34px; }
.hero-copy { opacity: 0; animation: fadeUp 1.1s .5s var(--ease-out) forwards; }
.hero-copy p { font-size: clamp(1rem, 1.2vw, 1.12rem); color: rgba(255,255,255,.78); max-width: 50ch; line-height: 1.6; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.site-tag {
  position: relative; width: 300px; padding: 18px 20px 20px; border-radius: 16px;
  background: rgba(18,20,22,.5); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.16); font-family: var(--mono); font-size: .72rem; letter-spacing: .02em;
  opacity: 0; animation: fadeUp 1.1s .8s var(--ease-out) forwards;
}
.site-tag .peg {
  display: inline-block; padding: 3px 8px; background: #fff; color: var(--ink); font-weight: 600; font-size: .78rem; letter-spacing: .06em;
  border-radius: 3px; box-shadow: 0 1px 0 rgba(0,0,0,.3);
}
.site-tag dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 14px 0 0; }
.site-tag dt { color: rgba(255,255,255,.5); text-transform: uppercase; }
.site-tag dd { margin: 0; text-align: right; }
.site-tag .live { display: inline-flex; align-items: center; gap: 7px; float: right; margin-top: 3px; color: rgba(255,255,255,.75); text-transform: uppercase; }
.site-tag .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5bd67a; box-shadow: 0 0 0 0 rgba(91,214,122,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(91,214,122,0); } 100% { box-shadow: 0 0 0 0 rgba(91,214,122,0); } }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vh, 72px);
  border-top: 1px solid rgba(255,255,255,.2);
  opacity: 0; animation: fadeUp 1.1s 1s var(--ease-out) forwards;
}
.hero-stats div { padding: 20px 20px 28px 0; }
.hero-stats div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.2); }
.hero-stats b { display: block; font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -0.04em; line-height: 1.1; }
.hero-stats span { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.6); }
.hero .reg { color: rgba(255,255,255,.55); }
.hero .reg.tl { top: 104px; left: var(--pad); } .hero .reg.tr { top: 104px; right: var(--pad); }
.coords {
  position: absolute; right: var(--pad); top: 50%; transform: rotate(90deg) translateX(50%); transform-origin: right center;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; color: rgba(255,255,255,.55); white-space: nowrap;
}
@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; }
  .site-tag { width: 100%; max-width: 380px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.2); }
  .coords { display: none; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marq 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 22px; padding: 22px 22px 22px 0;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem); letter-spacing: -0.03em; white-space: nowrap;
}
.marquee-track span::after { content: ""; width: 9px; height: 9px; background: var(--red); }
.marquee-track span i { font-style: normal; font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-sm { padding: clamp(60px, 8vw, 100px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 60px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2 { margin-top: 18px; max-width: 16ch; }
.sec-head .side { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }
.bg-mist { background: var(--mist); }
.bg-bone { background: var(--bone); }
.bg-dark { background: var(--char); color: #fff; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.js .rv-img { clip-path: inset(12% 0 0 0); transition: clip-path 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
.js .rv-img img { transform: scale(1.12); transition: transform 1.8s var(--ease-out); transition-delay: var(--d, 0s); }
.rv-img.in { clip-path: inset(0 0 0 0); } .rv-img.in img { transform: none; }

/* ==========================================================================
   Three ways — see docs/three-ways-section.md
   ========================================================================== */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.way {
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 380px;
  padding: 30px 28px 32px; border-radius: 22px; background: var(--mist); overflow: hidden; color: var(--ink);
  transition: color .6s;
}
.way::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(229, 88, 79, .34), rgba(229, 88, 79, 0) 58%),
    linear-gradient(160deg, #2b2f33, #121416);
}
.way-num { font-family: var(--mono); font-size: .75rem; color: var(--muted); transition: color .6s; display: flex; justify-content: space-between; }
.way-float { margin: 22px 0 auto -8px; width: 128px; animation: wayFloat 7s ease-in-out infinite; }
.way:nth-child(2) .way-float { animation-delay: -2.3s; }
.way:nth-child(3) .way-float { animation-delay: -4.6s; }
@keyframes wayFloat { 50% { transform: translateY(-18px); } }
.way-obj {
  width: 128px; height: 128px; object-fit: contain;
  filter: drop-shadow(0 22px 18px rgba(28, 16, 14, .22)) drop-shadow(0 4px 4px rgba(28, 16, 14, .12));
  transition: transform .8s var(--ease-out), filter .8s var(--ease-out);
}
.way h3 { font-weight: 400; font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -0.02em; margin-top: 36px; }
.way p { font-size: .92rem; color: var(--muted); max-width: 34ch; margin-top: 10px; line-height: 1.6; transition: color .6s; }
.way .link { margin-top: 22px; align-self: flex-start; }
.way .link::after { content: ""; position: absolute; inset: 0; }   /* whole card is the hit area */
.way:hover { color: #fff; }
.way:hover::before { opacity: 1; }
.way:hover .way-num { color: var(--red-bright); }
.way:hover p { color: rgba(255,255,255,.75); }
.way:hover .way-obj { transform: rotate(-12deg) scale(1.08); filter: drop-shadow(0 30px 28px rgba(0, 0, 0, .42)) drop-shadow(0 6px 6px rgba(0, 0, 0, .2)); }
.way:hover .link { gap: 14px; }
.ways .way.rv:nth-child(2) { --d: .12s; } .ways .way.rv:nth-child(3) { --d: .24s; }
@media (max-width: 1100px) { .ways { grid-template-columns: repeat(2, 1fr); } .ways .way:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .ways { grid-template-columns: 1fr; } .ways .way:nth-child(3) { grid-column: auto; }
  .way { min-height: 0; } .way-float, .way-obj { width: 104px; height: 104px; }
}

/* ---------- project cards ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.proj { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--char); color: #fff; isolation: isolate; min-height: 420px; }
.proj .ph { position: absolute; inset: 0; z-index: -2; }
.proj .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.proj:hover .ph img { transform: scale(1.05); }
.proj::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,13,15,.9) 0%, rgba(12,13,15,.2) 52%, rgba(12,13,15,0) 75%), linear-gradient(180deg, rgba(12,13,15,.45), rgba(12,13,15,0) 30%); }
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 20px 20px 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.live::before { background: #5bd67a; } .chip.done::before { background: var(--steel-3); }
.chip-dark { background: var(--mist); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.proj-arrow { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); transition: transform .5s var(--ease-out), background .3s, color .3s; }
.proj-arrow svg { width: 15px; height: 15px; }
.proj:hover .proj-arrow { transform: rotate(-45deg); background: var(--red); color: #fff; }
.proj-body { margin-top: auto; padding: 22px 22px 24px; }
.proj-body .loc { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.65); }
.proj-body h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -0.04em; margin-top: 8px; }
.proj-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); }
.proj-facts div { font-size: .85rem; color: rgba(255,255,255,.7); }
.proj-facts b { display: block; color: #fff; font-weight: 500; font-size: 1.05rem; letter-spacing: -0.02em; }
.proj.span-7 { grid-column: span 7; min-height: 600px; } .proj.span-5 { grid-column: span 5; }
.proj.span-4 { grid-column: span 4; } .proj.span-6 { grid-column: span 6; } .proj.span-8 { grid-column: span 8; }
.proj-stack { grid-column: span 5; display: grid; gap: 14px; grid-template-rows: 1fr 1fr; }
.proj-stack .proj { min-height: 0; }
.proj.span-7 h3 { font-size: clamp(2rem, 4vw, 3.6rem); }
@media (max-width: 1000px) {
  .proj.span-7, .proj.span-5, .proj-stack, .proj.span-8 { grid-column: 1 / -1; }
  .proj.span-4, .proj.span-6 { grid-column: span 6; }
  .proj.span-7 { min-height: 520px; } .proj-stack .proj { min-height: 400px; }
  .proj-stack { grid-template-rows: none; }
}
@media (max-width: 640px) { .proj.span-4, .proj.span-6 { grid-column: 1 / -1; } .proj { min-height: 440px; } }
.proj[hidden] { display: none; }

/* ---------- numbers band ---------- */
.numbers { position: relative; overflow: hidden; }
.numbers .plan-bg { position: absolute; right: -8%; top: -10%; width: 70%; max-width: 1100px; opacity: .13; pointer-events: none; transform: rotate(-4deg); }
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); position: relative; }
.num { padding: 30px 24px 10px 0; }
.num + .num { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.num b { display: block; font-weight: 400; font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.num b sup { font-size: .4em; color: var(--red-bright); vertical-align: top; position: relative; top: .3em; margin-left: .04em; }
.num p { margin-top: 18px; font-size: .9rem; color: rgba(255,255,255,.65); max-width: 24ch; }
.num .mono { color: rgba(255,255,255,.45); display: block; margin-bottom: 26px; }
@media (max-width: 900px) {
  .num-grid { grid-template-columns: 1fr 1fr; }
  .num:nth-child(3) { padding-left: 0; border-left: 0; }
  .num:nth-child(n+3) { border-top: 1px solid var(--line-dark); margin-top: 20px; }
}

/* ---------- ledger ---------- */
.ledger { border-top: 1px solid var(--ink); }
.ledger-row {
  display: grid; grid-template-columns: 70px minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1.3fr) 110px; gap: 20px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line); transition: background .3s, padding .4s var(--ease-out);
}
.ledger-row:not(.head):hover { background: var(--mist); padding-left: 14px; padding-right: 14px; }
.ledger-row.head { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 14px 0; }
.ledger-row .i { font-family: var(--mono); font-size: .75rem; color: var(--red); }
.ledger-row .t { font-size: 1.15rem; letter-spacing: -0.02em; font-weight: 500; }
.ledger-row .s, .ledger-row .c { color: var(--muted); font-size: .92rem; }
.ledger-row .y { font-family: var(--mono); font-size: .78rem; text-align: right; }
.ledger-row .y.on { color: var(--red); }
.ledger-group { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; padding: 30px 0 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
@media (max-width: 760px) {
  .ledger-row { grid-template-columns: 44px 1fr auto; }
  .ledger-row .s { grid-column: 2 / -1; grid-row: 2; font-size: .85rem; }
  .ledger-row .c { grid-column: 2 / -1; grid-row: 3; font-size: .8rem; }
  .ledger-row.head .s, .ledger-row.head .c { display: none; }
}

/* ---------- people in red / story ---------- */
.crew { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 560px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.crew > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; object-position: 50% 35%; }
.crew::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,13,15,.85), rgba(12,13,15,.05) 60%); }
.crew-copy { padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; width: 100%; }
.crew-copy h2 { max-width: 14ch; }
.crew-copy p { color: rgba(255,255,255,.78); max-width: 42ch; margin-top: 16px; }
@media (max-width: 760px) { .crew-copy { grid-template-columns: 1fr; } .crew { min-height: 620px; } .crew > img { object-position: 30% 30%; } }

.skyline { position: relative; overflow: hidden; }
.skyline-art { width: 100%; max-width: 1500px; margin: 0 auto; display: block; opacity: .9; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); align-items: start; }
.story-grid .big { font-size: clamp(1.5rem, 2.6vw, 2.3rem); letter-spacing: -0.035em; line-height: 1.2; }
.story-grid .big b { font-weight: 500; color: var(--red); }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }

.iso { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.iso-card { position: relative; padding: 26px 24px 24px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 40px; overflow: hidden; }
.iso-card .seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ink); font-family: var(--mono); font-size: .62rem; text-align: center; line-height: 1.15; position: relative; }
.iso-card .seal::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed var(--steel-2); }
.iso-card b { display: block; font-weight: 500; font-size: 1.5rem; letter-spacing: -0.035em; }
.iso-card span { color: var(--muted); font-size: .9rem; }
.iso-card .code { position: absolute; right: 20px; top: 24px; font-family: var(--mono); font-size: .7rem; color: var(--red); }
@media (max-width: 860px) { .iso { grid-template-columns: 1fr; } .iso-card { flex-direction: row; align-items: center; gap: 20px; } }

/* ---------- CTA ---------- */
.cta { position: relative; border-radius: 28px; overflow: hidden; background: var(--red); color: #fff; padding: clamp(36px, 6vw, 80px); isolation: isolate; }
.cta .plan-bg { position: absolute; inset: -20% -10% auto auto; width: 75%; opacity: .16; z-index: -1; transform: rotate(6deg); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.cta h2 { max-width: 13ch; }
.cta p { color: rgba(255,255,255,.82); max-width: 44ch; margin-top: 20px; }
.cta-lines { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.3); }
.cta-lines a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.3); font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: -0.02em; transition: padding .4s var(--ease-out); }
.cta-lines a:hover { padding-left: 10px; }
.cta-lines a span { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.7); }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: clamp(70px, 9vw, 110px) 0 28px; position: relative; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-top .logo { width: 210px; }
.foot-top p { color: rgba(255,255,255,.6); font-size: .92rem; max-width: 34ch; margin-top: 22px; }
.foot-col h4 { font-family: var(--mono); font-size: .7rem; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.foot-col a, .foot-col li { display: block; font-size: .95rem; color: rgba(255,255,255,.85); padding: 4px 0; transition: color .2s; }
.foot-col a:hover { color: var(--red-bright); }
.foot-word { margin-top: clamp(60px, 8vw, 100px); font-weight: 500; font-size: clamp(4rem, 17.5vw, 17rem); letter-spacing: -0.07em; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.18); white-space: nowrap; user-select: none; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.45); }
.foot-bottom a:hover { color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 26px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-dark); transition: background .3s; }
.socials a:hover { background: var(--red); box-shadow: none; }
.socials svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 170px 0 0; overflow: hidden; }
.page-hero .wrap { position: relative; }
.page-hero h1 { margin-top: 22px; max-width: 15ch; }
.page-hero .lede-lg { margin-top: 26px; }
.page-hero-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 30px 60px; align-items: end; }
.page-hero-img { margin-top: clamp(50px, 7vw, 90px); border-radius: var(--radius); overflow: hidden; aspect-ratio: 21/9; position: relative; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-img .tag { position: absolute; left: 18px; bottom: 18px; }
.crumbs { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: flex; gap: 10px; }
.crumbs a:hover { color: var(--red); }
.page-hero .reg { color: var(--steel-3); top: 120px; }
.page-hero .reg.tl { left: var(--pad); } .page-hero .reg.tr { right: var(--pad); }
@media (max-width: 860px) { .page-hero-row { grid-template-columns: 1fr; } .page-hero-img { aspect-ratio: 4/3; } }

/* ---------- services page ---------- */
.svc { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.1fr); gap: 30px 50px; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); align-items: start; }
.svc .n { font-family: var(--mono); font-size: .8rem; color: var(--red); padding-top: 8px; }
.svc h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); letter-spacing: -0.04em; }
.svc p { color: var(--muted); margin-top: 18px; max-width: 46ch; }
.svc ul { margin-top: 24px; display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 46ch; }
.svc li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; display: flex; gap: 12px; }
.svc li::before { content: ""; width: 6px; height: 6px; background: var(--red); margin-top: .55em; flex: none; }
.svc-img { border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; position: relative; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-img .chip { position: absolute; left: 14px; bottom: 14px; }
.svc-obj { position: absolute; right: 14px; top: 14px; width: 92px; filter: drop-shadow(0 16px 14px rgba(0,0,0,.35)); }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; } .svc .n { padding: 0; } }

.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.fleet div { padding: 18px 18px 20px; border-radius: 14px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line-dark); }
.fleet span { font-family: var(--mono); font-size: .68rem; color: var(--red-bright); }
.fleet b { display: block; margin-top: 26px; font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; }

/* ---------- about ---------- */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.value { padding: 24px 22px 26px; border-radius: 18px; background: var(--paper); min-height: 260px; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--line); transition: background .5s, color .5s; }
.value .mono { color: var(--red); }
.value h3 { font-weight: 500; font-size: 1.35rem; letter-spacing: -0.03em; margin-top: auto; }
.value p { font-size: .88rem; color: var(--muted); margin-top: 10px; transition: color .5s; }
.value:hover { background: var(--char); color: #fff; } .value:hover p { color: rgba(255,255,255,.7); }
@media (max-width: 1100px) { .values { grid-template-columns: repeat(2, 1fr); } .value:last-child { grid-column: 1 / -1; min-height: 200px; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } .value { min-height: 0; } .value h3 { margin-top: 30px; } }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mv > div { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--mist); }
.mv > div:last-child { background: var(--char); color: #fff; }
.mv h3 { font-family: var(--mono); font-weight: 400; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--red); }
.mv > div:last-child h3 { color: var(--red-bright); }
.mv p { font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -0.03em; line-height: 1.25; margin-top: 60px; }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.timeline div { padding: 24px 22px 0 0; }
.timeline div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.timeline b { display: block; font-weight: 400; font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.05em; }
.timeline p { color: var(--muted); font-size: .9rem; margin-top: 10px; max-width: 30ch; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline div:nth-child(3) { border-left: 0; padding-left: 0; } .timeline div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; } }

.duo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.duo figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.duo figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
.duo figcaption { position: absolute; left: 16px; bottom: 16px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ---------- projects page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--mist); font-size: .9rem; transition: background .3s, color .3s; }
.filters button span { font-family: var(--mono); font-size: .7rem; margin-left: 6px; color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filters button[aria-pressed="true"] span { color: var(--red-bright); }

/* ---------- project detail ---------- */
.pd-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; background: var(--ink); }
.pd-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pd-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,13,15,.9), rgba(12,13,15,.1) 60%), linear-gradient(180deg, rgba(12,13,15,.5), rgba(12,13,15,0) 25%); }
.pd-hero .wrap { padding-bottom: 50px; padding-top: 150px; }
.pd-hero .crumbs { color: rgba(255,255,255,.6); }
.pd-hero h1 { margin-top: 20px; }
.pd-hero .chip { margin-top: 24px; }
.pd-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border-top: 1px solid rgba(255,255,255,.22); }
.pd-facts div { padding: 18px 18px 0 0; }
.pd-facts div + div { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.22); }
.pd-facts span { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.55); }
.pd-facts b { display: block; margin-top: 6px; font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.5rem); letter-spacing: -0.03em; }
@media (max-width: 760px) { .pd-facts { grid-template-columns: 1fr 1fr; } .pd-facts div:nth-child(3) { padding-left: 0; border-left: 0; } .pd-facts div:nth-child(n+3) { margin-top: 18px; } }
.pd-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); }
.pd-body .prose p { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.65; color: #2f3539; }
.pd-body .prose p + p { margin-top: 1.1em; }
.pd-body .prose p:first-child { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -0.03em; line-height: 1.35; color: var(--ink); }
.pd-aside { position: sticky; top: 110px; align-self: start; display: grid; gap: 14px; }
.pd-card { padding: 24px; border-radius: 18px; background: var(--mist); }
.pd-card h3 { font-family: var(--mono); font-weight: 400; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 14px; }
.pd-card li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; font-size: .95rem; }
.pd-card li::before { content: ""; width: 6px; height: 6px; background: var(--red); margin-top: .6em; flex: none; }
.pd-card.dark { background: var(--char); color: #fff; }
.pd-card.dark h3 { color: rgba(255,255,255,.55); }
.pd-card.dark p { color: rgba(255,255,255,.7); font-size: .92rem; margin-bottom: 18px; }
@media (max-width: 900px) { .pd-body { grid-template-columns: 1fr; } .pd-aside { position: static; } }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery button { padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--mist); position: relative; aspect-ratio: 16/10; grid-column: span 2; }
.gallery button:nth-child(5n+1) { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gallery button:hover img { transform: scale(1.05); }
.gallery button::after { content: "+"; position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.1rem; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s; }
.gallery button:hover::after { opacity: 1; transform: none; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery button, .gallery button:nth-child(5n+1) { grid-column: span 1; grid-row: auto; aspect-ratio: 4/3; } .gallery button:nth-child(3n+1) { grid-column: 1 / -1; aspect-ratio: 16/10; } }

.plan-figure { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 20px; }
.plan-figure img { width: 100%; height: auto; }

.pd-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pd-next a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; border-radius: var(--radius); overflow: hidden; color: #fff; padding: 24px; isolation: isolate; }
.pd-next a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.pd-next a:hover img { transform: scale(1.05); }
.pd-next a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,13,15,.85), rgba(12,13,15,.1)); }
.pd-next span { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.65); }
.pd-next b { font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -0.04em; margin-top: 6px; }
@media (max-width: 640px) { .pd-next { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(10,11,12,.94); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; color: #fff; }
.lb.open { opacity: 1; visibility: visible; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad); font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 var(--pad); min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: background .3s; }
.lb-btn:hover { background: var(--red); }
.lb-btn svg { width: 16px; height: 16px; }
.lb-nav { display: flex; justify-content: center; gap: 10px; padding: 18px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.c-lines { border-top: 1px solid var(--line); }
.c-line { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.c-line span { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 4px; }
.c-line a, .c-line p { font-size: 1.15rem; letter-spacing: -0.02em; }
.c-line a { display: block; transition: color .2s; }
.c-line a:hover { color: var(--red); }
.form { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--mist); }
.form h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.04em; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.field label { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; background: #fff; font: inherit; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23121416' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { height: 140px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(18,20,22,.08); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; height: 40px; align-items: center; padding: 0 16px; border-radius: 999px; background: #fff; font-size: .9rem; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form .btn { margin-top: 24px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.map { margin-top: 14px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--mist); filter: grayscale(.85) contrast(1.05); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } .c-line { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 140px var(--pad) 80px; position: relative; overflow: hidden; }
.nf .peg-big { display: inline-block; padding: 14px 28px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(0,0,0,.25); font-family: var(--mono); font-size: clamp(3rem, 10vw, 7rem); font-weight: 600; letter-spacing: .04em; transform: rotate(-3deg); }
.nf .stake { width: 6px; height: 120px; margin: -4px auto 0; background: linear-gradient(90deg, #333, #777, #333); }
.nf h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 40px; }
.nf p { color: var(--muted); margin: 16px auto 30px; max-width: 42ch; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; } .js .rv-img { clip-path: none; } .js .rv-img img { transform: none; }
  .way-float { animation: none; }
  .marquee-track { animation: none; }
}

/* plan-image cards & plan hero */
.proj.is-plan .ph { background: #fff; padding: 24px 24px 120px; }
.proj.is-plan .ph img { object-fit: contain; }
.pd-hero > img.plan-hero { filter: none; }

/* --- review fixes --- */
.hero-stats b span { font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; }
.ledger-row.head span { font: inherit; color: inherit; }
.crew { min-height: 0; aspect-ratio: 1.93 / 1; }
@media (max-width: 760px) { .crew { aspect-ratio: auto; min-height: 640px; } }
html { overflow-x: clip; }
.seg label { position: relative; font-family: var(--sans); text-transform: none; letter-spacing: normal; font-size: .9rem; color: var(--ink); }
.seg input { left: 0; top: 0; width: 1px; height: 1px; }
.svc-img .svc-obj { width: 92px; height: 92px; object-fit: contain; }
.gallery { grid-auto-flow: dense; }
.iso-card .seal { flex: none; }
.crew-copy .btn { justify-self: start; }

/* ==========================================================================
   Round 2: mobile parity, patterns, stage, bento, WhatsApp
   ========================================================================== */

/* desktop / mobile copy: .d is the full line, .m the short one */
.m { display: none; }
@media (max-width: 700px) { .d { display: none !important; } .m { display: inline; } }

/* ---------- header: plain menu icon + compact CTA ---------- */
.hdr-m { display: none; align-items: center; gap: 4px; position: relative; z-index: 2; }
.hdr-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 13px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: .82rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: opacity .3s, transform .4s var(--ease-out), background .3s;
}
.hdr-cta i { width: 7px; height: 7px; background: #fff; flex: none; }
.hdr-cta:active { transform: scale(.96); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 0; background: none; position: relative; color: currentColor; }
.menu-btn span { position: absolute; right: 8px; left: auto; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out), opacity .3s, width .45s var(--ease-out); }
.menu-btn span:nth-child(1) { top: 15px; width: 24px; }
.menu-btn span:nth-child(2) { top: 21px; width: 24px; }
.menu-btn span:nth-child(3) { top: 27px; width: 14px; }
.menu-open .menu-btn span:nth-child(1) { top: 21px; width: 24px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21px; opacity: 0; transform: translateX(8px); }
.menu-open .menu-btn span:nth-child(3) { top: 21px; width: 24px; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .hdr-m { display: flex; }
  .menu-btn { display: block; }
  .menu-open .hdr-cta { opacity: 0; pointer-events: none; transform: translateX(8px); }
  .brand { width: 136px; }
  .site-header .bar { height: 72px; }
}

/* ---------- buttons on touch: the press is the hover ---------- */
.btn:active .arr { transform: rotate(-45deg); }

/* ---------- hero details translated for mobile ---------- */
@media (max-width: 900px) {
  .coords { display: block; top: 92px; right: auto; left: calc(var(--pad) + 30px); transform: none; font-size: .58rem; letter-spacing: .12em; }
  .hero .reg.tl, .hero .reg.tr { top: 92px; }
  .hero .reg.tr { display: none; }
  .hero .wrap { padding-top: 130px; }
  .hero-row { gap: 22px; margin-top: 22px; }
  .site-tag { padding: 14px 16px 16px; }
  .site-tag dl { grid-template-columns: auto 1fr; gap: 6px 14px; }
}

/* ---------- "What we do" corner patterns ---------- */
.way::after {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 240px; height: 240px; pointer-events: none;
  background: var(--ink); opacity: .13;
  -webkit-mask: var(--pat) top right / 240px 240px no-repeat; mask: var(--pat) top right / 240px 240px no-repeat;
  transition: opacity .6s, background .6s, transform 1.2s var(--ease-out);
}
.way:hover::after { background: #fff; opacity: .2; transform: translate(-6px, 6px) scale(1.04); }
@media (max-width: 600px) { .way::after { width: 190px; height: 190px; -webkit-mask-size: 190px 190px; mask-size: 190px 190px; } }

/* ==========================================================================
   Process stage: a pinned, scroll-driven sequence. One component for every viewport.
   ========================================================================== */
.stage-sec { position: relative; background: var(--char); color: #fff; }
.stage-track { position: relative; height: 520vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 85% 10%, rgba(229,88,79,.16), transparent 60%), radial-gradient(60% 50% at 0% 100%, rgba(141,148,155,.12), transparent 70%); }
.stage-plan { position: absolute; z-index: -1; right: -12%; top: -14%; width: 78%; max-width: none; opacity: .07; transform: rotate(-4deg) translateY(calc(var(--sp, 0) * -90px)); pointer-events: none; }
.stage-in { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 3.4vh, 44px); padding-top: 96px; padding-bottom: 36px; }
.stage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.stage-head h2 { margin-top: 14px; max-width: 20ch; }
.stage-count { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.5); white-space: nowrap; display: flex; align-items: baseline; gap: 8px; }
.stage-count b { font-family: var(--sans); font-weight: 400; font-size: 2rem; letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }

.stage-grid { display: grid; grid-template-columns: 210px minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 52px); height: min(60vh, 620px); }
.stage-rail { display: flex; flex-direction: column; justify-content: space-between; }
.stage-rail li { flex: 1; display: flex; }
.stage-rail button {
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; text-align: left;
  padding: 0 0 0 20px; border: 0; background: none; color: rgba(255,255,255,.4); transition: color .5s;
}
.stage-rail .i { font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; }
.stage-rail .t { font-size: 1.02rem; letter-spacing: -0.02em; }
.stage-rail i { position: absolute; left: 0; top: 10%; bottom: 10%; width: 2px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; }
.stage-rail i::after { content: ""; position: absolute; inset: 0; background: var(--red-bright); transform: scaleY(var(--p, 0)); transform-origin: top; }
.stage-rail li.on button, .stage-rail li.done button { color: #fff; }
.stage-rail li.on .i { color: var(--red-bright); }
.stage-rail button:hover { color: #fff; }

.stage-media { position: relative; border-radius: var(--radius); overflow: hidden; background: #0c0d0e; }
.stage-media figure { position: absolute; inset: 0; margin: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-io); }
.stage-media figure.shown { clip-path: inset(0 0 0 0); }
.stage-media figure:nth-child(1) { z-index: 1; } .stage-media figure:nth-child(2) { z-index: 2; } .stage-media figure:nth-child(3) { z-index: 3; }
.stage-media figure:nth-child(4) { z-index: 4; } .stage-media figure:nth-child(5) { z-index: 5; }
.stage-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); transition: transform 1.8s var(--ease-out); }
.stage-media figure.shown img { transform: scale(calc(1.06 - var(--lp, 0) * .06)); }
.stage-media figcaption { position: absolute; left: 16px; bottom: 16px; padding: 7px 11px; border-radius: 8px; background: rgba(12,13,14,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; }
.stage-media::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.35), transparent 40%); }
.stage-num { position: absolute; z-index: 7; right: 18px; bottom: 4px; height: 1em; overflow: hidden; font-size: clamp(4.6rem, 9vw, 8.6rem); line-height: 1; font-weight: 500; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.9); pointer-events: none; }
.stage-num span { display: block; height: 1em; transform: translateY(calc(var(--i, 0) * -100%)); transition: transform .9s var(--ease-out); }
/* .stage-bar (top strip) retired: replaced by .stage-trace, a lap of the border per step */
.stage-trace { position: absolute; inset: 0; z-index: 8; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.stage-trace path { fill: none; stroke-width: 4px; stroke-linecap: round; stroke-linejoin: round; }
.stage-trace .tr-track { stroke: rgba(255,255,255,.16); }
.stage-trace .tr-live { stroke: var(--red-bright); stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: opacity .25s; }
html:not(.js) .stage-trace { display: none; }

.stage-copy { display: grid; align-items: center; }
.stage-copy article { grid-area: 1 / 1; opacity: 0; transform: translateY(26px); transition: opacity .55s, transform .8s var(--ease-out); pointer-events: none; }
.stage-copy article.on { opacity: 1; transform: none; transition-delay: .12s; pointer-events: auto; }
.stage-copy h3 { font-size: clamp(1.8rem, 3vw, 2.9rem); letter-spacing: -0.045em; line-height: 1.02; }
.stage-copy p { color: rgba(255,255,255,.68); margin-top: 18px; max-width: 40ch; }
.stage-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.stage-tags li { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; padding: 7px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-dark); color: rgba(255,255,255,.8); white-space: nowrap; }

@media (max-width: 900px) {
  .stage-track { height: 440vh; }
  .stage-in { justify-content: flex-start; gap: 16px; padding-top: 86px; padding-bottom: 22px; }
  .stage-head { align-items: flex-start; }
  .stage-head h2 { font-size: 1.55rem; margin-top: 10px; }
  .stage-count b { font-size: 1.5rem; }
  .stage-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; height: auto; flex: 1; min-height: 0; gap: 16px; }
  .stage-rail { flex-direction: row; gap: 6px; }
  .stage-rail button { padding: 12px 0 0; gap: 0; }
  .stage-rail .t { display: none; }
  .stage-rail i { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; }
  .stage-rail i::after { transform: scaleX(var(--p, 0)); transform-origin: left; }
  .stage-media { min-height: 0; }
  .stage-num { font-size: 4.2rem; right: 12px; }
  .stage-copy { align-items: start; min-height: 170px; }
  .stage-copy h3 { font-size: 1.6rem; }
  .stage-copy p { margin-top: 10px; font-size: .95rem; }
  .stage-tags { margin-top: 14px; flex-wrap: nowrap; overflow: hidden; }
}
@media (max-height: 640px) and (max-width: 900px) { .stage-head h2 { display: none; } }

/* ---------- story bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.bento > article { border-radius: var(--radius); position: relative; overflow: hidden; padding: clamp(26px, 3.4vw, 44px); isolation: isolate; }
.b-story { grid-column: span 7; grid-row: span 2; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; min-height: 600px; }
.b-story .big { margin-top: 24px; font-size: clamp(1.5rem, 2.4vw, 2.15rem); letter-spacing: -0.035em; line-height: 1.22; max-width: 24ch; }
.b-story .big b { font-weight: 500; color: var(--red); }
.b-story .link { margin-top: 26px; align-self: flex-start; }
.b-sky { margin: auto calc(clamp(26px, 3.4vw, 44px) * -1) calc(clamp(26px, 3.4vw, 44px) * -1); width: calc(100% + clamp(26px, 3.4vw, 44px) * 2); max-width: none; opacity: .85; transition: transform 1.6s var(--ease-out); transform-origin: bottom; }
.b-story:hover .b-sky { transform: scale(1.03); }
.b-since { grid-column: span 5; background: var(--red); color: #fff; display: flex; flex-direction: column; min-height: 290px; }
.b-since .mono { color: rgba(255,255,255,.7); }
.b-since b { margin-top: auto; font-weight: 400; font-size: clamp(4.6rem, 9vw, 8.4rem); letter-spacing: -0.065em; line-height: .86; }
.b-since p { margin-top: 12px; color: rgba(255,255,255,.8); }
.b-since::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../img/brand/plan-lines.png) 30% 40% / 160% auto no-repeat; opacity: .14; }
.b-obj { position: absolute; right: 18px; top: 22px; width: clamp(120px, 12vw, 176px); transform: rotate(10deg); filter: drop-shadow(0 26px 22px rgba(60,10,8,.45)); transition: transform 1s var(--ease-out); }
.b-since:hover .b-obj { transform: rotate(-8deg) scale(1.07) translateY(-8px); }
.b-iso { grid-column: span 5; background: var(--char); color: #fff; }
.b-iso-head { display: flex; justify-content: space-between; color: rgba(255,255,255,.55); }
.b-iso-head a:hover { color: #fff; }
.b-iso ul { margin-top: 18px; }
.b-iso li { display: flex; align-items: center; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line-dark); transition: transform .5s var(--ease-out); }
.b-iso li b { display: block; font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; }
.b-iso li div span { font-family: var(--mono); font-size: .7rem; color: rgba(255,255,255,.5); }
.b-iso .seal { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; text-align: center; border: 1px solid rgba(255,255,255,.7); font-family: var(--mono); font-size: .56rem; line-height: 1.1; position: relative; transition: background .4s, border-color .4s; }
.b-iso .seal::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.3); }
.b-iso li:hover { transform: translateX(8px); }
.b-iso li:hover .seal { background: var(--red); border-color: var(--red); }
@media (max-width: 960px) {
  .b-story, .b-since, .b-iso { grid-column: 1 / -1; grid-row: auto; }
  .b-story { min-height: 0; }
  .b-story .b-sky { margin-top: 30px; }
}

/* ---------- WhatsApp, branded ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; align-items: center; gap: 10px; transition: opacity .4s, transform .5s var(--ease-out); }
.wa-ic {
  position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none;
  background: radial-gradient(120% 120% at 30% 20%, #c8403c, var(--red) 50%, var(--red-deep));
  box-shadow: 0 16px 34px -10px rgba(140,36,34,.7), inset 0 0 0 1px rgba(255,255,255,.2);
  transition: transform .5s var(--ease-out);
}
.wa-ic svg { width: 28px; height: 28px; }
.wa-ic::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--red); animation: waRing 2.8s var(--ease-out) infinite; }
@keyframes waRing { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(1.55); opacity: 0; } }
.wa-lb {
  display: block; overflow: hidden; white-space: nowrap; max-width: 0; padding: 10px 0 11px; opacity: 0; transform: translateX(12px);
  background: var(--ink); color: #fff; border-radius: 14px; font-size: .9rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.45);
  transition: max-width .7s var(--ease-out), padding .7s var(--ease-out), opacity .4s, transform .7s var(--ease-out);
}
.wa-lb small { display: block; font-family: var(--mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.55); margin-bottom: 2px; }
.wa-float:hover .wa-lb, .wa-float.peek .wa-lb { max-width: 240px; padding: 10px 16px 11px; opacity: 1; transform: none; }
.wa-float:hover .wa-ic { transform: rotate(-10deg) scale(1.05); }
.wa-float.peek .wa-ic { transform: rotate(-10deg); }
.wa-float:active .wa-ic { transform: scale(.94); }
.menu-open .wa-float { opacity: 0; pointer-events: none; transform: translateY(20px); }
@media (max-width: 700px) { .wa-float { right: 14px; bottom: 14px; } .wa-ic { width: 54px; height: 54px; } .wa-ic svg { width: 25px; height: 25px; } }
@media (prefers-reduced-motion: reduce) { .wa-ic::before { animation: none; opacity: 0; } }
.way[data-pat="plots"]{--pat:url(../img/pattern/plots.svg)}
.way[data-pat="contours"]{--pat:url(../img/pattern/contours.svg)}
.way[data-pat="tread"]{--pat:url(../img/pattern/tread.svg)}

/* ==========================================================================
   Round 3: count-up figures, Phosphor duotone icons, the bold line system
   ========================================================================== */
:root {
  --bw: 2px;                          /* the one bold weight */
  --edge: var(--ink);                 /* bold line on light ground */
  --edge-d: rgba(255,255,255,.55);    /* bold line on dark ground */
}
.count { font-variant-numeric: tabular-nums; }
:focus-visible { outline: var(--bw) solid var(--red); outline-offset: 3px; }

/* ---------- icons: Phosphor duotone. Primary stroke follows the text, the 20% layer is crimson. ---------- */
.pi { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.22em; }
.pi .pi-d { fill: var(--pi-d, var(--red)); opacity: .3; }
.on-dark .pi, .bg-dark .pi, .site-footer .pi, .pd-card.dark .pi { --pi-d: var(--red-bright); }
.ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--mist); color: var(--ink); }   /* icon box: tinted fill, never a border */
.ico .pi { width: 28px; height: 28px; }
.hdr-cta .pi { width: 17px; height: 17px; --pi-d: #fff; }
.hdr-cta .pi .pi-d { opacity: .45; }
.svc .n { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.fleet .pi { display: block; width: 34px; height: 34px; margin-top: 18px; color: #fff; }
.fleet b { margin-top: 14px; }
.value .ico { margin-top: 22px; transition: background .5s, color .5s; }
.value:hover .ico { background: rgba(255,255,255,.08); color: #fff; --pi-d: var(--red-bright); }
.iso-card div > .pi { display: block; width: 30px; height: 30px; margin-bottom: 12px; }
.c-line span { display: flex; align-items: center; gap: 9px; padding-top: 2px; }
.c-line span .pi { width: 20px; height: 20px; color: var(--ink); }
.site-footer .fi { display: flex; gap: 10px; align-items: flex-start; }
.site-footer .fi .pi { margin-top: .2em; width: 18px; height: 18px; }

/* ---------- the bold line ----------
   Rule: a bold line goes on flat content that sits on plain ground.
   Anything over imagery, made of imagery, or on a dark ground stays light.
   One weight (--bw). State changes the colour (crimson), never the weight. */

/* buttons: outline buttons on plain ground carry the line; over the hero photo they stay light */
.btn-ghost { box-shadow: inset 0 0 0 var(--bw) var(--edge); color: var(--ink); font-weight: 600; transition: box-shadow .25s, color .25s, background .3s; }
.btn-ghost:hover { background: transparent; box-shadow: inset 0 0 0 var(--bw) var(--red); color: var(--red); }
.hero .btn-ghost { box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); color: #fff; font-weight: 500; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px #fff; color: #fff; }

/* "What we do" cards: flat cards on paper */
.way { box-shadow: inset 0 0 0 var(--bw) var(--edge); background: var(--paper); transition: color .6s, box-shadow .4s; }
.way:hover { box-shadow: inset 0 0 0 var(--bw) var(--red); }
.way::before { z-index: -2; }

/* bento: the story card is flat on bone; the red and dark cards stay light */
.b-story { box-shadow: inset 0 0 0 var(--bw) var(--edge); transition: box-shadow .4s; }
.b-story:hover { box-shadow: inset 0 0 0 var(--bw) var(--red); }

/* ruled grids: the gap is the line, so every corner meets cleanly */
.values, .iso { gap: var(--bw); background: var(--edge); border: var(--bw) solid var(--edge); border-radius: var(--radius); overflow: hidden; }
.value, .iso-card { border-radius: 0; box-shadow: none; background: var(--paper); }
.value { transition: background .5s, color .5s; }

/* timeline: rail, nodes and ticks drawn from the same weight */
.timeline { position: relative; border-top: var(--bw) solid var(--edge); }
.timeline div { position: relative; padding-top: 30px; }
.timeline div + div { border-left: 1px solid var(--line); }
.timeline div::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 var(--bw) var(--edge); }
.timeline div + div::before { left: 22px; }
.timeline div:first-child::before { background: var(--red); box-shadow: inset 0 0 0 var(--bw) var(--red); }
.bg-mist .timeline div::before, .bg-bone .timeline div::before { background: var(--mist); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: var(--bw) solid var(--edge); margin-left: 6px; }
  .timeline div, .timeline div + div, .timeline div:nth-child(n+3) { padding: 0 0 30px 26px; border: 0; }
  .timeline div:last-child { padding-bottom: 0; }
  .timeline div::before, .timeline div + div::before { top: .55em; left: -7px; }
}

/* ledger and service rows: a bold frame, hairlines inside */
.ledger { border-top: var(--bw) solid var(--edge); border-bottom: var(--bw) solid var(--edge); }
.svc { border-top: var(--bw) solid var(--edge); }

/* pills: projects filters and the enquiry type */
.filters button, .seg span { background: transparent; box-shadow: inset 0 0 0 var(--bw) var(--edge); font-weight: 600; color: var(--ink); transition: box-shadow .25s, color .25s, background .25s; }
.filters button:hover, .seg label:hover span { box-shadow: inset 0 0 0 var(--bw) var(--red); color: var(--red); }
.filters button[aria-pressed="true"], .seg input:checked + span { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 var(--bw) var(--ink); }
.seg input:focus-visible + span { outline: var(--bw) solid var(--red); }

/* form: a bold panel on paper, bold fields; focus turns the line crimson */
.form { background: var(--paper); box-shadow: inset 0 0 0 var(--bw) var(--edge); }
.field input, .field select, .field textarea { border: var(--bw) solid var(--edge); background: var(--paper); transition: border-color .25s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: none; }
.contact-grid .c-lines { border-top: var(--bw) solid var(--edge); }
.c-line:last-child { border-bottom: var(--bw) solid var(--edge); }

/* project aside, mission card */
.pd-card:not(.dark) { background: var(--paper); box-shadow: inset 0 0 0 var(--bw) var(--edge); border-radius: var(--radius); }
.pd-card.dark { border-radius: var(--radius); }
.mv > div:first-child { background: var(--paper); box-shadow: inset 0 0 0 var(--bw) var(--edge); }
.value h3 { margin-top: 28px; }
.value .mono { display: flex; justify-content: space-between; }

/* ---------- typography engineered to set well at every width ---------- */
h1, h2, h3, .h-xl, .h-lg, .h-md, .lede-lg, .big { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }

/* hero headline: two short lines, each held on one line and sized to the viewport */
.hero h1.hero-h { max-width: none; font-weight: 500; font-size: clamp(3.4rem, 14.5vw, 9.6rem); line-height: .9; letter-spacing: -0.065em; }
.hero-h .ln { white-space: nowrap; padding-bottom: .08em; }
.hero-h .ln:nth-child(2) { margin-left: .5em; }    /* the second line steps in, like a survey offset */
.hero-h em { font-style: normal; color: var(--red-bright); }
@media (max-width: 700px) { .hero-h .ln:nth-child(2) { margin-left: 0; } }
.hero { overflow: clip; }
.hero-media img { color: transparent; }           /* never show alt text over the design */
.coords { white-space: nowrap; max-width: calc(100vw - var(--pad) * 2 - 30px); overflow: hidden; }

/* ---------- buttons: every button carries the bold line ----------
   2px, ink on light ground, white on dark or photographic ground. Hover changes colour, never weight. */
.btn, .hdr-cta { --btn-edge: var(--edge); box-shadow: inset 0 0 0 var(--bw) var(--btn-edge); font-weight: 600; transition: background .3s, color .3s, box-shadow .3s, opacity .3s, transform .3s var(--ease-out); }
:is(.hero, .on-dark, .bg-dark, .cta, .crew, .pd-hero, .pd-card.dark, .site-footer, .stage, .b-since) :is(.btn, .hdr-cta) { --btn-edge: #fff; }
:is(.hero, .on-dark, .bg-dark, .cta, .crew, .pd-hero, .pd-card.dark, .site-footer, .stage, .b-since) .btn-light { --btn-edge: #fff; }
.btn-light { box-shadow: inset 0 0 0 var(--bw) var(--btn-edge), inset 0 0 0 calc(var(--bw) + 2px) #fff; }
.btn-red:hover { --btn-edge: var(--ink); }
:is(.hero, .on-dark, .bg-dark, .cta, .crew, .pd-hero, .pd-card.dark, .stage) .btn-red:hover { --btn-edge: #fff; }
.btn-ghost, .hero .btn-ghost { box-shadow: inset 0 0 0 var(--bw) var(--btn-edge); font-weight: 600; }
.btn-ghost:hover { --btn-edge: var(--red); color: var(--red); background: transparent; }
.hero .btn-ghost { color: #fff; }
.hero .btn-ghost:hover, :is(.on-dark, .bg-dark, .cta, .crew, .stage) .btn-ghost:hover { --btn-edge: #fff; color: var(--ink); background: #fff; }
/* header buttons: white over the hero photo, ink once the header turns solid */
.site-header :is(.btn, .hdr-cta) { --btn-edge: #fff; }
.site-header:is(.is-solid, .is-light) :is(.btn, .hdr-cta) { --btn-edge: var(--ink); }
.site-header .btn-red:hover { --btn-edge: var(--ink); }
@media (min-width: 701px) and (max-width: 1180px) { .coords { display: none; } }

/* ---------- hero fits one screen: type and gaps scale on height as well as width ----------
   min(vw, svh) takes whichever axis is tighter, so 1366x768 / 1280x640 laptops keep the
   stats strip above the fold. min-height:100svh stays as the escape hatch on very short screens. */
.hero h1.hero-h { font-size: clamp(3.4rem, min(14.5vw, 17svh), 9.6rem); }
.hero .wrap { padding-top: clamp(96px, 13svh, 140px); }
.hero-row { margin-top: clamp(16px, 3.4svh, 34px); }
.hero-stats { margin-top: clamp(18px, 4svh, 72px); }
.hero-stats div { padding-top: clamp(12px, 2.2svh, 20px); padding-bottom: clamp(14px, 3svh, 28px); }
@media (max-width: 900px) {
  .hero .wrap { padding-top: clamp(112px, 13svh, 130px); }
  .hero-row { gap: clamp(14px, 2.6svh, 22px); }
  .hero-ctas { margin-top: clamp(18px, 3svh, 28px); }
  .hero-stats { margin-top: clamp(14px, 2.4svh, 28px); }
  .hero-stats div { padding-top: 10px; padding-bottom: 12px; }
}

/* ---------- hero accent word rotates: ready. → home. → yours. ----------
   All three share one grid cell (width = widest word), and the parent .ln clips them,
   so a word slides up out of the line as the next rises in. Spans without .on/.out
   jump back below the line with no transition, so the reset never flashes. */
.hero-h .swap { display: inline-grid; }
.hero-h .swap > span { grid-area: 1 / 1; transform: translateY(120%); }
.hero-h .swap > span.on { transform: none; transition: transform .9s var(--ease-out); }
.hero-h .swap > span.out { transform: translateY(-120%); transition: transform .9s var(--ease-out); }

/* ---------- mobile hero: no site card; headline group centred between nav and stats ---------- */
@media (max-width: 900px) {
  .hero .site-tag { display: none; }
  .hero .wrap { flex: 1; display: flex; flex-direction: column; padding-top: 96px; }  /* 72px nav + 24px floor */
  .hero h1.hero-h { margin-top: auto; }
  .hero-row { padding-bottom: 24px; }                                                 /* matching 24px floor below */
  .hero-stats { margin-top: auto; }
}

/* ---------- no JS: the pinned stage unrolls into a plain list ---------- */
html:not(.js) .stage-track { height: auto; }
html:not(.js) .stage { position: relative; height: auto; overflow: visible; }
html:not(.js) .stage-in { height: auto; padding-top: var(--section-y, 96px); padding-bottom: var(--section-y, 96px); }
html:not(.js) .stage-grid { height: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
html:not(.js) :is(.stage-rail, .stage-count, .stage-num, .stage-bar) { display: none; }
html:not(.js) .stage-media { aspect-ratio: 4 / 3; }
html:not(.js) .stage-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 44px; min-height: 0; }
html:not(.js) .stage-copy article { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 900px) { html:not(.js) .stage-grid { grid-template-columns: 1fr; } }
html:not(.js) .stage-media figure:first-child { clip-path: none; }
