/* ==========================================================================
   Tranquil Builders — Design System
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=general-sans@500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #F6F3EE;
  --surface: #FFFFFF;
  --text: #1E1E1E;
  --text-secondary: #666666;
  --accent: #6D4C41;
  --hover: #B08A68;
  --hairline: rgba(30, 30, 30, 0.1);
  --overlay: rgba(20, 18, 16, 0.55);
  --footer-bg: #141210;
  --footer-text: #F6F3EE;
  --footer-text-secondary: #9A9590;

  --font-display: 'General Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --section-pad: 9rem;
  --container: 1400px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #14120F;
  --surface: #1D1A16;
  --text: #F2EEE7;
  --text-secondary: #A8A199;
  --accent: #C9A27C;
  --hover: #E4C29B;
  --hairline: rgba(255, 255, 255, 0.12);
  --overlay: rgba(0, 0, 0, 0.6);
  --footer-bg: #0B0A08;
  --footer-text: #F2EEE7;
  --footer-text-secondary: #7A756E;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14120F;
    --surface: #1D1A16;
    --text: #F2EEE7;
    --text-secondary: #A8A199;
    --accent: #C9A27C;
    --hover: #E4C29B;
    --hairline: rgba(255, 255, 255, 0.12);
    --overlay: rgba(0, 0, 0, 0.6);
    --footer-bg: #0B0A08;
    --footer-text: #F2EEE7;
    --footer-text-secondary: #7A756E;
    color-scheme: dark;
  }
}

/* ---------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
  /* `overflow-x: hidden` forces overflow-y to compute as `auto`, which makes
     body a scroll container — and a position:sticky element can only stick to a
     scrollport that actually scrolls. Body never does (the document element is
     the scroller), so every sticky section silently scrolled away, leaving the
     pinned reveals and the scroll-to-install hero as blank space.
     `clip` clips identically but does NOT create a scroll container. Both axes
     are declared because setting one alone drags the other back to `auto`. */
  overflow-x: clip;
  overflow-y: visible;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

