/* ============================================================
   Peter Zuschlag Garten- und Landschaftsbau
   Premium-Cinematic Gartendesign · estate-gazette
   Waldgrün #1f3326 · Stein/Sand #c8b290 · Cream #f4efe6
   Cormorant Garamond (Display) + Inter (Body)
   Self-hosted fonts · Zero-Tracking
   ============================================================ */

/* --- Self-hosted fonts (Zero-Tracking) --- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-400.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic;  font-weight: 400; font-display: swap; src: url("../fonts/cormorant-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-600.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic;  font-weight: 600; font-display: swap; src: url("../fonts/cormorant-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cormorant-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

/* --- Design Tokens --- */
:root {
  --c-brand: #1f3326;
  --c-brand-dark: #16241b;
  --c-brand-light: #3a5742;
  --c-brand-soft: rgba(31, 51, 38, 0.08);

  --c-stone: #c8b290;
  --c-stone-dark: #a8916a;
  --c-stone-deep: #8a744f;

  --c-paper: #f4efe6;
  --c-paper-warm: #ece3d2;
  --c-paper-deep: #ded2bb;
  --c-ink: #1d211c;
  --c-ink-mute: rgba(29, 33, 28, 0.64);
  --c-ink-faint: rgba(29, 33, 28, 0.34);
  --c-rule: rgba(29, 33, 28, 0.16);

  /* Aged cream for text on dark BG (lower contrast than paper) */
  --c-cream: #ddd3bd;
  --c-cream-mute: rgba(221, 211, 189, 0.78);
  --c-cream-faint: rgba(221, 211, 189, 0.5);

  --gap-xs: 0.5rem;
  --gap-sm: 0.875rem;
  --gap-md: 1.5rem;
  --gap-lg: 2.5rem;
  --gap-xl: 4rem;
  --gap-2xl: 7rem;

  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-ui: "Inter", system-ui, -apple-system, sans-serif;

  --size-hero: clamp(3.2rem, 9vw, 8rem);
  --size-h1: clamp(2.4rem, 5vw, 4.2rem);
  --size-h2: clamp(1.7rem, 3vw, 2.6rem);
  --size-h3: clamp(1.2rem, 2vw, 1.6rem);
  --size-eyebrow: 0.76rem;
  --size-body: clamp(1rem, 1.05vw, 1.06rem);
  --size-small: 0.875rem;

  --line-tight: 1.05;
  --line-snug: 1.25;
  --line-normal: 1.6;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--size-body);
  line-height: var(--line-normal);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-brand); }
::selection { background: var(--c-brand); color: var(--c-paper); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: var(--line-tight);
  letter-spacing: -0.01em;
  margin: 0 0 var(--gap-md);
  color: var(--c-ink);
}
.h-hero { font-size: var(--size-hero); font-weight: 500; letter-spacing: -0.025em; }
.h-1 { font-size: var(--size-h1); }
.h-2 { font-size: var(--size-h2); }
.h-3 { font-size: var(--size-h3); }
p { margin: 0 0 var(--gap-md); }

.eyebrow {
  font-family: var(--f-ui);
  font-size: var(--size-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--c-brand);
  font-weight: 600;
  display: inline-block;
  margin-bottom: var(--gap-sm);
}
.eyebrow.stone { color: var(--c-stone-deep); }
em, .italic { font-style: italic; }
.kicker {
  font-family: var(--f-ui); font-size: 0.7rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--c-brand); font-weight: 600;
}
.dateline {
  font-family: var(--f-ui); font-size: 0.72rem; letter-spacing: 0.18em;
  color: var(--c-ink-faint); text-transform: uppercase;
}
.drop-cap::first-letter {
  font-family: var(--f-display); font-size: 4.2em; float: left;
  line-height: 0.82; margin: 0.05em 0.12em 0 0; color: var(--c-brand); font-weight: 500;
}

