/* =====================================================================
   OAKLINE BUILDERS — Stylesheet
   Warm & Trustworthy theme · fully responsive (mobile → desktop)
   ---------------------------------------------------------------------
   Contents:
   1.  Design tokens (:root)      8.  Services
   2.  Reset & base               9.  Work / gallery
   3.  Typography & helpers       10. About
   4.  Buttons                    11. Process
   5.  Topbar                     12. Reviews
   6.  Header / nav               13. CTA band
   7.  Hero + stats               14. Contact + map + footer + lightbox
   15. Category placeholders · 16. Responsive · 17. Motion
   ===================================================================== */

/* ============================ 1. TOKENS ============================ */
:root {
  /* Brand */
  --green:      #3F5A43;
  --green-600:  #35503A;
  --green-700:  #2A4430;
  --green-800:  #223227;
  --green-050:  #E9EFE7;
  --clay:       #A0562F;
  --gold:       #C0881F;

  /* Warm neutrals */
  --cream:      #F7F2EA;
  --paper:      #FFFFFF;
  --paper-warm: #FDFBF6;
  --sand:       #EFE6D7;
  --sand-2:     #EADFCD;
  --sand-deep:  #E3D6C0;

  /* Ink */
  --ink:    #241E18;
  --body:   #4E453B;
  --muted:  #675D4E;
  --line:   #E6DBC9;
  --line-2: #D9CCB6;

  /* Effects */
  --sh-sm: 0 2px 10px rgba(58, 44, 28, .06);
  --sh:    0 10px 34px rgba(58, 44, 28, .10);
  --sh-lg: 0 26px 70px rgba(48, 36, 22, .18);
  --ring:  0 0 0 3px rgba(63, 90, 67, .28);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --pill: 999px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ============================ 2. RESET ============================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
address { font-style: normal; }

::selection { background: var(--green); color: #fff; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--green); color: #fff; padding: .7rem 1.2rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm); z-index: 200; transition: top .25s;
}
.skip-link:focus { top: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ======================= 3. TYPOGRAPHY & HELPERS ======================= */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }

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

.section { padding-block: clamp(3.75rem, 8vw, 7rem); }

/* Offset anchor targets so the sticky header never hides section tops */
#stats, #services, #work, #about, #process, #reviews, #contact { scroll-margin-top: 84px; }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head.reveal { }
.section-title {
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  font-weight: 600;
  margin-block: .35rem .7rem;
}
.section-sub { color: var(--muted); font-size: 1.075rem; max-width: 54ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green);
}
.eyebrow__dot { width: 26px; height: 2px; background: var(--clay); border-radius: 2px; }
.eyebrow--light { color: #cfe0cd; }
.eyebrow--light .eyebrow__dot { background: var(--gold); }

.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.1rem; }
.stars--sm { font-size: .95rem; letter-spacing: 1px; }

.tag {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-700); background: var(--green-050);
  padding: .3rem .65rem; border-radius: var(--pill);
}