section {
  padding: var(--section-pad) 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------------------------------- Kicker -------------------------------- */
.kicker {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* --------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.2rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  transition: transform 0.35s cubic-bezier(.2,.6,.2,1), background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  white-space: nowrap;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #F6F3EE;
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #F6F3EE;
}
.btn-light {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-light:hover {
  background: var(--hover);
  border-color: var(--hover);
  color: #1E1E1E;
}

/* ---------------------------------- Layout -------------------------------- */
.rounded { border-radius: 4px; overflow: hidden; }

/* --------------------------------- Loader ---------------------------------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#loader .loader-mark {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1.1rem;
  color: var(--text);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ------------------------------ Scroll Progress ----------------------------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 2000;
  transition: width 0.05s linear;
}

/* ----------------------------------- Nav ------------------------------------ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}
.site-nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
  padding: 1rem clamp(1.5rem, 4vw, 3rem);
}
.nav-logo img {
  /* Taller than the old plain wordmark: the full lockup carries the script,
     "Abode of Peace" and the leaf mark, which go muddy below ~40px. */
  height: 44px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-links a {
  position: relative;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.2,.6,.2,1);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-links a[aria-current="page"] {
  color: var(--accent);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(20deg); }

.hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(.2,.6,.2,1);
}
.nav-overlay.open { transform: translateX(0); }
.nav-overlay a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

/* Nav appearance on dark hero (transparent, light text) */
body.on-dark-hero .site-nav:not(.scrolled) .nav-links a,
body.on-dark-hero .site-nav:not(.scrolled) .nav-logo,
body.on-dark-hero .site-nav:not(.scrolled) .theme-toggle,
body.on-dark-hero .site-nav:not(.scrolled) .hamburger span {
  color: #fff;
}
body.on-dark-hero .site-nav:not(.scrolled) .theme-toggle { border-color: rgba(255,255,255,0.3); }
body.on-dark-hero .site-nav:not(.scrolled) .hamburger span { background: #fff; }
body.on-dark-hero .site-nav:not(.scrolled) .nav-logo img { filter: brightness(0) invert(1); }

:root[data-theme="dark"] .nav-logo img { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-logo img { filter: brightness(0) invert(1); }
}

/* ---------------------------------- Hero ------------------------------------ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: -10% 0 0 0;
  height: 120%;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}
.hero-media img.kenburns {
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.05); }
  to { transform: scale(1.18); }
}
body.no-scroll { overflow: hidden; height: 100%; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.35) 0%, rgba(20,18,16,0.35) 40%, rgba(20,18,16,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(1.5rem, 4vw, 3rem) 5rem;
}
.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #E4C29B;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.6rem, 9vw, 8rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-bottom: 2.5rem;
  max-width: 20ch;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
  z-index: 2;
}
.scroll-indicator::after {
  content: '';
  position: absolute;
  top: -60px; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(0); }
  100% { transform: translateY(120px); }
}

/* Text reveal wrappers */
.reveal-line { overflow: hidden; display: block; }
.reveal-line > span { display: inline-block; will-change: transform; }

/* ------------------------------- Section heads ------------------------------- */
.section-head {
  max-width: 720px;
  margin-bottom: 4rem;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

/* ---------------------------------- About split ------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.split-media { aspect-ratio: 4/5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text .statement {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  margin-bottom: 2.5rem;
}
.split-text p.lede {
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 2.5rem;
}

/* Reveal panel for images */
.img-reveal {
  position: relative;
  overflow: hidden;
}
.img-reveal img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 0.8s cubic-bezier(.2,.6,.2,1);
}
.img-reveal .panel {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: right;
  z-index: 1;
}
.img-reveal:hover img { transform: scale(1.06); }

/* ----------------------------------- Counters --------------------------------- */
.counters {
  display: grid;
  /* Three figures now, not four — a 4-column track left an empty cell. */
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.counter {
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  position: relative;
}
.counter .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
}
.counter .label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}
/* A quieter second line under the figure. "150+ in-house team" only means
   something once the reader knows which trades that covers, and "15+ years"
   is stronger with the founding year attached. */
.counter__note {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-transform: none;
}

.counter .underline {
  position: absolute;
  top: -1px; left: 0;
  height: 1px;
  width: 0%;
  background: var(--accent);
  transition: width 1.2s cubic-bezier(.2,.6,.2,1);
}
.counter.in-view .underline { width: 100%; }

/* ----------------------------------- Cards / Projects --------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.project-card { display: block; }
.project-card .img-reveal { aspect-ratio: 4/5; margin-bottom: 1.2rem; }
.project-card h3 {
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.project-card .meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ----------------------------------- Services list ------------------------------- */
.service-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--hairline);
  transition: padding-left 0.4s cubic-bezier(.2,.6,.2,1);
}
.service-list > a:last-child .service-row,
.service-list > .service-row:last-child { border-bottom: 1px solid var(--hairline); }
.service-row .index {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-secondary);
  width: 3ch;
}
.service-row h3 {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  flex: 1;
}
.service-row .arrow {
  font-size: 1.4rem;
  transition: transform 0.4s cubic-bezier(.2,.6,.2,1);
}
.service-row:hover { padding-left: 1rem; }
.service-row:hover .arrow { transform: translateX(10px); }

/* --------------------------------- Why choose us ------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: var(--surface);
  border-radius: 4px;
  padding: 2.2rem 1.5rem;
  border: 1px solid var(--hairline);
  transition: transform 0.4s cubic-bezier(.2,.6,.2,1), border-color 0.4s ease;
}
.why-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.why-card .why-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.why-card h3 {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.6rem;
}
.why-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ------------------------------------ Testimonials -------------------------------- */
.testimonial-slider {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; }
.testimonial-slide blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.testimonial-slide cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonial-controls button {
  width: 44px; height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.testimonial-controls button:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.testimonial-dots { display: flex; gap: 0.5rem; }
.testimonial-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hairline);
  transition: background 0.3s ease;
}
.testimonial-dots span.active { background: var(--accent); }

