/* =========================================================================
   LARICA ESTATES — style.css
   Premium editorial real-estate developer website
   ========================================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Architectural palette */
  --ivory:        #f6f2ea;   /* warm ivory */
  --off-white:    #faf8f4;
  --stone:        #e7e1d6;
  --taupe:        #b6ac9c;
  --taupe-deep:   #8f8577;
  --charcoal:     #23211d;
  --ink:          #1a1a18;
  --black:        #0d0c0b;
  --bronze:       #9a7b4f;   /* muted bronze accent */
  --bronze-soft:  #b79a70;

  /* Brand accent (Larica blue) — used subtly */
  --brand:        #016ca0;   /* theme / primary accent */
  --brand-soft:   #4a9bc4;   /* lighter, for dark backgrounds */
  --brand-deep:   #01547d;   /* darker shade for hovers */

  --line:         rgba(35, 33, 29, 0.14);
  --line-light:   rgba(246, 242, 234, 0.18);

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Manrope", system-ui, sans-serif;

  /* Rhythm */
  --maxw: 1360px;
  --gut: clamp(1.25rem, 4vw, 4.5rem);
  --sect-y: clamp(4.5rem, 10vw, 9rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.9s;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--charcoal);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
/* Global inline-SVG guard: icons must never inherit a huge intrinsic size.
   Every icon uses a sized wrapper (.why__icon, .loc__pin, .btn, etc.);
   this default keeps a bare <svg> contained until a more specific rule sizes it. */
svg { display: block; width: 1em; height: 1em; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---------- 3. TYPOGRAPHY HELPERS ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--brand);
  opacity: 0.7;
}
.eyebrow.center::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 500;
}
.h-sect {
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  font-weight: 500;
}
.lede {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--taupe-deep);
  max-width: 46ch;
}

/* ---------- 4. LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sect-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---------- 5. BUTTONS ---------- */
.btn {
  --pad-y: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: var(--pad-y) 1.85rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  position: relative;
}
.btn svg { width: 15px; height: 15px; transition: transform .5s var(--ease); }
.btn:hover { background: var(--ink); color: var(--ivory); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: var(--brand); border-color: var(--brand); color: var(--ivory); }
.btn--light { border-color: var(--ivory); color: var(--ivory); }
.btn--light:hover { background: var(--ivory); color: var(--ink); }
.btn--solid-light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--solid-light:hover { background: var(--brand); border-color: var(--brand); color: var(--ivory); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .45s var(--ease); }
.link-arrow:hover { border-color: var(--brand); color: var(--brand); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 6. HEADER ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.5rem;
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease), backdrop-filter .5s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.header__logo img { height: 34px; width: auto; transition: opacity .4s var(--ease); }
.header__logo .logo-dark { display: none; }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.4rem); }
.nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ivory);
  position: relative;
  padding-block: 4px;
  transition: color .35s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .4s var(--ease);
}
.nav a:hover::after { width: 100%; }

.header__cta {
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--line-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.header__cta:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

/* scrolled state */
.header.is-solid {
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 0.95rem;
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(0,0,0,0.05);
}
.header.is-solid .header__logo .logo-white { display: none; }
.header.is-solid .header__logo .logo-dark { display: block; }
.header.is-solid .nav a { color: var(--charcoal); }
.header.is-solid .header__cta { color: var(--ink); border-color: var(--line); }
.header.is-solid .header__cta:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.header.is-solid .burger span { background: var(--ink); }

/* burger */
.burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
}
.burger span {
  display: block;
  width: 26px; height: 1.6px;
  background: var(--ivory);
  transition: transform .45s var(--ease), opacity .3s var(--ease), width .45s var(--ease), background .4s var(--ease);
}
.burger span:nth-child(2) { width: 18px; }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  color: var(--ivory);
  padding: 6.5rem var(--gut) 3rem;
  display: flex;
  flex-direction: column;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
  pointer-events: none;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.8rem);
  font-weight: 500;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line-light);
  color: var(--ivory);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s var(--ease);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu nav a:hover { color: var(--brand-soft); }
