/* ==========================================================================
   Katra — site styles
   World: formwork panels & exposed concrete. One accent: #003428.
   ========================================================================== */

:root {
  --green: #003428;
  --green-2: #004a3a;
  --green-deep: #00241c;
  --bg: #f2f3f0;
  --bg-2: #e7e9e4;
  --surface: #fafaf8;
  --ink: #0e1b17;
  --ink-2: #44524c;
  --line: rgba(0, 52, 40, .14);
  --line-strong: rgba(0, 52, 40, .3);
  --on-dark: #eef3ef;
  --on-dark-2: #a8c2b7;
  --line-dark: rgba(238, 243, 239, .16);

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap: 1320px;
  --section: clamp(4.5rem, 9vw, 8rem);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--green);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
[hidden] { display: none !important; }

::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .phero :focus-visible,
.menu :focus-visible, .nextp :focus-visible, .cta--dark :focus-visible, .lightbox :focus-visible { outline-color: #fff; }

html { scrollbar-width: thin; scrollbar-color: var(--green) var(--bg-2); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--green); border: 2px solid var(--bg-2); border-radius: 8px; }

.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--green); color: #fff; padding: .6rem 1rem; border-radius: 4px; transition: top .25s var(--ease); }
.skip:focus { top: 1rem; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.i { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Type ---------- */
.h1, .h2 { font-weight: 400; letter-spacing: -.022em; line-height: 1.14; text-wrap: balance; }
.h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }
.h1--light { color: #fff; }
.h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem); letter-spacing: -.02em; }
h3 { font-weight: 500; letter-spacing: -.01em; }
p { text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 68ch; color: var(--ink-2); }
.prose__lead { color: var(--ink); font-size: 1.125rem; line-height: 1.65; margin-bottom: 1.2em; }
.prose h2, .prose h3 { color: var(--ink); margin: 1.6em 0 .5em; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.empty { color: var(--ink-2); padding-block: 3rem; }
.count { font-family: var(--font-cond); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .875rem; color: var(--ink-2); }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .75rem;
  height: 3rem; padding: 0 1.5rem; border-radius: 3px;
  background: var(--green); color: #fff;
  font-weight: 500; font-size: .9375rem; letter-spacing: .01em;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--green-2); transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 10px 24px -12px rgba(0, 52, 40, .6); }