/* --- Layout containers --- */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.shell-tight { max-width: 860px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.shell-wide { max-width: 1480px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
section { padding: var(--gap-2xl) 0; }
section.tight { padding: var(--gap-xl) 0; }

/* Rules */
.rule { border-top: 1px solid var(--c-rule); margin: 0; }
.rule-brand { border-top: 1px solid var(--c-brand); margin: 0; }
.rule-haircline { height: 1px; background: var(--c-ink); position: relative; }
.rule-haircline::after {
  content: ""; position: absolute; left: 0; top: 50%; height: 1px; background: var(--c-brand);
  width: 0; transition: width 1.2s cubic-bezier(.2,.7,.2,1);
}
.in-view .rule-haircline::after { width: 100%; }

/* --- Navigation --- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 239, 230, 0.9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-rule);
}
.nav-inner {
  max-width: 1480px; margin: 0 auto;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md);
}
.nav-brand { display: inline-flex; align-items: center; gap: 12px; }
.nav-logo {
  height: 42px; width: auto; flex-shrink: 0; transition: transform .35s;
  border-radius: 6px;
}
.nav-brand:hover .nav-logo { transform: scale(1.06) rotate(-2deg); }
.nav-wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.nav-wordmark strong {
  font-family: var(--f-display); font-weight: 600; font-size: 1.18rem; color: var(--c-brand);
  letter-spacing: 0.01em;
}
.nav-wordmark .sub {
  font-family: var(--f-ui); font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--c-ink-mute); margin-top: 2px;
}
.nav-menu { display: flex; gap: var(--gap-md); align-items: center; }
.nav-menu a {
  font-family: var(--f-ui); font-size: 0.84rem; font-weight: 500;
  color: var(--c-ink); padding: 0.4rem 0; position: relative; letter-spacing: 0.02em;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1.5px; background: var(--c-brand); transition: right .3s;
}
.nav-menu a:hover::after, .nav-menu a.active::after { right: 0; }
.nav-cta {
  font-family: var(--f-ui); font-size: 0.82rem; font-weight: 600;
  padding: 0.55rem 1.1rem; background: var(--c-brand);
  color: var(--c-paper) !important; border-radius: 999px;
  transition: background .25s, transform .25s;
}
.nav-cta:hover { background: var(--c-brand-dark); transform: translateY(-1px); }
.nav-burger { display: none; flex-direction: column; gap: 4px; padding: 8px; cursor: pointer; background: transparent; border: 0; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--c-ink); transition: .3s; }
.nav-mobile {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--c-paper); border-bottom: 1px solid var(--c-rule); padding: var(--gap-md);
}
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 0.7rem 0; font-family: var(--f-ui); font-size: 0.98rem; border-bottom: 1px solid var(--c-rule); }
.nav-mobile a:last-child { border-bottom: 0; }
@media (max-width: 940px) {
  .nav-menu { display: none; }
  .nav-burger { display: inline-flex; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0.9rem 1.5rem;
  font-family: var(--f-ui); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px; transition: all .25s; cursor: pointer; border: 0;
}
.btn-primary { background: var(--c-brand); color: var(--c-paper); }
.btn-primary:hover { background: var(--c-brand-dark); color: var(--c-paper); transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(31,51,38,0.6); }
.btn-ghost { background: transparent; color: var(--c-ink); border: 1px solid var(--c-ink); }
.btn-ghost:hover { background: var(--c-ink); color: var(--c-paper); }
.btn-stone { background: var(--c-stone); color: var(--c-brand-dark); }
.btn-stone:hover { background: var(--c-stone-dark); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* --- Section header --- */
.section-head { text-align: center; margin-bottom: var(--gap-xl); }
.section-head .ornament {
  display: inline-block; width: 40px; height: 1px; background: var(--c-brand);
  margin: 0 var(--gap-sm); vertical-align: middle;
}
.section-head h2 { margin: 0 auto; max-width: 26ch; }
.section-head p { font-style: italic; color: var(--c-ink-mute); max-width: 56ch; margin: var(--gap-sm) auto 0; font-family: var(--f-display); font-size: 1.25rem; }

/* --- Image treatment: garden-warm, color, grayscale->color on hover --- */
.img-treated img, .gallery img, .ms-image img {
  filter: saturate(1.04) contrast(1.03) brightness(0.99);
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .6s;
}

/* --- Magazine split --- */
.magazine-split {
  display: grid; gap: var(--gap-xl); grid-template-columns: 1fr 1fr;
  align-items: center; margin-bottom: var(--gap-2xl);
}
.magazine-split:last-child { margin-bottom: 0; }
.magazine-split.reverse > .ms-text { order: 2; }
.magazine-split .ms-text { padding: var(--gap-md) 0; }
.magazine-split .ms-text p { font-size: 1.06rem; color: var(--c-ink-mute); line-height: 1.7; }
.magazine-split .ms-image {
  position: relative; overflow: hidden; border-radius: 4px;
  background: var(--c-paper-warm); box-shadow: 0 30px 60px -34px rgba(31,51,38,0.5);
}
.magazine-split .ms-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.magazine-split .ms-image::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(244,239,230,0.4);
  pointer-events: none; z-index: 2; opacity: 0; transition: opacity .8s .4s;
}
.magazine-split.in-view .ms-image::before { opacity: 1; }
@media (max-width: 880px) {
  .magazine-split { grid-template-columns: 1fr; gap: var(--gap-lg); }
  .magazine-split.reverse > .ms-text { order: 0; }
}

/* --- Service grid (estate-gazette) --- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-md);
}
.service-card {
  position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: 3/4; display: flex; align-items: flex-end;
  background: var(--c-brand-dark);
  text-decoration: none; isolation: isolate;
}
.service-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  filter: brightness(0.78) saturate(1.05); transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .6s;
}
.service-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,36,27,0.05) 0%, rgba(22,36,27,0.25) 45%, rgba(22,36,27,0.92) 100%);
  transition: background .5s;
}
.service-card:hover img { transform: scale(1.07); filter: brightness(0.85) saturate(1.12); }
.service-card .sc-inner { position: relative; padding: var(--gap-lg); color: var(--c-paper); z-index: 1; width: 100%; }
.service-card .sc-num { font-family: var(--f-ui); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--c-stone); margin-bottom: 6px; }
.service-card .sc-title { font-family: var(--f-display); font-size: 1.7rem; font-weight: 500; color: var(--c-paper); margin: 0 0 4px; line-height: 1.05; }
.service-card .sc-desc { font-family: var(--f-ui); font-size: 0.82rem; color: rgba(244,239,230,0.78); margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s, opacity .4s; }
.service-card:hover .sc-desc { max-height: 80px; opacity: 1; margin-top: 6px; }
.service-card .sc-arrow { font-family: var(--f-ui); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--c-stone); text-transform: uppercase; margin-top: 10px; display: inline-flex; gap: 6px; }
.service-card .sc-arrow span { transition: transform .25s; }
.service-card:hover .sc-arrow span { transform: translateX(5px); }
/* feature the first card spanning 2 cols on wide */
.services-grid .service-card.feature { aspect-ratio: 3/4; }
@media (min-width: 941px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
  .services-grid .service-card.feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* --- Stats band --- */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md);
  text-align: center;
}
.stat .num {
  font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500;
  color: var(--c-brand); line-height: 1; display: block; font-variant-numeric: tabular-nums;
}
.stat .lbl { font-family: var(--f-ui); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-ink-mute); margin-top: 8px; display: block; }
@media (max-width: 700px) { .stats-band { grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); } }