/* ------------------------------------- Process timeline ---------------------------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline-line {
  position: absolute;
  left: 24px; top: 0;
  width: 1px; height: 100%;
  background: var(--hairline);
}
.timeline-line-fill {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 0%;
  background: var(--accent);
}
.timeline-item {
  position: relative;
  padding: 0 0 4rem 5.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 16px; top: 0.2rem;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(.2,.6,.2,1);
}
.timeline-dot.in-view { transform: scale(1); }
.timeline-item .step-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
}
.timeline-item h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.timeline-item p { color: var(--text-secondary); max-width: 46ch; }

/* -------------------------------------- Gallery ------------------------------------ */
.gallery {
  columns: 3 260px;
  column-gap: 1.5rem;
}
.gallery figure {
  break-inside: avoid;
  margin: 0 0 1.5rem;
  border-radius: 4px;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  transition: transform 0.8s cubic-bezier(.2,.6,.2,1);
}
.gallery figure:hover img { transform: scale(1.06); }

/* ---------------------------------------- FAQ --------------------------------------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border-top: 1px solid var(--hairline);
  padding: 1.6rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-transform: none;
  letter-spacing: 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.35s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .faq-answer {
  color: var(--text-secondary);
  max-width: 60ch;
  padding-top: 1rem;
}

/* ---------------------------------------- CTA close --------------------------------- */
.cta-close {
  text-align: center;
}
.cta-close h2 { font-size: clamp(2.2rem, 6vw, 5rem); margin-bottom: 2.5rem; }