.mobile-menu__foot {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--taupe);
  letter-spacing: 0.04em;
}
.mobile-menu__foot a { color: var(--brand-soft); }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ivory);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(13,12,11,0.82) 0%, rgba(13,12,11,0.28) 45%, rgba(13,12,11,0.35) 100%);
}
.hero__inner { width: 100%; padding-bottom: clamp(3rem, 8vh, 6rem); padding-top: 8rem; }
.hero__eyebrow { color: var(--bronze-soft); margin-bottom: 1.6rem; }
.hero__eyebrow::before { background: var(--bronze-soft); }
.hero h1 { color: var(--ivory); max-width: 15ch; margin-bottom: 1.8rem; }
.hero__desc { max-width: 44ch; color: rgba(246,242,234,0.86); font-size: clamp(1rem,1.3vw,1.18rem); margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute;
  right: var(--gut);
  bottom: clamp(2rem, 6vh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(246,242,234,0.7);
  writing-mode: vertical-rl;
}
.hero__scroll-line { width: 1px; height: 70px; background: rgba(246,242,234,0.3); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: -40%; left: 0; width: 100%; height: 40%;
  background: var(--brand-soft);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { 0% { top: -40%; } 100% { top: 100%; } }

/* text reveal utility */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; transform: translateY(105%); }
.hero.is-in .reveal-line > span { animation: lineUp 1s var(--ease) forwards; }
.reveal-line:nth-child(2) > span { animation-delay: .12s; }
@keyframes lineUp { to { transform: translateY(0); } }

/* ---------- 8. EXPERIENCE / TRUST ---------- */
.trust { background: var(--ink); color: var(--ivory); }
.trust__head { max-width: 60ch; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.trust__head .eyebrow { color: var(--bronze-soft); margin-bottom: 1.4rem; }
.trust__head h2 { color: var(--ivory); margin-bottom: 1.4rem; }
.trust__head p { color: rgba(246,242,234,0.72); max-width: 52ch; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
}
.stat { padding: 2.4rem 1.6rem 0.5rem 0; border-right: 1px solid var(--line-light); }
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ivory);
  letter-spacing: -0.01em;
}
.stat__num .word { font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
.stat__label {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--taupe);
  max-width: 22ch;
}

/* ---------- 9. ABOUT (split) ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.about__media { position: relative; overflow: hidden; aspect-ratio: 4/5; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__media::before {
  content: "OUR STORY";
  position: absolute; z-index: 2; top: 1.4rem; left: 1.4rem;
  font-size: 0.65rem; letter-spacing: 0.24em; color: var(--ivory);
  background: rgba(13,12,11,0.35); backdrop-filter: blur(4px);
  padding: 0.5rem 0.9rem;
}
.about__body .eyebrow { margin-bottom: 1.4rem; }
.about__body h2 { margin-bottom: 1.8rem; max-width: 16ch; }
.about__body p { color: var(--taupe-deep); margin-bottom: 1.15rem; max-width: 54ch; }
.about__body .btn, .about__body .link-arrow { margin-top: 1.4rem; }

/* ---------- 10. FEATURED PROJECTS ---------- */
.projects__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.projects__head .eyebrow { margin-bottom: 1.2rem; }
.projects__head h2 { max-width: 14ch; }
.projects__head p { max-width: 42ch; color: var(--taupe-deep); }