/* --- Editorial list (bullets) --- */
.editorial-list { list-style: none; margin: 0; padding: 0; }
.editorial-list li {
  display: grid; grid-template-columns: auto 1fr; gap: var(--gap-md); align-items: baseline;
  padding: var(--gap-md) 0; border-bottom: 1px solid var(--c-rule);
  font-family: var(--f-display); font-size: 1.25rem; color: var(--c-ink);
}
.editorial-list li:first-child { border-top: 1px solid var(--c-rule); }
.editorial-list .num { font-family: var(--f-ui); font-size: 0.74rem; color: var(--c-stone-deep); letter-spacing: 0.14em; min-width: 2.4rem; }

/* --- Bold statement --- */
.bold-statement { padding: var(--gap-2xl) 0; text-align: center; }
.bold-statement .quote {
  font-family: var(--f-display); font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.12; font-weight: 400; font-style: italic; color: var(--c-ink);
  max-width: 22ch; margin: 0 auto var(--gap-md); letter-spacing: -0.015em;
}
.bold-statement .quote em { color: var(--c-brand); font-style: italic; }
.bold-statement .attribution { font-family: var(--f-display); color: var(--c-brand); font-size: 1.4rem; font-style: italic; }

/* --- Contact card --- */
.contact-card {
  background: var(--c-paper-warm); border: 1px solid var(--c-rule); border-radius: 6px;
  padding: var(--gap-xl); display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-xl);
}
.contact-card h3 { font-size: 2rem; color: var(--c-brand); margin-bottom: var(--gap-md); }
.contact-card .field { margin-bottom: var(--gap-md); }
.contact-card .field strong {
  display: block; font-family: var(--f-ui); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--c-ink-mute); margin-bottom: 4px;
}
.contact-card .field a { color: var(--c-ink); border-bottom: 1px solid var(--c-rule); }
.contact-card .field a:hover { color: var(--c-brand); border-color: var(--c-brand); }
@media (max-width: 700px) { .contact-card { grid-template-columns: 1fr; padding: var(--gap-lg); } }