/* ============================ 4. BUTTONS ============================ */
.btn {
  --bg: var(--green); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-weight: 600; font-size: .975rem;
  padding: .82rem 1.5rem; border-radius: var(--pill);
  transition: transform .2s var(--ease), box-shadow .25s, background .2s, color .2s;
  box-shadow: 0 6px 18px rgba(63, 90, 67, .22); white-space: nowrap;
}
.btn svg { flex-shrink: 0; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(63, 90, 67, .3); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--primary { --bg: var(--green); }
.btn--primary:hover { background: var(--green-600); }

.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.btn--ghost:hover { --fg: var(--green-700); box-shadow: inset 0 0 0 1.5px var(--green); background: #fff; }

.btn--light { --bg: var(--cream); --fg: var(--green-700); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.btn--light:hover { --bg: #fff; }

.btn--outline-light {
  --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5);
}
.btn--outline-light:hover { --bg: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1.5px #fff; }

.btn--text {
  --bg: transparent; --fg: var(--green-700); box-shadow: none;
  padding-inline: .3rem;
}
.btn--text:hover { --fg: var(--clay); transform: none; box-shadow: none; }

.btn--lg  { padding: 1rem 1.85rem; font-size: 1.03rem; }
.btn--sm  { padding: .6rem 1.1rem; font-size: .875rem; }
.btn--block { width: 100%; }

/* ======================= reveal-on-scroll ======================= */
/* Hiding only applies once JS is running (html.reveal-ready is set by main.js),
   so if the script ever fails to load, all content stays fully visible. */
/* Uses the standalone `translate` property (not `transform`) so hover
   transforms on cards/buttons keep working while an element is revealed. */
.reveal { transition: opacity .85s var(--ease), translate .95s var(--ease); }
.reveal-ready .reveal { opacity: 0; translate: 0 30px; }
.reveal-ready .reveal.in { opacity: 1; translate: 0 0; }

/* ============================ 5. TOPBAR ============================ */
.topbar { background: var(--green-800); color: #d6e2d3; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: 2rem; padding-block: .5rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__item svg { opacity: .7; }
.topbar__badge { color: #bfe0b8; font-weight: 600; }

/* ============================ 6. HEADER / NAV ============================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 242, 234, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  transition: box-shadow .3s, background .3s, padding .3s;
}
.site-header.scrolled { background: rgba(247, 242, 234, .96); box-shadow: 0 6px 26px rgba(58, 44, 28, .09); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .85rem; transition: padding .3s; }
.site-header.scrolled .site-header__inner { padding-block: .55rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 4px 10px rgba(63,90,67,.28)); flex-shrink: 0; }
.brand__mark svg { border-radius: 12px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; color: var(--ink); letter-spacing: -.02em; }
.brand__tag { display: none; }
.brand__name { font-size: 1.4rem; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav__list { display: flex; align-items: center; gap: clamp(.65rem, 1.6vw, 1.55rem); }
.nav__link {
  position: relative; font-weight: 500; font-size: .975rem; color: var(--body);
  padding: .35rem 0; transition: color .2s; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--green); border-radius: 2px; transition: width .28s var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--green-700); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__social { display: flex; align-items: center; gap: .5rem; }
.nav__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); color: var(--green-700); transition: all .22s var(--ease); }
.nav__ic:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
.nav__ic--wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.nav__ic--ig:hover { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border-color: transparent; color: #fff; }
.nav__ic-label { display: none; }  /* labels appear only in the mobile menu */
.nav__phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); font-size: .95rem; transition: color .2s; white-space: nowrap; }
.nav__phone svg { color: var(--green); }
.nav__phone:hover { color: var(--green-700); }

/* Hamburger */
.hamburger { display: none; width: 46px; height: 46px; border-radius: 12px; position: relative; background: var(--paper); box-shadow: var(--sh-sm); }
.hamburger span { position: absolute; left: 12px; right: 12px; height: 2.4px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 29px; }
body.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay { position: fixed; inset: 0; background: rgba(34, 30, 24, .5); backdrop-filter: blur(2px); z-index: 98; opacity: 0; transition: opacity .3s; }
body.nav-open .nav-overlay { opacity: 1; }

/* ============================ 7. HERO ============================ */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(120% 90% at 85% 0%, #fff6e7 0%, rgba(255,246,231,0) 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem);
}
.hero__pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(63,90,67,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63,90,67,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(80% 70% at 30% 20%, #000 0%, transparent 75%);
          mask-image: radial-gradient(80% 70% at 30% 20%, #000 0%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.hero__title {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  font-weight: 600; line-height: 1.03; letter-spacing: -.025em;
  margin-block: 1rem 1.25rem; color: var(--ink);
}
.hero__title em { font-style: italic; color: var(--green); font-weight: 500; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--body); max-width: 44ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }

.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2.1rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.trust-rating { display: inline-flex; align-items: center; gap: .6rem; }
.trust-rating__text { font-size: .92rem; color: var(--muted); }
.trust-rating__text strong { color: var(--ink); }
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero__badges li { font-size: .82rem; font-weight: 600; color: var(--green-700); background: rgba(255,255,255,.7); border: 1px solid var(--line); padding: .35rem .75rem; border-radius: var(--pill); }

/* Hero media collage */
.hero__media { position: relative; min-height: 440px; }
.hero-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); background: var(--sand-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo--main { position: absolute; inset: 0 8% 12% 0; }
.hero-photo--sub { position: absolute; width: 46%; bottom: 0; right: 0; aspect-ratio: 4/3; border: 6px solid var(--cream); }

.hero-badge { position: absolute; background: var(--paper); border-radius: var(--r); box-shadow: var(--sh-lg); }
.hero-badge--years {
  top: 6%; left: -4%; display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1.1rem; border-left: 4px solid var(--clay);
}
.hero-badge--years .hero-badge__num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--green); line-height: 1; }
.hero-badge--years .hero-badge__label { font-size: .8rem; font-weight: 600; color: var(--muted); line-height: 1.1; }
.hero-badge--quote {
  bottom: 20%; left: -8%; max-width: 232px; padding: 1rem 1.15rem;
}
.hero-badge--quote p { font-size: .84rem; color: var(--body); line-height: 1.45; margin: .35rem 0; }
.hero-badge__by { font-size: .76rem; font-weight: 600; color: var(--muted); }

.hero__scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(63,90,67,.4); border-radius: var(--pill); display: grid; place-items: start center; padding-top: 7px; }
.hero__scroll span { width: 4px; height: 8px; background: var(--green); border-radius: 4px; animation: scrolldot 1.6s var(--ease) infinite; }
@keyframes scrolldot { 0%{opacity:0; transform:translateY(-2px)} 40%{opacity:1} 80%{opacity:0; transform:translateY(10px)} 100%{opacity:0} }

/* ============================ STATS ============================ */
.stats { background: var(--green); color: #eaf1e8; }
.stats__grid { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1.5rem; padding-block: clamp(2.25rem, 4vw, 3rem); text-align: center; }
.stat { position: relative; }
.stat + .stat::before, .stats__grid .stat:not(:first-child)::before {
  content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: rgba(255,255,255,.16);
}
.stat__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4.5vw, 3.1rem); color: #fff; line-height: 1; letter-spacing: -.02em; }
.stat__label { display: block; margin-top: .5rem; font-size: .9rem; color: #c8d8c4; letter-spacing: .02em; }

/* ============================ 8. SERVICES ============================ */
.services { background: var(--cream); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.service-card {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
/* Spotlight that follows the pointer (position fed in by motion.js) */
.service-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(63, 90, 67, .12), transparent 62%);
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--sh); border-color: transparent; }
.service-card__icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(145deg, var(--green-050), #dce6d8); color: var(--green-700); margin-bottom: 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(63,90,67,.12);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.service-card:hover .service-card__icon { background: var(--green); color: #fff; transform: rotate(-4deg); }
.service-card h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.service-card > p { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; }
.service-card__list { display: flex; flex-direction: column; gap: .4rem; border-top: 1px dashed var(--line-2); padding-top: .9rem; }
.service-card__list li { position: relative; padding-left: 1.35rem; font-size: .9rem; color: var(--body); }
.service-card__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--clay); transform: rotate(45deg); }
.services__foot { text-align: center; margin-top: clamp(1.6rem, 3vw, 2.4rem); color: var(--muted); }
.services__foot a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============================ 9. WORK / GALLERY ============================ */
.work { background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter {
  font-weight: 600; font-size: .9rem; color: var(--body);
  padding: .55rem 1.1rem; border-radius: var(--pill);
  background: var(--paper); border: 1px solid var(--line); transition: all .22s var(--ease);
}
.filter:hover { border-color: var(--green); color: var(--green-700); }
.filter.is-active { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 6px 16px rgba(63,90,67,.24); }

.work__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.9rem, 1.6vw, 1.35rem); }
.work-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  background: var(--paper); box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), box-shadow .35s, opacity .4s, filter .4s;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
/* first two cards span wider for a magazine layout */
.work-card.is-featured { grid-column: span 2; }