.pcards { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); }
.pcard {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 460px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--off-white);
}
.pcard--reverse { grid-template-columns: 1fr 1.15fr; }
.pcard--reverse .pcard__media { order: 2; }
.pcard__media { position: relative; overflow: hidden; }
.pcard__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__index {
  position: absolute; top: 1.2rem; left: 1.2rem; z-index: 2;
  font-size: 0.68rem; letter-spacing: 0.2em; color: var(--ivory);
  background: rgba(13,12,11,0.4); padding: 0.4rem 0.8rem; backdrop-filter: blur(3px);
}
.pcard__body { padding: clamp(2rem, 3.4vw, 3.2rem); display: flex; flex-direction: column; }
.pcard__meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--taupe-deep); margin-bottom: 1.4rem;
}
.pcard__meta b { color: var(--brand); font-weight: 600; }
.pcard__body h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.pcard__body p { color: var(--taupe-deep); font-size: 0.96rem; margin-bottom: 1.5rem; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.8rem; }
.pcard__tags span {
  font-size: 0.72rem; letter-spacing: 0.04em; color: var(--charcoal);
  border: 1px solid var(--line); padding: 0.4rem 0.8rem;
}
.pcard__body .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- 11. PROJECT SPOTLIGHT ---------- */
.spotlight {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ivory);
}
.spotlight__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.spotlight__media img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.spotlight::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13,12,11,0.85) 0%, rgba(13,12,11,0.5) 45%, rgba(13,12,11,0.2) 100%);
}
.spotlight__body { max-width: 640px; padding-block: 4rem; }
.spotlight .eyebrow { color: var(--bronze-soft); margin-bottom: 1.5rem; }
.spotlight .eyebrow::before { background: var(--bronze-soft); }
.spotlight h2 { color: var(--ivory); font-size: clamp(2.4rem,5vw,4rem); margin-bottom: 1.5rem; }
.spotlight p { color: rgba(246,242,234,0.85); max-width: 46ch; margin-bottom: 2.6rem; }
.spot-stats { display: flex; flex-wrap: wrap; gap: clamp(1.6rem,4vw,3.4rem); margin-bottom: 2.8rem; }
.spot-stat__num { font-family: var(--font-display); font-size: clamp(1.7rem,3vw,2.4rem); color: var(--ivory); line-height: 1; }
.spot-stat__label { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--taupe); margin-top: 0.6rem; }

/* ---------- 12. WHY LARICA ---------- */
.why { background: var(--ivory); }
.why__head { max-width: 62ch; margin-bottom: clamp(2.6rem,5vw,4rem); }
.why__head .eyebrow { margin-bottom: 1.3rem; }
.why__head h2 { margin-bottom: 1.4rem; max-width: 16ch; }
.why__head p { color: var(--taupe-deep); max-width: 52ch; }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why__card { background: var(--ivory); padding: clamp(1.8rem, 2.6vw, 2.6rem); min-height: 250px; display: flex; flex-direction: column; transition: background .5s var(--ease); }
.why__card:hover { background: var(--off-white); }
.why__card .num { font-size: 0.72rem; letter-spacing: 0.16em; color: var(--brand); margin-bottom: 1.8rem; font-weight: 600; }
.why__icon { width: 30px; height: 30px; color: var(--charcoal); margin-bottom: 1.4rem; display: inline-flex; }
.why__icon svg { width: 30px; height: 30px; }
.why__card h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.why__card p { font-size: 0.92rem; color: var(--taupe-deep); }

/* ---------- 13. LEGACY TIMELINE ---------- */
.legacy { background: var(--ink); color: var(--ivory); }
.legacy__head { margin-bottom: clamp(2.6rem,5vw,4rem); }
.legacy__head .eyebrow { color: var(--bronze-soft); margin-bottom: 1.3rem; }
.legacy__head h2 { color: var(--ivory); max-width: 12ch; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.6rem,3vw,3rem); }
.timeline::before {
  content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 1px;
  background: var(--line-light);
}
.timeline__prog {
  position: absolute; top: 8px; left: 0; height: 1px; width: 0;
  background: var(--brand-soft); transition: width 1.4s var(--ease);
}
.tl-item { position: relative; padding-top: 2.6rem; }
.tl-item::before {
  content: ""; position: absolute; top: 3px; left: 0; width: 11px; height: 11px;
  border-radius: 50%; background: var(--ink); border: 1px solid var(--taupe);
  transition: background .5s var(--ease), border-color .5s var(--ease);
}
.tl-item.is-active::before { background: var(--brand-soft); border-color: var(--brand-soft); }
.tl-item .year { font-family: var(--font-display); font-size: clamp(1.8rem,3vw,2.6rem); color: var(--brand-soft); line-height: 1; margin-bottom: 0.8rem; }
.tl-item h3 { color: var(--ivory); font-size: 1.5rem; margin-bottom: 0.6rem; }
.tl-item p { color: rgba(246,242,234,0.7); font-size: 0.94rem; max-width: 34ch; }