.btn:active { transform: scale(.98); }
.btn .i { transition: transform .5s var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.btn--light { background: #fff; color: var(--green); }
.btn--light::before { background: var(--bg-2); }
.btn--header { height: 2.5rem; padding: 0 1.1rem; font-size: .875rem; }
.btn[type="submit"] { border: 0; }

.link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .9375rem; color: var(--green); position: relative; padding-bottom: 2px; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .5s var(--ease); }
.link:hover::after { transform: scaleX(0); transform-origin: right; animation: underline-in .5s .25s var(--ease) forwards; }
@keyframes underline-in { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.link .i { transition: transform .5s var(--ease); }
.link:hover .i { transform: translateX(4px); }
.link--light { color: #fff; }

/* ---------- Texture: tie-hole lattice (formwork tie cones) ---------- */
.lattice {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle at center, rgba(238, 243, 239, .16) 0 1.4px, transparent 2px);
  background-size: 56px 56px;
  background-position: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}
.lattice--hero { opacity: .55; -webkit-mask-image: linear-gradient(to top, #000, transparent 60%); mask-image: linear-gradient(to top, #000, transparent 60%); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--ink);
  transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease), backdrop-filter .5s;
}
.site-header.is-solid { background: rgba(242, 243, 240, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.has-hero .site-header:not(.is-solid) { color: #fff; }
.site-header__bar { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: block; position: relative; width: 85px; height: 34px; flex: none; }
.brand__logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .5s var(--ease); }
.brand__logo--light { opacity: 0; }
.has-hero .site-header:not(.is-solid) .brand__logo--light { opacity: 1; }
.has-hero .site-header:not(.is-solid) .brand__logo--dark { opacity: 0; }
.nav { margin-left: auto; display: flex; gap: .25rem; }
.nav a { position: relative; padding: .5rem .9rem; font-size: .9375rem; font-weight: 500; letter-spacing: .005em; opacity: .82; transition: opacity .3s; }
.nav a::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .2rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.has-hero .site-header:not(.is-solid) .btn--header { background: #fff; color: var(--green); }
.has-hero .site-header:not(.is-solid) .btn--header::before { background: var(--bg-2); }

.burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 90; background: var(--green); color: var(--on-dark); display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 2rem) 0 2rem; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); overflow: hidden; }
.menu.is-open { clip-path: inset(0); }
.menu__lattice { position: absolute; inset: 0; background-image: radial-gradient(circle at center, rgba(238, 243, 239, .14) 0 1.4px, transparent 2px); background-size: 48px 48px; }
.menu__nav { position: relative; display: flex; flex-direction: column; }
.menu__nav a { display: block; overflow: hidden; border-bottom: 1px solid var(--line-dark); padding: 1rem 0; font-size: clamp(1.5rem, 6vw, 2.25rem); font-weight: 400; letter-spacing: -.02em; }
.menu__nav a span { display: block; transform: translateY(110%); transition: transform .8s var(--ease); }
.menu.is-open .menu__nav a span { transform: none; }
.menu.is-open .menu__nav a:nth-child(2) span { transition-delay: .05s; } .menu.is-open .menu__nav a:nth-child(3) span { transition-delay: .1s; }
.menu.is-open .menu__nav a:nth-child(4) span { transition-delay: .15s; } .menu.is-open .menu__nav a:nth-child(5) span { transition-delay: .2s; }
.menu__foot { position: relative; display: flex; flex-direction: column; gap: .35rem; color: var(--on-dark-2); font-size: .9375rem; }
.menu .site-header__bar { display: none; }
body.menu-open .site-header { color: #fff; }
body.menu-open .site-header .brand__logo--light { opacity: 1; }
body.menu-open .site-header .brand__logo--dark { opacity: 0; }
body.menu-open .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .site-header.is-hidden { transform: none; }

@media (max-width: 960px) {
  .nav, .btn--header { display: none; }
  .burger { display: block; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: min(100svh, 64rem); display: flex; color: #fff; background: var(--green-deep); overflow: hidden; isolation: isolate; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.6s var(--ease-io); }
.hero__slide.is-active { opacity: 1; }
.hero__slide video { width: 100%; height: 100%; object-fit: cover; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 9s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(to top, rgba(0, 36, 28, .92) 0%, rgba(0, 36, 28, .55) 38%, rgba(0, 36, 28, .12) 70%, rgba(0, 36, 28, .35) 100%); }
.hero .lattice { z-index: 1; }
.hero__inner { position: relative; z-index: 2; min-width: 0; align-self: flex-end; display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; padding-bottom: clamp(2.5rem, 6vh, 4.5rem); padding-top: calc(var(--header-h) + 4rem); }
.hero__copy { max-width: 36rem; }
.hero__title { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
.hero__lead { margin-top: 1.25rem; color: rgba(238, 243, 239, .86); max-width: 34rem; font-size: 1.0625rem; }
.hero__actions { margin-top: 2rem; display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.hero__side { display: grid; gap: 1.5rem; justify-items: end; flex: none; }
.hero__rail { display: flex; gap: 1.5rem; }
.rail { width: 11rem; text-align: left; display: grid; gap: .45rem; opacity: .6; transition: opacity .5s var(--ease); }
.rail:hover, .rail.is-active { opacity: 1; }
.rail__bar { display: block; height: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.rail__bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.rail.is-active .rail__bar i { animation: rail-fill var(--slide-ms, 7000ms) linear forwards; }
.hero[data-paused] .rail.is-active .rail__bar i { animation-play-state: paused; }
@keyframes rail-fill { to { transform: scaleX(1); } }
.rail__name { font-weight: 500; font-size: 1rem; }
.rail__meta { font-family: var(--font-cond); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: .8125rem; color: var(--on-dark-2); }
.hero__open { display: inline-flex; align-items: center; gap: .5rem; font-size: .9375rem; font-weight: 500; padding-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.5); transition: border-color .4s, gap .5s var(--ease); }
.hero__open:hover { border-color: #fff; gap: .8rem; }

@media (max-width: 960px) {
  .hero__inner { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .hero__side { width: 100%; justify-items: start; }
  .hero__rail { width: 100%; gap: .75rem; }
  .rail { flex: 1; width: auto; min-width: 0; }
  .rail__meta { display: none; }
}

/* ---------- Page head ---------- */
.pagehead { padding: calc(var(--header-h) + clamp(3rem, 8vw, 6.5rem)) 0 clamp(2rem, 4vw, 3.5rem); border-bottom: 0; }
.pagehead--compact { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.pagehead__inner { display: grid; gap: 1.25rem; justify-items: start; }
.pagehead__inner > .h1 { max-width: 22ch; }
.pagehead__lead { color: var(--ink-2); font-size: 1.125rem; max-width: 40rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(2rem, 5vw, 4rem) var(--section); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }

.intro__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.intro__text { display: grid; gap: 1.5rem; justify-items: start; color: var(--ink-2); padding-top: .35rem; }
@media (max-width: 860px) { .intro__grid { grid-template-columns: 1fr; } }

.ledger { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.ledger > div { display: flex; align-items: baseline; gap: .9rem; padding: 1.1rem clamp(1rem, 4vw, 3.5rem) 0 0; margin-right: clamp(1rem, 4vw, 3.5rem); border-right: 1px solid var(--line); }
.ledger > div:last-child { border-right: 0; }
.ledger dd { font-family: var(--font-cond); font-weight: 600; font-size: 1.75rem; line-height: 1; color: var(--green); order: -1; font-variant-numeric: tabular-nums; }
.ledger dt { font-size: .875rem; color: var(--ink-2); }

/* ---------- Project grid (structured: equal columns, one ratio) ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 3vw, 3rem) clamp(1rem, 2vw, 1.75rem); }
.pcard { display: flex; flex-direction: column; position: relative; border-top: 1px solid var(--line-strong); padding-top: 1rem; transition: opacity .5s var(--ease); }
.pcard.is-filtered-out { display: none; }
.pcard__media { position: relative; overflow: hidden; background: var(--bg-2); border-radius: 2px; aspect-ratio: 16 / 10; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.045); }
.pcard__status { position: absolute; left: .9rem; top: .9rem; display: inline-flex; align-items: center; gap: .45rem; height: 1.75rem; padding: 0 .7rem; border-radius: 99px; background: rgba(250, 250, 248, .92); color: var(--green); font-family: var(--font-cond); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; }
.pcard__status::before, .dot { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--green); display: inline-block; }
.pcard__status--ongoing::before, .dot--ongoing { background: #b7791f; animation: pulse 2.4s ease-in-out infinite; }
.dot { margin-right: .55rem; }
.dot--completed { background: var(--green); }
@keyframes pulse { 50% { opacity: .35; } }
.pcard__body { position: relative; padding-top: 1.1rem; display: grid; gap: .85rem; }
.pcard__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-right: 3.5rem; }
.pcard__title { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.015em; }
.pcard__year { font-family: var(--font-cond); font-weight: 600; letter-spacing: .06em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pcard__facts { display: grid; border-top: 1px solid var(--line); }
.pcard__facts > div { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.pcard__facts dt { font-family: var(--font-cond); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .8125rem; color: var(--ink-2); padding-top: .1rem; }
.pcard__facts dd { color: var(--ink); }
.pcard__go { position: absolute; right: 0; top: 1.1rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--green); transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s; }
.pcard:hover .pcard__go { background: var(--green); color: #fff; border-color: var(--green); }
.pcard__go .i { transition: transform .6s var(--ease); }
.pcard:hover .pcard__go .i { transform: translate(2px, -2px); }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pgrid { grid-template-columns: 1fr; } }

/* ---------- Filters ---------- */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.filter { display: inline-flex; align-items: center; gap: .6rem; height: 2.5rem; padding: 0 1.1rem; border-radius: 99px; border: 1px solid var(--line-strong); font-size: .9375rem; font-weight: 500; color: var(--ink-2); transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s; }
.filter span { font-family: var(--font-cond); font-weight: 600; font-size: .875rem; letter-spacing: .04em; opacity: .75; }
.filter:hover { border-color: var(--green); color: var(--green); }
.filter.is-active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Video statement ---------- */
.vsec { position: relative; min-height: min(80svh, 46rem); display: flex; align-items: flex-end; color: #fff; background: var(--green-deep); overflow: hidden; isolation: isolate; }
.vsec__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.vsec::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 36, 28, .82) 0%, rgba(0, 36, 28, .45) 50%, rgba(0, 36, 28, .12) 100%); }
.vsec .lattice { z-index: -1; opacity: .5; -webkit-mask-image: none; mask-image: none; }
.vsec__inner { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: clamp(3rem, 8vw, 6rem); display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.vsec__copy { display: grid; gap: .5rem; justify-items: start; }
.stat { display: flex; align-items: flex-start; gap: .12em; font-family: var(--font-cond); font-weight: 600; line-height: .95; letter-spacing: -.01em; font-size: clamp(3.25rem, 2rem + 6vw, 6rem); font-variant-numeric: tabular-nums; }
.stat__unit { font-size: .55em; padding-top: .12em; opacity: .9; }
.stat__cap { color: var(--on-dark-2); font-size: 1.125rem; margin-bottom: 1.25rem; }
.vsec__title { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 1.5rem; -webkit-text-stroke: 0; }

/* ---------- Process / dark field ---------- */
/* ---------- Story (home) & run-in prose ---------- */
.story__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.story__media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.story__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--bg-2); }
.story__text { display: grid; gap: 1.5rem; justify-items: start; padding-top: .5rem; }
.story__lead { font-size: 1.1875rem; line-height: 1.6; color: var(--ink); max-width: 44ch; }
.story__body { display: grid; gap: 1.1rem; max-width: 56ch; color: var(--ink-2); }
.story__body strong, .prose--runin strong { color: var(--green); font-weight: 600; }
.section--band { background: var(--bg-2); }
.prose--runin p + p { margin-top: 1.1em; }
@media (max-width: 860px) { .story__grid { grid-template-columns: 1fr; } .story__media { position: static; } .story__media img { aspect-ratio: 4 / 3; } }

/* ---------- CTA ---------- */
.cta { background: var(--bg-2); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta__inner .h2 { max-width: 26ch; }
.cta__actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }

/* ---------- About ---------- */
.band { padding-block: 0; }
.band__media { position: relative; height: clamp(18rem, 48vw, 36rem); overflow: hidden; background: var(--bg-2); }
.band__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.prose-split { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.prose-split > .h2 { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 860px) { .prose-split { grid-template-columns: 1fr; } .prose-split > .h2 { position: static; } }

/* ---------- Project detail ---------- */
.phero { position: relative; min-height: min(86svh, 56rem); display: flex; color: #fff; background: var(--green-deep); overflow: hidden; isolation: isolate; }
.phero__media { position: absolute; inset: 0; overflow: hidden; }
.phero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0, 36, 28, .92) 0%, rgba(0, 36, 28, .55) 38%, rgba(0, 36, 28, .12) 70%, rgba(0, 36, 28, .35) 100%); }
.phero__media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.phero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: clamp(2rem, 5vh, 3.5rem); }
.back { display: inline-flex; align-items: center; gap: .6rem; font-size: .9375rem; font-weight: 500; width: fit-content; opacity: .85; transition: opacity .3s, gap .5s var(--ease); }
.back:hover { opacity: 1; gap: .9rem; }
.phero__copy { display: grid; gap: .9rem; max-width: 38rem; }
.phero__tag { color: rgba(238, 243, 239, .88); font-size: 1.125rem; max-width: 34rem; }

.facts-wrap { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.facts > div { padding: 1.5rem 1.5rem 1.5rem 0; margin-right: 1.5rem; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts dt { font-family: var(--font-cond); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .8125rem; color: var(--ink-2); }
.facts dd { margin-top: .25rem; font-weight: 500; font-size: 1.0625rem; display: flex; align-items: center; }
@media (max-width: 700px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { border-right: 0; border-bottom: 1px solid var(--line); margin-right: 0; padding: 1rem 0; }
  .facts > div:last-child { border-bottom: 0; }
}

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.4vw, 1.25rem); }
.gitem { display: block; width: 100%; cursor: zoom-in; }
.gitem:first-child { grid-column: 1 / -1; }
.gitem__frame { position: relative; display: block; overflow: hidden; background: var(--bg-2); border-radius: 2px; aspect-ratio: 4 / 3 !important; }
.gitem:first-child .gitem__frame { aspect-ratio: 21 / 9 !important; }
.gitem__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gitem:hover .gitem__frame img { transform: scale(1.035); }
.gitem__icon { position: absolute; right: .9rem; bottom: .9rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: rgba(250, 250, 248, .94); color: var(--green); opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.gitem:hover .gitem__icon, .gitem:focus-visible .gitem__icon { opacity: 1; transform: none; }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } .gitem:first-child .gitem__frame { aspect-ratio: 4 / 3 !important; } }

.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 20, 15, .96); color: #fff; opacity: 0; transition: opacity .4s var(--ease), overlay .4s allow-discrete, display .4s allow-discrete; }
.lightbox[open] { opacity: 1; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: transparent; }
.lightbox__stage { position: absolute; inset: 4.5rem 4.5rem 5rem; display: block; touch-action: pan-y; }
.lightbox__stage img { width: 100%; height: 100%; object-fit: contain; animation: lb-in .6s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.985); } }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 1.6rem; text-align: center; color: var(--on-dark-2); font-size: .9375rem; padding-inline: 5rem; }
.lightbox__count { position: absolute; left: 1.5rem; top: 1.6rem; font-family: var(--font-cond); letter-spacing: .12em; font-weight: 500; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); transition: background-color .4s var(--ease), border-color .4s; }
.lb-btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.lb-btn--close { right: 1.25rem; top: 1.25rem; }
.lb-btn--prev { left: 1.25rem; top: 50%; translate: 0 -50%; }
.lb-btn--next { right: 1.25rem; top: 50%; translate: 0 -50%; }
@media (max-width: 700px) {
  .lightbox__stage { inset: 4.5rem .5rem 5.5rem; }
  .lb-btn--prev, .lb-btn--next { top: auto; bottom: 1rem; translate: none; }
  .lightbox__cap { bottom: 4.6rem; padding-inline: 1rem; }
}

