/* ==========================================================================
   Ferrato Landscaping and Home Improvements Inc.
   Version 2: cinematic editorial direction.
   Palette: forest green, cream, beige, earth brown, charcoal.
   Type: Libre Caslon (display) with Libre Franklin (text and UI).
   Motion: one system, see "Motion system" below. All effects use transform,
   opacity and clip-path only, and are disabled under prefers-reduced-motion.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Libre Caslon Display"; src: url("../fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("../fonts/libre-franklin-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --forest: #1f3b2c;
  --forest-deep: #12241a;
  --forest-stripe: #254635;
  --cream: #f4eddf;
  --cream-light: #faf6ec;
  --beige: #e6dcc8;
  --line: #d2c5a9;
  --brown: #6b4a32;
  --charcoal: #252822;
  --ink-soft: #4d5148;
  --on-dark: #f4eddf;
  --on-dark-soft: #c3c8b6;
  --line-dark: rgba(244, 237, 223, .2);

  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --wrap: 84rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  --section: clamp(5rem, 11vw, 10rem);
  --header-h: 5.25rem;

  /* Motion system */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-ui: .45s;
  --t-reveal: 1.15s;
  --t-clip: 1.35s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip;
  background: var(--cream); color: var(--charcoal);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .mobile-menu :focus-visible { outline-color: var(--cream); }
::selection { background: var(--forest); color: var(--cream); }
main { position: relative; z-index: 1; background: var(--cream); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 300; background: var(--forest); color: var(--cream); padding: .75rem 1rem; border-radius: 2px; }
.skip-link:focus { top: 1rem; }

/* ---------- Type ---------- */
.display-1, .display-2, .display-3, .display-page { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
.display-1 { font-size: clamp(3rem, 8.4vw, 8rem); line-height: .95; }
.display-page { font-size: clamp(2.7rem, 6.6vw, 6.2rem); line-height: .98; }
.display-2 { font-size: clamp(2.2rem, 4.8vw, 4.25rem); line-height: 1.03; }
.display-3 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.12; }
.lede { font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.5; text-wrap: pretty; }
p { text-wrap: pretty; }
.muted { color: var(--ink-soft); }
.on-dark .muted { color: var(--on-dark-soft); }

.text-link {
  position: relative; display: inline-block; font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: .2em; transition: background-size .5s var(--ease-out), color .3s;
}
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }
p .text-link { display: inline; padding-bottom: .1em; }

/* ---------- Buttons: fill sweeps up from the bottom edge ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 3.4rem; padding: .85rem 1.75rem;
  font-size: .9688rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: color var(--t-ui) var(--ease-out), border-color var(--t-ui) var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--btn-fill); transform: translateY(102%);
  transition: transform .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn-sm { min-height: 2.75rem; padding: .55rem 1.2rem; font-size: .9063rem; }
.btn-primary { background: var(--forest); color: var(--cream); --btn-fill: var(--brown); }
.btn-light { background: var(--cream); color: var(--forest-deep); --btn-fill: var(--forest-stripe); }
.btn-light:hover, .btn-light:focus-visible { color: var(--cream); }
.btn-outline { border-color: var(--forest); color: var(--forest); --btn-fill: var(--forest); }
.btn-outline:hover, .btn-outline:focus-visible { color: var(--cream); }
.btn-outline-light { border-color: rgba(244, 237, 223, .55); color: var(--cream); --btn-fill: var(--cream); }
.btn-outline-light:hover, .btn-outline-light:focus-visible { color: var(--forest-deep); border-color: var(--cream); }
.btn .btn-detail { font-weight: 400; opacity: .85; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ==========================================================================
   Motion system
   data-reveal="rise"        fade and rise (descriptions, small blocks)
   data-reveal="clip"        image unmasks upward while it settles from a larger scale
   data-reveal="clip-down|clip-left|clip-right"  directional variants
   data-reveal="lines"       with data-split: headline rises line by line
   data-reveal="rule"        hairline draws from the left
   data-parallax             inner .px wrapper drifts against the scroll
   --d on any element delays its reveal
   Hidden states only apply when JavaScript is running (.js on <html>).
   ========================================================================== */
.js [data-reveal="rise"] { opacity: 0; transform: translate3d(0, 1.75rem, 0); transition: opacity .9s var(--ease-out) var(--d, 0s), transform var(--t-reveal) var(--ease-out) var(--d, 0s); }
.js [data-reveal="rise"].is-in { opacity: 1; transform: none; }

/* The mask sits on the child, so the observed element keeps its full box */
.js [data-reveal^="clip"] > * { clip-path: inset(0); transition: clip-path var(--t-clip) var(--ease-in-out) var(--d, 0s); }
.js [data-reveal="clip"]:not(.is-in) > * { clip-path: inset(100% 0 0 0); }
.js [data-reveal="clip-down"]:not(.is-in) > * { clip-path: inset(0 0 100% 0); }
.js [data-reveal="clip-left"]:not(.is-in) > * { clip-path: inset(0 100% 0 0); }
.js [data-reveal="clip-right"]:not(.is-in) > * { clip-path: inset(0 0 0 100%); }
.js [data-reveal^="clip"] { transition: background-color .3s var(--d, 0s); }
.js [data-reveal^="clip"]:not(.is-in) { background-color: transparent; box-shadow: none; }
.js [data-reveal^="clip"] img { transform: scale(1.22); transition: transform 1.9s var(--ease-out) var(--d, 0s); }
.js [data-reveal^="clip"].is-in img { transform: scale(1); }

.js [data-split]:not(.is-split) { visibility: hidden; }
[data-split] .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
[data-split] .line-in { display: block; }
.js [data-reveal="lines"] .line-in { transform: translate3d(0, 112%, 0); transition: transform var(--t-reveal) var(--ease-out) calc(var(--d, 0s) + var(--li, 0) * 90ms); }
.js [data-reveal="lines"].is-in .line-in { transform: none; }

[data-reveal="rule"]::before { content: ""; position: absolute; inset: 0; background: currentColor; transform-origin: left; }
.js [data-reveal="rule"]::before { transform: scaleX(0); transition: transform 1.3s var(--ease-in-out) var(--d, 0s); }
.js [data-reveal="rule"].is-in::before { transform: none; }