/* --- Form --- */
.form-field { margin-bottom: var(--gap-md); }
.form-field label { display: block; font-family: var(--f-ui); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-ink-mute); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 0.85rem 1rem; font-family: var(--f-body); font-size: 1rem;
  background: var(--c-paper); border: 1px solid var(--c-rule); border-radius: 4px; color: var(--c-ink);
  transition: border-color .25s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--c-brand); }
.form-field textarea { min-height: 130px; resize: vertical; }

/* --- Footer --- */
.footer { background: var(--c-brand-dark); color: var(--c-cream); padding: var(--gap-2xl) 0 var(--gap-md); margin-top: var(--gap-2xl); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--gap-xl); align-items: start; }
.footer-brand h3 { font-size: 1.7rem; color: var(--c-paper); margin-bottom: var(--gap-sm); }
.footer-brand p { color: var(--c-cream-mute); font-style: italic; font-size: 0.98rem; font-family: var(--f-display); }
.footer-brand .leaf { width: 40px; height: auto; margin-bottom: var(--gap-sm); border-radius: 5px; }
.footer-col h4 { font-family: var(--f-ui); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-stone); margin-bottom: var(--gap-md); font-weight: 600; }
.footer-col a, .footer-col p { display: block; padding: 0.28rem 0; font-family: var(--f-ui); font-size: 0.9rem; color: var(--c-cream); line-height: 1.6; margin: 0; }
.footer-col a:hover { color: var(--c-stone); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--gap-md);
  padding-top: var(--gap-md); margin-top: var(--gap-xl); border-top: 1px solid rgba(221,211,189,0.16);
  font-family: var(--f-ui); font-size: 0.76rem; color: var(--c-cream-faint); letter-spacing: 0.04em;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- Reveal entrance --- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }
.reveal[data-delay="500"] { transition-delay: 500ms; }

/* --- Clip-reveal --- */
.clip-reveal { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s cubic-bezier(.2,.7,.2,1); }
.clip-reveal.in-view { clip-path: inset(0 0 0 0); }

/* --- Word reveal --- */
.word-reveal .w { display: inline-block; opacity: 0; transform: translateY(20px); transition: opacity .8s, transform .8s; }
.word-reveal.in-view .w { opacity: 1; transform: translateY(0); }
.word-reveal.in-view .w:nth-child(1){transition-delay:0s}.word-reveal.in-view .w:nth-child(2){transition-delay:.07s}.word-reveal.in-view .w:nth-child(3){transition-delay:.14s}.word-reveal.in-view .w:nth-child(4){transition-delay:.21s}.word-reveal.in-view .w:nth-child(5){transition-delay:.28s}.word-reveal.in-view .w:nth-child(6){transition-delay:.35s}.word-reveal.in-view .w:nth-child(7){transition-delay:.42s}.word-reveal.in-view .w:nth-child(8){transition-delay:.49s}

:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 3px; }