/* ---------- 14. QUALITY ---------- */
.quality__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,6vw,5rem); align-items: center; }
.quality__media { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.quality__media img { width: 100%; height: 100%; object-fit: cover; }
.quality__body .eyebrow { margin-bottom: 1.3rem; }
.quality__body h2 { margin-bottom: 1.4rem; }
.quality__body > p { color: var(--taupe-deep); margin-bottom: 2.4rem; max-width: 50ch; }
.qfeatures { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.qfeature { background: var(--off-white); display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; padding: 1.5rem 0.4rem; align-items: start; }
.qfeature__icon { width: 26px; height: 26px; color: var(--brand); display: inline-flex; }
.qfeature__icon svg { width: 26px; height: 26px; }
.qfeature h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.qfeature p { font-size: 0.9rem; color: var(--taupe-deep); max-width: 46ch; }

/* ---------- 15. LOCATIONS ---------- */
.loc__head { text-align: center; max-width: 54ch; margin-inline: auto; margin-bottom: clamp(2.6rem,5vw,4rem); }
.loc__head .eyebrow { margin-bottom: 1.3rem; }
.loc__head h2 { margin-bottom: 1.2rem; }
.loc__head p { color: var(--taupe-deep); }
.loc__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.loc__card { background: var(--off-white); padding: clamp(2rem,3vw,3rem) clamp(1.5rem,2.4vw,2.4rem); position: relative; overflow: hidden; transition: background .5s var(--ease); }
.loc__card:hover { background: var(--ivory); }
.loc__pin { width: 22px; height: 22px; color: var(--brand); margin-bottom: 1.4rem; display: inline-flex; }
.loc__pin svg { width: 22px; height: 22px; }
.loc__card h3 { font-size: 1.9rem; margin-bottom: 0.3rem; }
.loc__card span { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--taupe-deep); }
.loc__card .ghost {
  position: absolute; right: -0.5rem; bottom: -1.4rem;
  font-family: var(--font-display); font-size: 6rem; color: var(--stone);
  opacity: 0.5; line-height: 1; pointer-events: none;
}

/* ---------- 16. GALLERY ---------- */
.gallery__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.4rem,4vw,3.4rem); }
.gallery__head .eyebrow { margin-bottom: 1.2rem; }
.gallery__head h2 { max-width: 12ch; }
.gallery__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gallery__filters button {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.55rem 1.1rem; border: 1px solid var(--line); color: var(--taupe-deep);
  transition: all .4s var(--ease);
}
.gallery__filters button.is-active, .gallery__filters button:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.masonry { column-count: 3; column-gap: 1rem; }
.gitem { break-inside: avoid; margin-bottom: 1rem; position: relative; overflow: hidden; cursor: pointer; }
.gitem img { width: 100%; transition: transform 1s var(--ease); }
.gitem:hover img { transform: scale(1.07); }
.gitem__cap {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 1.4rem 1.1rem 1rem; color: var(--ivory);
  background: linear-gradient(to top, rgba(13,12,11,0.8), transparent);
  transform: translateY(8px); opacity: 0; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gitem:hover .gitem__cap { opacity: 1; transform: none; }
.gitem__cat { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-soft); }
.gitem__title { font-family: var(--font-display); font-size: 1.25rem; margin-top: 0.2rem; }
.gitem.is-hidden { display: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(13,12,11,0.94); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
  padding: 5vw;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox__cap { position: absolute; bottom: 3vh; left: 0; right: 0; text-align: center; color: var(--taupe); font-size: 0.85rem; letter-spacing: 0.08em; }
.lightbox__btn {
  position: absolute; color: var(--ivory); width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-light); transition: background .4s var(--ease);
}
.lightbox__btn:hover { background: rgba(246,242,234,0.12); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 4vh; right: 4vw; }
.lightbox__prev { left: 4vw; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 4vw; top: 50%; transform: translateY(-50%); }

/* ---------- 17. CSR ---------- */
.csr { background: var(--ivory); }
.csr__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,5rem); align-items: center; }
.csr__body .eyebrow { margin-bottom: 1.3rem; }
.csr__body h2 { margin-bottom: 1.4rem; max-width: 14ch; }
.csr__body p { color: var(--taupe-deep); margin-bottom: 2rem; max-width: 50ch; }
.csr__media { position: relative; overflow: hidden; aspect-ratio: 5/4; }
.csr__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 18. NEWS ---------- */
.news__head { margin-bottom: clamp(2.4rem,4vw,3.4rem); display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 2rem; }
.news__head .eyebrow { margin-bottom: 1.2rem; }
.news__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ncard { background: var(--off-white); padding: clamp(1.8rem,2.4vw,2.4rem); min-height: 260px; display: flex; flex-direction: column; transition: background .5s var(--ease); }
.ncard:hover { background: var(--ivory); }
.ncard__cat { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); margin-bottom: 1.4rem; font-weight: 600; }
.ncard h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.ncard p { font-size: 0.9rem; color: var(--taupe-deep); margin-top: auto; }