/* Frames and parallax */
.frame { position: relative; overflow: hidden; background: var(--beige); }
.on-dark .frame, .bg-forest .frame { background: var(--forest); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .px { position: absolute; inset: -12% 0; will-change: transform; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-21x9 { aspect-ratio: 21 / 9; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.pos-bottom img { object-position: 50% 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; color: var(--charcoal);
  border-bottom: 1px solid transparent;
  transition: transform .7s var(--ease-out), background-color .45s, color .45s, border-color .45s;
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); transition: height .6s var(--ease-out); }
.site-header.is-solid { background: var(--cream); border-color: var(--line); }
.site-header.is-solid .header-inner { height: 4.25rem; }
.site-header.is-hidden { transform: translate3d(0, -102%, 0); }
.dark-top .site-header:not(.is-solid) { color: var(--cream); }
.dark-top .site-header:not(.is-solid) .btn-primary { background: var(--cream); color: var(--forest-deep); --btn-fill: var(--forest-stripe); }
.dark-top .site-header:not(.is-solid) .btn-primary:hover { color: var(--cream); }
.light-top main { padding-top: var(--header-h); }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--forest); margin-right: auto; transition: color .45s; }
.dark-top .site-header:not(.is-solid) .brand, .nav-open .site-header .brand { color: var(--cream); }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-mark path { transition: transform .6s var(--ease-out); transform-box: fill-box; }
.brand:hover .brand-mark path { transform: translate(6px, 0); }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 1.85rem; letter-spacing: -.01em; }
.brand-sub { font-size: .6875rem; font-weight: 500; letter-spacing: .02em; margin-top: .3rem; white-space: nowrap; }

.site-nav ul { display: flex; gap: clamp(1.1rem, 2.2vw, 2.3rem); }
.site-nav a { position: relative; display: block; padding: .5rem 0; font-size: .9688rem; font-weight: 500; text-decoration: none; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { font-weight: 600; font-size: .9688rem; text-decoration: none; white-space: nowrap; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: .15em; transition: background-size .5s var(--ease-out); }
.header-phone:hover { background-size: 100% 1px; }
.nav-toggle { display: none; align-items: center; gap: .7rem; min-height: 2.75rem; padding: 0 .25rem; background: none; border: 0; font-weight: 600; font-size: .9688rem; cursor: pointer; color: inherit; }
.nav-toggle-bars { display: grid; gap: 6px; width: 1.5rem; }
.nav-toggle-bars span { height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out); }
.nav-open .nav-toggle-bars span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-open .nav-toggle-bars span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.nav-open .site-header { background: transparent; border-color: transparent; color: var(--cream); transform: none; }

/* Mobile menu: forest panel opens from the menu button */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem; overflow-y: auto;
  background-color: var(--forest-deep); color: var(--cream);
  background-image: repeating-linear-gradient(98deg, transparent 0 6rem, rgba(255, 255, 255, .025) 6rem 12rem);
  clip-path: circle(0 at calc(100% - 2.4rem) 2.2rem); visibility: hidden;
  transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
}
.nav-open .mobile-menu { clip-path: circle(150vmax at calc(100% - 2.4rem) 2.2rem); visibility: visible; transition-delay: 0s; }
.mobile-menu nav a { display: block; overflow: hidden; border-bottom: 1px solid var(--line-dark); text-decoration: none; }
.mobile-menu nav a span { display: block; padding: .7rem 0; font-family: var(--display); font-size: clamp(2.3rem, 9vw, 3.2rem); line-height: 1.1; transform: translate3d(0, 110%, 0); transition: transform .9s var(--ease-out); }
.nav-open .mobile-menu nav a span { transform: none; transition-delay: calc(.25s + var(--i) * 70ms); }
.mobile-menu nav a[aria-current="page"] span { color: var(--on-dark-soft); }
.mobile-menu-foot { margin-top: auto; padding-top: 2rem; display: grid; gap: 1.25rem; opacity: 0; transform: translateY(1rem); transition: opacity .6s, transform .8s var(--ease-out); }
.nav-open .mobile-menu-foot { opacity: 1; transform: none; transition-delay: .65s; }
.mobile-menu-foot p { font-size: .9375rem; color: var(--on-dark-soft); }
.mobile-menu .btn-row { flex-direction: column; }
.mobile-menu .btn { width: 100%; }
@media (min-width: 60.0625em) { .mobile-menu { display: none; } }
@media (max-width: 60em) {
  .site-nav, .header-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  :root { --header-h: 4.5rem; }
  .brand-name { font-size: 1.6rem; }
  .brand-mark { width: 2rem; height: 2rem; }
}
@media (max-width: 22.5em) { .brand-sub { display: none; } }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100svh; min-height: 40rem; max-height: 75rem;
  background: var(--forest-deep); color: var(--on-dark);
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; will-change: transform, clip-path; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 15, .55) 0%, rgba(10, 22, 15, 0) 24%),
    linear-gradient(0deg, rgba(10, 22, 15, .9) 0%, rgba(10, 22, 15, .45) 38%, rgba(10, 22, 15, 0) 70%);
}
.hero-body { padding-bottom: clamp(1.5rem, 3.2vw, 2.75rem); will-change: transform, opacity; }
.hero-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.85rem, 9.3vw, 9.4rem); line-height: .93; letter-spacing: -.022em; }
.hero-title .line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title .line > span { display: inline-block; }
.hero-title .br-m { display: none; }
.hero-foot { position: relative; display: grid; grid-template-columns: minmax(0, 34rem) 1fr auto; gap: 1.5rem 3rem; align-items: end; margin-top: clamp(1.5rem, 3vw, 2.5rem); padding-top: clamp(1.25rem, 2.2vw, 1.75rem); }
.hero-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(244, 237, 223, .35); transform-origin: left; }
.hero-lede { font-size: clamp(1rem, 1.35vw, 1.1875rem); line-height: 1.55; color: #e9e6d9; }
.hero-foot .btn-row { justify-content: flex-end; }
.scroll-cue { display: inline-flex; align-items: center; gap: .85rem; font-size: .8125rem; font-weight: 500; text-decoration: none; padding-bottom: .9rem; }
.scroll-cue i { position: relative; display: block; width: 1px; height: 3.25rem; background: rgba(244, 237, 223, .3); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--cream); transform: translateY(-100%); }