/* ============================================================
   Cinematic Layer — Hero crossfade + Ken Burns + dust + haze
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-brand), var(--c-stone));
  transform-origin: left center; transform: scaleX(0); z-index: 100; pointer-events: none;
}

.cinematic { position: relative; }
.cinematic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.34; mix-blend-mode: overlay; z-index: 5; animation: grain 8s steps(8) infinite;
}
@keyframes grain {
  0%,100%{transform:translate(0,0)}10%{transform:translate(-3%,-2%)}20%{transform:translate(2%,3%)}30%{transform:translate(-2%,2%)}40%{transform:translate(3%,-3%)}50%{transform:translate(-3%,3%)}60%{transform:translate(2%,-2%)}70%{transform:translate(-2%,-3%)}80%{transform:translate(3%,2%)}90%{transform:translate(-3%,-2%)}
}

.hero-cinematic {
  position: relative; min-height: 100vh; overflow: hidden;
  display: grid; place-items: center; background: var(--c-brand-dark); isolation: isolate;
}
.hero-cinematic > .bg {
  position: absolute; inset: -5%; z-index: 0;
  background-size: cover; background-position: center center;
  filter: saturate(1.02) brightness(0.82) contrast(1.04);
  animation: kenburns 30s ease-in-out infinite alternate; will-change: transform;
  opacity: 0; transition: opacity 2s ease;
}
.hero-cinematic > .bg.bg-1 { animation: kenburns 30s ease-in-out infinite alternate, fade-cycle-1 27s ease-in-out infinite; }
.hero-cinematic > .bg.bg-2 { animation: kenburns 30s ease-in-out infinite alternate -10s, fade-cycle-2 27s ease-in-out infinite; }
.hero-cinematic > .bg.bg-3 { animation: kenburns 30s ease-in-out infinite alternate -20s, fade-cycle-3 27s ease-in-out infinite; }
@keyframes kenburns { 0%{transform:scale(1.05) translate(0,0)} 100%{transform:scale(1.2) translate(-2.5%,-3%)} }
@keyframes fade-cycle-1 { 0%,28%{opacity:1} 36%,92%{opacity:0} 100%{opacity:1} }
@keyframes fade-cycle-2 { 0%,28%{opacity:0} 36%,61%{opacity:1} 69%,100%{opacity:0} }
@keyframes fade-cycle-3 { 0%,61%{opacity:0} 69%,92%{opacity:1} 100%{opacity:0} }

.hero-cinematic > .vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(85% 55% at 50% 35%, transparent 0%, rgba(0,0,0,0.06) 70%, rgba(0,0,0,0.28) 100%),
    linear-gradient(180deg, rgba(31,51,38,0.18) 0%, transparent 32%, rgba(22,36,27,0.5) 74%, rgba(11,18,13,0.82) 100%);
}
.hero-cinematic > .dust {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    radial-gradient(circle 1.5px at 20% 30%, rgba(255,248,225,0.55), transparent),
    radial-gradient(circle 1px at 80% 20%, rgba(255,248,225,0.45), transparent),
    radial-gradient(circle 2px at 50% 70%, rgba(255,248,225,0.5), transparent),
    radial-gradient(circle 1.5px at 70% 80%, rgba(255,248,225,0.4), transparent),
    radial-gradient(circle 1px at 10% 60%, rgba(255,248,225,0.45), transparent),
    radial-gradient(circle 1.5px at 90% 50%, rgba(255,248,225,0.45), transparent),
    radial-gradient(circle 1px at 30% 85%, rgba(255,248,225,0.5), transparent),
    radial-gradient(circle 1.5px at 60% 15%, rgba(255,248,225,0.45), transparent),
    radial-gradient(circle 1px at 40% 45%, rgba(255,248,225,0.5), transparent);
  animation: dust-drift 28s linear infinite; opacity: 0.8; will-change: transform;
}
@keyframes dust-drift { 0%{transform:translateY(0) translateX(0);opacity:.3} 50%{transform:translateY(-16px) translateX(8px);opacity:.8} 100%{transform:translateY(-32px) translateX(-4px);opacity:.2} }
.hero-cinematic > .haze {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(40% 30% at 28% 22%, rgba(255,245,210,0.16), transparent 70%);
  mix-blend-mode: screen;
}
.hero-cinematic > .letterbox { position: absolute; left: 0; right: 0; z-index: 6; pointer-events: none; background: #0b120d; transition: height .9s cubic-bezier(.4,.7,.2,1); }
.hero-cinematic > .letterbox.top { top: 0; height: 0; }
.hero-cinematic > .letterbox.bottom { bottom: 0; height: 0; }
.hero-cinematic.in-view > .letterbox.top { height: 52px; }
.hero-cinematic.in-view > .letterbox.bottom { height: 52px; }
.hero-cinematic > .leaf-watermark {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: clamp(220px, 32vw, 420px); height: auto;
  transform: translate(-50%, -56%); opacity: 0.06;
  filter: brightness(0) invert(1); pointer-events: none; will-change: transform;
}
.hero-cinematic .hero-inner { position: relative; z-index: 3; color: var(--c-cream); text-align: center; padding: 0 var(--gap-md); will-change: transform; }
/* Soft centered scrim — keeps eyebrow + italic sub legible over the bright
   floral background frame, fades out at the edges so imagery stays visible. */