/* ---------- 19. FINAL CTA ---------- */
.finalcta { position: relative; overflow: hidden; color: var(--ivory); text-align: center; }
.finalcta__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.finalcta__media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.finalcta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(13,12,11,0.66); }
.finalcta__inner { padding-block: clamp(5rem,12vw,10rem); }
.finalcta .eyebrow { color: var(--bronze-soft); justify-content: center; margin-bottom: 1.6rem; }
.finalcta h2 { color: var(--ivory); font-size: clamp(2.4rem,6vw,4.6rem); margin-bottom: 1.4rem; }
.finalcta p { color: rgba(246,242,234,0.82); max-width: 46ch; margin: 0 auto 2.6rem; }
.finalcta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- 20. ENQUIRY ---------- */
.enquiry__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem,6vw,5.5rem); }
.enquiry__intro .eyebrow { margin-bottom: 1.3rem; }
.enquiry__intro h2 { margin-bottom: 1.4rem; max-width: 14ch; }
.enquiry__intro p { color: var(--taupe-deep); margin-bottom: 2.2rem; max-width: 40ch; }
.enquiry__contact { display: grid; gap: 1.1rem; margin-top: 1rem; }
.enquiry__contact a, .enquiry__contact span { display: flex; align-items: center; gap: 0.9rem; font-size: 0.92rem; color: var(--charcoal); }
.enquiry__contact svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--taupe-deep); font-weight: 600; }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  padding: 0.9rem 1rem; border: 1px solid var(--line); background: var(--off-white);
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: var(--ivory); }
.field.has-error input, .field.has-error select { border-color: #b4553f; }
.field__err { font-size: 0.74rem; color: #b4553f; min-height: 0; opacity: 0; transition: opacity .3s var(--ease); }
.field.has-error .field__err { opacity: 1; }
.form__submit { grid-column: 1 / -1; }
.form__success {
  grid-column: 1 / -1; display: none; align-items: center; gap: 0.8rem;
  padding: 1.1rem 1.3rem; background: var(--ink); color: var(--ivory); font-size: 0.9rem;
}
.form__success.is-show { display: flex; }
.form__success svg { width: 20px; height: 20px; color: var(--brand-soft); flex-shrink: 0; }

/* ---------- 21. FOOTER ---------- */
.footer { background: var(--black); color: var(--taupe); padding-top: clamp(4rem,7vw,6rem); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: clamp(2rem,4vw,3.5rem); padding-bottom: clamp(3rem,5vw,4.5rem); border-bottom: 1px solid var(--line-light); }
.footer__brand img { height: 34px; margin-bottom: 1.6rem; }
.footer__brand .tag { font-family: var(--font-display); font-size: 1.5rem; color: var(--ivory); margin-bottom: 0.8rem; }
.footer__brand p { font-size: 0.9rem; max-width: 34ch; }
.footer__col h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory); margin-bottom: 1.4rem; font-weight: 600; font-family: var(--font-body); }
.footer__col ul { display: grid; gap: 0.75rem; }
.footer__col a { font-size: 0.92rem; color: var(--taupe); transition: color .35s var(--ease); }
.footer__col a:hover { color: var(--brand-soft); }
.footer__contact p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; }
.footer__contact a { color: var(--taupe); transition: color .35s var(--ease); }
.footer__contact a:hover { color: var(--brand-soft); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-block: 1.8rem; font-size: 0.8rem; letter-spacing: 0.02em; }
.footer__bottom a { color: var(--brand-soft); }

/* ---------- 22. SCROLL REVEAL ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }
[data-reveal-delay="5"] { transition-delay: .5s; }

/* ---------- 22b. SUB-PAGE COMPONENTS ---------- */
/* Active nav state */
.nav a.is-current { color: var(--brand); }
.header:not(.is-solid) .nav a.is-current { color: var(--ivory); }
.header:not(.is-solid) .nav a.is-current::after { width: 100%; background: var(--brand-soft); }
.header.is-solid .nav a.is-current::after { width: 100%; background: var(--brand); }
.mobile-menu nav a.is-current { color: var(--brand-soft); }