/* ---------------------------------------- Footer ------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 6rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 46px; margin-bottom: 1.2rem; filter: brightness(0) invert(1); }
.footer-brand p { color: var(--footer-text-secondary); max-width: 32ch; }
.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--footer-text-secondary);
  margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col a:hover { color: var(--hover); }
.footer-newsletter { display: flex; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.footer-newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding: 0.6rem 0;
  color: #fff;
}
.footer-newsletter input::placeholder { color: var(--footer-text-secondary); }
.footer-newsletter button {
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.footer-newsletter button:hover { background: var(--hover); border-color: var(--hover); color: #1E1E1E; }
.newsletter-confirm { font-size: 0.8rem; color: var(--hover); min-height: 1.2em; }
.social-circles { display: flex; gap: 0.8rem; }
.social-circles a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.social-circles a:hover { background: var(--hover); border-color: var(--hover); }
.social-circles svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--footer-text-secondary);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* -------------------------------------- Floating buttons ------------------------------ */
.whatsapp-btn {
  position: fixed;
  right: 1.8rem; bottom: 1.8rem;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  z-index: 500;
  transition: transform 0.3s cubic-bezier(.2,.6,.2,1);
}
.whatsapp-btn:hover { transform: scale(1.08); }
.whatsapp-btn svg { width: 28px; height: 28px; fill: #fff; }

.back-to-top {
  position: fixed;
  right: 1.8rem; bottom: 5.6rem;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------- Forms ---------------------------------------- */
.form-underline { display: grid; gap: 1.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.field { position: relative; }
.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 0.7rem 0;
  color: var(--text);
  transition: border-color 0.3s ease;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.8rem; color: var(--text-secondary); }

/* --------------------------------------- Contact page ---------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-block { margin-bottom: 2.2rem; }
.contact-block h4 {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}
.contact-block a, .contact-block p { font-size: 1.05rem; }
.map-placeholder {
  aspect-ratio: 16/9;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2rem;
}
.map-placeholder iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2) contrast(0.95);
}

/* ---------------------------------------- Filters (projects) --------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3.5rem;
}
.filter-btn {
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.filter-btn:hover { border-color: var(--accent); }
.filter-btn.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.placeholder-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 3rem;
  max-width: 60ch;
}
.project-card[hidden] { display: none; }

/* ------------------------------------------- Team ---------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}
.team-card .img-reveal { aspect-ratio: 4/5; margin-bottom: 1rem; }
.team-card h3 { font-size: 1rem; text-transform: none; letter-spacing: 0; margin-bottom: 0.2rem; }
.team-card .role { font-size: 0.78rem; color: var(--text-secondary); }

/* No portrait on file. A monogram fills the frame so the card keeps its
   neighbours' height — dropping the image outright would pull the name and
   role up and leave one short, obviously broken column in the grid. */
.team-card--noimg .img-reveal {
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.team-card--noimg .panel { display: none; }
.team-card--noimg .img-reveal::after {
  content: attr(data-initials);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 2.2rem);
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  opacity: 0.5;
}

/* --- Six tiers, three card sizes -------------------------------------------
   Leadership and estimation sit in a 4-column grid with a taller crop,
   architects in 4 at the standard crop, everyone else in 6 — so seniority is
   carried by card size rather than by a bigger font on an identical card. The
   tier labels earn the size change rather than leaving it looking arbitrary. */
.team-tier {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.team-tier::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
/* Tiers now stack six deep, so the gap before the next label belongs on every
   grid, not just the leadership one. */
.team-grid { margin-bottom: 4.5rem; }
.team-grid:last-child { margin-bottom: 0; }

.team-grid--staff { margin-top: 0; }
.team-grid--lead { grid-template-columns: repeat(3, 1fr); }
.team-grid--staff { grid-template-columns: repeat(6, 1fr); gap: 1.4rem; }

/* Leadership: taller portrait, and the role promoted to a small caps label */
.team-grid--lead .team-card .img-reveal { aspect-ratio: 3/4; margin-bottom: 1.15rem; }
.team-grid--lead .team-card h3 { font-size: 1.22rem; margin-bottom: 0.4rem; }
.team-grid--lead .team-card .role {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* The team: quieter, denser */
.team-grid--staff .team-card h3 { font-size: 0.9rem; }
.team-grid--staff .team-card .role { font-size: 0.72rem; }

/* ------------------------------------------- Values -------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}
.value-card {
  padding: 2rem 0;
  border-top: 1px solid var(--hairline);
}
.value-card h3 { font-size: 1.1rem; text-transform: none; letter-spacing: 0; margin-bottom: 0.6rem; }
.value-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ------------------------------------------- Spec sidebar (detail pages) ------------------ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.spec-list { border-top: 1px solid var(--hairline); }
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.88rem;
}
.spec-row .k { color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem; }
.detail-hero-img { aspect-ratio: 16/8; margin-bottom: 3rem; }
.detail-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
.detail-gallery .img-reveal { aspect-ratio: 4/3; }
.template-note {
  background: var(--surface);
  border: 1px dashed var(--hairline);
  border-radius: 4px;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* -------------------------------------------- 404 --------------------------------------- */
.page-404 {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem;
}
.page-404 h1 { font-size: clamp(2rem, 6vw, 4rem); margin-bottom: 1rem; }
.page-404 p { color: var(--text-secondary); margin-bottom: 2.5rem; }

/* -------------------------------------------- Privacy / simple content page ------------------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; text-transform: none; letter-spacing: 0; margin: 2.5rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-secondary); margin-bottom: 1rem; }

/* -------------------------------------------- Utility -------------------------------------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 4rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* --------------------------------- Scroll Showcase ------------------------------ */
.scroll-showcase {
  position: relative;
  height: 600vh;
  padding: 0;
}
.scroll-showcase .showcase-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Room base layer */
.showcase-room {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.showcase-room .room-base {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* Furniture layer — sized by JS to match the room's object-fit:cover box,
   so every piece tracks the room at any viewport aspect ratio. */
.furniture-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Furniture pieces — each layer is full-frame; the img inside is placed by % */
.furniture-piece {
  position: absolute;
  inset: 0;
  z-index: 1;
  will-change: transform, opacity;
  pointer-events: none;
  opacity: 0;
}
.furniture-piece img {
  position: absolute;
  object-fit: contain;
}

/* Stacking order (back -> front) */
.furniture-piece[data-piece="birds"]        { z-index: 1; }
.furniture-piece[data-piece="chandelier"]   { z-index: 2; }
.furniture-piece[data-piece="plant-right"]  { z-index: 3; }
.furniture-piece[data-piece="sofa"]         { z-index: 4; }
.furniture-piece[data-piece="lamp-right"]   { z-index: 5; }
.furniture-piece[data-piece="table-center"] { z-index: 6; }
.furniture-piece[data-piece="plant-left"]   { z-index: 7; }

/* Piece placement — tuned to match the composed reference room */
.furniture-piece[data-piece="birds"] img        { left: 32.5%; top: 15%;   width: 30%;    height: 50.3%; }
.furniture-piece[data-piece="chandelier"] img   { left: 45%;   top: -1%;   width: 6.4%;   height: 55%;   }
.furniture-piece[data-piece="plant-right"] img  { left: 62.5%; top: 60.5%; width: 15%;    height: 32%;   }
.furniture-piece[data-piece="sofa"] img         { left: 21%;   top: 77.5%; width: 45%;    height: 17.5%; }
.furniture-piece[data-piece="lamp-right"] img   { left: 54%;   top: 66%;   width: 11%;    height: 28.4%; }
.furniture-piece[data-piece="table-center"] img { left: 36.5%; top: 86.5%; width: 12.5%;  height: 13.6%; }
.furniture-piece[data-piece="plant-left"] img   { left: 3.5%;  top: 55%;   width: 9%;     height: 46.7%; }

/* Hero actions inside showcase */
.showcase-hero-actions {
  position: absolute;
  z-index: 5;
  bottom: clamp(2rem, 4vh, 3.5rem);
  left: clamp(1.5rem, 5vw, 6rem);
  display: flex;
  gap: 1rem;
  opacity: 0;
}
.btn-fill-light {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
  color: #F2EEE7;
  backdrop-filter: blur(8px);
}
.btn-fill-light:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #F6F3EE;
}

/* Install counter */
.install-counter {
  position: absolute;
  top: clamp(1.5rem, 3vh, 2.5rem);
  right: clamp(1.5rem, 3vw, 3rem);
  z-index: 4;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-family: var(--font-display);
  color: rgba(242, 238, 231, 0.5);
  opacity: 0;
}
.install-count {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #F2EEE7;
  font-variant-numeric: tabular-nums;
}
.install-sep {
  font-size: 1rem;
  margin: 0 0.1rem;
}
.install-total {
  font-size: 1.2rem;
  font-weight: 600;
}
.piece-caption {
  position: absolute;
  bottom: clamp(6rem, 12vh, 9rem);
  left: clamp(1.5rem, 3vw, 3rem);
  z-index: 4;
  max-width: 22ch;
  opacity: 0;
  pointer-events: none;
}
.piece-caption-text {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 238, 231, 0.85);
  padding: 0.5rem 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  border-left: 2px solid rgba(242, 238, 231, 0.6);
}
.install-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-left: 0.5rem;
}
.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,18,16,0.92) 0%, rgba(20,18,16,0.6) 50%, rgba(20,18,16,0.3) 100%);
  opacity: 0;
  z-index: 2;
}
.showcase-content {
  position: relative;
  z-index: 3;
  color: #F2EEE7;
  padding: 0 clamp(1.5rem, 5vw, 6rem);
  width: 100%;
  max-width: var(--container);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: end;
  padding-bottom: clamp(6rem, 12vh, 10rem);
  height: 100%;
  opacity: 0;
}
.showcase-text {
  align-self: end;
}
.showcase-text .kicker {
  color: rgba(242, 238, 231, 0.6);
  margin-bottom: 1.2rem;
}
.showcase-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}
.showcase-headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.showcase-stats {
  align-self: end;
  display: flex;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 0.5rem;
}
.showcase-stat {
  text-align: left;
}
.showcase-stat .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: #F2EEE7;
  display: block;
}
.showcase-stat .stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(242, 238, 231, 0.5);
  margin-top: 0.5rem;
  display: block;
}
.showcase-scroll-hint {
  position: absolute;
  bottom: clamp(1.5rem, 3vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(242, 238, 231, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.showcase-scroll-hint .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(242,238,231,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); transform-origin: top; }
}
@media (max-width: 700px) {
  .showcase-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .showcase-stats {
    gap: 1.5rem;
  }
}

/* --------------------------------- Custom cursor -------------------------------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(.2,.6,.2,1), height 0.3s cubic-bezier(.2,.6,.2,1), background 0.3s ease;
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid var(--accent);
  opacity: 0.35;
  z-index: 9997;
}
.cursor-dot.hovering {
  width: 56px; height: 56px;
  background: rgba(109, 76, 65, 0.06);
  border: 1px solid var(--accent);
}
.cursor-ring.hovering { width: 70px; height: 70px; opacity: 0.12; }
.cursor-dot.clicking { transform: translate(-50%, -50%) scale(0.75); }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}
body.custom-cursor { cursor: none; }
body.custom-cursor a, body.custom-cursor button,
body.custom-cursor .service-row, body.custom-cursor .project-card,
body.custom-cursor .gallery figure, body.custom-cursor summary,
body.custom-cursor .filter-btn { cursor: none; }

/* --------------------------------- Service hover image --------------------------- */
.service-hover-img {
  position: fixed;
  width: 340px; height: 230px;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
  border-radius: 6px;
  opacity: 0;
  transform: scale(0.8);
  will-change: transform, opacity;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.service-hover-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.6,.2,1);
}
.service-hover-img.visible img { transform: scale(1.05); }