@media (prefers-reduced-motion: no-preference) {
  .hero-media { animation: hero-open 2s var(--ease-in-out) both; }
  .hero-media img { animation: hero-zoom 3.2s var(--ease-out) both; }
  .hero-title .line > span { animation: line-rise 1.25s var(--ease-out) both; animation-delay: calc(.95s + var(--i) * .11s); }
  .hero-foot::before { animation: rule-draw 1.4s var(--ease-in-out) 1.5s both; }
  .hero-lede, .hero-foot .btn-row, .scroll-cue { animation: fade-up 1.1s var(--ease-out) both; }
  .hero-lede { animation-delay: 1.65s; }
  .hero-foot .btn-row { animation-delay: 1.8s; }
  .scroll-cue { animation-delay: 2.1s; }
  .scroll-cue i::after { animation: cue 2.4s var(--ease-in-out) 2.6s infinite; }
  .intro-header .site-header { animation: header-in 1.2s var(--ease-out) 1.35s backwards; }
  .page-hero-media { animation: page-open 1.6s var(--ease-in-out) both; }
  .page-hero-media img { animation: hero-zoom 2.8s var(--ease-out) both; }
}
@keyframes hero-open { from { clip-path: inset(24% 30% 24% 30%); } to { clip-path: inset(0); } }
@keyframes page-open { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes hero-zoom { from { transform: scale(1.32); } to { transform: scale(1); } }
@keyframes line-rise { from { transform: translate3d(0, 112%, 0); } to { transform: none; } }
@keyframes rule-draw { from { transform: scaleX(0); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 1.25rem, 0); } to { opacity: 1; transform: none; } }
@keyframes header-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

@media (max-width: 60em) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero-foot .btn-row { justify-content: flex-start; }
  .scroll-cue { display: none; }
}
@media (max-width: 47.5em) {
  .hero-body { padding-bottom: 1.75rem; }
  .grow-frame { height: 82svh; }
  .hero-title .br-m { display: inline; }
  .hero-title { font-size: clamp(2.85rem, 14.5vw, 5rem); }
  .hero .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.bg-beige { background: var(--beige); }
.bg-forest { background: var(--forest-deep); color: var(--on-dark); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2.5rem); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.25rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* Intro: rating and statement */
.intro-grid { row-gap: 3.5rem; align-items: end; }
.intro-rating { grid-column: 1 / span 5; }
.intro-figure { font-family: var(--display); font-size: clamp(7.5rem, 19vw, 17rem); line-height: .78; letter-spacing: -.04em; color: var(--forest); font-variant-numeric: tabular-nums lining-nums; }
.intro-rating-meta { display: grid; gap: .6rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: 22rem; color: var(--ink-soft); }
.intro-rating-meta strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3125rem; color: var(--charcoal); }
.intro-copy { grid-column: 7 / -1; }
.intro-copy p { margin-top: 1.75rem; max-width: 32rem; color: var(--ink-soft); }
.stars { position: relative; display: inline-block; width: 6.6rem; height: 1.2rem; flex: none; color: var(--brown); }
.stars svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stars .stars-fill { clip-path: inset(0 calc(100% - var(--pct, 92%)) 0 0); }
.js .stars .stars-fill { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease-out) .3s; }
.js .is-in .stars .stars-fill { clip-path: inset(0 calc(100% - var(--pct, 92%)) 0 0); }
@media (max-width: 60em) { .intro-rating, .intro-copy { grid-column: 1 / -1; } }

/* Scroll-linked type band */
.marquee { overflow: hidden; padding-block: clamp(1rem, 2vw, 1.75rem); border-block: 1px solid var(--line); }
.marquee-track { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); width: max-content; font-family: var(--display); font-size: clamp(3rem, 8.5vw, 8rem); line-height: 1; letter-spacing: -.02em; color: var(--forest); will-change: transform; white-space: nowrap; }
.marquee-track svg { width: .5em; height: .5em; flex: none; color: var(--brown); }
.marquee-track span:nth-of-type(even) { font-family: var(--serif); font-style: italic; letter-spacing: -.03em; }