/* Cards are stretched to the row height by the grid; the media box grows to fill
   it so a portrait photo never leaves a blank strip under the image. */
.work-card { display: flex; flex-direction: column; }
.work-media { position: relative; aspect-ratio: 4/3; overflow: hidden; flex: 1 1 auto; }
.work-card.is-featured .work-media { aspect-ratio: 16/9; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.06); }

.work-card__cap { position: absolute; inset: auto 0 0 0; padding: 1.5rem 1.15rem 1.05rem; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(24, 20, 15, .82));
  translate: 0 8px; transition: translate .5s var(--ease); }
.work-card:hover .work-card__cap { translate: 0 0; }
.work-card__cap .tag { color: #fff; background: rgba(255,255,255,.2); backdrop-filter: blur(4px); margin-bottom: .5rem; }
.work-card__cap h3 { color: #fff; font-size: 1.15rem; line-height: 1.15; }
.work-card__loc { font-size: .84rem; color: rgba(255,255,255,.82); margin-top: .15rem; }
.work-card::after { /* zoom cue */
  content: "⤢"; position: absolute; top: .8rem; right: .8rem; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9);
  color: var(--green-700); font-size: 1.1rem; opacity: 0; transform: scale(.8);
  transition: opacity .3s, transform .3s var(--ease);
}
.work-card:hover::after { opacity: 1; transform: scale(1); }
.work-card.is-hidden { display: none; }
/* The project title is a real <button> (keeps the <h3> heading + gives a
   proper accessible name); the whole card is still clickable via JS. */
.work-card__btn { all: unset; cursor: pointer; display: inline; }
.work-card:focus-within { outline: 3px solid var(--green); outline-offset: 3px; }

.work__cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.work__cta p { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }

/* ============================ 10. ABOUT ============================ */
.about { background: var(--cream); }
.about__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__media { position: relative; }
.about-photo { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--sh-lg); background: var(--sand-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; right: -6%; bottom: 8%; width: 190px; background: var(--green); color: #fff;
  border-radius: var(--r); padding: 1.15rem 1.25rem; box-shadow: var(--sh-lg);
}
.about-badge__num { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1; display: block; }
.about-badge__txt { display: block; margin-top: .5rem; font-size: .82rem; color: #cfe0cd; }

.about__body h2 { margin-block: .4rem 1.1rem; }
.about__body > p { margin-bottom: 1rem; color: var(--body); }
.about__points { display: grid; gap: 1rem; margin: 1.6rem 0 1.9rem; }
.about__points li { display: flex; gap: .85rem; align-items: flex-start; }
.about__points svg { color: var(--green); flex-shrink: 0; margin-top: .1rem; }
.about__points strong { display: block; color: var(--ink); font-family: var(--font-body); font-size: 1rem; }
.about__points span { font-size: .92rem; color: var(--muted); }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }

/* ============================ 11. PROCESS ============================ */
.process { background: var(--green-800); color: #d8e3d5; position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(217,162,75,.10), transparent 40%),
                    radial-gradient(circle at 85% 90%, rgba(188,106,67,.12), transparent 45%); }
.process .container { position: relative; }
.process .section-title { color: #fff; }
.process .section-sub { color: #b9c8b5; }
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); counter-reset: step; }
.process-step { position: relative; padding-top: 2.5rem; }
.process-step::before { content: ""; position: absolute; top: 14px; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 8px, transparent 8px 16px);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .25s; }
.process-step.in::before { transform: scaleX(1); }
.process-step:last-child::before { background: none; }
.process-step__num { position: absolute; top: -6px; left: 0; font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: transparent; -webkit-text-stroke: 1.5px rgba(217,162,75,.75); line-height: 1; transition: color .8s .4s; }
.process-step.in .process-step__num { color: rgba(217,162,75,.16); }
.process-step h3 { color: #fff; font-size: 1.2rem; margin-bottom: .5rem; }
.process-step p { font-size: .92rem; color: #b9c8b5; }

/* ============================ 12. REVIEWS ============================ */
.reviews { background: var(--sand); }
.reviews .section-head { max-width: 720px; }
.reviews__score { display: inline-flex; align-items: center; gap: .6rem; margin-top: .8rem; font-size: .95rem; color: var(--muted); }
.reviews__score strong { color: var(--ink); }
.reviews__viewport { overflow: hidden; }
.reviews__track { display: flex; gap: clamp(1rem, 2vw, 1.5rem); transition: transform .5s var(--ease); }
.review {
  position: relative;
  flex: 0 0 calc((100% - 3rem) / 3); background: var(--paper); border-radius: var(--r-lg);
  padding: 1.75rem; box-shadow: var(--sh-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .9rem;
}
.review::before { content: "\201C"; position: absolute; top: .1rem; right: 1.25rem; font-family: var(--font-display); font-size: 5.5rem; line-height: 1; color: var(--sand-deep); pointer-events: none; }
/* When there are fewer reviews than slots, present them as a centred featured testimonial */
.reviews__track.is-centered { justify-content: center; }
.reviews__track.is-centered .review { flex-basis: min(100%, 680px); padding: clamp(1.75rem, 3vw, 2.6rem); }
.reviews__track.is-centered .review blockquote { font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.35; }
.reviews__nav.is-hidden { display: none; }
.review blockquote { font-family: var(--font-display); font-size: 1.06rem; line-height: 1.5; color: var(--ink); font-weight: 500; }
.review__by { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.review__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green-050); color: var(--green-700); font-weight: 700; font-family: var(--font-display); flex-shrink: 0; }
.review__by strong { display: block; color: var(--ink); font-family: var(--font-body); font-size: .95rem; }
.review__by span { font-size: .82rem; color: var(--muted); }
.reviews__nav { display: flex; gap: .6rem; justify-content: center; margin-top: 1.75rem; }
.reviews__btn { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); box-shadow: var(--sh-sm); color: var(--green-700); display: grid; place-items: center; border: 1px solid var(--line); transition: all .2s; }
.reviews__btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.reviews__btn:disabled { opacity: .4; cursor: not-allowed; }

/* ============================ 13. CTA BAND ============================ */
.cta-band { background:
    linear-gradient(120deg, var(--green-700), var(--green) 55%, var(--green-600));
  color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
.cta-band p { color: #d5e2d2; margin-top: .5rem; max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ============================ 14. CONTACT ============================ */
.contact { background: var(--cream); }
.contact__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; }

.contact__form-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--sh); }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--paper-warm); border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm); padding: .8rem .95rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: var(--ring); background: #fff; }
.field.invalid input, .field.invalid textarea { border-color: #c0563d; box-shadow: 0 0 0 3px rgba(192,86,61,.16); }
.field__error { color: #b64a30; font-size: .8rem; min-height: 0; }
.field.invalid .field__error { min-height: 1em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.contact-form__status { font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.contact-form__status.ok { color: var(--green-700); }
.contact-form__status.err { color: #b64a30; }
.contact-form__note { font-size: .8rem; color: var(--muted); }

.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .btn__label::after { content: "…"; }

/* Contact aside */
.contact__aside { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-details { display: grid; gap: 1.05rem; }
.contact-details li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-details__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-050); color: var(--green); flex-shrink: 0; }
.contact-details__k { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: .1rem; }
.contact-details a, .contact-details address, .contact-details span { color: var(--ink); font-weight: 500; font-size: 1rem; }
.contact-details a:hover { color: var(--green-700); }

.contact__map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); border: 1px solid var(--line); height: 300px; background: var(--sand-2); }
.contact__map iframe { width: 100%; height: 100%; }
.contact__directions { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; color: var(--green-700); font-weight: 600; font-size: .92rem; }
.contact__directions:hover { color: var(--clay); }
.contact__directions svg { transition: transform .25s var(--ease); }
.contact__directions:hover svg { transform: translate(2px, -2px); }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--green-800); color: #b9c8b5; padding-block: clamp(2.75rem, 5vw, 4rem) 1.75rem; }
.site-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand--footer .brand__name { color: #fff; }
.site-footer__blurb { font-size: .92rem; margin: 1.1rem 0 1.25rem; max-width: 42ch; }
.site-footer__social { display: flex; gap: .6rem; }
.site-footer__social a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #d8e3d5; transition: all .22s; }
.site-footer__social a:hover { background: var(--gold); color: var(--green-800); transform: translateY(-3px); }
.site-footer__col h3 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; }
.site-footer__col ul { display: grid; gap: .6rem; }
.site-footer__col a:not(.btn) { font-size: .93rem; transition: color .2s; display: inline-block; padding: 4px 0; }
.site-footer__col a:hover { color: var(--gold); }
.site-footer__contact li { font-size: .93rem; margin-bottom: .1rem; }
.site-footer__col .btn { margin-top: 1.4rem; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .85rem; color: #93a58f; }
/* Footer CTA: cream button so it stands out on the dark green footer */
.site-footer .btn--primary { background: var(--cream); color: var(--green-800); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.site-footer .btn--primary:hover { background: #fff; color: var(--green-800); }

/* ============================ LIGHTBOX ============================ */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem); background: rgba(24, 20, 15, .9); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; overflow-y: auto; }
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__figure { max-width: 900px; width: 100%; max-height: 100%; margin: auto; }
.lightbox__imgwrap { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 16/10; max-height: 70vh; background: var(--green); }
.lightbox__imgwrap img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__cap { color: #fff; text-align: center; margin-top: 1rem; }
.lightbox__cap .tag { margin-bottom: .5rem; }
.lightbox__cap h3 { color: #fff; font-size: 1.3rem; }
.lightbox__cap p { color: rgba(255,255,255,.75); font-size: .9rem; }
.lightbox__close { position: absolute; top: 1rem; right: 1.25rem; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.lightbox__close:hover { background: rgba(255,255,255,.28); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; transition: background .2s; }
.lightbox__nav:hover { background: rgba(255,255,255,.3); }
.lightbox__nav--prev { left: clamp(.5rem, 2vw, 2rem); }
.lightbox__nav--next { right: clamp(.5rem, 2vw, 2rem); }

/* ============================ FLOATING BUTTONS (mobile) ============================ */
/* Always-on-screen call + WhatsApp, works on any phone size; clears the notch/home bar. */
.fab-stack { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 90; display: none; flex-direction: column; gap: .65rem; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.3); transition: transform .18s var(--ease); }
.fab:active { transform: scale(.93); }
.fab-call { background: var(--green); animation: fabpulse 2.4s infinite; }
.fab-wa { background: #25D366; }
@keyframes fabpulse { 0%{ box-shadow: 0 10px 26px rgba(0,0,0,.3), 0 0 0 0 rgba(63,90,67,.5);} 70%{ box-shadow: 0 10px 26px rgba(0,0,0,.3), 0 0 0 14px rgba(63,90,67,0);} 100%{ box-shadow: 0 10px 26px rgba(0,0,0,.3), 0 0 0 0 rgba(63,90,67,0);} }

/* =================== 15. CATEGORY IMG PLACEHOLDERS =================== */
/* Warm gradient shown behind photos; if a photo fails to load, this
   coloured panel + camera icon appears instead of a broken image. */
.cat-extensions .work-media, .cat-extensions.hero-photo, .cat-extensions.about-photo { background: linear-gradient(140deg, #6d8a63, #3f5a43); }
.cat-renovations .work-media, .cat-renovations.hero-photo, .cat-renovations.about-photo { background: linear-gradient(140deg, #c58a5a, #9c5a34); }
.cat-kitchens .work-media, .cat-kitchens.hero-photo, .cat-kitchens.about-photo { background: linear-gradient(140deg, #b79b6a, #8a6a3c); }
.cat-commercial .work-media, .cat-commercial.hero-photo, .cat-commercial.about-photo { background: linear-gradient(140deg, #6f7f86, #414f56); }
.cat-joinery .work-media, .cat-joinery.hero-photo, .cat-joinery.about-photo { background: linear-gradient(140deg, #bb8b52, #7c5a2f); }
.cat-exteriors .work-media, .cat-exteriors.hero-photo, .cat-exteriors.about-photo { background: linear-gradient(140deg, #7f8d74, #46543e); }
.lightbox__imgwrap.cat-joinery { background: linear-gradient(140deg, #bb8b52, #7c5a2f); }
.lightbox__imgwrap.cat-exteriors { background: linear-gradient(140deg, #7f8d74, #46543e); }

.work-media.no-img img, .hero-photo.no-img img, .about-photo.no-img img { display: none; }
.no-img::after {
  content: ""; position: absolute; inset: 0; opacity: .55;
  background: center / 46px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h3l1.5-2.5h9L18 7h3v13H3z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");
}

/* ============================ 16. RESPONSIVE ============================ */
/* Mid-width desktops: navbar gets tight with the social icons —
   hide the phone number (still in the menu, footer and contact section). */
@media (max-width: 1220px) and (min-width: 961px) {
  .nav__phone { display: none; }
}

@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .work-card.is-featured { grid-column: span 2; }
}

@media (max-width: 960px) {
  /* Nav becomes off-canvas panel */
  .hamburger { display: block; }
  /* The header's backdrop-filter would trap the fixed nav panel inside the
     ~120px header (filter ancestors become the containing block for fixed
     children). Drop it on mobile so the slide-in menu fills the whole screen. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(247, 242, 234, .98); }
  .site-header.scrolled { background: rgba(247, 242, 234, .99); }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 86vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: var(--cream); box-shadow: -20px 0 60px rgba(34,30,24,.2);
    padding: 5.5rem 1.75rem 2rem; z-index: 99;
    transform: translateX(100%); overflow-y: auto;
    visibility: hidden;                 /* removes the closed panel from tab order + a11y tree */
    transition: transform .38s var(--ease), visibility 0s linear .38s;
  }
  body.nav-open .nav { transform: translateX(0); visibility: visible; transition: transform .38s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav__link::after { display: none; }
  .nav__cta { flex-direction: column; align-items: stretch; gap: .85rem; margin-top: 1.5rem; }
  /* Social becomes clear full-width labelled pills (roomy on any screen) */
  .nav__social { flex-direction: column; order: 4; gap: .55rem; margin-top: .4rem; }
  .nav__ic { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; height: auto; padding: .9rem 1rem; border-radius: var(--pill); font-weight: 600; font-size: 1rem; }
  .nav__ic svg { width: 22px; height: 22px; flex-shrink: 0; }
  .nav__ic-label { display: inline; }
  .nav__ic--wa { color: #0f7a41; background: #f1faf4; border-color: #cde8d5; }
  .nav__ic--ig { color: #b8367e; background: #fdf3fa; border-color: #f0d5e8; }
  .nav__phone { justify-content: center; padding: .9rem; border: 1px solid var(--line); border-radius: var(--pill); background: var(--paper); }
  .nav__cta .btn { width: 100%; }

  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__content { text-align: left; }
  .hero__media { min-height: 340px; max-width: 520px; }
  .hero__scroll { display: none; }

  .about__inner { grid-template-columns: 1fr; gap: 3rem; }
  .about__media { max-width: 420px; }
  .about-badge { right: 0; }

  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .process-step::before { display: none; }

  .contact__grid { grid-template-columns: 1fr; }

  .review { flex-basis: calc((100% - 1.5rem) / 2); }
}

@media (max-width: 720px) {
  .topbar { display: none; }
  .fab-stack { display: flex; }
  .stats__grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .stat:nth-child(3)::before, .stat:nth-child(2)::before { display: none; }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .review { flex-basis: 100%; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__bottom { flex-direction: column; }
  .hero-badge--quote { display: none; }
}

@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; }
  .work-card.is-featured { grid-column: span 1; }
  .work-card.is-featured .work-media { aspect-ratio: 4/3; }
  .site-footer__top { grid-template-columns: 1fr; gap: 1.75rem; }
  .field-row { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .hero__media { min-height: 300px; }
  .hero-photo--main { inset: 0 0 14% 0; }
  .btn { width: 100%; }
  .hero__actions .btn, .about__actions .btn, .work__cta .btn, .cta-band__actions .btn { width: auto; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ============================ 17. FLOURISHES ============================ */
/* Scrolling service marquee (decorative, pauses on hover) */
.marquee { overflow: hidden; background: var(--cream); border-block: 1px solid var(--line); padding-block: .85rem; }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; }
.marquee__group span { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--green-700); white-space: nowrap; }
.marquee__group span::after { content: "✦"; margin-inline: 2.2rem; color: var(--clay); font-style: normal; font-size: .8em; opacity: .75; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Hero headline word-by-word rise (spans injected by JS).
   No overflow mask — italic serif descenders must never be clipped. */
.w { display: inline-block; }
.w__i { display: inline-block; opacity: 0; transform: translateY(.55em); animation: wordUp .65s var(--ease) forwards; }
@keyframes wordUp { to { opacity: 1; transform: translateY(0); } }

/* Gently floating hero badges (the --tx/--ty vars carry the desktop mouse-tilt offset) */
.hero-badge--years { animation: riseIn .9s var(--ease) calc(var(--intro-d) + .55s) both, bob 5.5s ease-in-out calc(var(--intro-d) + 1.45s) infinite; }
.hero-badge--quote { animation: riseIn .9s var(--ease) calc(var(--intro-d) + .75s) both, bob 6.5s ease-in-out calc(var(--intro-d) + 2.4s) infinite; }
@keyframes bob { 0%, 100% { transform: translate(var(--tx, 0px), var(--ty, 0px)); } 50% { transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 8px)); } }

/* Sheen sweep across primary buttons on hover */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::before { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); transition: left .6s var(--ease); pointer-events: none; }
.btn--primary:hover::before { left: 130%; }

/* Gallery cards pop in when a filter reveals them */
.work-card.anim-pop { animation: cardIn .45s var(--ease); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* Lightbox image entrance */
.lightbox__imgwrap img { animation: lbZoom .45s var(--ease); }
@keyframes lbZoom { from { opacity: 0; transform: scale(1.04); } }

/* Google reviews chip */
.google-chip { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--pill); padding: .6rem 1.05rem; font-weight: 600; font-size: .92rem; color: var(--ink); box-shadow: var(--sh-sm); transition: transform .2s var(--ease), box-shadow .25s; }
.google-chip:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.google-chip svg:last-child { color: var(--green-700); }

/* ============================ 18. MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-ready .reveal, .reveal-ready .reveal.in { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; }
  .w__i { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* =====================================================================
   19. PREMIUM MOTION LAYER
   Intro curtain, hero choreography, image un-masking, cursor ring,
   scroll progress, spotlight cards, staggered mobile menu.
   Everything here degrades cleanly: no JS = content simply shows.
   ===================================================================== */

/* First visit of a session plays the intro; hero timings wait for it. */
html { --intro-d: 1.35s; }
html.intro-seen { --intro-d: 0s; }

/* ---------- Intro curtain ---------- */
.intro {
  position: fixed; inset: 0; z-index: 1000; background: var(--green-800);
  display: grid; place-items: center; will-change: transform;
  animation: introOut .85s cubic-bezier(.76, 0, .24, 1) 1.45s forwards;
}
.intro-seen .intro { display: none; }
.intro__inner { display: grid; justify-items: center; gap: .9rem; animation: introFade .45s ease 1.2s forwards; }
.intro__mark { overflow: visible; }
.intro__stroke { stroke-dasharray: 90; stroke-dashoffset: 90; animation: introDraw .75s var(--ease) .12s forwards; }
.intro__stroke--2 { animation-delay: .38s; }
.intro__door { opacity: 0; animation: introDoor .4s ease .8s forwards; }
.intro__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 3vw, 1.7rem); color: var(--cream); letter-spacing: -.01em; animation: riseIn .7s var(--ease) .5s both; }
.intro__line { width: 64px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); animation: introLine .6s var(--ease) .75s forwards; }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
@keyframes introDoor { to { opacity: 1; } }
@keyframes introLine { to { transform: scaleX(1); } }
@keyframes introFade { to { opacity: 0; translate: 0 -12px; } }
@keyframes introOut { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- Shared entrance ---------- */
@keyframes riseIn {
  from { opacity: 0; translate: 0 22px; filter: blur(8px); }
  to   { opacity: 1; translate: 0 0;    filter: blur(0); }
}

/* ---------- Hero choreography ---------- */
.hero__content > :not(.hero__title) { animation: riseIn .9s var(--ease) both; }
.hero__content > .eyebrow        { animation-delay: calc(var(--intro-d) + .05s); }
.hero__content > .hero__lead     { animation-delay: calc(var(--intro-d) + .55s); }
.hero__content > .hero__actions  { animation-delay: calc(var(--intro-d) + .7s); }
.hero__content > .hero__trust    { animation-delay: calc(var(--intro-d) + .85s); }
.hero .eyebrow__dot { transition-delay: calc(var(--intro-d) + .35s); }

.hero-photo { clip-path: inset(100% 0 0 0 round var(--r-lg)); animation: unmask 1.25s var(--ease) both; translate: var(--tx, 0px) var(--ty, 0px); }
.hero-photo--main { animation-delay: calc(var(--intro-d) + .2s); }
.hero-photo--sub  { animation-delay: calc(var(--intro-d) + .45s); }
.hero-photo img { scale: 1.14; animation: unscale 1.9s var(--ease) both; }
.hero-photo--main img { animation-delay: calc(var(--intro-d) + .2s); }
.hero-photo--sub img  { animation-delay: calc(var(--intro-d) + .45s); }
@keyframes unmask  { to { clip-path: inset(0 0 0 0 round var(--r-lg)); } }
@keyframes unscale { to { scale: 1; } }
.hero__media { transform-style: preserve-3d; will-change: transform; }
.hero__scroll { animation: riseIn .8s var(--ease) calc(var(--intro-d) + 1.2s) both; }

/* ---------- Section head stagger + eyebrow line draw ---------- */
.reveal .eyebrow__dot { transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .3s; }
.reveal.in .eyebrow__dot { transform: scaleX(1); }
.reveal-ready .section-head.reveal .section-title,
.reveal-ready .section-head.reveal .section-sub { opacity: 0; translate: 0 14px; transition: opacity .8s var(--ease), translate .9s var(--ease); }
.reveal-ready .section-head.reveal .section-sub { transition-delay: .15s; }
.reveal-ready .section-head.reveal.in .section-title,
.reveal-ready .section-head.reveal.in .section-sub { opacity: 1; translate: 0 0; }

/* ---------- Image un-mask reveals ---------- */
/* The clip lives on the <img>, not the observed figure: a fully clipped target
   never intersects in Chrome, so the reveal would never fire. The figure's
   category colour panel shows for a beat, then the photo wipes up over it. */
.reveal-ready .reveal--clip { translate: 0 0; transition: opacity .6s; }
.reveal-ready .reveal--clip img { clip-path: inset(0 0 100% 0); scale: 1.15; transition: clip-path 1.2s var(--ease), scale 1.7s var(--ease); }
.reveal-ready .reveal--clip.in img { clip-path: inset(0 0 0 0); scale: 1; }

.reveal-ready .work-card.reveal { clip-path: inset(18% 0 0 0 round var(--r-lg)); translate: 0 40px;
  transition: clip-path 1.1s var(--ease), opacity .8s var(--ease), translate 1s var(--ease), transform .35s var(--ease), box-shadow .35s; }
.reveal-ready .work-card.reveal.in { clip-path: inset(0 0 0 0 round var(--r-lg)); }

/* ---------- Scroll progress + header auto-hide ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 150; width: 100%; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--gold), var(--clay)); transform-origin: left; transform: scaleX(0); }
.site-header { transition: box-shadow .3s, background .3s, padding .3s, transform .45s var(--ease); }
.site-header.is-hidden { transform: translateY(-110%); }
body.nav-open .site-header.is-hidden { transform: none; }

/* ---------- Trailing cursor ring (fine pointers only) ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 960; display: none; pointer-events: none; opacity: 0;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1.5px solid rgba(63, 90, 67, .8); background: rgba(63, 90, 67, 0); will-change: transform;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s, opacity .3s, scale .2s;
}
.cursor__label { position: absolute; inset: 0; display: grid; place-items: center; font: 600 .7rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(63, 90, 67, .12); }
.cursor.is-view  { width: 80px; height: 80px; margin: -40px 0 0 -40px; background: var(--green); border-color: var(--green); }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-down { scale: .85; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  .work-card, .work-card * { cursor: none; }
}

/* ---------- Film grain (desktop only, very subtle) ---------- */
@media (min-width: 961px) {
  body::after {
    content: ""; position: fixed; inset: 0; z-index: 940; pointer-events: none; opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 240px 240px;
  }
}

/* ---------- Staggered mobile menu ---------- */
@media (max-width: 960px) {
  .nav__link, .nav__cta > * { opacity: 0; translate: 28px 0; transition: opacity .45s var(--ease), translate .55s var(--ease); }
  body.nav-open .nav__link, body.nav-open .nav__cta > * { opacity: 1; translate: 0 0; }
  body.nav-open .nav__list li:nth-child(1) .nav__link { transition-delay: .14s; }
  body.nav-open .nav__list li:nth-child(2) .nav__link { transition-delay: .19s; }
  body.nav-open .nav__list li:nth-child(3) .nav__link { transition-delay: .24s; }
  body.nav-open .nav__list li:nth-child(4) .nav__link { transition-delay: .29s; }
  body.nav-open .nav__list li:nth-child(5) .nav__link { transition-delay: .34s; }
  body.nav-open .nav__list li:nth-child(6) .nav__link { transition-delay: .39s; }
  body.nav-open .nav__cta > :nth-child(1) { transition-delay: .46s; }
  body.nav-open .nav__cta > :nth-child(2) { transition-delay: .52s; }
  body.nav-open .nav__cta > :nth-child(3) { transition-delay: .58s; }
  .nav::before { content: "Menu"; position: absolute; top: 1.6rem; left: 1.75rem; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--clay); }
}

/* ---------- Reduced motion: everything static, nothing hidden ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro, .cursor { display: none !important; }
  .hero__content > *, .hero-photo, .hero-photo img, .hero__scroll, .hero-badge { animation: none !important; opacity: 1 !important; clip-path: none !important; scale: none !important; filter: none !important; translate: none !important; }
  .reveal-ready .reveal--clip, .reveal-ready .work-card.reveal { clip-path: none !important; }
  .reveal-ready .reveal--clip img { scale: none !important; clip-path: none !important; }
  .reveal-ready .section-head.reveal .section-title, .reveal-ready .section-head.reveal .section-sub { opacity: 1 !important; translate: none !important; }
  .reveal .eyebrow__dot, .process-step::before { transform: none !important; }
  .nav__link, .nav__cta > * { opacity: 1 !important; translate: none !important; }
}