/* --------------------------------- Why-card glow -------------------------------- */
.why-card {
  --glow-x: 50%;
  --glow-y: 50%;
}
.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--glow-x) var(--glow-y), rgba(109, 76, 65, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.why-card:hover::after { opacity: 1; }

/* --------------------------------- Gallery parallax ------------------------------ */
.gallery figure {
  transform-style: preserve-3d;
  perspective: 800px;
}

/* --------------------------------- Service row underline draw -------------------- */
.service-row::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(.2,.6,.2,1);
}
.service-row { position: relative; }
.service-row:hover::after { width: 100%; }

/* --------------------------------- Smooth section dividers ---------------------- */
.section-line {
  width: 0; height: 1px;
  background: var(--hairline);
  margin: 0 auto;
}

/* ================================= Responsive ================================= */
@media (max-width: 1000px) {
  :root { --section-pad: 6rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .split { grid-template-columns: 1fr; }
  .counters { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  /* Two-class modifiers outrank the line above, so restate them per breakpoint
     or the tiers would keep their desktop column counts on tablets. */
  .team-grid--lead { grid-template-columns: repeat(2, 1fr); }
  .team-grid--staff { grid-template-columns: repeat(4, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  section { padding: var(--section-pad) 0; }
  .form-row { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 3rem; }
  /* On phones every tier goes two-up; leadership keeps the taller crop and
     larger name, so the hierarchy survives without a column difference. */
  .team-grid--lead { grid-template-columns: repeat(2, 1fr); }
  .team-grid--staff { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { columns: 1 260px; }
  .detail-gallery { grid-template-columns: 1fr; }
  .timeline-line, .timeline-item { left: 0; }
  .timeline-item { padding-left: 4rem; }
  .footer-bottom { flex-direction: column; }
}

/* ==========================================================================
   Editorial motion sections (homepage)
   ========================================================================== */

/* --- Pinned reveal: arched frame expands to full-bleed --- */
.editorial-reveal {
  position: relative;
  height: 230vh;
  background: var(--bg);
}
.er-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.er-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.er-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Default = final (revealed) state, so no-JS degrades gracefully.
     JS sets the arched start state before animating. */
  clip-path: inset(0% 0% 0% 0% round 0px);
  transform: none;
}
.er-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.20) 0%, rgba(20,18,16,0.58) 100%);
}
.er-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #F6F3EE;
  padding: 0 5vw;
  width: 100%;
  max-width: min(92vw, 62rem);
  margin: 0 auto;
}
.er-kicker {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  margin: 0 0 1.3rem;
  color: rgba(246, 243, 238, 0.85);
}
.er-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.6vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.er-line {
  display: block;
  overflow: hidden;
}
.er-line > span {
  display: block;
}
.er-headline em {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
}