/* Services index with image stage */
.svc-x { align-items: start; }
.svc-list { grid-column: 1 / span 6; }
.svc-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: baseline; padding: clamp(1.25rem, 2.2vw, 1.9rem) 0; text-decoration: none; transition: opacity .5s; }
.svc-row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.svc-list li:last-child .svc-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.svc-row h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.7vw, 3.4rem); line-height: 1.05; letter-spacing: -.015em; transition: transform .7s var(--ease-out), color .4s; }
.svc-more { font-size: .875rem; font-weight: 600; opacity: 0; transform: translateX(-.75rem); transition: opacity .4s, transform .6s var(--ease-out); white-space: nowrap; }
.svc-desc { grid-column: 1; display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .7s var(--ease-out), opacity .5s; color: var(--ink-soft); }
.svc-desc > span { overflow: hidden; max-width: 31rem; }
.svc-desc > span > span { display: block; padding-top: .8rem; }
.svc-row-media { display: none; }
.svc-stage { grid-column: 8 / -1; position: sticky; top: 6.5rem; aspect-ratio: 4 / 5; overflow: hidden; background: var(--forest); }
.svc-stage figure { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
.svc-stage figure img { width: 100%; height: 100%; object-fit: cover; }
.svc-stage figure.is-prev { clip-path: inset(0); z-index: 1; }
.svc-stage figure.is-active { clip-path: inset(0); z-index: 2; animation: stage-in 1s var(--ease-in-out) both; }
.svc-stage figure.is-active img { animation: stage-zoom 1.6s var(--ease-out) both; }
@keyframes stage-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes stage-zoom { from { transform: scale(1.2); } to { transform: scale(1); } }
.svc-panel { display: flex; align-items: flex-end; padding: clamp(1.5rem, 2.5vw, 2.25rem); background-color: var(--forest); color: var(--cream); background-image: repeating-linear-gradient(98deg, transparent 0 4.5rem, rgba(255, 255, 255, .04) 4.5rem 9rem); }
.svc-panel p { font-family: var(--display); font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1.08; }
@media (min-width: 60.0625em) {
  .svc-list.has-active .svc-row:not(.is-active) { opacity: .42; }
  .svc-row.is-active h3 { transform: translateX(1.25rem); color: var(--forest); }
  .svc-row.is-active .svc-more { opacity: 1; transform: none; }
  .svc-row.is-active .svc-desc { grid-template-rows: 1fr; opacity: 1; }
  .svc-row.is-active .svc-desc > span { padding-left: 1.25rem; }
}
@media (max-width: 60em) {
  .svc-list { grid-column: 1 / -1; }
  .svc-stage { display: none; }
  .svc-row { grid-template-columns: 1fr; padding-bottom: 2.25rem; }
  .svc-row-media { display: block; margin-top: 1.25rem; }
  .svc-desc { grid-template-rows: 1fr; opacity: 1; }
  .svc-desc { order: 2; }
  .svc-row-media { order: 3; }
  .svc-more { order: 4; opacity: 1; transform: none; margin-top: 1.1rem; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
}

html:not(.js) .svc-stage figure:first-child { clip-path: none; }
html:not(.js) .svc-desc { grid-template-rows: 1fr; opacity: 1; }

/* Full-screen photograph that grows to the edges as it scrolls in */
.grow { background: var(--cream); }
.grow-frame { position: relative; display: flex; align-items: flex-end; height: min(100svh, 62rem); min-height: 34rem; overflow: hidden; color: var(--cream); clip-path: inset(calc((1 - var(--g, 1)) * 9%) calc((1 - var(--g, 1)) * 7%)); will-change: clip-path; background: var(--forest); }
.grow-frame .px { position: absolute; inset: -12% 0; }
.grow-frame img { width: 100%; height: 100%; object-fit: cover; }
.grow-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 22, 15, .82) 0%, rgba(10, 22, 15, .2) 55%, rgba(10, 22, 15, 0) 75%); }
.grow-text { position: relative; z-index: 1; padding-bottom: clamp(2.5rem, 6vw, 5.5rem); }
.grow-text p { font-family: var(--display); font-size: clamp(2.3rem, 6.4vw, 6.25rem); line-height: .98; letter-spacing: -.018em; max-width: 15ch; }

/* Recent work: horizontal rail, pinned on large screens */
.rail { position: relative; background: var(--forest-deep); color: var(--on-dark); }
.rail-sticky { display: flex; flex-direction: column; gap: clamp(1.75rem, 3.5vw, 3rem); padding-block: var(--section); overflow: hidden; }
.rail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; }
.rail-head p { margin-top: 1rem; max-width: 28rem; color: var(--on-dark-soft); }
.rail-progress { position: relative; flex: 0 0 min(16rem, 30vw); height: 1px; background: var(--line-dark); margin-bottom: .6rem; }
.rail-progress i { position: absolute; inset: 0; background: var(--cream); transform: scaleX(var(--rp, 0)); transform-origin: left; }
.rail-track { display: flex; align-items: center; gap: clamp(.75rem, 1.6vw, 1.5rem); padding-inline: var(--edge); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-item { position: relative; flex: none; display: block; height: clamp(17rem, 68vw, 26rem); overflow: hidden; background: var(--forest); color: var(--cream); text-decoration: none; scroll-snap-align: center; }
.rail-item.is-l { aspect-ratio: 3 / 2; }
.rail-item.is-p { aspect-ratio: 3 / 4; }
.rail-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .8s var(--ease-out); }
.cta-media img, .grow-frame img { transition: opacity .8s var(--ease-out); }
img.is-loading { opacity: 0; }
.rail-item:hover img, .rail-item:focus-visible img { transform: scale(1.05); }
.rail-end { flex: none; display: grid; align-content: center; gap: 1.25rem; width: min(24rem, 78vw); padding-inline: clamp(1rem, 3vw, 3rem); scroll-snap-align: center; }
.rail-end p { font-family: var(--display); font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.05; }
.cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 4rem 1.25rem 1.1rem; font-size: .9375rem; font-weight: 500; color: var(--cream); background: linear-gradient(0deg, rgba(10, 22, 15, .85), rgba(10, 22, 15, 0)); opacity: 0; transform: translateY(.6rem); transition: opacity .45s, transform .6s var(--ease-out); pointer-events: none; }
.cap .cap-n { font-family: var(--serif); font-size: .875rem; opacity: .8; font-variant-numeric: tabular-nums; white-space: nowrap; }
a:hover > .cap, a:focus-visible > .cap { opacity: 1; transform: none; }
@media (hover: none) { .cap { opacity: 1; transform: none; } }
.rail.is-pinned .rail-sticky { position: sticky; top: 0; height: 100svh; min-height: 36rem; justify-content: center; padding-block: 5.5rem 2.5rem; }
.rail.is-pinned .rail-track { overflow: visible; width: max-content; height: min(60vh, 40rem); will-change: transform; }
.rail.is-pinned .rail-item { height: 100%; }
.rail.is-pinned .rail-item.is-low { height: 72%; align-self: flex-end; }
.rail.is-pinned .rail-item.is-high { height: 72%; align-self: flex-start; }