.hero-cinematic .hero-inner::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 150%; height: 165%; pointer-events: none;
  background: radial-gradient(58% 62% at 50% 50%, rgba(11,18,13,0.62) 0%, rgba(11,18,13,0.42) 42%, rgba(11,18,13,0.12) 74%, transparent 100%);
}
.hero-cinematic .hero-eyebrow {
  font-family: var(--f-ui); font-size: 0.74rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--c-stone); margin-bottom: var(--gap-md);
  opacity: 0; transform: translateY(-12px); transition: opacity 1.4s .4s, transform 1.4s .4s;
}
.hero-cinematic.in-view .hero-eyebrow { opacity: 1; transform: translateY(0); }
.hero-cinematic .hero-title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2.8rem, 8.5vw, 7.2rem); letter-spacing: -0.02em; line-height: 0.98;
  color: var(--c-paper); text-shadow: 0 2px 30px rgba(0,0,0,0.4); margin: 0 0 var(--gap-md);
}
.hero-cinematic .hero-title .hw { display: inline-block; white-space: nowrap; }
.hero-cinematic .hero-title .char {
  display: inline-block; opacity: 0; transform: translateY(40px) rotateX(-30deg); filter: blur(8px);
  transition: opacity 1.4s cubic-bezier(.2,.7,.2,1), transform 1.4s cubic-bezier(.2,.7,.2,1), filter 1.4s;
}
.hero-cinematic.in-view .hero-title .char { opacity: 1; transform: translateY(0) rotateX(0); filter: blur(0); }
.hero-cinematic .hero-sub {
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--c-cream); max-width: 54ch; margin: 0 auto var(--gap-lg); line-height: 1.5;
  opacity: 0; transform: translateY(16px); transition: opacity 1.4s .8s, transform 1.4s .8s;
}
.hero-cinematic.in-view .hero-sub { opacity: 1; transform: translateY(0); }
.hero-cinematic .hero-meta {
  font-family: var(--f-ui); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-cream-faint); display: inline-flex; align-items: center; gap: var(--gap-md); flex-wrap: wrap; justify-content: center;
  opacity: 0; transform: translateY(12px); transition: opacity 1.4s 1.1s, transform 1.4s 1.1s;
}
.hero-cinematic.in-view .hero-meta { opacity: 1; transform: translateY(0); }
.hero-cinematic .hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-stone); }
.hero-cinematic .hero-actions {
  margin-top: var(--gap-lg); display: inline-flex; gap: var(--gap-md); flex-wrap: wrap; justify-content: center;
  opacity: 0; transform: translateY(12px); transition: opacity 1.4s 1.4s, transform 1.4s 1.4s;
}
.hero-cinematic.in-view .hero-actions { opacity: 1; transform: translateY(0); }
.hero-cinematic .scroll-cue {
  position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); color: var(--c-cream-faint);
  font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase; z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px; animation: pulse-down 2.6s ease-in-out infinite;
}
.hero-cinematic .scroll-cue::after { content: "↓"; font-size: 1rem; }
@keyframes pulse-down { 0%,100%{transform:translate(-50%,0);opacity:.65} 50%{transform:translate(-50%,8px);opacity:1} }

/* --- Sub-page hero (inner pages) --- */
.page-hero {
  position: relative; min-height: 56vh; display: grid; place-items: center;
  overflow: hidden; background: var(--c-brand-dark); isolation: isolate; text-align: center;
}
.page-hero > .bg {
  position: absolute; inset: -4%; z-index: 0; background-size: cover; background-position: center;
  filter: brightness(0.6) saturate(1.05); animation: kenburns 32s ease-in-out infinite alternate; will-change: transform;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(22,36,27,0.45) 0%, rgba(11,18,13,0.65) 100%);
}
.page-hero .ph-inner { position: relative; z-index: 2; color: var(--c-cream); padding: var(--gap-2xl) var(--gap-md); }
.page-hero .eyebrow { color: var(--c-stone); }
.page-hero h1 { color: var(--c-paper); font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 600; margin-bottom: var(--gap-sm); text-shadow: 0 2px 24px rgba(0,0,0,0.4); }
.page-hero .ph-sub { font-family: var(--f-display); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--c-cream); max-width: 48ch; margin: 0 auto; }