.nextp { position: relative; display: flex; align-items: center; min-height: clamp(16rem, 36vw, 24rem); color: #fff; overflow: hidden; isolation: isolate; background: var(--green-deep); }
.nextp__media { position: absolute; inset: 0; overflow: hidden; }
.nextp__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.6s var(--ease); }
.nextp:hover .nextp__media img { transform: scale(1.08); }
.nextp__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 36, 28, .62); transition: background-color .8s; }
.nextp:hover .nextp__media::after { background: rgba(0, 36, 28, .45); }
.nextp__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nextp__label { display: block; font-size: .9375rem; color: var(--on-dark-2); margin-bottom: .35rem; }
.nextp__title { display: block; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem); letter-spacing: -.02em; line-height: 1.15; }
.nextp__go { width: 3.5rem; height: 3.5rem; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; transition: background-color .5s var(--ease), color .5s var(--ease), transform .6s var(--ease); }
.nextp:hover .nextp__go { background: #fff; color: var(--green); transform: translateX(6px); }

/* ---------- References ---------- */
.refs { border-top: 1px solid var(--line-strong); }
.refs__head, .refs__row a { display: grid; grid-template-columns: 6rem 1.6fr 1.1fr 1fr 3rem; gap: 1.5rem; align-items: center; }
.refs__head { padding: .85rem 0; font-family: var(--font-cond); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .8125rem; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.refs__row { border-bottom: 1px solid var(--line); }
.refs__row a { padding: 1.5rem 0; transition: color .4s; }
.refs__row a > :not(.refs__go) { transition: transform .7s var(--ease); }
.refs__row a:hover { color: var(--green); }
.refs__row a:hover > :not(.refs__go) { transform: translateX(1rem); }
.refs__year { font-family: var(--font-cond); font-weight: 600; font-size: 1.125rem; letter-spacing: .04em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.refs__name { font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); letter-spacing: -.015em; font-weight: 400; }
.refs__loc, .refs__type { color: var(--ink-2); font-size: .9375rem; }
.refs__go { justify-self: end; transition: transform .6s var(--ease); }
.refs__row a:hover .refs__go { transform: translate(3px, -3px); }
.refs-preview { position: fixed; z-index: 60; left: 0; top: 0; width: 19rem; aspect-ratio: 4 / 3; pointer-events: none; overflow: hidden; border-radius: 2px; opacity: 0; transform: translate3d(0, 0, 0) scale(.92); transition: opacity .4s var(--ease), scale .5s var(--ease); box-shadow: 0 24px 50px -20px rgba(0, 36, 28, .55); background: var(--bg-2); }
.refs-preview.is-on { opacity: 1; }
.refs-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .refs__head { display: none; }
  .refs__row a { grid-template-columns: 4rem 1fr 2rem; gap: .25rem 1rem; padding: 1.1rem 0; }
  .refs__loc { grid-column: 2; grid-row: 2; } .refs__type { display: none; }
  .refs__year { grid-row: 1 / span 2; align-self: start; padding-top: .35rem; }
  .refs__go { grid-column: 3; grid-row: 1 / span 2; }
}
@media (hover: none) { .refs-preview { display: none; } }

.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.partners li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners a, .partners li > span { display: grid; place-items: center; min-height: 7rem; padding: 1.5rem; font-weight: 500; color: var(--ink-2); text-align: center; }
.partners img { max-height: 3rem; width: auto; filter: grayscale(1) contrast(.9); opacity: .75; transition: filter .5s, opacity .5s; }
.partners a:hover img { filter: none; opacity: 1; }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); color: var(--green); }
.contact-list h2 { font-family: var(--font-cond); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .8125rem; color: var(--ink-2); margin-bottom: .3rem; }
.contact-list p, .contact-list a { color: var(--ink); font-size: 1.0625rem; }
.contact-list a:not(.link) { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.contact-list a:not(.link):hover { background-size: 100% 1px; }
.contact-list .link { margin-top: .5rem; }
.map-links { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.contact__note { color: var(--ink-2); }
.map { margin-top: 2rem; aspect-ratio: 16 / 10; border-radius: 2px; overflow: hidden; background: var(--bg-2); filter: grayscale(.85) contrast(1.05); transition: filter .6s var(--ease); }
.map:hover { filter: none; }
.map iframe { width: 100%; height: 100%; border: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.field { position: relative; margin-bottom: 1.5rem; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 1.5rem 0 .55rem; outline: 0; transition: border-color .4s; resize: vertical; }
.field label { position: absolute; left: 0; top: 1.45rem; color: var(--ink-2); pointer-events: none; transition: transform .45s var(--ease), color .3s, font-size .45s var(--ease); transform-origin: left top; }
.field input:focus ~ label, .field textarea:focus ~ label,
.field input:not(:placeholder-shown) ~ label, .field textarea:not(:placeholder-shown) ~ label { transform: translateY(-1.15rem); font-size: .8125rem; color: var(--green); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field input:focus-visible, .field textarea:focus-visible { outline: 0; }
.field.has-error input, .field.has-error textarea { border-color: #a1342a; }
.field__err, .form-error { color: #a1342a; font-size: .875rem; margin-top: .4rem; }
.form-error { margin-bottom: 1.25rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.h-captcha { margin-bottom: 1.5rem; }
.sent { display: grid; gap: 1rem; justify-items: start; padding-block: 2rem; }
.sent__icon { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; animation: pop .8s var(--ease); }
.sent h2 { font-size: 1.5rem; font-weight: 400; letter-spacing: -.015em; }
.sent p { color: var(--ink-2); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@media (max-width: 860px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--green-deep); color: var(--on-dark); padding-top: clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.site-footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.site-footer__brand img { width: 110px; height: auto; }
.site-footer__brand p { margin-top: 1.25rem; color: var(--on-dark-2); max-width: 26rem; }
.social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.social a { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s; }
.social a:hover { background: #fff; color: var(--green); border-color: #fff; }
.site-footer__col { display: grid; gap: .5rem; align-content: start; color: var(--on-dark-2); }
.site-footer__col h2 { font-family: var(--font-cond); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .8125rem; color: #fff; margin-bottom: .6rem; }
.site-footer__col a { width: fit-content; transition: color .3s; }
.site-footer__col a:hover { color: #fff; }
.site-footer__legal { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; border-top: 1px solid var(--line-dark); color: var(--on-dark-2); font-size: .875rem; }
.site-footer__legal a { display: inline-flex; align-items: center; gap: .4rem; transition: color .3s; }
.site-footer__legal a:hover { color: #fff; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

.notfound { min-height: 70svh; display: flex; align-items: center; }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(1.5rem); filter: blur(5px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s), filter 1s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; filter: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease) var(--d, 0s); }
.js [data-reveal="clip"] img { transform: scale(1.18); transition: transform 1.8s var(--ease) var(--d, 0s), filter .8s; }
.js [data-reveal="clip"].is-in { clip-path: inset(0); }
.js [data-reveal="clip"].is-in img { transform: scale(1); }
.js .pcard:hover [data-reveal="clip"].is-in img { transform: scale(1.045); transition-duration: 1.4s; transition-delay: 0s; }
.js .gitem:hover [data-reveal="clip"].is-in img { transform: scale(1.035); transition-duration: 1.2s; transition-delay: 0s; }

.js [data-split] .line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.js [data-split] .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease) calc(var(--i, 0) * .09s + var(--d, .05s)); }
.js [data-split].is-in .line > span { transform: none; }
.js [data-split] { opacity: 1; filter: none; transform: none; }

/* Cross-document view transitions: soft page fade, project image morphs list → detail */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal="clip"], .js [data-split] .line > span { opacity: 1; transform: none; filter: none; clip-path: none; }
  .js [data-reveal="clip"] img { transform: none; }
  @view-transition { navigation: none; }
}


/* ==========================================================================
   Timeline
   ========================================================================== */
.tl { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.tl__side { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
.tl__side p { color: var(--ink-2); max-width: 32rem; }
.tl__fig { margin-top: 1rem; overflow: hidden; border-radius: 2px; background: var(--bg-2); }
.tl__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tl__list { position: relative; }
.tl__rail { position: absolute; left: 6.25rem; top: .6rem; bottom: .6rem; width: 1px; background: var(--line-strong); list-style: none; }
.tl__rail i { position: absolute; left: -.5px; top: 0; width: 2px; height: 100%; background: var(--green); transform-origin: top; transform: scaleY(var(--tl, 0)); }
.tl__item { position: relative; padding: 0 0 clamp(2.25rem, 4vw, 3.5rem) 8.5rem; min-height: 4rem; }
.tl__item:last-child { padding-bottom: 0; }
.tl__year { position: absolute; left: 0; top: -.15rem; width: 5.25rem; text-align: right; font-family: var(--font-cond); font-weight: 600; font-size: 1.75rem; line-height: 1.2; letter-spacing: .02em; color: var(--green); font-variant-numeric: tabular-nums; }
.tl__item::before { content: ""; position: absolute; left: 5.75rem; top: .55rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); transition: background-color .6s var(--ease), border-color .6s var(--ease), transform .6s var(--ease); }
.tl__item.is-passed::before { background: var(--green); border-color: var(--green); transform: scale(1.15); }
.tl__body h3 { font-size: 1.25rem; letter-spacing: -.01em; }
.tl__body p { margin-top: .4rem; color: var(--ink-2); max-width: 46ch; }
@media (max-width: 860px) {
  .tl { grid-template-columns: 1fr; }
  .tl__side { position: static; }
  .tl__fig { display: none; }
}
@media (max-width: 520px) {
  .tl__rail { left: .45rem; }
  .tl__item { padding-left: 2rem; }
  .tl__item::before { left: 0; }
  .tl__year { position: static; width: auto; text-align: left; display: block; margin-bottom: .15rem; }
}

/* ==========================================================================
   Photo CTA
   ========================================================================== */
.cta--photo { position: relative; isolation: isolate; color: #fff; background-color: var(--green-deep); background-image: var(--cta-img); background-size: cover; background-position: center 40%; }
.cta--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 36, 28, .92), rgba(0, 36, 28, .55)); }
.cta--photo .link, .cta--photo .btn { color: #fff; }
.cta--photo .btn { background: #fff; color: var(--green); }
.cta--photo .btn::before { background: var(--bg-2); }
.cta--photo .cta__inner { padding-block: clamp(1rem, 4vw, 3rem); }

/* ==========================================================================
   Contact
   ========================================================================== */
.chead { position: relative; min-height: clamp(26rem, 52svh, 34rem); display: flex; align-items: flex-end; color: #fff; background: var(--green-deep); overflow: hidden; isolation: isolate; }
.chead__media { position: absolute; inset: 0; z-index: -2; }
.chead__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.chead__scrim { z-index: -1; background: linear-gradient(to top, rgba(0, 36, 28, .92) 0%, rgba(0, 36, 28, .6) 55%, rgba(0, 36, 28, .35) 100%); }
.chead__inner { padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(6rem, 11vw, 9rem); display: grid; gap: 1rem; justify-items: start; }
.chead__lead { max-width: 36rem; color: rgba(238, 243, 239, .86); font-size: 1.125rem; }
.cdesk { position: relative; z-index: 2; margin-top: calc(-1 * clamp(4rem, 8vw, 6.5rem)); padding-bottom: var(--section); }
.ccard { display: grid; grid-template-columns: 5fr 7fr; background: var(--surface); border-radius: 4px; overflow: hidden; box-shadow: 0 50px 90px -50px rgba(0, 36, 28, .55), 0 0 0 1px var(--line); }
.cpanel { position: relative; isolation: isolate; background: var(--green); color: var(--on-dark); display: flex; }
.cpanel__bg { position: absolute; inset: 0; z-index: -1; opacity: .22; mix-blend-mode: luminosity; }
.cpanel__bg img { width: 100%; height: 100%; object-fit: cover; }
.cpanel__body { padding: clamp(1.75rem, 4vw, 3.25rem); display: flex; flex-direction: column; gap: 1.75rem; width: 100%; }
.cpanel__title, .cform__title { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.cform__title { margin-bottom: 2rem; }
.clist { display: grid; }
.clist li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--line-dark); }
.clist li > .i, .clist li > i { color: var(--on-dark-2); margin-top: .2rem; font-size: 1.1rem; }
.clist h3 { font-family: var(--font-cond); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .8125rem; color: var(--on-dark-2); margin-bottom: .25rem; }
.clist p, .clist a { color: #fff; font-size: 1.0625rem; }
.clist a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.clist a:hover { background-size: 100% 1px; }
.cpanel__note { color: var(--on-dark-2); }
.cpanel__maps { display: grid; gap: .6rem; }
.mapbtn { display: flex; align-items: center; gap: .6rem; min-height: 3rem; padding: 0 .9rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 3px; font-size: .9375rem; font-weight: 500; color: #fff; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.mapbtn span { flex: 1; }
.mapbtn .i { width: 1.1rem; height: 1.1rem; }
.mapbtn__go { opacity: .7; transition: transform .5s var(--ease); }
.mapbtn:hover { background: #fff; color: var(--green); border-color: #fff; }
.mapbtn:hover .mapbtn__go { transform: translate(2px, -2px); }

.social--panel { margin-top: auto; }
.cform { padding: clamp(1.75rem, 4vw, 3.5rem); }
.cmap { background: var(--bg-2); }
.cmap__frame { height: clamp(18rem, 34vw, 26rem); filter: grayscale(.9) contrast(1.05); transition: filter .8s var(--ease); }
.cmap__frame:hover { filter: none; }
.cmap__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.cmap .map-links { padding-block: 1.25rem; margin-top: 0; }
@media (max-width: 900px) { .ccard { grid-template-columns: 1fr; } }

/* ==========================================================================
   Fixed contact buttons
   ========================================================================== */
.quick { position: fixed; right: clamp(.9rem, 2vw, 1.5rem); bottom: clamp(.9rem, 2vw, 1.5rem); z-index: 85; display: flex; flex-direction: column; gap: .7rem; align-items: flex-end; }
.fab__btn { position: relative; display: inline-flex; align-items: center; height: 3.4rem; border-radius: 50%; box-shadow: 0 14px 30px -14px rgba(0, 36, 28, .65), 0 0 0 1px rgba(0, 52, 40, .08); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.fab__btn:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(0, 36, 28, .75), 0 0 0 1px rgba(0, 52, 40, .12); }
.fab__btn:active { transform: scale(.97); }
.fab__label { position: absolute; right: calc(100% + .65rem); top: 50%; padding: .5rem .95rem; border-radius: 99px; background: var(--green-deep); color: #fff; font-size: .875rem; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(10px, -50%); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.fab__btn:hover .fab__label, .fab__btn:focus-visible .fab__label { opacity: 1; transform: translate(0, -50%); }
.fab__icon { width: 3.4rem; height: 3.4rem; display: grid; place-items: center; flex: none; font-size: 1.45rem; border-radius: 50%; }
.fab__btn--call { background: var(--green); color: #fff; }
.fab__btn--wa { background: #fff; color: var(--green); }
.fab__btn--call .i { width: 1.3rem; height: 1.3rem; }
.fab__btn--call::after { content: ""; position: absolute; }
@media (max-width: 640px) { .fab__btn, .fab__icon { height: 3.1rem; } .fab__icon { width: 3.1rem; } .fab__label { display: none; } }
body.menu-open .quick { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .fab__btn:hover { transform: none; } }

/* ==========================================================================
   Loader: concrete poured into the wordmark
   ========================================================================== */
.loader { display: none; position: fixed; inset: 0; z-index: 1000; background: var(--green); color: #fff; align-items: center; justify-content: center; clip-path: inset(0); transition: clip-path 1s var(--ease-io); }
.is-loading .loader { display: flex; }
.is-loading body { overflow: hidden; }
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__dots { position: absolute; inset: 0; background-image: radial-gradient(circle at center, rgba(238, 243, 239, .13) 0 1.4px, transparent 2px); background-size: 56px 56px; background-position: center; opacity: .8; }
.loader__stage { position: relative; display: grid; gap: 1.75rem; justify-items: center; transition: transform .9s var(--ease-io), opacity .6s; }
.loader.is-done .loader__stage { transform: translateY(-40px); opacity: 0; }
.loader__mark { --p: 0; position: relative; width: clamp(11rem, 24vw, 17rem); aspect-ratio: 1245 / 498; }
.loader__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.loader__ghost { opacity: .14; }
.loader__fill { clip-path: inset(calc((1 - var(--p)) * 100%) 0 0 0); }
.loader__line { position: absolute; left: -6%; right: -6%; top: calc((1 - var(--p)) * 100%); height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent); opacity: calc(var(--p) * 10); box-shadow: 0 0 14px rgba(255, 255, 255, .55); }
.loader__meta { display: flex; justify-content: space-between; gap: 2rem; width: 100%; font-family: var(--font-cond); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: .8125rem; color: var(--on-dark-2); }
.loader__pct { font-variant-numeric: tabular-nums; color: #fff; }

/* ==========================================================================
   Phone refinements
   ========================================================================== */
@media (max-width: 640px) {
  /* Home hero: title, one action, slim selector. Everything else waits for scroll. */
  .hero__inner { gap: 1.5rem; padding-bottom: 5.5rem; }
  .hero__lead, .hero__actions .link, .hero__open { display: none; }
  .hero__actions { margin-top: 1.5rem; }
  .hero__title { font-size: 1.75rem; }
  .rail { opacity: .55; gap: .35rem; }
  .rail.is-active { opacity: 1; }
  .rail__name { display: none; font-size: .9375rem; }
  .rail.is-active .rail__name { display: block; }

  /* Menu links */
  .menu__nav a { font-size: 1.25rem; padding: .85rem 0; letter-spacing: -.01em; }

  /* Project detail banner: square so the building has room */
  .phero { min-height: 0; aspect-ratio: 1 / 1; }
  .phero__tag { display: none; }
  .phero__inner { padding-bottom: 1.5rem; }
}


/* ==========================================================================
   Project videos (one: big; several: even grid). YouTube loads only on click.
   ========================================================================== */
.pvideos { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.pvideos--multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pvideo figcaption { margin-top: .75rem; font-weight: 500; }
.pvideo__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--green-deep); border-radius: 2px; box-shadow: 0 40px 80px -50px rgba(0, 36, 28, .6); }
.pvideo__frame iframe, .pvideo__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.pvideo__play { position: absolute; inset: 0; display: block; width: 100%; cursor: pointer; color: #fff; }
.pvideo__play img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.pvideo__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 36, 28, .55), rgba(0, 36, 28, .08) 55%); transition: opacity .6s; }
.pvideo__play:hover img { transform: scale(1.04); }
.pvideo__btn { position: absolute; z-index: 1; left: 50%; top: 50%; width: 5.25rem; height: 5.25rem; margin: -2.625rem 0 0 -2.625rem; display: grid; place-items: center; border-radius: 50%; background: rgba(250, 250, 248, .96); color: var(--green); box-shadow: 0 20px 40px -16px rgba(0, 36, 28, .7); transition: transform .6s var(--ease), background-color .4s, color .4s; }
.pvideo__btn .i { width: 1.75rem; height: 1.75rem; margin-left: .2rem; }
.pvideo__btn::before { content: ""; position: absolute; inset: -.6rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); animation: ring 2.8s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.pvideo__play:hover .pvideo__btn { transform: scale(1.08); background: var(--green); color: #fff; }
.pvideo__hint { position: absolute; z-index: 1; left: 1.25rem; bottom: 1.1rem; font-size: .9375rem; font-weight: 500; letter-spacing: .01em; }
.pvideos--solo .pvideo__btn { width: 6.25rem; height: 6.25rem; margin: -3.125rem 0 0 -3.125rem; }
.pvideos--solo .pvideo__btn .i { width: 2.1rem; height: 2.1rem; }
.pvideos--solo .pvideo__hint { left: clamp(1.25rem, 3vw, 2.25rem); bottom: clamp(1rem, 2.4vw, 1.75rem); font-size: 1.0625rem; }
.pcard__video { position: absolute; right: .9rem; top: .9rem; display: inline-flex; align-items: center; gap: .35rem; height: 1.75rem; padding: 0 .7rem 0 .55rem; border-radius: 99px; background: var(--green); color: #fff; font-family: var(--font-cond); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; }
.pcard__video .i { width: .8rem; height: .8rem; }
@media (max-width: 760px) { .pvideos--multi { grid-template-columns: 1fr; } .pvideo__btn, .pvideos--solo .pvideo__btn { width: 4.25rem; height: 4.25rem; margin: -2.125rem 0 0 -2.125rem; } }
@media (prefers-reduced-motion: reduce) { .pvideo__btn::before { animation: none; } }


/* Image morph: project card / "next project" band -> project hero */
.pcard__media, .phero__media, .nextp__media { view-transition-class: pmorph; }
::view-transition-group(.pmorph) { animation-duration: .95s; animation-timing-function: cubic-bezier(.76, 0, .24, 1); }
::view-transition-old(.pmorph), ::view-transition-new(.pmorph) { width: 100%; height: 100%; object-fit: cover; }