/* Why choose: layered photographs and drawn rules */
.why { row-gap: 4rem; align-items: start; }
.why-media { grid-column: 1 / span 5; position: relative; padding-bottom: 14%; }
.why-media .frame-b { position: absolute; right: -14%; bottom: 0; width: 58%; box-shadow: 0 0 0 .6rem var(--cream); z-index: 1; }
.why-body { grid-column: 7 / -1; }
.why-body > h2 { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.principles li { position: relative; display: grid; grid-template-columns: 14rem 1fr; gap: .75rem 2rem; padding: 1.7rem 0; }
.principles li::before, .principles li:last-child::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; }
.principles li:last-child::after { top: auto; bottom: 0; }
.js .principles li::before, .js .principles li:last-child::after { transform: scaleX(0); transition: transform 1.3s var(--ease-in-out) var(--d, 0s); }
.js .principles li.is-in::before, .js .principles li.is-in:last-child::after { transform: none; }
.js .principles li > * { opacity: 0; transform: translate3d(0, 1.25rem, 0); transition: opacity .9s var(--ease-out) .15s, transform 1.1s var(--ease-out) .15s; }
.js .principles li.is-in > * { opacity: 1; transform: none; }
.principles h3 { font-family: var(--serif); font-weight: 400; font-size: 1.375rem; line-height: 1.25; color: var(--forest); }
.principles p { color: var(--ink-soft); }
@media (max-width: 60em) {
  .why-media, .why-body { grid-column: 1 / -1; }
  .why-media { max-width: 30rem; margin-right: 14%; }
}
@media (max-width: 35em) { .principles li { grid-template-columns: 1fr; } }

/* Closing call to action: photograph under forest green */
.cta { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: min(92svh, 54rem); padding-block: clamp(6rem, 12vw, 10rem); background: var(--forest-deep); color: var(--on-dark); }
.cta-media { position: absolute; inset: 0; z-index: -1; }
.cta-media .px { position: absolute; inset: -14% 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 36, 26, .94), rgba(18, 36, 26, .7) 50%, rgba(18, 36, 26, .82)); }
.cta h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.9rem, 9vw, 8.75rem); line-height: .94; letter-spacing: -.022em; max-width: 12ch; text-wrap: balance; }
.cta-foot { position: relative; display: grid; grid-template-columns: minmax(0, 32rem) 1fr; gap: 1.5rem 3rem; align-items: end; margin-top: clamp(2rem, 4vw, 3.5rem); padding-top: clamp(1.5rem, 2.5vw, 2rem); }
.cta-foot .rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; color: rgba(244, 237, 223, .35); }
.cta-foot p { color: #dfe2d4; }
.cta-foot .btn-row { justify-content: flex-end; }
.cta-light { background: var(--beige); color: var(--charcoal); min-height: 0; }
.cta-light h2 { color: var(--forest); }
.cta-light .cta-foot .rule { color: var(--line); }
.cta-light .cta-foot p { color: var(--ink-soft); }
@media (max-width: 60em) { .cta-foot { grid-template-columns: 1fr; } .cta-foot .btn-row { justify-content: flex-start; } }
@media (max-width: 35em) { .cta .btn { flex: 1 1 100%; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--forest-deep); color: var(--on-dark-soft); font-size: .9688rem; overflow: hidden; }
.footer-reveal .site-footer { position: sticky; bottom: 0; z-index: 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1.05fr .8fr; gap: 3rem 2.5rem; padding-block: clamp(3.5rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.site-footer h2 { font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--cream); margin-bottom: 1rem; }
.footer-lead p { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.35; color: var(--cream); max-width: 20rem; }
.site-footer a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: .12em; transition: background-size .5s var(--ease-out), color .3s; }
.site-footer a:hover { color: var(--cream); background-size: 100% 1px; }
.site-footer li + li { margin-top: .5rem; }
.site-footer address { font-style: normal; }
.footer-phone { display: inline-block; font-family: var(--display); font-size: 1.9rem; color: var(--cream); margin-bottom: .6rem; }
.hours-list dt { color: var(--cream); }
.hours-list dd + dt { margin-top: .75rem; }
.footer-sign { display: block; padding-top: clamp(1rem, 3vw, 2.5rem); line-height: .74; user-select: none; }
.footer-sign span {
  display: block; font-family: var(--display); font-size: clamp(6rem, 35vw, 33rem); letter-spacing: -.035em; white-space: nowrap; margin-left: -.04em; margin-bottom: -.06em;
  color: var(--forest-stripe);
  background: repeating-linear-gradient(98deg, #2e5642 0 .11em, #1c3628 .11em .22em);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-bottom > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.4rem; border-top: 1px solid rgba(244, 237, 223, .16); font-size: .875rem; }
@media (max-width: 60em) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 35em) { .footer-top { grid-template-columns: 1fr; gap: 2.25rem; } }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 47.5em) {
  .call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--cream); border-top: 1px solid var(--line); transform: translate3d(0, 110%, 0); transition: transform .6s var(--ease-out); }
  .call-bar.is-visible { transform: none; }
  .call-bar .btn { min-height: 3rem; padding-inline: .5rem; }
  .site-footer { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
  .nav-open .call-bar { transform: translate3d(0, 110%, 0); }
}