/* --- Bleed strip --- */
.bleed-strip {
  position: relative; min-height: 78vh; margin: 0; overflow: hidden;
  display: grid; place-items: center; isolation: isolate;
}
.bleed-strip > img {
  position: absolute; inset: 0; width: 100%; height: 130%; object-fit: cover; z-index: -2;
  will-change: transform; filter: saturate(0.95) brightness(0.5) contrast(1.08);
}
.bleed-strip::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(31,51,38,0.55), rgba(11,18,13,0.72)); mix-blend-mode: multiply;
}
.bleed-strip::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 46px; background: #0b120d; z-index: 2; opacity: 0; transition: opacity .8s; pointer-events: none; }
.bleed-strip .letterbox-bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 46px; background: #0b120d; z-index: 2; opacity: 0; transition: opacity .8s; pointer-events: none; }
.bleed-strip.in-view::before, .bleed-strip.in-view .letterbox-bottom { opacity: 1; }
.bleed-strip .bleed-inner { text-align: center; color: var(--c-cream); padding: 0 var(--gap-lg); max-width: 840px; z-index: 1; position: relative; }
.bleed-strip .bleed-inner .eyebrow { color: var(--c-stone); }
.bleed-strip .bleed-inner h2 {
  color: var(--c-paper); font-size: clamp(2.4rem, 5.5vw, 5rem); font-style: italic; font-weight: 400;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4); margin: 0 auto var(--gap-md);
}
.bleed-strip .bleed-inner p { color: var(--c-cream-mute); font-style: italic; font-family: var(--f-display); font-size: 1.25rem; max-width: 52ch; margin: 0 auto; }

/* --- Chapter card --- */
.chapter-card { position: relative; min-height: 70vh; background: var(--c-brand-dark); color: var(--c-cream); display: grid; place-items: center; padding: var(--gap-2xl) 0; overflow: hidden; isolation: isolate; }
.chapter-card::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 50% at 50% 50%, rgba(31,51,38,0.5), transparent 70%), linear-gradient(180deg, #0b120d 0%, #121d15 50%, #0b120d 100%); }
.chapter-card .chapter-inner { position: relative; z-index: 2; text-align: center; padding: 0 var(--gap-md); }
.chapter-card .chapter-year { font-family: var(--f-display); font-size: clamp(7rem, 20vw, 18rem); font-weight: 400; letter-spacing: -0.03em; line-height: 0.82; color: var(--c-paper); opacity: 0.1; margin: 0; }
.chapter-card .chapter-tag { font-family: var(--f-ui); font-size: 0.76rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--c-stone); margin-bottom: var(--gap-md); }
.chapter-card .chapter-line { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 3.2vw, 2.6rem); color: var(--c-cream); max-width: 30ch; margin: calc(-1 * clamp(3.5rem, 11vw, 11rem)) auto 0; line-height: 1.25; }
.chapter-card .chapter-leaf { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: clamp(110px, 16vw, 200px); opacity: 0.06; filter: brightness(0) invert(1); z-index: 1; }

/* ============================================================
   GaLaBau: Before/After draggable slider
   ============================================================ */
.ba-slider {
  position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden;
  border-radius: 6px; box-shadow: 0 36px 70px -40px rgba(31,51,38,0.6);
  user-select: none; cursor: ew-resize; touch-action: pan-y; background: var(--c-brand-dark);
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-slider .ba-after { z-index: 1; }
.ba-slider .ba-before { z-index: 2; clip-path: inset(0 50% 0 0); will-change: clip-path; }
.ba-slider .ba-label {
  position: absolute; bottom: 14px; z-index: 4; font-family: var(--f-ui); font-size: 0.66rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-paper);
  background: rgba(11,18,13,0.62); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.ba-slider .ba-label.left { left: 14px; }
.ba-slider .ba-label.right { right: 14px; }
.ba-slider .ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--c-paper);
  z-index: 3; transform: translateX(-50%); box-shadow: 0 0 20px rgba(0,0,0,0.4);
}
.ba-slider .ba-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--c-paper); color: var(--c-brand);
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; letter-spacing: -2px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ============================================================
   GaLaBau: Project gallery + category filter + lightbox
   ============================================================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: var(--gap-xl); }
