/* ========== Tokens ========== */
:root {
  --ink: #24201d;
  --ink-soft: #4d4642;
  --muted: #6f6762;
  /* Brand colour = the LIF logo's taupe (#7A706A) with white lettering */
  --forest: #7a706a;          /* brand surfaces: bands, panels, buttons (white text) */
  --forest-2: #5e5650;        /* brand-toned accent text on white */
  --forest-deep: #5e5650;     /* deeper shade: hero gradient, footer, hovers */
  --brand-ink: #f1ede8;       /* accent text on brand surfaces */
  --sage: #f6f3ef;            /* light accent on brand surfaces */
  --sage-soft: #f3f0ec;       /* pale taupe tint for alternate sections */
  --wood: #6e655f;            /* accent labels and links */
  --taupe: #8c8279;
  --olive: #6e655f;
  --white: #fefefe;
  --paper: #ffffff;
  --line: rgba(31, 28, 23, .1);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 14px;
  --r-lg: 26px;
  --shadow: 0 1px 2px rgba(31,28,23,.04), 0 12px 32px -12px rgba(31,28,23,.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.35rem; }
em { font-style: italic; font-weight: 500; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.tint { background: var(--sage-soft); }
.center-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.center-head p:last-child:not(.eyebrow) { color: var(--muted); }
.split-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.split-head h2 { margin: 0; max-width: 16ch; }
.split-head em, .why-copy em, .feature-copy em { color: var(--forest-2); }

.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); margin: 0 0 1em; }
.eyebrow--wood { color: var(--wood); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.7em; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: .9rem; letter-spacing: .01em; text-decoration: none;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn--forest { background: var(--forest); color: var(--white); }
.btn--forest:hover { background: var(--forest-deep); }
.btn--sage { background: var(--sage); color: var(--ink); }
.btn--sage:hover { background: var(--white); }
.btn--ghost { border-color: rgba(254,254,254,.35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--small { padding: .7em 1.2em; font-size: .82rem; }
.btn--block { width: 100%; }

.icon-badge {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  background: var(--sage-soft); color: var(--forest); flex: none;
}
.icon-badge svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.icon-badge--light { background: rgba(206,218,184,.14); color: var(--sage); width: 44px; height: 44px; }
.icon-badge--light svg { width: 22px; height: 22px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }

.ticks { list-style: none; padding: 0; margin: 1.4em 0 2em; }
.ticks li { position: relative; padding-left: 2em; margin-bottom: .65em; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2em; height: 1.2em; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1c17' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.ticks--light li { color: rgba(254,254,254,.85); }

/* ========== Header ========== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); transition: background .35s, color .35s, box-shadow .35s; }
.topbar { background: rgba(255,255,255,.28); font-size: .78rem; overflow: hidden; max-height: 40px; transition: max-height .35s, opacity .35s; }
.topbar-inner { display: flex; gap: 28px; align-items: center; height: 38px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; opacity: .88; white-space: nowrap; }
.topbar-item a { text-decoration: none; }
.topbar-item svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.topbar-item:last-child { margin-left: auto; }

.nav-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 14px; transition: padding .35s; }
.brand-stack { display: flex; flex-direction: column; align-items: center; gap: 12px; }
/* Logo: LIF monogram, short rule, spaced name – as on the logo artwork */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; color: inherit; }
.logo-mark { display: block; width: 63px; height: 60px; overflow: visible; transition: width .35s, height .35s; }
.logo-rule { display: block; width: 26px; height: 1px; background: currentColor; margin: 10px 0 8px; }
.logo-name { font-family: var(--serif); font-weight: 500; font-size: .64rem; letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; white-space: nowrap; }
.estimate-tab {
  display: inline-block; padding: .62em 1.1em; border-radius: 8px; background: var(--sage); color: var(--ink);
  font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transition: background .25s, transform .25s;
}
.estimate-tab:hover { background: var(--white); transform: translateY(-1px); }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); padding-top: 8px; }
.main-nav a { text-decoration: none; font-size: .9rem; font-weight: 600; position: relative; opacity: .92; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; border-radius: 2px; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.main-nav a:hover::after { transform: scaleX(1); }
.nav-cta { display: none; }
.menu-btn { display: none; }

.site-header.is-compact { background: rgba(254,254,254,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.is-compact .topbar { max-height: 0; opacity: 0; }
.is-compact .nav-row { align-items: center; padding-top: 12px; padding-bottom: 12px; }
.is-compact .brand-stack { flex-direction: row; align-items: center; gap: 18px; }
.is-compact .wordmark { flex-direction: row; gap: 12px; color: var(--forest); }
.is-compact .logo-mark { width: 42px; height: 40px; }
.is-compact .logo-rule { width: 1px; height: 26px; margin: 0; }
.is-compact .logo-name { font-size: .6rem; }
.is-compact .estimate-tab { background: var(--forest); color: var(--white); }
.is-compact .main-nav { padding-top: 0; }
.is-compact .main-nav a::after { background: var(--wood); }

/* ========== Hero ========== */
.hero { position: relative; height: 300vh; background: var(--forest-deep); color: var(--white); }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 78% 55%, rgba(146,107,71,.22), transparent 70%),
    linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 70%);
}
/* Full-screen 16:9 video with one quiet line of text over it */
.hero-media { position: absolute; inset: 0; }
.video-frame {
  position: relative; height: 100%; max-height: 1280px; aspect-ratio: 9 / 16;
  border-radius: var(--r-lg); overflow: hidden; background: #1f1c17;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(254,254,254,.08);
}
.hero .video-frame { position: absolute; inset: 0; height: 100%; width: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-shade { display: none; }
/* Soft shading: the top keeps the white menu readable, the bottom sits behind the tagline */
.hero .video-shade {
  display: block; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(48,43,39,.74) 0, rgba(48,43,39,.5) 150px, rgba(48,43,39,0) 300px),
    linear-gradient(0deg, rgba(48,43,39,.5) 0%, rgba(48,43,39,0) 30%);
}
.hero-caption { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(30px, 6vh, 56px); z-index: 2; pointer-events: none; }
.hero-tagline {
  margin: 0; font-weight: 500; font-size: clamp(1.25rem, 2.1vw, 1.9rem); line-height: 1.25; letter-spacing: .01em;
  color: rgba(254,254,254,.92); text-shadow: 0 1px 14px rgba(31,28,23,.55);
}
.hero-progress { width: 60%; height: 3px; border-radius: 3px; background: rgba(254,254,254,.15); margin-top: 16px; overflow: hidden; flex: none; }
.hero .hero-progress { position: absolute; left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; margin: 0; z-index: 2; }
.hero-progress span { display: block; height: 100%; background: var(--sage); transform-origin: left; transform: scaleX(0); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(30px, 6vh, 56px); z-index: 2; text-shadow: 0 1px 10px rgba(31,28,23,.6); margin: 0; writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; opacity: .7; display: flex; align-items: center; gap: 12px; transition: opacity .4s; }
.scroll-cue span { width: 1px; height: 44px; background: rgba(254,254,254,.3); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--white); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }
.scroll-cue.is-hidden { opacity: 0; }