/* Page hero (sub-page banner) */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ivory);
  padding-top: 6rem;
}
.page-hero--tall { min-height: 74vh; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 12s var(--ease) forwards; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(13,12,11,0.82) 0%, rgba(13,12,11,0.3) 55%, rgba(13,12,11,0.4) 100%); }
.page-hero__inner { padding-bottom: clamp(2.6rem, 5vw, 4rem); }
.page-hero .eyebrow { color: var(--brand-soft); margin-bottom: 1.4rem; }
.page-hero .eyebrow::before { background: var(--brand-soft); }
.page-hero h1 { color: var(--ivory); font-size: clamp(2.6rem, 6vw, 5rem); max-width: 18ch; }
.page-hero p { color: rgba(246,242,234,0.85); max-width: 52ch; margin-top: 1.4rem; font-size: clamp(1rem,1.3vw,1.15rem); }

/* Breadcrumb */
.crumb { display: flex; align-items: center; gap: 0.6rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(246,242,234,0.7); margin-bottom: 1.6rem; }
.crumb a { color: rgba(246,242,234,0.7); transition: color .3s var(--ease); }
.crumb a:hover { color: var(--brand-soft); }
.crumb span { color: var(--brand-soft); }
.crumb .sep { opacity: 0.5; }

/* Prose / editorial content */
.prose { max-width: 68ch; }
.prose p { color: var(--taupe-deep); margin-bottom: 1.15rem; font-size: 1.02rem; }
.prose h3 { font-size: clamp(1.6rem,2.6vw,2.1rem); margin: 2.4rem 0 1rem; }
.prose .eyebrow { margin-bottom: 1.2rem; }
.lead { font-family: var(--font-display); font-size: clamp(1.4rem,2.4vw,1.9rem); line-height: 1.4; color: var(--charcoal); font-weight: 500; margin-bottom: 2rem; max-width: 30ch; }

/* Two-column intro (label left, body right) */
.split-intro { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.split-intro__label { position: sticky; top: 6rem; }
.split-intro__label .eyebrow { margin-bottom: 1.2rem; }
.split-intro__label h2 { font-size: clamp(2rem,3.6vw,3rem); }

/* Value / feature list rows */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem; align-items: center; padding: 1.8rem 0; border-bottom: 1px solid var(--line); transition: padding-left .4s var(--ease); }
.row:hover { padding-left: 0.8rem; }
.row__num { font-family: var(--font-display); font-size: 1.6rem; color: var(--brand); min-width: 2.4rem; }
.row__body h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.row__body p { color: var(--taupe-deep); font-size: 0.95rem; max-width: 60ch; }
.row__icon { width: 26px; height: 26px; color: var(--taupe); }
.row__icon svg { width: 26px; height: 26px; }

/* Spec table (project pages) */
.spec { border-top: 1px solid var(--line); }
.spec__row { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 1.4rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.spec__row dt { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--taupe-deep); font-weight: 600; }
.spec__row dd { color: var(--charcoal); font-size: 1rem; }

/* Highlight chips grid */
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.hgrid__item { background: var(--off-white); padding: 1.4rem 1.5rem; display: flex; align-items: center; gap: 1rem; transition: background .4s var(--ease); }
.hgrid__item:hover { background: var(--ivory); }
.hgrid__item svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; }
.hgrid__item span { font-size: 0.95rem; color: var(--charcoal); }

/* Info callout / site contact card */
.callout { background: var(--ink); color: var(--ivory); padding: clamp(2rem,4vw,3rem); }
.callout .eyebrow { color: var(--brand-soft); margin-bottom: 1.2rem; }
.callout .eyebrow::before { background: var(--brand-soft); }
.callout h3 { color: var(--ivory); font-size: 1.8rem; margin-bottom: 1rem; }
.callout p { color: rgba(246,242,234,0.8); line-height: 1.8; margin-bottom: 0.8rem; }
.callout a { color: var(--brand-soft); }
.callout__contact { display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.callout__contact a, .callout__contact span { display: flex; align-items: center; gap: 0.8rem; color: rgba(246,242,234,0.9); font-size: 0.95rem; }
.callout__contact svg { width: 18px; height: 18px; color: var(--brand-soft); flex-shrink: 0; }

/* Project detail two-col */
.pdetail { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: clamp(2rem,5vw,4rem); align-items: start; }

/* Next project navigation */
.pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.pnav a { background: var(--off-white); padding: clamp(1.8rem,3vw,2.6rem); transition: background .4s var(--ease); }
.pnav a:hover { background: var(--ivory); }
.pnav a.pnav--next { text-align: right; }
.pnav span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--taupe-deep); display: block; margin-bottom: 0.5rem; }
.pnav h3 { font-size: 1.5rem; }