/* --- Horizontal editorial gallery --- */
.hscroll {
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--bg);
}
.hscroll-track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
  padding: 0 12vw;
  will-change: transform;
}
.hs-word {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 11vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
}
.hs-word-italic {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hs-word-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}
.hs-img {
  flex: 0 0 auto;
  position: relative;
  width: clamp(240px, 30vw, 460px);
  height: clamp(320px, 60vh, 600px);
  overflow: hidden;
  border-radius: 6px;
}
.hs-img.tall {
  width: clamp(260px, 26vw, 400px);
  height: clamp(360px, 74vh, 740px);
}
.hs-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hs-img figcaption {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  color: #F6F3EE;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
}

/* --- Editorial gallery: parallax columns + curtain reveal --- */
.gallery-editorial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.ge-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  will-change: transform;
}
.ge-col:nth-child(2) { margin-top: 3.5rem; }
.ge-col figure {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  will-change: transform, opacity;
}
.ge-col figure img {
  width: 100%;
  display: block;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(.2,.6,.2,1);
}
.ge-col figure:hover img { transform: scale(1.05); }

@media (max-width: 900px) {
  .gallery-editorial { grid-template-columns: repeat(2, 1fr); }
  .ge-col:nth-child(2) { margin-top: 0; }
}
@media (max-width: 560px) {
  .gallery-editorial { grid-template-columns: 1fr; }
}