.filter-chip {
  font-family: var(--f-ui); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--c-rule);
  background: transparent; color: var(--c-ink-mute); cursor: pointer; transition: all .25s;
}
.filter-chip:hover { border-color: var(--c-brand); color: var(--c-brand); }
.filter-chip.active { background: var(--c-brand); color: var(--c-paper); border-color: var(--c-brand); }

.proj-grid { columns: 3; column-gap: var(--gap-sm); }
@media (max-width: 880px) { .proj-grid { columns: 2; } }
@media (max-width: 540px) { .proj-grid { columns: 1; } }
.proj-item {
  break-inside: avoid; margin-bottom: var(--gap-sm); position: relative; overflow: hidden;
  border-radius: 4px; cursor: zoom-in; background: var(--c-paper-warm);
  transition: opacity .4s, transform .4s;
}
.proj-item.hide { display: none; }
.proj-item img { width: 100%; display: block; filter: saturate(1.02); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.proj-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(22,36,27,0.55)); opacity: 0; transition: opacity .4s; }
.proj-item:hover img { transform: scale(1.06); }
.proj-item:hover::after { opacity: 1; }
.proj-item .proj-tag {
  position: absolute; bottom: 12px; left: 12px; z-index: 2; font-family: var(--f-ui); font-size: 0.66rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-paper); opacity: 0; transform: translateY(6px);
  transition: opacity .4s, transform .4s;
}
.proj-item:hover .proj-tag { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(11,18,13,0.94); display: none; place-items: center; padding: 4vh 4vw; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 4px; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8); }
.lightbox .lb-close { position: absolute; top: 22px; right: 28px; font-size: 2rem; color: var(--c-cream); cursor: pointer; line-height: 1; background: none; border: 0; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.4rem; color: var(--c-cream); cursor: pointer; background: none; border: 0; padding: 0 18px; opacity: 0.7; transition: opacity .25s; }
.lightbox .lb-nav:hover { opacity: 1; }
.lightbox .lb-prev { left: 12px; }
.lightbox .lb-next { right: 12px; }
.lightbox .lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--f-ui); font-size: 0.78rem; letter-spacing: 0.16em; color: var(--c-cream-mute); }

/* ============================================================
   Sticky mobile CTA
   ============================================================ */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; display: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 10px;
  background: rgba(244,239,230,0.94); backdrop-filter: blur(10px); border-top: 1px solid var(--c-rule);
}
.mobile-cta a { flex: 1; text-align: center; justify-content: center; padding: 0.8rem; font-size: 0.78rem; }
@media (max-width: 760px) { .mobile-cta { display: flex; } body { padding-bottom: 70px; } }

/* --- Demo notice --- */
.demo-notice {
  position: fixed; bottom: 14px; left: 14px; z-index: 80;
  font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.02em;
  background: rgba(22,36,27,0.9); color: var(--c-cream); padding: 7px 13px; border-radius: 999px;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,0.5); max-width: 78vw; line-height: 1.4;
}
.demo-notice strong { color: var(--c-stone); }
@media (max-width: 760px) { .demo-notice { bottom: 78px; font-size: 0.62rem; padding: 6px 11px; } }

/* --- Reduce motion --- */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress, .hero-cinematic > .bg, .hero-cinematic > .dust, .hero-cinematic .hero-inner,
  .bleed-strip > img, .page-hero > .bg, .cinematic::after, .leaf-watermark {
    transition: none !important; animation: none !important; transform: none !important;
  }
  .hero-cinematic > .bg.bg-1 { opacity: 1; }
  .hero-cinematic .hero-title .char, .hero-cinematic .hero-eyebrow, .hero-cinematic .hero-sub,
  .hero-cinematic .hero-meta, .hero-cinematic .hero-actions { opacity: 1 !important; transform: none !important; filter: none !important; }
  .reveal { opacity: 1; transform: none; }
  .clip-reveal { clip-path: none; }
}
@media print { .nav, .footer, .scroll-cue, .scroll-progress, .demo-notice, .mobile-cta { display: none; } }