/* Contact page grid */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem,6vw,5rem); align-items: start; }
.contact__cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2rem; }
.contact__card { background: var(--off-white); padding: 1.6rem 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; }
.contact__card svg { width: 22px; height: 22px; color: var(--brand); }
.contact__card h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--taupe-deep); margin-bottom: 0.4rem; font-weight: 600; }
.contact__card p, .contact__card a { font-size: 0.98rem; color: var(--charcoal); line-height: 1.6; }
.contact__card a:hover { color: var(--brand); }
.map-embed { width: 100%; aspect-ratio: 16/7; border: 1px solid var(--line); filter: grayscale(0.4) contrast(1.05); margin-top: 2rem; }

/* Team / value cards reuse why__grid; add generic stat band */
.band { background: var(--ink); color: var(--ivory); }
.band .stats { border-top: 1px solid var(--line-light); }

/* Simple centered CTA strip */
.ctastrip { text-align: center; }
.ctastrip h2 { font-size: clamp(2rem,4vw,3.2rem); margin-bottom: 1.2rem; }
.ctastrip p { color: var(--taupe-deep); max-width: 46ch; margin: 0 auto 2rem; }
.ctastrip__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* News page list */
.newslist { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.newslist__item { background: var(--off-white); padding: clamp(1.6rem,3vw,2.4rem); display: grid; grid-template-columns: 0.5fr 2fr auto; gap: 1.6rem; align-items: center; }
.newslist__item .cat { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.newslist__item h3 { font-size: 1.4rem; }
.newslist__item .date { font-size: 0.85rem; color: var(--taupe-deep); }

/* Empty state */
.empty { text-align: center; padding: clamp(3rem,6vw,5rem) 1rem; border: 1px dashed var(--line); }
.empty h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.empty p { color: var(--taupe-deep); }

/* ---------- 23. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { padding-block: 2rem 1.4rem; border-bottom: 1px solid var(--line-light); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
  .loc__grid { grid-template-columns: 1fr; }
  .masonry { column-count: 2; }
  .pdetail { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .about__grid, .quality__grid, .csr__grid, .enquiry__grid { grid-template-columns: 1fr; }
  .about__media, .quality__media { aspect-ratio: 4/3; }
  .pcard, .pcard--reverse { grid-template-columns: 1fr; min-height: 0; }
  .pcard--reverse .pcard__media { order: 0; }
  .pcard__media { aspect-ratio: 16/10; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; }
  .why__grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 2.4rem; }
  .timeline::before, .timeline__prog { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .timeline__prog { width: 1px; height: 0; }
  .tl-item { padding-top: 0; padding-left: 2rem; }
  .tl-item::before { top: 6px; left: 0; }
  .news__grid { grid-template-columns: 1fr; }
  .masonry { column-count: 1; }
  .form { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .hero__scroll { display: none; }
  .quality__media { aspect-ratio: 4/3; }
  /* sub-page */
  .split-intro { grid-template-columns: 1fr; }
  .split-intro__label { position: static; }
  .row { grid-template-columns: auto 1fr; }
  .row__icon { display: none; }
  .spec__row { grid-template-columns: 1fr; gap: 0.3rem; }
  .pnav { grid-template-columns: 1fr; }
  .pnav a.pnav--next { text-align: left; }
  .newslist__item { grid-template-columns: 1fr; gap: 0.6rem; }
  .page-hero { min-height: 52vh; }
}
@media (max-width: 420px) {
  .footer__top { grid-template-columns: 1fr; }
  .pcard__meta { gap: 0.9rem; }
  .contact__card { grid-template-columns: 1fr; }
}

/* ---------- 24. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__media img { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .reveal-line > span { transform: none; }
}
