/* Maria Aiach, architecte — one stylesheet for every page. */

:root {
  --paper: #f3f0ea;
  --paper-2: #ebe6dd;
  --ink: #171614;
  --ink-2: #3b3833;
  --muted: #77716a;
  --line: rgba(23, 22, 20, .14);
  --bronze: #8a6a4f;
  --night: #12110f;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1480px;
  --ease: cubic-bezier(.22, .7, .1, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  color-scheme: light;
}

/* Smooth page-to-page transitions (Chrome, Edge, Safari 18+). The cover photo of a
   project flies from its card to the top of its page, everything else cross-fades. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .45s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }
::view-transition-group(*) { animation-duration: .75s; animation-timing-function: var(--ease-in-out); }
::view-transition-image-pair(*) { isolation: auto; }
::view-transition-old(*):not(::view-transition-old(root)),
::view-transition-new(*):not(::view-transition-new(root)) { mix-blend-mode: normal; height: 100%; object-fit: cover; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

*, *::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 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
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; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* photos: a blurred tiny version shows while the real one loads */
.ph { background-size: cover; background-position: center; width: 100%; height: 100%; object-fit: cover; }
.ph.is-loading { filter: blur(0); }

/* ---------------------------------------------------------------- type */
.eyebrow, .label {
  font: 600 11px/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.light { color: rgba(255, 255, 255, .82); }
.eyebrow a:hover { color: #fff; }
.section-title {
  font: 500 clamp(2.6rem, 6.4vw, 6rem)/.95 var(--serif);
  letter-spacing: -.02em;
}
.section-title em, .statement em, .hero-title em, .foot-title em, .p-title em { font-weight: 400; color: var(--bronze); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-intro { max-width: 34ch; color: var(--ink-2); }
.text-link { display: inline-flex; gap: .5em; align-items: center; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link span { transition: transform .4s var(--ease); }
.text-link:hover span { transform: translateX(6px); }

/* ------------------------------------------------------------- header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gutter);
  color: var(--ink);
  transition: transform .5s var(--ease), background-color .4s, color .4s, padding .4s;
}
.top.is-solid { background: rgba(243, 240, 234, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); padding-block: 14px; }
.top.is-hidden { transform: translateY(-100%); }
.over-dark .top:not(.is-solid) { color: #fff; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 500 26px/1 var(--serif); letter-spacing: -.01em; }
.brand-role { font: 600 9.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; margin-top: 6px; opacity: .7; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); font-size: 14px; font-weight: 500; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { border: 1px solid currentColor; border-radius: 999px; padding: 6px 16px !important; }
.nav-cta::after { display: none; }
.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-btn span:not(.sr) { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; padding: 110px var(--gutter) 40px; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font: 500 clamp(2.4rem, 11vw, 3.6rem)/1.05 var(--serif); opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(2) { transition-delay: .04s; } .menu.is-open nav a:nth-child(3) { transition-delay: .08s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .12s; } .menu.is-open nav a:nth-child(5) { transition-delay: .16s; }
.menu.is-open nav a:nth-child(6) { transition-delay: .2s; }
.menu-foot { color: var(--muted); }
body.menu-open .top { color: var(--ink) !important; background: transparent; backdrop-filter: none; }

/* --------------------------------------------------------------- hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--night); color: #fff; }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1.6s var(--ease-in-out); }
.slide.is-on { opacity: 1; z-index: 1; }
.slide img { transform: scale(1.12); transition: transform 9s linear; }
.slide.is-on img { transform: scale(1.02); }
.hero-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.12) 38%, rgba(0,0,0,0) 60%), linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 46%, rgba(0,0,0,.55) 100%); }
.hero-text { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: clamp(110px, 17vh, 170px); pointer-events: none; }
.hero-title { font: 500 clamp(3rem, 8.2vw, 8.6rem)/.9 var(--serif); letter-spacing: -.03em; margin-top: 18px; }
.hero-title em { color: #e9dccb; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.3s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero-foot { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.hero-label { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .4s; }
.hero-label::before { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 20px; display: grid; place-items: center; }
.hero-dots i { display: block; width: 100%; height: 2px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero-dots i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dots .is-on i::after { animation: progress var(--slide-ms, 6000ms) linear forwards; }
.hero-dots .is-done i::after { transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }
.hero-scroll { white-space: nowrap; }

/* -------------------------------------------------------------- intro */
.intro { padding-top: clamp(80px, 14vw, 180px); padding-bottom: clamp(80px, 12vw, 160px); }
.statement { font: 400 clamp(1.9rem, 4.2vw, 3.9rem)/1.12 var(--serif); letter-spacing: -.01em; max-width: 22ch; margin-top: 24px; }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); }
.numbers > div { padding-top: 24px; }
.num { font: 500 clamp(2.2rem, 4.6vw, 4rem)/1 var(--serif); }
.num small { font-size: .5em; color: var(--muted); }
.num-label { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ----------------------------------------------------------- projects */
.projects { padding-bottom: clamp(80px, 12vw, 160px); position: relative; }
.tools { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.filters, .views { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .view { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.chip sup { font-size: 9px; margin-left: 3px; color: var(--muted); }
.chip:hover, .view:hover { border-color: var(--ink); }
.chip.is-on, .view.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.is-on sup { color: rgba(243,240,234,.6); }
.views { padding-left: 20px; border-left: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 64px) clamp(16px, 2.2vw, 32px); }
.card.is-out { display: none; }
.card a { display: block; }
.card-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.card-media img { transition: transform 1.2s var(--ease), filter .6s; }
.card a:hover .card-media img { transform: scale(1.045); }
.card-text { padding-top: 16px; }
.card-place { display: flex; justify-content: space-between; gap: 12px; font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card-name { font: 500 clamp(1.6rem, 2.3vw, 2.1rem)/1.05 var(--serif); margin-top: 8px; letter-spacing: -.01em; }
.card-sum { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; max-width: 42ch; }
.card-facts { font-size: 13px; color: var(--muted); margin-top: 10px; }
.grid .card:nth-child(3n + 2) { margin-top: clamp(0px, 6vw, 90px); }
.grid .card:nth-child(3n + 2).is-shifted-off { margin-top: 0; }

.list { border-top: 1px solid var(--line); }
.row.is-out { display: none; }
.row a { display: grid; grid-template-columns: 70px 2.2fr 1.4fr 1fr 1.4fr 30px; gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), color .3s; }
.row-name { font: 500 clamp(1.4rem, 2.4vw, 2.2rem)/1.1 var(--serif); }
.row-year, .row-place, .row-surface, .row-kind { font-size: 14px; color: var(--muted); }
.row-arrow { transition: transform .4s var(--ease); }
.row a:hover { padding-left: 14px; }
.row a:hover .row-arrow { transform: translateX(6px); }
.list:hover .row a { color: var(--muted); }
.list:hover .row a:hover { color: var(--ink); }

.cursor-preview { position: fixed; left: 0; top: 0; width: 280px; aspect-ratio: 4 / 5; pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .35s, transform .5s var(--ease); overflow: hidden; }
.cursor-preview.is-on { opacity: 1; }
.cursor-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------------------------------------- approach */
.approach { background: var(--night); color: var(--paper); padding: clamp(90px, 13vw, 180px) 0; }
.approach .eyebrow { color: rgba(243,240,234,.55); }
.approach .section-title { margin-top: 20px; max-width: 16ch; }
.approach .section-title em { color: #c9ac8c; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: clamp(56px, 8vw, 110px); }
.steps li { border-top: 1px solid rgba(243,240,234,.2); padding-top: 22px; }
.step-n { font: 500 14px/1 var(--sans); color: #c9ac8c; }
.steps h3 { font: 500 1.75rem/1.1 var(--serif); margin: 18px 0 12px; }
.steps p { color: rgba(243,240,234,.72); font-size: 15px; }
.promise { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(243,240,234,.2); display: grid; grid-template-columns: 5fr 4fr; gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
.promise-title { font: 400 clamp(2rem, 3.8vw, 3.4rem)/1.05 var(--serif); letter-spacing: -.01em; color: #e9dccb; font-style: italic; }
.promise-text { color: rgba(243,240,234,.78); font-size: 16px; max-width: 46ch; }
@media (max-width: 900px) { .promise { grid-template-columns: 1fr; } }
.approach-note { margin-top: clamp(48px, 6vw, 80px); max-width: 60ch; font: 400 clamp(1.3rem, 2vw, 1.7rem)/1.35 var(--serif); color: rgba(243,240,234,.86); }

/* -------------------------------------------------------------- about */
.about { padding: clamp(90px, 13vw, 180px) 0; }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.about-media img { aspect-ratio: 4 / 5; }
.media-cap { font-size: 13px; color: var(--muted); margin-top: 12px; max-width: 46ch; }
.about-text .section-title { margin: 18px 0 28px; }
.about-text p:not(.eyebrow) { max-width: 54ch; color: var(--ink-2); margin-bottom: 16px; font-size: 17px; }

/* ------------------------------------------------------------ gardens */
.gardens { padding-bottom: clamp(90px, 12vw, 160px); }
.gardens-grid .card:nth-child(3n + 2) { margin-top: clamp(0px, 4vw, 60px); }

/* ---------------------------------------------------------------- art */
.art-teaser { padding-bottom: clamp(90px, 12vw, 160px); overflow: hidden; }
.strip { display: flex; gap: 16px; padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-bottom: 36px; cursor: grab; }
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: 0 0 auto; height: clamp(240px, 30vw, 420px); scroll-snap-align: start; }
.strip img { height: 100%; width: auto; object-fit: cover; }

/* ------------------------------------------------------------- footer */
.foot { background: var(--paper-2); padding: clamp(90px, 12vw, 160px) 0 32px; }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.foot-title { font: 500 clamp(3rem, 8vw, 7.5rem)/.92 var(--serif); letter-spacing: -.03em; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(48px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.big-link { display: inline-block; font: 500 clamp(1.4rem, 2.4vw, 2.1rem)/1.2 var(--serif); margin-top: 10px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); overflow-wrap: anywhere; }
.big-link:hover { background-size: 100% 1px; }
.addr { margin-top: 10px; font-size: 17px; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(60px, 8vw, 110px); font-size: 12.5px; color: var(--muted); }
.foot-legal a:hover { color: var(--ink); }

/* ----------------------------------------------------- project pages */
.p-hero { position: relative; height: 92svh; min-height: 520px; color: #fff; background: var(--night); overflow: hidden; }
.p-hero-media { position: absolute; inset: 0; }
.p-hero-media img { will-change: transform; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.1) 55%, rgba(0,0,0,.6) 100%); pointer-events: none; }
.p-hero-text { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(36px, 7vh, 72px); }
.p-title { font: 500 clamp(3rem, 9vw, 8.5rem)/.92 var(--serif); letter-spacing: -.03em; margin-top: 16px; max-width: 14ch; }
.p-title.dark { color: var(--ink); }
.p-intro { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 110px); padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.facts { display: grid; gap: 0; align-self: start; position: sticky; top: 100px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { border-top: 1px solid var(--line); }
.facts dt { font: 600 11px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { text-align: right; font-weight: 500; font-size: 15px; }
.lede { font: 400 clamp(1.7rem, 3.2vw, 2.9rem)/1.15 var(--serif); letter-spacing: -.01em; max-width: 24ch; }
.prose { margin-top: 32px; max-width: 66ch; color: var(--ink-2); }
.prose p { margin-bottom: 1.05em; }
.prose h3 { font: 600 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 1.8em 0 .8em; }
.prose ul { margin: 0 0 1.2em; }
.prose li { position: relative; padding-left: 22px; margin-bottom: .4em; }
.prose li::before { content: ""; position: absolute; left: 0; top: .85em; width: 10px; height: 1px; background: var(--bronze); }
.prose .quote { font: 400 1.6rem/1.3 var(--serif); color: var(--ink); margin-top: 1.4em; }
.prose .quote span { display: block; font: 600 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

.gallery { display: grid; gap: clamp(16px, 2.4vw, 32px); padding-bottom: clamp(56px, 8vw, 110px); }
.g-row { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.g-row.two { grid-template-columns: 1fr 1fr; align-items: start; }
.g-row.single-portrait { grid-template-columns: minmax(0, 560px); justify-content: center; }
.g-fig figcaption, .plan figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.g-open { display: block; width: 100%; overflow: hidden; cursor: zoom-in; background: var(--paper-2); }
.g-open img { transition: transform 1.1s var(--ease); }
.g-open:hover img { transform: scale(1.025); }
.g-row.two .g-open img { aspect-ratio: 4 / 5; }

.plans { background: #fff; padding: clamp(64px, 9vw, 120px) 0; }
.plans-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 32px; }
.plans-grid img { object-fit: contain; background: #fff; }
.plan .g-open { background: #fff; }

.next { background: var(--night); color: #fff; }
.next-link { position: relative; display: block; height: 72svh; min-height: 420px; overflow: hidden; }
.next-media { position: absolute; inset: 0; }
.next-media img { transition: transform 1.6s var(--ease), opacity .6s; opacity: .72; }
.next-link:hover .next-media img { transform: scale(1.04); opacity: .9; }
.next-text { position: absolute; left: 0; right: 0; bottom: clamp(32px, 6vh, 64px); z-index: 2; }
.next-title { font: 500 clamp(2.8rem, 8vw, 7.5rem)/.92 var(--serif); letter-spacing: -.03em; margin-top: 14px; }
.next-place { margin-top: 10px; opacity: .8; }
.next-bar { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 26px; font-size: 14px; }
.next-bar a { opacity: .75; } .next-bar a:hover { opacity: 1; }

/* -------------------------------------------------------- art page */
.page-art main { padding-top: 140px; }
.art-head { padding-bottom: clamp(48px, 7vw, 96px); }
.art-head .p-title { margin: 18px 0 34px; }
.masonry { columns: 4 240px; column-gap: 16px; padding-bottom: clamp(80px, 10vw, 140px); }
.m-item { break-inside: avoid; margin-bottom: 16px; }
.legal .prose { max-width: 70ch; }
.page-art .top { color: var(--ink); }

/* ----------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(14, 13, 12, .96); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .35s; }
.lightbox.is-open { opacity: 1; }
.lb-figure { max-width: calc(100vw - 2 * var(--gutter)); max-height: calc(100svh - 150px); display: flex; flex-direction: column; align-items: center; }
.lb-figure img { max-width: 100%; max-height: calc(100svh - 170px); width: auto; height: auto; object-fit: contain; transition: opacity .3s, transform .45s var(--ease); }
.lb-figure img.is-swapping { opacity: 0; transform: scale(.985); }
.lb-figure figcaption { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.75); text-align: center; min-height: 1.4em; }
.lb-close { position: absolute; top: 20px; right: var(--gutter); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 0; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); font-size: 20px; transition: background .3s, border-color .3s; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.lb-prev { left: var(--gutter); } .lb-next { right: var(--gutter); }
.lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .16em; color: rgba(255,255,255,.6); }
body.lb-open { overflow: hidden; }

/* ---------------------------------------------------- reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ mobile */
@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .row a { grid-template-columns: 56px 2fr 1.4fr 1fr 24px; }
  .row-kind { display: none; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .grid .card:nth-child(3n + 2), .gardens-grid .card:nth-child(3n + 2) { margin-top: 0; }
  .grid .card:nth-child(2n) { margin-top: clamp(0px, 8vw, 70px); }
  .about-grid, .p-intro { grid-template-columns: 1fr; }
  .facts { position: static; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .cursor-preview { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid { grid-template-columns: 1fr; gap: 44px; }
  .grid .card:nth-child(2n) { margin-top: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .views { padding-left: 0; border-left: 0; }
  .row a { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 18px 0; }
  .row-year { grid-column: 2; grid-row: 1; }
  .row-name { grid-column: 1; grid-row: 1; }
  .row-place { grid-column: 1; }
  .row-surface, .row-arrow { display: none; }
  .g-row.two { grid-template-columns: 1fr; }
  .g-row.two .g-open img { aspect-ratio: auto; }
  .plans-grid { grid-template-columns: 1fr; }
  .hero-dots { display: none; }
  .lb-prev, .lb-next { width: 48px; height: 48px; top: auto; bottom: 14px; transform: none; }
  .lb-count { bottom: 30px; }
  .masonry { columns: 2; column-gap: 10px; }
  .m-item { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .slide img, .slide.is-on img { transform: none; }
  @view-transition { navigation: none; }
}
.grid.is-filtered .card { margin-top: 0 !important; }

/* ------------------------------------------------ before / after slider */
.ba { padding-bottom: clamp(80px, 11vw, 150px); }
.ba-frame { position: relative; width: min(100%, calc(80svh * var(--ar, 1.5))); margin: 0 auto; background: var(--paper-2); overflow: hidden; user-select: none; touch-action: pan-y; --pos: 50%; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: #fff; pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 6px 24px rgba(0,0,0,.25); white-space: nowrap; }
.ba-handle span::before { content: "\2190  "; } .ba-handle span::after { content: "  \2192"; }
.ba-tag { position: absolute; top: 16px; margin: 0; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); pointer-events: none; }
.ba-tag.l { left: 18px; } .ba-tag.r { right: 18px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-link { margin-top: 24px; }
@media (min-width: 901px) {
  .ba { display: grid; grid-template-columns: 5fr 6fr; grid-template-rows: auto 1fr; column-gap: clamp(32px, 6vw, 96px); align-items: start; }
  .ba .section-head { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; margin-top: 12vh; }
  .ba .ba-link { grid-column: 1; grid-row: 2; }
  .ba .ba-frame { grid-column: 2; grid-row: 1 / span 2; width: min(100%, calc(84svh * var(--ar, 1.5))); margin: 0 0 0 auto; }
}

/* ------------------------------------------------ 9 projects, then "see all" */
.grid:not(.show-all) .card.is-extra { display: none; }
.more-wrap { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 80px); }
.more-wrap.is-done { display: none; }
.list:not([hidden]) ~ .more-wrap, .grid[hidden] ~ .more-wrap { display: none; }
.more-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14.5px; font-weight: 500; transition: background .35s, color .35s; }
.more-btn span { color: var(--muted); transition: color .35s; }
.more-btn:hover { background: var(--ink); color: var(--paper); }
.more-btn:hover span { color: rgba(243,240,234,.6); }
.ba { padding-top: 0; }

/* the promise: one sentence, large */
.promise { grid-template-columns: 1fr; }
.promise-title { font-size: clamp(1.6rem, 2.9vw, 2.7rem); line-height: 1.18; max-width: 34ch; }

/* Approach: white section, numbers in green (asked on 2026-11-25: no orange) */
.approach { background: #fff; color: var(--ink); }
.approach .eyebrow { color: var(--muted); }
.approach .section-title em { color: var(--bronze); }
.steps li { border-top-color: var(--line); }
.step-n { color: #3f8a5c; font-weight: 600; font-size: 15px; }
.steps p { color: var(--ink-2); }
.promise { border-top-color: var(--line); }
.promise-title { color: var(--ink); }

/* the promise: a bit smaller, on fewer lines, less height */
.promise { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(24px, 3vw, 36px); }
.promise-title { font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1.25; max-width: 62ch; }

/* ------------------------------------------------------------ reviews */
.reviews { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--line); }
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); }
.reviews-head .section-title { margin-top: 18px; }
.rating { display: flex; align-items: center; gap: 18px; padding: 18px 26px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .3s, background .3s; }
.rating:hover { border-color: var(--ink); background: #fff; }
.rating-num { font: 500 clamp(2.6rem, 4vw, 3.4rem)/1 var(--serif); }
.rating-side { display: flex; flex-direction: column; gap: 4px; }
.stars { color: #e3a008; letter-spacing: 2px; font-size: 15px; }
.rating-count { font-size: 13px; color: var(--muted); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 clamp(40px, 5vw, 64px); }
.topics li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: #fff; }
.topics li span { margin-left: 8px; color: var(--muted); font-size: 12px; }
.review-grid { columns: 3 300px; column-gap: clamp(16px, 2.4vw, 32px); }
.review { break-inside: avoid; margin: 0 0 clamp(16px, 2.4vw, 32px); padding: 28px 28px 24px; background: #fff; border: 1px solid var(--line); }
.review blockquote { margin: 14px 0 18px; font: 400 1.22rem/1.45 var(--serif); color: var(--ink); }
.review figcaption { font-size: 13px; color: var(--muted); }
.review figcaption strong { color: var(--ink); font-weight: 600; }
.reviews-foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; margin-top: 12px; }
.reviews-note { font-size: 12.5px; color: var(--muted); }

.review-summary { font: 400 clamp(1.4rem, 2.4vw, 2.1rem)/1.3 var(--serif); max-width: 46ch; margin: 14px 0 clamp(36px, 4vw, 56px); color: var(--ink); }

/* contact: the reviews, condensed, on the right of the title */
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 48px; }
.foot-proof { display: flex; flex-direction: column; gap: 6px; max-width: 320px; padding: 24px 28px; background: var(--paper); border: 1px solid var(--line); transition: border-color .3s, transform .5s var(--ease); }
.foot-proof:hover { border-color: var(--ink); transform: translateY(-3px); }
.foot-proof-rating { display: flex; align-items: center; gap: 12px; }
.foot-proof-count { font-size: 13px; color: var(--muted); }
.foot-proof-text { font: 400 1.25rem/1.3 var(--serif); margin-top: 8px; }
.foot-proof-link { font-size: 13.5px; font-weight: 500; margin-top: 8px; }