/* ========== Facts band ========== */
.facts { background: var(--forest); color: var(--white); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid > div { padding: 30px 22px; text-align: center; border-right: 1px solid rgba(254,254,254,.12); }
.facts-grid > div:last-child { border-right: 0; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--sage); line-height: 1.2; }
.facts span { font-size: .85rem; color: rgba(254,254,254,.72); }

/* ========== About ========== */
.about-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; align-items: stretch; }
.about-card { background: var(--forest); color: rgba(254,254,254,.86); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); font-size: 1.06rem; line-height: 1.7; display: flex; flex-direction: column; justify-content: center; }
.about-card p:last-child { margin: 0; }
.about-photo { margin: 0; border-radius: var(--r); overflow: hidden; min-height: 380px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.about-photo:hover img { transform: scale(1.05); }

/* ========== Services ========== */
.service-slider { --per: 4; overflow: hidden; padding: 10px 0 44px; margin: -10px 0 -44px; touch-action: pan-y; }
.service-grid { display: flex; gap: 22px; will-change: transform; }
.service-grid .service { flex: 0 0 calc((100% - (var(--per) - 1) * 22px) / var(--per)); min-width: 0; }
.service { padding: 30px 24px; text-align: center; transition: transform .3s, box-shadow .3s; }
.service:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -20px rgba(31,28,23,.25); }
.service .icon-badge { margin-bottom: 18px; }
.service p { color: var(--muted); font-size: .93rem; margin: 0; }
/* Specialist services: two larger feature cards under the grid */
.specialist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.specialist { padding: clamp(26px, 3vw, 38px); border-top: 4px solid var(--forest); transition: transform .3s, box-shadow .3s; }
.specialist:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -20px rgba(31,28,23,.25); }
.specialist-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.specialist-head .eyebrow { margin-bottom: .35em; }
.specialist h3 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); margin: 0; }
.specialist > p { color: var(--ink-soft); font-size: .95rem; }
.specialist .ticks { margin: 1.1em 0 0; }
.specialist .ticks li { font-size: .92rem; }
.icon-badge--lg { width: 64px; height: 64px; border-radius: 16px; }
.icon-badge--lg svg { width: 36px; height: 36px; }

/* ========== Feature band ========== */
/* Pinned while you scroll; the walkthrough video scrubs forwards/backwards with the scroll */
.feature-band { position: relative; height: 260vh; background: var(--forest); color: var(--white); }
.feature-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.feature-grid { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: 96px; padding-bottom: 28px; }
.feature-copy h2 { max-width: 15ch; }
.feature-media { height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.feature-media .video-frame { height: calc(100% - 58px); }
.feature-caption { margin: 10px 0 0; font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-soft); }
.feature-copy em { color: var(--sage); }
.feature-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 18px; max-width: 30em; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list strong { display: block; font-size: 1rem; }
.feature-list span { font-size: .9rem; color: rgba(254,254,254,.72); }

.play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(254,254,254,.94); box-shadow: 0 6px 24px rgba(0,0,0,.3); transition: transform .3s; }
.play::after { content: ""; position: absolute; left: 23px; top: 18px; border-left: 17px solid var(--forest); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.tile:hover .play { transform: scale(1.08); }

/* ========== Case studies ========== */
.case-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 auto 40px; padding: 6px; background: var(--sage-soft); border-radius: 14px; width: fit-content; max-width: 100%; }
.case-tabs button { border: 0; background: transparent; padding: .75em 1.4em; border-radius: 10px; font-weight: 700; font-size: .9rem; color: var(--ink-soft); transition: background .25s, color .25s; }
.case-tabs button:hover { color: var(--forest); }
.case-tabs button[aria-selected="true"] { background: var(--forest); color: var(--white); box-shadow: var(--shadow); }