/* --- On Site — documentary craft band (warm dark) --- */
.onsite {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--section-pad) 0;
}
.onsite .section-head { margin-bottom: 3.2rem; }
.onsite .kicker { color: var(--hover); }
.onsite h2 { color: var(--footer-text); }
.onsite-lede {
  color: var(--footer-text-secondary);
  max-width: 56ch;
  margin: 1.4rem 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
}
.onsite-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.onsite-item {
  position: relative;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  will-change: transform, opacity;
}
.onsite-item img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(.2,.6,.2,1);
}
.onsite-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,10,8,0) 55%, rgba(11,10,8,0.72) 100%);
  pointer-events: none;
}
.onsite-item:hover img { transform: scale(1.06); }
.onsite-item figcaption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.8rem;
  z-index: 1;
  color: #F2EEE7;
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}
@media (max-width: 900px) {
  .onsite-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .onsite-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------- Reduced motion ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .img-reveal .panel { display: none; }
  .img-reveal img { transform: none !important; }
  .reveal-line > span { transform: none !important; }

  /* Collapse pinned/horizontal sections into static, readable layouts */
  .editorial-reveal { height: auto; }
  .er-sticky { position: relative; height: 80vh; }
  .hscroll { height: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hscroll-track { padding: 4rem 6vw; }
  .ge-col { transform: none !important; }
  .ge-col:nth-child(2) { margin-top: 0; }
  .onsite-item { opacity: 1 !important; transform: none !important; }
}