/* Pointer label for photographs (fine pointers only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 250; display: grid; place-items: center; width: 5.5rem; height: 5.5rem; margin: -2.75rem 0 0 -2.75rem; border-radius: 50%; background: var(--cream); color: var(--forest-deep); font-size: .8438rem; font-weight: 600; pointer-events: none; will-change: transform; }
.cursor span { transform: scale(0); transition: transform .5s var(--ease-out); display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--cream); }
.cursor.is-on span { transform: scale(1); }
.cursor { background: none; }

/* ---------- Inner page heroes ---------- */
.page-hero { position: relative; isolation: isolate; overflow: clip; display: flex; align-items: flex-end; min-height: min(86svh, 52rem); padding-top: calc(var(--header-h) + 4rem); padding-bottom: clamp(2.25rem, 4.5vw, 4rem); background: var(--forest-deep); color: var(--on-dark); }
.page-hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; will-change: transform, clip-path; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 22, 15, .5) 0%, rgba(10, 22, 15, 0) 26%), linear-gradient(0deg, rgba(10, 22, 15, .9) 0%, rgba(10, 22, 15, .35) 50%, rgba(10, 22, 15, .1) 100%); }
.page-hero-grid { row-gap: 1.5rem; align-items: end; }
.page-hero-grid h1 { grid-column: 1 / span 9; }
.page-hero-grid .page-intro { grid-column: 10 / -1; padding-bottom: .8rem; color: #e9e6d9; }
.type-hero { padding-top: clamp(4rem, 9vw, 8rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.type-hero .page-intro { color: var(--ink-soft); }
.on-dark.type-hero .page-intro { color: var(--on-dark-soft); }
@media (max-width: 60em) { .page-hero-grid h1, .page-hero-grid .page-intro { grid-column: 1 / -1; } .page-hero { min-height: min(78svh, 40rem); } }

/* ---------- Services page: chapters ---------- */
.chapter-nav { position: fixed; right: clamp(.4rem, 1vw, 1.1rem); top: 50%; z-index: 80; display: grid; gap: .35rem; transform: translateY(-50%); mix-blend-mode: difference; color: #fff; opacity: 0; pointer-events: none; transition: opacity .5s; }
.chapter-nav.is-on { opacity: 1; pointer-events: auto; }
.chapter-nav a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: .6rem; padding: .3rem 0; font-size: .75rem; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.chapter-nav a::after { content: ""; width: .8rem; height: 1px; background: currentColor; opacity: .5; transition: width .5s var(--ease-out), opacity .3s; }
.chapter-nav a.is-current::after { width: 2rem; opacity: 1; }
.chapter-nav .t { position: absolute; right: calc(100% + .6rem); white-space: nowrap; opacity: 0; transform: translateX(.5rem); transition: opacity .3s, transform .5s var(--ease-out); pointer-events: none; }
.chapter-nav a:hover .t, .chapter-nav a:focus-visible .t { opacity: 1; transform: none; }
.chapter-nav .n { opacity: .55; transition: opacity .3s; }
.chapter-nav a.is-current .n, .chapter-nav a:hover .n { opacity: 1; }
@media (max-width: 75em) { .chapter-nav { display: none; } }

.ch-copy > .ch-num, .ch-num { font-family: var(--display); font-size: clamp(5.5rem, 13vw, 12rem); line-height: .8; letter-spacing: -.04em; color: var(--line); margin-bottom: 1.25rem; font-variant-numeric: lining-nums; }
.on-dark .ch-copy > .ch-num { color: #3a6850; }
.ch-copy h2 { margin-bottom: 1.25rem; }
.ch-copy > p { color: var(--ink-soft); max-width: 33rem; }
.on-dark .ch-copy > p { color: #dfe2d4; }
.benefits { margin: 1.75rem 0 2rem; max-width: 33rem; }
.benefits li { position: relative; padding: .85rem 0 .85rem 1.75rem; border-top: 1px solid var(--line); }
.benefits li:last-child { border-bottom: 1px solid var(--line); }
.benefits li::before { content: ""; position: absolute; left: 0; top: 1.5rem; width: .9rem; height: 1px; background: var(--brown); }
.on-dark .benefits li { border-color: var(--line-dark); }
.on-dark .benefits li::before { background: var(--on-dark-soft); }

/* 01: full-width photograph with an overlapping panel */
.ch-full-media { height: min(88svh, 52rem); }
.ch-full-body { position: relative; z-index: 1; align-items: start; margin-top: clamp(-14rem, -16vw, -6rem); padding-bottom: var(--section); }
.ch-panel { grid-column: 1 / span 7; background: var(--cream); padding: clamp(1.75rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem) 0 0; }
.ch-full-aside { grid-column: 9 / -1; margin-top: clamp(4rem, 12vw, 11rem); box-shadow: 0 0 0 .6rem var(--cream); }
/* 02: split with a layered pair */
.ch-split { padding-block: var(--section); border-top: 1px solid var(--line); }
.ch-split .ch-copy { grid-column: 1 / span 5; position: sticky; top: 7rem; align-self: start; }
.ch-stack { grid-column: 7 / -1; }
.ch-stack .frame + .frame { width: 68%; margin: -16% -6% 0 auto; box-shadow: 0 0 0 .6rem var(--cream); z-index: 1; }
/* 03: dark chapter */
.ch-dark { padding-block: var(--section); }
.ch-dark .grid-12 { row-gap: clamp(2.5rem, 5vw, 5rem); align-items: end; }
.ch-dark .frame-tall { grid-column: 1 / span 5; }
.ch-dark .ch-copy { grid-column: 7 / -1; }
.ch-dark .frame-wide { grid-column: 3 / -1; }
/* 04: edge-to-edge split */
.ch-edge { display: grid; grid-template-columns: 1fr 1fr; min-height: min(100svh, 56rem); background: var(--beige); }
.ch-edge-media { position: relative; min-height: 26rem; }
.ch-edge .ch-copy { align-self: center; padding: var(--section) var(--edge) var(--section) clamp(2rem, 6vw, 6.5rem); }
.ch-edge .ch-copy > .ch-num { color: #cdbf9f; }
.ch-edge .benefits li { border-color: #cdbf9f; }
/* 05: stripes */
.ch-stripes { background-color: var(--forest); background-image: repeating-linear-gradient(98deg, var(--forest) 0 7.5rem, var(--forest-stripe) 7.5rem 15rem); color: var(--on-dark); padding-block: var(--section); }
.ch-stripes .grid-12 { row-gap: 2.5rem; align-items: end; }
.ch-stripes .ch-quote { grid-column: 1 / span 7; font-family: var(--display); font-size: clamp(2.6rem, 6.2vw, 5.75rem); line-height: .98; letter-spacing: -.018em; }
.ch-stripes .ch-copy { grid-column: 9 / -1; }
.ch-stripes .ch-copy > .ch-num { color: #447a5e; }
@media (max-width: 60em) {
  .ch-panel, .ch-full-aside, .ch-split .ch-copy, .ch-stack, .ch-dark .frame-tall, .ch-dark .ch-copy, .ch-dark .frame-wide, .ch-stripes .ch-quote, .ch-stripes .ch-copy { grid-column: 1 / -1; }
  .ch-full-media { height: 62svh; }
  .ch-full-body { margin-top: -4rem; }
  .ch-panel { padding: 1.75rem 1.5rem 0 0; margin-right: 8%; }
  .ch-full-aside { margin-top: 2.5rem; width: 62%; }
  .ch-split .ch-copy { position: static; margin-bottom: 2.5rem; }
  .ch-dark .frame-tall { aspect-ratio: 4 / 3; }
  .ch-edge { grid-template-columns: 1fr; min-height: 0; }
  .ch-edge-media { height: 62vw; min-height: 18rem; }
  .ch-edge .ch-copy { padding: 3.5rem var(--gutter) var(--section); }
}

.more-services { row-gap: 2.5rem; }
.more-services > div:first-child { grid-column: 1 / span 5; }
.more-services ul { grid-column: 7 / -1; columns: 2; column-gap: 2.5rem; }
.more-services li { break-inside: avoid; padding: .95rem 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; }
@media (max-width: 60em) { .more-services > div:first-child, .more-services ul { grid-column: 1 / -1; } }
@media (max-width: 35em) { .more-services ul { columns: 1; } }

/* ---------- Our work ---------- */
.work-hero { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.work-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(4.5rem, 19vw, 19rem); line-height: .8; letter-spacing: -.04em; margin-left: -.03em; }
.work-hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.75rem 3rem; margin-top: clamp(2rem, 4vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.work-hero-foot p { max-width: 26rem; color: var(--on-dark-soft); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter { position: relative; isolation: isolate; overflow: hidden; min-height: 2.75rem; padding: .5rem 1.15rem; background: transparent; cursor: pointer; border: 1px solid var(--line-dark); border-radius: 2px; font-size: .9375rem; font-weight: 500; color: var(--cream); transition: color .4s, border-color .4s; }
.filter::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--cream); transform: translateY(102%); transition: transform .55s var(--ease-out); }
.filter:hover { border-color: var(--cream); }
.filter[aria-pressed="true"] { color: var(--forest-deep); border-color: var(--cream); }
.filter[aria-pressed="true"]::before { transform: none; }
.filter .count { opacity: .6; margin-left: .4em; font-variant-numeric: tabular-nums; }
.gallery-section { padding-bottom: var(--section); }
.gallery { columns: 3; column-gap: clamp(.75rem, 1.5vw, 1.25rem); }
.g-item { position: relative; display: block; width: 100%; margin-bottom: clamp(.75rem, 1.5vw, 1.25rem); break-inside: avoid; overflow: hidden; background: var(--forest); cursor: zoom-in; color: var(--cream); text-decoration: none; }
.g-item[hidden] { display: none; }
.g-item img { width: 100%; transition: transform 1.3s var(--ease-out); }
.g-item::after { content: ""; position: absolute; inset: 0; background: rgba(10, 22, 15, .28); opacity: 0; transition: opacity .5s; pointer-events: none; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.06); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }
.g-item .cap { z-index: 1; }
.g-feature { column-span: all; }
.g-feature img { aspect-ratio: 21 / 9; object-fit: cover; height: auto; }
.js .g-item > img { clip-path: inset(0); transition: clip-path var(--t-clip) var(--ease-in-out) var(--d, 0s), transform 1.3s var(--ease-out); }
.js .g-item:not(.is-in) { background-color: transparent; }
.js .g-item:not(.is-in) > img { clip-path: inset(0 0 100% 0); transform: scale(1.2); }
.js .g-item:not(.is-in) .cap { opacity: 0; }
@media (max-width: 60em) { .gallery { columns: 2; } .g-feature img { aspect-ratio: 16 / 9; } }
@media (max-width: 47.5em) { .work-hero h1 { font-size: 25vw; } }
@media (max-width: 35em) { .gallery { columns: 1; } .g-feature img { aspect-ratio: 4 / 3; } }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--cream); overflow: hidden; }
.lightbox::backdrop { background: rgba(8, 17, 12, .97); animation: lb-fade .5s var(--ease-out) both; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(8, 17, 12, .97); animation: lb-fade .5s var(--ease-out) both; }
.lightbox.is-closing, .lightbox.is-closing::backdrop { animation: lb-fade-out .4s var(--ease-in-out) both; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-fade-out { from { opacity: 1; } to { opacity: 0; } }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem var(--gutter); font-size: .9375rem; }
.lb-count { font-family: var(--serif); font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.lb-count b { font-weight: 400; font-size: 1.6rem; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(1rem, 7vw, 7rem); }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; min-height: 0; object-fit: contain; transition: opacity .45s var(--ease-out), transform .7s var(--ease-out); }
.lightbox[open] .lb-stage img { animation: lb-img 0.9s var(--ease-out) both; }
@keyframes lb-img { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.lb-stage img.is-out-next { opacity: 0; transform: translate3d(-2.5rem, 0, 0); transition-duration: .25s; }
.lb-stage img.is-out-prev { opacity: 0; transform: translate3d(2.5rem, 0, 0); transition-duration: .25s; }
.lb-stage img.is-in-next { opacity: 0; transform: translate3d(2.5rem, 0, 0); transition: none; }
.lb-stage img.is-in-prev { opacity: 0; transform: translate3d(-2.5rem, 0, 0); transition: none; }
.lb-foot { display: grid; gap: .9rem; padding: 1.1rem var(--gutter) 1.5rem; }
.lb-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 2rem; }
.lb-caption strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.125rem, 1.8vw, 1.5rem); }
.lb-caption span { font-size: .875rem; color: var(--on-dark-soft); }
.lb-progress { position: relative; height: 1px; background: var(--line-dark); }
.lb-progress i { position: absolute; inset: 0; background: var(--cream); transform: scaleX(var(--lp, 0)); transform-origin: left; transition: transform .7s var(--ease-out); }
.lb-btn { position: relative; isolation: isolate; overflow: hidden; display: inline-grid; place-items: center; min-width: 3rem; min-height: 3rem; padding: 0 1rem; background: none; border: 1px solid rgba(244, 237, 223, .35); border-radius: 2px; color: var(--cream); font-size: .9375rem; font-weight: 500; cursor: pointer; transition: color .4s, border-color .4s; }
.lb-btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--cream); transform: translateY(102%); transition: transform .5s var(--ease-out); }
.lb-btn:hover { color: var(--forest-deep); border-color: var(--cream); }
.lb-btn:hover::before { transform: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(8, 17, 12, .5); }
.lb-prev { left: var(--gutter); }
.lb-next { right: var(--gutter); }
.lightbox :focus-visible { outline-color: var(--cream); }
@media (max-width: 47.5em) { .lb-stage { padding: 0 var(--gutter); } .lb-nav { top: auto; bottom: .25rem; transform: none; } }

/* ---------- About ---------- */
.about-intro { row-gap: 3.5rem; align-items: start; }
.about-copy { grid-column: 1 / span 6; }
.about-copy .lede { color: var(--forest); margin-bottom: 2rem; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.32; }
.about-copy p + p { margin-top: 1.25rem; }
.about-media { grid-column: 8 / -1; position: relative; padding-bottom: 22%; }
.about-media .frame-b { position: absolute; left: -12%; bottom: 0; width: 58%; box-shadow: 0 0 0 .6rem var(--cream); z-index: 1; }
.facts { margin-top: 2.75rem; }
.facts div { position: relative; display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; font-size: .9375rem; color: var(--brown); }
.steps-wrap { position: relative; padding-top: 2.25rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: step; }
.steps-rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; color: rgba(244, 237, 223, .4); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--display); font-size: clamp(4rem, 8vw, 7.5rem); line-height: .85; letter-spacing: -.03em; margin-bottom: 1.5rem; color: #3f6f56; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: .6rem; color: var(--cream); }
.steps p { color: #dfe2d4; }
.pair { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(.75rem, 1.5vw, 1.25rem); align-items: end; }
.statement { row-gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); align-items: end; }
.statement h2 { grid-column: 1 / span 8; }
.statement p { grid-column: 9 / -1; color: var(--ink-soft); }
@media (max-width: 60em) {
  .about-copy, .about-media, .statement h2, .statement p { grid-column: 1 / -1; }
  .about-media { margin-left: 12%; }
  .steps { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* ---------- Contact ---------- */
.contact-grid { row-gap: 3.5rem; align-items: start; }
.contact-form-col { grid-column: 1 / span 7; }
.contact-info-col { grid-column: 9 / -1; }
@media (max-width: 60em) { .contact-form-col, .contact-info-col { grid-column: 1 / -1; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.5rem; }
.field { position: relative; display: grid; gap: .45rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 600; transition: color .3s; }
.field:focus-within label { color: var(--forest); }
.field .optional { font-weight: 400; color: var(--ink-soft); }
.field-control { position: relative; display: block; }
.field-control::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); pointer-events: none; }
.field:focus-within .field-control::after { transform: none; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 3.4rem; padding: .8rem 1rem; background: var(--cream-light); border: 1px solid #b9ab8c; border-radius: 2px; transition: border-color .3s, background-color .3s; }
.field textarea { min-height: 10rem; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23252822' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--forest); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); background-color: #fff; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: #9a2c1c; }
.field .error { font-size: .875rem; color: #9a2c1c; }
.field .error:empty { display: none; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-foot p { font-size: .9063rem; color: var(--ink-soft); }
.form-status { grid-column: 1 / -1; padding: 1.5rem 1.75rem; background: var(--forest); color: var(--cream); animation: status-in .8s var(--ease-out) both; }
@keyframes status-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.form-status[hidden] { display: none; }
.form-status h3 { font-family: var(--display); font-weight: 400; font-size: 1.85rem; line-height: 1.15; margin-bottom: .5rem; }
.form-status p + p { margin-top: .6rem; }
.form-status .demo-flag { display: inline-block; margin-bottom: .9rem; padding: .2rem .6rem; background: var(--cream); color: var(--forest-deep); font-size: .8125rem; font-weight: 600; border-radius: 2px; }
.form-status.is-error { background: #7d2416; }
.next-steps { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.next-steps h2 { font-family: var(--serif); font-weight: 400; font-size: 1.375rem; color: var(--forest); margin-bottom: 1rem; }
.next-steps ol { counter-reset: n; display: grid; gap: .65rem; max-width: 34rem; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 1.75rem 1fr; color: var(--ink-soft); }
.next-steps li::before { content: counter(n) "."; font-family: var(--serif); color: var(--brown); }
.info-block + .info-block { margin-top: 2.25rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
.info-block h2 { font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--brown); margin-bottom: .6rem; }
.info-phone { font-family: var(--display); font-size: clamp(2.4rem, 3.8vw, 3.3rem); line-height: 1.05; color: var(--forest); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.info-phone:hover { background-size: 100% 1px; }
.info-block address { font-style: normal; font-family: var(--serif); font-size: 1.1875rem; line-height: 1.45; margin-bottom: .6rem; }
.hours-table { width: 100%; border-collapse: collapse; font-size: .9688rem; }
.hours-table th, .hours-table td { padding: .55rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.is-today th, .hours-table tr.is-today td { font-weight: 600; color: var(--forest); }
.open-status { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .75rem; font-weight: 600; font-size: .9375rem; }
.open-status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #8a8f84; }
.open-status.is-open::before { background: #3f8f4f; }
.open-status:empty { display: none; }
.map { position: relative; height: clamp(22rem, 42vw, 36rem); background: var(--beige); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 35em) { .form { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ---------- Page transitions (same-origin navigations, where supported) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .4s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translate3d(0, -1.5rem, 0); } }
@keyframes vt-in { from { opacity: 0; transform: translate3d(0, 2rem, 0); } }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: var(--ease-in-out); }

/* ---------- Reduced motion: everything is simply shown ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal] > *, .js [data-reveal] img, .js [data-reveal] .line-in, .js .g-item, .js .g-item img, .js .principles li > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-split]:not(.is-split) { visibility: visible; }
  .js .stars .stars-fill { clip-path: inset(0 calc(100% - var(--pct, 92%)) 0 0); }
  .js .principles li::before, .js .principles li:last-child::after { transform: none; }
  .frame .px, .cta-media .px, .grow-frame .px { inset: 0; transform: none !important; }
  .grow-frame { clip-path: none; }
  .site-header.is-hidden { transform: none; }
}