.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; animation: caseSlide .6s cubic-bezier(.22,.7,.2,1) both; }
.case-studies { overflow-x: clip; }
@keyframes caseSlide { from { opacity: 0; transform: translateX(70px); } to { opacity: 1; transform: none; } }
.case[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.case-copy { position: sticky; top: 110px; }
.case h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.case h3 em { display: block; color: var(--wood); font-size: .7em; margin-top: .2em; }
.case-copy p { color: var(--ink-soft); }
.case-copy p em { color: var(--forest-2); font-weight: 600; }
.case-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 24px; }
.case-meta div { background: var(--sage-soft); border-radius: 10px; padding: 12px 14px; }
.case-meta dt { font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); margin-bottom: 4px; }
.case-meta dd { margin: 0; font-size: .86rem; font-weight: 600; line-height: 1.35; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { position: relative; padding: 0; border: 0; background: var(--sage-soft); overflow: hidden; aspect-ratio: 9 / 16; border-radius: 12px; }
.tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.tile:hover img, .tile:hover video { transform: scale(1.05); }
.tile.is-extra { display: none; }
.tile.more-tile::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(31,28,23,.6); color: var(--white); font-family: var(--serif); font-size: 2rem; }

/* ========== Commercial ========== */
.commercial { background: var(--white); }
.comm-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); background: var(--forest); border-radius: var(--r-lg); overflow: hidden; color: var(--ink); }
.comm-intro-copy { padding: clamp(28px, 4.5vw, 60px); }
.comm-intro-copy h2 em { color: var(--brand-ink); }
.comm-intro-copy > p:not(.eyebrow) { color: var(--ink-soft); max-width: 36em; }
.comm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* Pinned while you scroll; the food hall video scrubs forwards/backwards with the scroll */
.comm-scrub { position: relative; height: 240vh; }
.comm-scrub .comm-intro { position: sticky; top: var(--comm-top, 92px); }  /* height follows the text; --comm-top set in script.js */
.comm-intro-media { position: relative; margin: 0; min-height: min(640px, calc(100vh - 140px)); min-height: min(640px, calc(100svh - 140px)); }
.comm-video-wrap { position: absolute; inset: 0; background: #1f1c17; }
.comm-video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comm-progress { position: absolute; left: 0; right: 0; bottom: 0; width: auto; margin: 0; border-radius: 0; background: rgba(255,255,255,.25); }
.comm-progress span { background: var(--white); }
.comm-intro-media figcaption { position: absolute; left: 16px; bottom: 18px; right: 16px; width: fit-content; max-width: calc(100% - 32px); background: rgba(254,254,254,.92); color: var(--ink); font-size: .78rem; font-weight: 600; padding: 8px 12px; border-radius: 8px; }

.comm-subhead { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: clamp(48px, 6vw, 72px) 0 22px; }
.sector-slider { --per: 4; overflow: hidden; padding: 6px 0 10px; margin: -6px 0 -10px; touch-action: pan-y; }
.sector-grid { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; will-change: transform; }
.sector-grid li { flex: 0 0 calc((100% - (var(--per) - 1) * 14px) / var(--per)); min-width: 0; }
.sector-grid li { background: var(--sage-soft); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 4px; transition: transform .3s, background .3s; }
.sector-grid li:hover { transform: translateY(-3px); background: #ebe6e1; }
.sector-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; margin-bottom: 10px; box-shadow: var(--shadow); }
.sector-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--forest-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sector-grid strong { font-size: .98rem; }
.sector-grid li > span:last-child { font-size: .84rem; color: var(--muted); }

.comm-services { margin-top: clamp(48px, 6vw, 72px); }
.comm-services-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 40px; align-items: baseline; margin-bottom: 24px; }
.comm-services-head .comm-subhead { margin: 0; }
.comm-services-head p { color: var(--muted); margin: 0; max-width: 42em; }
.comm-service-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.comm-group { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--forest); border-radius: var(--r); padding: clamp(22px, 2.6vw, 30px); box-shadow: var(--shadow); }
.comm-group h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin: 0 0 18px; display: flex; align-items: baseline; gap: 10px; }
.comm-group h4 span { font-family: var(--sans); font-size: .75rem; font-weight: 800; letter-spacing: .1em; color: var(--wood); }
.comm-group dl { margin: 0; display: grid; gap: 14px; }
.comm-group dt { font-weight: 700; font-size: .93rem; }
.comm-group dd { margin: 2px 0 0; color: var(--ink-soft); font-size: .87rem; line-height: 1.55; }

/* commercial work slider: 3 projects on show, the rest slide through */
.project-slider { position: relative; --per: 3; }
.project-viewport { overflow: hidden; padding: 8px 6px 40px; margin: -8px -6px -40px; touch-action: pan-y; }
.project-grid { display: flex; gap: 18px; will-change: transform; }
.project-card { flex: 0 0 calc((100% - (var(--per) - 1) * 18px) / var(--per)); min-width: 0; }
.ps-btn { position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 1.7rem; line-height: 1; display: grid; place-items: center; padding: 0 0 4px; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s, background .2s; }
.ps-btn:hover { transform: scale(1.08); background: var(--white); }
.ps-prev { left: -23px; }
.ps-next { right: -23px; }
.project-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -20px rgba(31,28,23,.28); }
.project-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sage-soft); }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.project-card:hover .project-media img { transform: scale(1.05); }
.project-count { position: absolute; left: 12px; top: 12px; background: rgba(31,28,23,.72); color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; }
.project-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.project-sector { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--wood); }
.project-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.project-text { font-size: .87rem; color: var(--ink-soft); line-height: 1.55; }
/* every card the same size: text box stretches to fill */
.project-body { flex: 1; }
.project-card--cta { justify-content: center; align-items: flex-start; gap: 10px; padding: clamp(24px, 3vw, 36px); background: var(--forest); border-color: var(--forest); color: var(--white); text-decoration: none; }
.project-card--cta .project-sector { color: var(--sage); }
.project-card--cta .project-title { font-size: 1.5rem; }
.project-card--cta .project-text { color: rgba(254,254,254,.88); font-size: .95rem; }
.project-card--cta .btn { margin-top: 12px; }

.inline-link { color: var(--wood); font-weight: 700; white-space: nowrap; }
.seg-row { display: inline-flex; padding: 4px; background: var(--sage-soft); border-radius: 12px; gap: 4px; }
.seg { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: .6em 1.3em; border-radius: 9px; font-weight: 700; font-size: .9rem; color: var(--ink-soft); transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--forest); color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--wood); outline-offset: 2px; }
.optional-tag { font-weight: 500; color: var(--muted); margin-left: 6px; font-size: .82rem; }

@media (max-width: 1080px) {
  .sector-slider { --per: 3; }
  .comm-service-groups { grid-template-columns: 1fr; }
  .project-slider { --per: 2; }
  .ps-prev { left: -10px; }
  .ps-next { right: -10px; }
}
@media (max-width: 900px) {
  .comm-intro { grid-template-columns: 1fr; }
  /* phones: copy first, then the video pins (sticky) and scrubs as you scroll past */
  .comm-scrub { height: auto; }
  .comm-scrub .comm-intro { position: static; height: auto; overflow: clip; }
  .comm-intro-media { height: 165vh; min-height: 0; }
  .comm-video-wrap { position: sticky; inset: auto; top: 76px; height: calc(100vh - 100px); height: calc(100svh - 100px); }
  .comm-services-head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sector-slider { --per: 2; }
  .sector-grid li { padding: 16px; }
  .project-slider { --per: 1; }
  .ps-btn { top: 0; margin-top: calc(37.5% - 23px); }
  .ps-prev { left: 8px; }
  .ps-next { right: 8px; }
}
/* Short screens (or zoomed-in browsers): compact the commercial panel so it fits under the menu while pinned */
@media (min-width: 901px) and (max-height: 820px) {
  .comm-intro-copy { padding: 30px 38px; }
  .comm-intro-copy .eyebrow { margin-bottom: .7em; }
  .comm-intro-copy h2 { font-size: clamp(1.9rem, 3.1vw, 2.5rem); margin-bottom: .35em; }
  .comm-intro-copy > p:not(.eyebrow) { font-size: .92rem; line-height: 1.55; margin-bottom: .7em; }
  .comm-actions { margin-top: 16px; }
  .comm-actions .btn { padding: .75em 1.3em; }
}
@media (min-width: 901px) and (max-height: 660px) {
  .comm-intro-copy { padding: 22px 30px; }
  .comm-intro-copy h2 { font-size: clamp(1.7rem, 2.8vw, 2.1rem); }
  .comm-intro-copy > p:not(.eyebrow) { font-size: .86rem; line-height: 1.5; }
}
/* ========== Reviews ========== */
.reviews-shell { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.reviews-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 18px; }
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track.is-auto { scroll-snap-type: none; }
.review { scroll-snap-align: start; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.review-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--sage); font-weight: 700; font-size: .95rem; flex: none; }
.review-name { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.review-where { font-size: .78rem; color: var(--muted); }
.stars { display: inline-flex; gap: 3px; line-height: 0; }
.star { width: 20px; height: 20px; fill: url(#goldStar); stroke: #b27a0f; stroke-width: .6; filter: drop-shadow(0 1px 1.5px rgba(178,122,15,.35)); }
.star--off { fill: #e6e1d6; stroke: none; filter: none; }
.review-head { position: relative; }
.review-src { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: #1877f2; display: grid; place-items: center; flex: none; }
.review-src svg { width: 16px; height: 16px; fill: #fff; }
.reviews-summary { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin-top: 4px; padding: 10px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; font-size: .9rem; color: var(--ink-soft); transition: transform .25s; }
.reviews-summary:hover { transform: translateY(-2px); }
.reviews-summary .star { width: 22px; height: 22px; }
.reviews-summary strong { color: var(--ink); }
.review p { margin: 0; color: var(--ink-soft); font-size: .92rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden; }
.review.is-open p { display: block; -webkit-line-clamp: unset; line-clamp: none; }
.review-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--wood); font-weight: 700; font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 1.5rem; line-height: 1; display: grid; place-items: center; transition: background .25s, color .25s; }
.round-btn--dark { background: var(--forest); color: var(--white); border-color: var(--forest); }
.round-btn:hover { background: var(--forest-deep); color: var(--white); }

/* ========== Why us ========== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.why-media { position: relative; aspect-ratio: 1 / 1; max-width: 540px; }
.why-a { position: absolute; left: 0; top: 0; width: 72%; height: 86%; object-fit: cover; border-radius: 200px 200px var(--r-lg) var(--r-lg); }
.why-b { position: absolute; right: 0; bottom: 0; width: 46%; height: 58%; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) 200px 200px; border: 8px solid var(--white); }
.why-badge { position: absolute; left: 50%; top: 8%; transform: translateX(-10%); background: var(--forest); color: var(--white); border-radius: 14px; padding: 12px 18px; font-size: .78rem; line-height: 1.2; box-shadow: var(--shadow); }
.why-badge strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--sage); }
.why-copy > p { color: var(--ink-soft); }

/* ========== Areas ========== */
.why + .areas { padding-top: 0; }  /* both white: avoid a double gap between them */
.area-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.area-grid li {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: .92rem; background: var(--paper);
}
.area-grid li::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a706a' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ========== Estimate ========== */
.estimate { padding-top: 0; scroll-margin-top: 80px; }
.estimate-shell { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(31,28,23,.35); border: 1px solid var(--line); padding: 0; }
.wrap.estimate-shell { max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.estimate-panel { background: var(--forest); color: var(--white); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.estimate-panel h2 em { color: var(--sage); }
.estimate-panel > p { color: rgba(254,254,254,.78); }
.estimate-panel img { border-radius: var(--r); aspect-ratio: 16 / 10; object-fit: cover; margin-top: auto; }
/* frame the island base and its border */
.estimate-panel img.estimate-photo { aspect-ratio: 4 / 5; object-position: 50% 70%; }
.estimate-direct { font-size: .88rem; margin: 18px 0 0; color: rgba(254,254,254,.78); }
.estimate-direct a { color: var(--sage); word-break: break-all; }

.estimate-form { background: var(--paper); padding: clamp(24px, 4vw, 48px); }
.estimate-form h3 { font-size: 1.6rem; margin-bottom: 22px; }
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 8px; padding: 0; }
.field label span { font-weight: 500; color: var(--muted); margin-left: 4px; }
.field input, .field textarea { width: 100%; padding: 13px 15px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--sage-soft); border: 1px solid transparent; border-radius: 10px; transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--forest); background: var(--paper); }
.field.has-error input, .field.has-error .choice-card { border-color: #b3261e; }
.error-msg { color: #b3261e; font-size: .8rem; margin: 6px 0 0; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.sqm-row { display: flex; gap: 14px; align-items: center; }
.sqm-row input { flex: 1; }
.link-btn { background: none; border: 0; padding: 0; color: var(--wood); font-weight: 700; font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.calc { margin-top: 12px; padding: 16px; background: var(--sage-soft); border-radius: 10px; font-size: .88rem; }
.calc p { margin-bottom: 10px; }
.calc-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.calc-row input { padding: 10px; background: var(--paper); font-size: .95rem; }
.calc-row output { font-weight: 700; min-width: 4.5em; text-align: right; }
.calc-row button { background: none; border: 0; color: var(--muted); font-size: 1.2rem; line-height: 1; padding: 4px; }
.calc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* Border length (linear metres), revealed when "Border" is chosen */
.border-length { margin-top: 14px; padding: 16px; background: var(--sage-soft); border-radius: 12px; animation: fadeUp .3s ease both; }
.border-length[hidden] { display: none; }
.border-length label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 8px; }
.border-length label span { font-weight: 500; color: var(--muted); margin-left: 4px; }
.unit-input { position: relative; }
.unit-input input { padding-right: 52px; background: var(--paper); }
.unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: .9rem; color: var(--muted); pointer-events: none; }
.field-hint { margin: 8px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-weight: 700; font-size: .92rem; transition: border-color .2s, background .2s, box-shadow .2s; }
.choice-card svg { width: 88px; height: 52px; fill: none; stroke: var(--wood); stroke-width: 1.4; }
.choice input:checked + .choice-card { border-color: var(--forest); background: var(--sage-soft); box-shadow: 0 0 0 1px var(--forest); }
.choice input:focus-visible + .choice-card { outline: 2px solid var(--wood); outline-offset: 2px; }

.form-status { margin: 14px 0 0; font-size: .9rem; min-height: 1.4em; }
.form-status.ok { color: var(--forest); }
.form-status.err { color: #b3261e; }
.estimate-form.is-sent .field, .estimate-form.is-sent .field-pair, .estimate-form.is-sent #submitBtn { display: none; }
.estimate-form.is-sent .form-status { font-family: var(--serif); font-size: 1.7rem; line-height: 1.25; color: var(--forest); }

/* ========== FAQ ========== */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; align-items: start; }
.faq-grid details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-grid details[open] { border-color: var(--forest); }
.faq-grid summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative; font-weight: 700; font-size: .98rem; }
.faq-grid details[open] summary { background: var(--forest); color: var(--white); }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; line-height: 1; }
.faq-grid details[open] summary::after { content: "−"; }
.faq-grid details p { margin: 0; padding: 16px 20px 20px; color: var(--ink-soft); font-size: .93rem; }

/* ========== Footer ========== */
.site-footer { background: var(--forest-deep); color: rgba(254,254,254,.72); padding: 72px 0 26px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.wordmark--light { color: var(--white); }
.site-footer .logo-mark { width: 84px; height: 80px; }
.site-footer .logo-name { font-size: .68rem; }
.footer-brand p { margin: 18px 0 22px; max-width: 26em; }
.site-footer h4 { color: var(--white); font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin: 0 0 16px; }
.site-footer .footer-grid > div > a:not(.btn):not(.wordmark), .site-footer .footer-grid > div > span { display: block; text-decoration: none; margin-bottom: 9px; word-break: break-word; }
.site-footer a:not(.btn):hover { color: var(--sage); }
.copyright { max-width: var(--wrap); margin: 56px auto 0; padding: 22px var(--gutter) 0; border-top: 1px solid rgba(254,254,254,.1); font-size: .8rem; }

/* ========== Lightbox ========== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(24,22,18,.96); display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.lightbox[hidden] { display: none; }
/* fixed places, so the photo stays in the wide middle column even when a project has one photo and the arrows are hidden */
.lb-prev { grid-column: 1; grid-row: 1; } .lb-stage { grid-column: 2; grid-row: 1; } .lb-next { grid-column: 3; grid-row: 1; }
.lb-stage { margin: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 0 24px; min-width: 0; }
.lb-media { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.lb-media img, .lb-media video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
#lbCaption { color: rgba(254,254,254,.8); font-size: .9rem; margin-top: 14px; text-align: center; padding: 0 12px; }
.lb-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: var(--white); font-size: 2.4rem; line-height: 1; padding: 6px 10px; z-index: 2; }
.lb-nav { background: none; border: 0; color: var(--white); font-size: 3rem; height: 100%; opacity: .7; }
.lb-nav:hover { opacity: 1; }

/* ========== Reveal ========== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ========== Responsive ========== */
@media (max-width: 1080px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card { grid-column: 1 / -1; }
  .about-photo { min-height: 260px; }
  .reviews-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .case, .why-grid, .estimate-shell, .feature-grid, .specialist-grid { grid-template-columns: 1fr; }
  .case-copy { position: static; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid > div:nth-child(2) { border-right: 0; }
  .facts-grid > div:nth-child(-n+2) { border-bottom: 1px solid rgba(254,254,254,.12); }
  /* Phones: copy first, then the portrait video pins (sticky) and scrubs as you scroll past */
  .feature-band { height: auto; }
  .feature-sticky { position: static; height: auto; overflow: visible; }
  .feature-grid { display: block; height: auto; padding-top: 64px; padding-bottom: 32px; }
  .feature-copy { padding-bottom: 32px; }
  .feature-media { display: block; height: 170vh; }
  .feature-media .video-frame { position: sticky; top: 78px; height: calc(100svh - 110px); max-height: none; width: auto; max-width: 100%; aspect-ratio: 9 / 16; margin: 0 auto; }
  .feature-media .hero-progress, .feature-caption { display: none; }
  .why-media { margin: 0 auto; width: 100%; }
  .faq-grid { grid-template-columns: 1fr; }
  .estimate-panel img { display: none; }

  /* Mobile hero: the whole 16:9 video across the screen, tagline underneath */
  .hero { height: 220vh; }
  .hero-sticky { display: flex; flex-direction: column; justify-content: center; padding-top: 96px; }
  .hero-media { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; flex: none; }
  .hero .video-shade { display: none; }
  .hero-caption { position: static; padding: 22px var(--gutter) 0; text-align: center; }
  .hero-tagline { font-size: clamp(1.2rem, 5.2vw, 1.6rem); text-shadow: none; }
  .scroll-cue { position: static; writing-mode: horizontal-tb; justify-content: center; margin: 22px 0 0; text-shadow: none; }
  .scroll-cue span { display: none; }
}

@media (max-width: 760px) {
  .topbar-hide-sm { display: none; }
  .topbar-item:first-child { margin: 0 auto; }
  .nav-row { padding-top: 14px; }
  .menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; border-radius: 12px; border: 0; background: rgba(254,254,254,.94); padding: 0 13px; position: relative; z-index: 2; }
  .menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .is-compact .menu-btn { background: var(--sage-soft); }
  .main-nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px; background: var(--white); padding: 0; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav a { color: var(--ink); font-family: var(--serif); font-size: 1.9rem; font-weight: 600; }
  .main-nav .nav-cta { display: inline-flex; font-family: var(--sans); font-size: .9rem; margin-top: 10px; padding: 1em 1.8em; border-radius: 10px; background: var(--forest); color: var(--white); }
  .is-compact .brand-stack { gap: 12px; }
  .is-compact .logo-mark { width: 38px; height: 36px; }
  .is-compact .logo-rule, .is-compact .logo-name { display: none; }
  .logo-mark { width: 52px; height: 50px; }
  .logo-name { font-size: .6rem; letter-spacing: .26em; }
  .is-compact .estimate-tab { font-size: .6rem; padding: .6em .8em; }

  .split-head { flex-direction: column; align-items: flex-start; }
  .about-grid { gap: 12px; }
  .about-photo { min-height: 290px; }
  .service-grid, .footer-grid { grid-template-columns: 1fr; }
  .case-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .case-tabs button { padding: .7em .6em; }
  .case-meta { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tile:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 5; }
  .reviews-shell { grid-template-columns: 1fr; }
  .reviews-shell .round-btn { display: none; }
  .reviews-track { grid-auto-columns: 84%; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .sqm-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .sqm-row .link-btn { align-self: flex-start; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .lb-nav { font-size: 2.2rem; }
}

/* ========== Brand colour (#7A706A, the logo's taupe) – white text on taupe surfaces ========== */
.topbar { background: rgba(0,0,0,.14); }
.icon-badge--light { background: rgba(255,255,255,.16); color: var(--white); }
.ticks li::before {
  background-color: var(--forest);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}
.ticks--light li { color: rgba(254,254,254,.95); }
.ticks--light li::before {
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e5650' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

.hero-sticky {
  background:
    radial-gradient(ellipse 70% 60% at 78% 55%, rgba(255,255,255,.10), transparent 70%),
    linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 75%);
}
.facts span { color: rgba(254,254,254,.9); }
.facts-grid > div { border-color: rgba(254,254,254,.18) !important; }
.about-card { color: var(--white); }
.feature-list span, .feature-caption { color: rgba(254,254,254,.9); }
.comm-intro { color: var(--white); }
.comm-intro-copy h2 em { color: var(--sage); }
.comm-intro-copy > p:not(.eyebrow) { color: rgba(254,254,254,.92); }
.seg input:checked + span { color: var(--white); }
.estimate-panel > p, .estimate-direct { color: rgba(254,254,254,.92); }
.site-footer { color: rgba(254,254,254,.85); }
.site-footer a:not(.btn):hover { color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span::after { animation: none; }
  .case { animation: none; }
}

/* ========== Video frames: fixed column width on desktop ==========
   Safari can't size a grid column from a child's aspect-ratio + percentage height, so the
   portrait frame overflowed the window. Width is set from the screen height instead. */
@media (min-width: 901px) {
  .feature-media { width: min(40vw, calc((100vh - 182px) * 9 / 16)); width: min(40vw, calc((100svh - 182px) * 9 / 16)); }
  .feature-media .video-frame { width: 100%; height: auto; aspect-ratio: 9 / 16; flex: none; }
}
/* Mid-size screens: just the monogram in the scrolled menu bar, so the links don't wrap */
@media (min-width: 761px) and (max-width: 1180px) {
  .is-compact .logo-rule, .is-compact .logo-name { display: none; }
}


/* Commercial intro: text-only panel (heading and buttons left, copy right) */
.comm-intro--text { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: auto 1fr; gap: 8px clamp(32px, 6vw, 88px); padding: clamp(30px, 5vw, 68px); align-items: start; }
.comm-intro--text .comm-intro-head { grid-column: 1; grid-row: 1; }
.comm-intro--text .comm-intro-head h2 { margin-bottom: 0; }
.comm-intro--text .comm-intro-head h2 em { color: var(--sage); }
.comm-intro--text .comm-actions { grid-column: 1; grid-row: 2; align-self: end; margin-top: 22px; }
.comm-intro--text .comm-intro-body { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid rgba(254,254,254,.22); }
.comm-intro--text .comm-intro-body p { margin: 0 0 1em; color: rgba(254,254,254,.92); font-size: 1.02rem; line-height: 1.7; }
.comm-intro--text .comm-intro-body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .comm-intro--text { grid-template-columns: 1fr; grid-template-rows: auto; gap: 18px; }
  .comm-intro--text .comm-intro-head, .comm-intro--text .comm-intro-body, .comm-intro--text .comm-actions { grid-column: 1; grid-row: auto; }
  .comm-intro--text .comm-intro-body { padding-left: 0; border-left: 0; }
  .comm-intro--text .comm-actions { margin-top: 4px; }
}

/* Services slider: how many boxes show at once */
@media (max-width: 1080px) { .service-slider { --per: 3; } }
@media (max-width: 820px)  { .service-slider { --per: 2; } }
@media (max-width: 560px)  { .service-slider { --per: 1; } }

/* The two larger service boxes ride in the same slider, two slots wide */
.service-grid .specialist { flex: 0 0 calc(((100% - (var(--per) - 1) * 22px) / var(--per)) * 2 + 22px); min-width: 0; margin: 0; }
.service-grid .service { display: flex; flex-direction: column; justify-content: center; align-items: center; }
@media (max-width: 560px) { .service-grid .specialist { flex-basis: 100%; } }

/* Upright phones: the tall (9:16) home video fills the screen, tagline over the bottom of it */
@media (max-width: 900px) and (orientation: portrait) {
  .hero-sticky { display: block; padding-top: 0; }
  .hero-media { position: absolute; inset: 0; width: auto; aspect-ratio: auto; }
  .hero .video-shade { display: block; }
  .hero-caption { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 72px; padding: 0; text-align: center; }
  .hero-tagline { text-shadow: 0 1px 14px rgba(31,28,23,.6); }
  .scroll-cue { position: absolute; left: 0; right: 0; bottom: 30px; margin: 0; text-shadow: 0 1px 10px rgba(31,28,23,.6); }
}

/* Local service areas: continuous slider, 4 boxes showing */
.area-slider { --per: 4; overflow: hidden; touch-action: pan-y; }
.area-grid { display: flex; gap: 12px; will-change: transform; }
.area-grid li { flex: 0 0 calc((100% - (var(--per) - 1) * 12px) / var(--per)); min-width: 0; }
@media (max-width: 1080px) { .area-slider { --per: 3; } }
@media (max-width: 760px)  { .area-slider { --per: 2; } }

/* Phone menu: the blurred bar would trap the full-screen menu inside itself once scrolled, so no blur here */
@media (max-width: 760px) {
  .site-header.is-compact { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(254,254,254,.98); }
  .main-nav { height: 100vh; height: 100dvh; bottom: auto; overflow-y: auto; }
}

/* Phones only: the four facts under the home video glide in a continuous loop, two showing */
@media (max-width: 760px) {
  .facts { overflow: hidden; touch-action: pan-y; }
  .facts-grid { display: flex; padding-left: 0; padding-right: 0; will-change: transform; }
  .facts-grid > div { flex: 0 0 50%; min-width: 0; border-bottom: 0 !important; border-right: 1px solid rgba(254,254,254,.18) !important; }
}
/* Phones only: the three specialist commercial service steps glide side to side in a loop */
@media (max-width: 760px) {
  .comm-step-slider { overflow: hidden; padding: 6px 0 40px; margin: -6px calc(var(--gutter) * -1) -40px; touch-action: pan-y; }
  .comm-service-groups { display: flex; gap: 14px; will-change: transform; }
  .comm-service-groups .comm-group { flex: 0 0 82%; min-width: 0; opacity: 1; transform: none; }
}

/* Recent projects: boxes on a continuous slider, 3 on show, each with its main photo underneath */
.case-slider { --per: 3; overflow: hidden; padding: 8px 6px 44px; margin: -8px -6px -44px; touch-action: pan-y; }
.case-grid { display: flex; gap: 18px; will-change: transform; }
.case-grid .case { display: flex; flex-direction: column; gap: 0; flex: 0 0 calc((100% - (var(--per) - 1) * 18px) / var(--per)); min-width: 0; animation: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; box-shadow: var(--shadow); }
.case-grid .case-copy { position: static; flex: 1; padding: 24px 22px 20px; }
.case-grid .case h3 { font-size: 1.5rem; }
.case-grid .case-meta { grid-template-columns: 1fr; gap: 6px; margin: 16px 0; }
.case-grid .case-meta div { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; }
.case-grid .case-meta dt { flex: 0 0 68px; margin: 0; }
.case-grid .case-copy p { font-size: .89rem; line-height: 1.6; margin: 0; }
.case-grid .case-copy p ~ p { display: none; }
.case-grid .gallery { display: block; position: relative; }
.case-grid .tile { display: none; }
.case-grid .tile:first-child { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 0; }
.case-grid .gallery[data-count]::after { content: attr(data-count); position: absolute; left: 12px; top: 12px; background: rgba(31,28,23,.72); color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; pointer-events: none; }
@media (max-width: 1080px) { .case-slider { --per: 2; } }
@media (max-width: 760px) { .case-slider { --per: 1; } .case-grid .case { flex-basis: 86%; } }
/* Desktop: project boxes drawn like the phone ones, scaled up (bigger text, taller photo) */
@media (min-width: 761px) {
  .case-grid .case-copy { padding: 30px 28px 26px; }
  .case-grid .case h3 { font-size: 1.9rem; }
  .case-grid .case-meta { gap: 8px; margin: 20px 0; }
  .case-grid .case-meta div { padding: 11px 15px; gap: 12px; }
  .case-grid .case-meta dt { flex-basis: 84px; font-size: .72rem; }
  .case-grid .case-meta dd { font-size: 1rem; }
  .case-grid .case-copy p { font-size: 1.05rem; line-height: 1.65; }
}
/* Phones: smaller service boxes (the next one peeks in at the side) */
@media (max-width: 560px) {
  .service-grid { gap: 14px; }
  .service-grid .service { flex-basis: 64%; padding: 22px 18px; }
  .service-grid .service .icon-badge { margin-bottom: 12px; transform: scale(.85); }
  .service-grid .service h3 { font-size: 1.15rem; }
  .service-grid .service p { font-size: .86rem; }
  .service-grid .specialist { flex-basis: 80%; padding: 20px 18px; }
  .service-grid .specialist-head { gap: 12px; margin-bottom: 10px; }
  .service-grid .specialist h3 { font-size: 1.25rem; }
  .service-grid .specialist > p { font-size: .86rem; }
  .service-grid .specialist .ticks { margin-top: .8em; }
  .service-grid .specialist .ticks li { font-size: .84rem; }
}
@media (max-width: 560px) {
  .service-grid { align-items: center; }
  .service-grid .specialist { flex-basis: 86%; }
}
/* Phones: every service box the same size (the two bigger ones drop their tick lists to fit) */
@media (max-width: 560px) {
  .service-grid { align-items: stretch; }
  .service-grid .service, .service-grid .specialist { flex-basis: 72%; }
  .service-grid .specialist { display: flex; flex-direction: column; justify-content: center; }
  .service-grid .specialist .ticks { display: none; }
  .service-grid .specialist > p { margin: 0; }
}
/* Phones: smaller recent-project boxes, all the same size */
@media (max-width: 760px) {
  .case-grid { gap: 14px; }
  .case-grid .case { flex-basis: 72%; }
  .case-grid .case-copy { padding: 18px 16px 16px; }
  .case-grid .case h3 { font-size: 1.25rem; }
  .case-grid .case-meta { gap: 5px; margin: 12px 0; }
  .case-grid .case-meta div { padding: 6px 10px; gap: 8px; }
  .case-grid .case-meta dt { flex-basis: 58px; font-size: .58rem; }
  .case-grid .case-meta dd { font-size: .78rem; }
  .case-grid .case-copy p { font-size: .82rem; line-height: 1.55; }
  .case-grid .tile:first-child { aspect-ratio: 1 / 1; }
}
/* Phones: smaller commercial-work boxes, all the same size */
@media (max-width: 760px) {
  .project-grid { gap: 14px; }
  .project-card { flex-basis: 72%; }
  .project-body { padding: 14px 16px 18px; gap: 5px; }
  .project-sector { font-size: .6rem; }
  .project-title { font-size: 1.05rem; }
  .project-text { font-size: .82rem; }
  .project-card--cta { padding: 20px 18px; }
  .project-card--cta .project-title { font-size: 1.2rem; }
  .project-card--cta .project-text { font-size: .84rem; }
  .ps-btn { margin-top: calc(27% - 23px); }
}
/* Phones: smaller customer review boxes, all the same size */
@media (max-width: 760px) {
  .reviews-track { grid-auto-columns: 72%; gap: 14px; }
  .review { padding: 18px 16px; gap: 10px; }
  .review-name { font-size: .88rem; }
  .review p { font-size: .84rem; -webkit-line-clamp: 6; line-clamp: 6; }
  .review.is-open p { -webkit-line-clamp: unset; line-clamp: none; }
}
