/* Yoerger Renovations - site.css
   Layout: an asymmetric split hero (copy left, the whole room photo right, never cropped), a photo bento for
   services, a masonry gallery, a scroll-drawn process line; condensed display type flush-left on a sage-tinted
   plaster ground; a brass tape measure along the top is the scroll indicator.
   Color rule: forest green is the single accent (every button, link and active state). Brass comes from the gold
   rules in Ryan's logo and is ornament only (tape measure, corner brackets, rules), never a button.
   Shape rule: buttons, cards, photos and inputs use --r (6px); filters, tags and chips are full pills. */

@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-var.woff2") format("woff2"); font-weight: 600 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #F2F3EB;
  --bg-2: #E7EADD;
  --bg-3: #D9DFCC;
  --fg: #172218;
  --muted: #56665A;
  --green: #2E5A2A;
  --green-deep: #1F3F1E;
  --green-ink: #F4F6EC;
  --link: #245021;
  --accent-text: #2E5A2A;
  --eyebrow: #6F5A1E;
  --brass: #C6A24A;
  --line: rgba(23, 34, 24, .14);
  --line-strong: rgba(23, 34, 24, .3);
  --card: #FCFCF8;
  --plate: #F7F7F2;
  --hero-fg: #F4F6EC;
  --hero-muted: rgba(244, 246, 236, .8);
  --foot-bg: #15301A;
  --foot-fg: #EEF1E6;
  --foot-muted: rgba(238, 241, 230, .7);
  --tape: #E9C65E;
  --tape-ink: #2B2410;
  --logo-green: block;   /* Ryan's green mark, for light surfaces */
  --logo-cream: none;    /* cream reverse of the mark, for dark surfaces */
  --ok: #2E7D4F;
  --shadow: 0 18px 44px rgba(23, 34, 24, .13);
  --shadow-sm: 0 4px 14px rgba(23, 34, 24, .09);
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, "Helvetica Neue", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --r: 6px;
  --pill: 999px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head-h: 72px;
  --tape-h: 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E170F; --bg-2: #152017; --bg-3: #1D2B1F; --fg: #EEF1E6; --muted: #A6B2A4;
    --green: #3D7A38; --green-deep: #2A5527; --green-ink: #F4F6EC; --link: #9BCB8B;
    --accent-text: #9BCB8B; --eyebrow: #E3C97C; --brass: #D6B25A;
    --line: rgba(238, 241, 230, .14); --line-strong: rgba(238, 241, 230, .3);
    --card: #152017; --foot-bg: #0A120B;
    --shadow: 0 18px 44px rgba(0, 0, 0, .45); --shadow-sm: 0 4px 14px rgba(0, 0, 0, .35);
    --logo-green: none; --logo-cream: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E170F; --bg-2: #152017; --bg-3: #1D2B1F; --fg: #EEF1E6; --muted: #A6B2A4;
  --green: #3D7A38; --green-deep: #2A5527; --green-ink: #F4F6EC; --link: #9BCB8B;
  --accent-text: #9BCB8B; --eyebrow: #E3C97C; --brass: #D6B25A;
  --line: rgba(238, 241, 230, .14); --line-strong: rgba(238, 241, 230, .3);
  --card: #152017; --foot-bg: #0A120B;
  --shadow: 0 18px 44px rgba(0, 0, 0, .45); --shadow-sm: 0 4px 14px rgba(0, 0, 0, .35);
  --logo-green: none; --logo-cream: block;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + var(--tape-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--fg); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brass); color: var(--tape-ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: var(--green-ink); padding: .6rem 1rem; border-radius: var(--r); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); }
.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; }
.display { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: .92; letter-spacing: .005em; }
.eyebrow {
  font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--eyebrow); display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--brass); flex: none; }
h1.eyebrow { font-weight: 500; }   /* the small kicker line is the real H1 on every page */
.lede { font-size: 1.15rem; line-height: 1.55; color: var(--muted); max-width: 58ch; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 1em; }

/* section rhythm: one focused message per section, headline over body, never a split header */
.sec { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.sec-alt { background: var(--bg-2); }
.sec-head { display: grid; gap: 1rem; justify-items: start; max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); }

/* buttons */
.btn {
  --btn-bg: var(--green); --btn-fg: var(--green-ink);
  display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.35rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid transparent; border-radius: var(--r);
  font-weight: 600; font-size: .98rem; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), background .25s, box-shadow .3s var(--ease), color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--btn-fg); }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { --btn-bg: var(--bg-2); }
.btn-ghost-light { --btn-bg: rgba(244, 246, 236, .08); --btn-fg: var(--hero-fg); border-color: rgba(244, 246, 236, .45); }
.btn-ghost-light:hover { --btn-bg: rgba(244, 246, 236, .16); }
.btn-sm { padding: .6rem .95rem; font-size: .9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* copy button */
.copy {
  font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--pill); padding: .35rem .75rem; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.copy:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.copy.is-done { background: var(--ok); color: var(--green-ink); border-color: var(--ok); }

/* ---------- tape measure: scroll progress drawn by CSS scroll-driven animation (no scroll listeners) ---------- */
@property --ft { syntax: "<integer>"; inherits: true; initial-value: 0; }
@property --inch { syntax: "<integer>"; inherits: true; initial-value: 0; }
.tape { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding-top: env(safe-area-inset-top, 0px); pointer-events: none; display: none; }
@supports (animation-timeline: scroll()) {
  .tape { display: block; }
  .tape-strip { height: var(--tape-h); background: var(--bg-3); position: relative; overflow: hidden; }
  .tape-fill {
    position: absolute; inset: 0; background: var(--tape);
    background-image:
      repeating-linear-gradient(90deg, transparent 0 15px, var(--tape-ink) 15px 16px),
      repeating-linear-gradient(90deg, transparent 0 63px, var(--tape-ink) 63px 65px);
    background-size: 100% 3px, 100% 6px; background-repeat: repeat-x; background-position: 0 100%, 0 100%;
    clip-path: inset(0 100% 0 0);
    animation: tape-fill linear both; animation-timeline: scroll(root block);
  }
  .tape-read {
    position: absolute; top: calc(var(--tape-h) + env(safe-area-inset-top, 0px)); right: 12px;
    font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em; background: var(--tape); color: var(--tape-ink);
    padding: .1rem .45rem; border-radius: 0 0 3px 3px; white-space: nowrap; min-width: 3.4rem; text-align: center;
    counter-reset: ft var(--ft) inch var(--inch);
    animation: tape-ft steps(25, jump-end) both, tape-in steps(12, jump-none) 25 both;
    animation-timeline: scroll(root block), scroll(root block);
  }
  .tape-read::after { content: counter(ft) "\2032  " counter(inch) "\2033"; }
  @media (max-width: 1023px) { .tape-read { display: none; } }
}
@keyframes tape-fill { to { clip-path: inset(0 0 0 0); } }
@keyframes tape-ft { from { --ft: 0; } to { --ft: 25; } }
@keyframes tape-in { from { --inch: 0; } to { --inch: 11; } }

/* ---------- header (72px row + 8px tape = 80px) ---------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding-top: var(--tape-h);
  transition: box-shadow .3s;
}
.site-head.is-scrolled { box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }
.head-row { display: flex; align-items: center; gap: 1.5rem; height: var(--head-h); transition: height .3s var(--ease); }
.site-head.is-scrolled .head-row { height: 64px; }
.brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand-logo { height: 56px; width: auto; transition: height .3s var(--ease); }
.brand-logo-green { display: var(--logo-green); }
.brand-logo-cream { display: var(--logo-cream); }
.site-head.is-scrolled .brand-logo { height: 48px; }
.nav { display: none; gap: 1.6rem; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; padding-block: .3rem; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brass); transition: right .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after, .nav a.is-active::after { right: 0; }
.head-cta { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; gap: .5rem; background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: .55rem .8rem; cursor: pointer; font-weight: 600; font-size: .9rem;
}
.menu-btn .bars { width: 18px; height: 12px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn .bars::before { top: 0; } .menu-btn .bars::after { top: 10px; }
.menu-btn[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 5px; transform: rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); padding-block: .6rem 1.2rem; background: var(--bg); color: var(--fg); }
.mobile-nav a { display: block; padding: .75rem 0; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; text-transform: uppercase; text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav .cta-row { margin-top: 1rem; }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .head-cta { display: inline-flex; }
  .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- hero: asymmetric split, copy left, the room photo right ---------- */
.hero { padding-block: clamp(1.5rem, 4vw, 3.25rem) clamp(3rem, 6vw, 4.5rem); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; justify-items: start; min-width: 0; }
.hero-title { font-size: clamp(2.6rem, 10.6vw, 4.6rem); color: var(--fg); line-height: .92; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .05em; white-space: nowrap; }
.hero-title .line-in { display: block; }
.js .hero-title .line-in { animation: rise .9s var(--ease) both; }
.js .hero-title .line:nth-child(2) .line-in { animation-delay: .1s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
.rot { display: inline-grid; grid-template-areas: "w"; justify-items: start; color: var(--accent-text); vertical-align: top; }
.rot .word { grid-area: w; transition: opacity .55s var(--ease), transform .55s var(--ease); opacity: 0; transform: translateY(.3em); }
.rot .word.is-on { opacity: 1; transform: none; }
.rot .word.is-out { opacity: 0; transform: translateY(-.3em); }
.hero-lede { font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.55; color: var(--muted); max-width: 36ch; }
.hero-media { display: grid; gap: .75rem; min-width: 0; }
.hero-frame { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; background: var(--bg-3); }
/* photos shown whole: 4:3 shots fill a 4:3 frame exactly, tall ones sit over a blurred copy of themselves */
.fit { position: relative; overflow: hidden; background: var(--bg-3); }
.fit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fit.is-tall .fit-img { object-fit: contain; }
.fit-fill { filter: blur(26px) brightness(.5) saturate(1.15); transform: scale(1.2); }
/* the next room wipes in over the last one and settles, ending uncropped */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease .5s; }
.hero-slide.is-on { opacity: 1; z-index: 1; transition: none; }
/* the first photo shows at once (it is the largest thing on screen, so it should paint first); later rooms wipe in */
.hero-frame.did-swap .hero-slide.is-on { animation: unveil 1.1s var(--ease) both; }
.hero-frame.did-swap .hero-slide.is-on .fit-img { animation: settle 1.6s var(--ease) both; }
@keyframes unveil { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
.hero-frame::before, .hero-frame::after { content: ""; position: absolute; z-index: 2; width: 26px; height: 26px; border: 3px solid var(--brass); pointer-events: none; }
.hero-frame::before { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.hero-frame::after { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.hero-cap { font-size: .92rem; color: var(--muted); min-height: 1.5em; transition: opacity .35s ease; }
.hero-cap.is-swapping { opacity: 0; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 5vw, 4.5rem); }
  .hero-title { font-size: clamp(3.2rem, 4.9vw, 4.6rem); }
  /* stays 4:3 and inside the column; on short screens it narrows so the whole photo fits under the header */
  .hero-media { width: min(100%, max(22rem, calc((100svh - var(--head-h) - var(--tape-h) - 9rem) * 4 / 3))); justify-self: end; }
}

/* ---------- room-by-room video: heading left, player right; nothing downloads until play ---------- */
.tour-grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.tour-video { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: var(--bg-3); box-shadow: var(--shadow); }
.tour-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* while it plays muted on its own, one tap turns the sound on */
.tour-sound {
  position: absolute; top: .75rem; right: .75rem; z-index: 1; min-height: 40px; padding: .5rem 1rem;
  border: 1px solid rgba(244, 246, 236, .35); border-radius: var(--pill); background: rgba(14, 23, 15, .78); color: #F4F6EC;
  font: 600 .875rem/1 var(--font-body); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tour-sound:hover { background: rgba(14, 23, 15, .95); }
@media (min-width: 900px) {
  .tour-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; }
  .tour-grid .sec-head { margin-bottom: 0; }
}

/* ---------- services: photo bento, exactly one cell per service ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.b-tile {
  display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.b-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--fg); }
.b-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); min-height: 0; }
.b-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.b-tile:hover .b-media img { transform: scale(1.05); }
.b-cap { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: .95rem 1.15rem 1.05rem; }
.b-name { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; text-transform: uppercase; line-height: 1; }
.b-short { color: var(--muted); font-size: .94rem; line-height: 1.45; margin-top: .35rem; max-width: 40ch; }
.b-cap .ico { color: var(--accent-text); margin-bottom: .2rem; transition: transform .35s var(--ease); }
.b-tile:hover .b-cap .ico { transform: translateX(4px); }
.b-handy { background: var(--green-deep); color: var(--green-ink); border-color: transparent; }
.b-handy:hover { color: var(--green-ink); }
.b-copy { padding: 1.5rem 1.6rem; display: grid; gap: .75rem; align-content: center; }
.b-handy h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3vw, 2.6rem); line-height: .95; text-transform: uppercase; color: var(--green-ink); }
.b-handy p { color: rgba(244, 246, 236, .86); max-width: 44ch; }
.b-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.b-handy:hover .b-link .ico { transform: translateX(4px); }
.b-link .ico { transition: transform .35s var(--ease); }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "s s" "b d" "k l" "h h"; }
  .bt-k { grid-area: k; } .bt-b { grid-area: b; } .bt-s { grid-area: s; } .bt-d { grid-area: d; } .bt-l { grid-area: l; } .bt-h { grid-area: h; }
  .b-handy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .b-handy .b-media { aspect-ratio: auto; height: 100%; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 250px 250px 270px; grid-template-areas: "s s b d" "s s k d" "l h h h"; }
  .b-tile:not(.b-handy) .b-media { flex: 1 1 auto; aspect-ratio: auto; }
  .bt-b .b-short, .bt-k .b-short, .bt-l .b-short, .bt-d .b-short { display: none; }
  .bt-s .b-name { font-size: 2.2rem; }
}

/* ---------- work: filterable masonry (photos keep their own shape) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.work-chips { margin-bottom: 1.5rem; }
.chip {
  font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line-strong); background: transparent; border-radius: var(--pill); padding: .5rem .9rem; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.chip:hover { transform: translateY(-1px); border-color: var(--fg); }
.chip:active { transform: translateY(1px) scale(.98); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip .n { opacity: .65; margin-left: .35rem; }
.masonry { columns: 1; column-gap: 1rem; }
.masonry .tile { break-inside: avoid; margin: 0 0 1rem; display: block; }
.masonry .tile img, .masonry .tile-btn { height: auto; }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.work-more { margin-top: 1.5rem; display: flex; justify-content: center; }

/* shared photo tile (masonry here, dense grid on the gallery and service pages) */
.work-tools { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; }
.grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); grid-auto-rows: 230px; grid-auto-flow: dense; }
.tile { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg-3); min-width: 0; }
.tile.tall { grid-row: span 2; }
@media (min-width: 640px) { .tile.wide { grid-column: span 2; } }
.tile-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem .95rem .85rem; display: grid; gap: .2rem; pointer-events: none;
  color: var(--hero-fg); background: linear-gradient(180deg, rgba(14, 23, 15, 0) 0%, rgba(14, 23, 15, .78) 100%);
  transform: translateY(6px); opacity: 0; transition: transform .45s var(--ease), opacity .45s;
}
.tile:hover .tile-cap, .tile:focus-within .tile-cap { transform: none; opacity: 1; }
@media (hover: none) { .tile-cap { transform: none; opacity: 1; } }
.tile-cat { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.tile-title { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.tile::before, .tile::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--brass); pointer-events: none; opacity: 0; transition: opacity .3s, transform .4s var(--ease); z-index: 2;
}
.tile::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; transform: translate(-6px, -6px); }
.tile::after { top: 10px; right: 10px; border-left: 0; border-bottom: 0; transform: translate(6px, -6px); }
.tile:hover::before, .tile:hover::after, .tile:focus-within::before, .tile:focus-within::after { opacity: 1; transform: none; }
.tile.is-hidden { display: none; }
.grid-empty { padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r); }

/* before / after (used when a photo has a matching "(before)" file) */
.ba { position: relative; --pos: 50%; height: 100%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--brass); transform: translateX(-1px); pointer-events: none; }
.ba-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: var(--brass); color: var(--tape-ink); display: grid; place-items: center; font-size: .9rem; font-weight: 700; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-tag { position: absolute; top: 10px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(14, 23, 15, .7); color: var(--hero-fg); padding: .25rem .5rem; font-size: .75rem; border-radius: 3px; pointer-events: none; }
.ba-tag.before { left: 10px; } .ba-tag.after { right: 10px; }

/* ---------- process: a brass line that draws as the section scrolls through (CSS view timeline) ---------- */
.steps { position: relative; display: grid; gap: 2rem; margin-top: clamp(1rem, 3vw, 2rem); view-timeline: --steps block; }
.steps::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--brass); transform-origin: top; }
.step { position: relative; padding-left: 2.6rem; display: grid; gap: .5rem; min-width: 0; }
.step-node {
  position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong);
  transition: background .4s, border-color .4s, transform .5s var(--ease); z-index: 1;
}
.step.is-done .step-node { background: var(--green); border-color: var(--green); transform: scale(1.15); }
.step h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; text-transform: uppercase; line-height: 1; }
.step p { color: var(--muted); font-size: .98rem; line-height: 1.55; max-width: 34ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.75rem; }
  .steps::before, .steps::after { left: 10px; right: 10px; top: 9px; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform-origin: left; }
  .step { padding-left: 0; padding-top: 2.6rem; }
  .step-node { top: 0; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::after { animation: line-down linear both; animation-timeline: --steps; animation-range: entry 35% cover 55%; }
  }
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
    .steps::after { animation-name: line-across; }
  }
}
@keyframes line-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes line-across { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-photo { position: relative; max-width: 400px; width: 100%; justify-self: center; display: grid; gap: .9rem; }
.about-img { position: relative; }
.about-img::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--brass); border-radius: var(--r); }
.about-img img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--r); filter: grayscale(1) contrast(1.05); }
.about-photo figcaption { font-size: .92rem; color: var(--muted); padding-top: .6rem; }
.about-copy { display: grid; gap: 1.1rem; max-width: 60ch; }
.about-copy h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.about-copy p { font-size: 1.1rem; }
.values { display: grid; gap: .85rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: .6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.values li { display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.values .ico { color: var(--accent-text); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; }
  .about-photo { justify-self: start; }
}

/* ---------- kind words ---------- */
.quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; display: grid; gap: .9rem; }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.quote cite { font-style: normal; font-weight: 600; font-size: .92rem; color: var(--muted); }

/* ---------- areas: one chip per town, home base filled ---------- */
.area-chips { display: flex; flex-wrap: wrap; gap: .55rem; max-width: 64rem; }
.area-chips li { font-size: .95rem; padding: .5rem .95rem; border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--card); transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.area-chips li:hover { border-color: var(--fg); transform: translateY(-2px); }
.area-chips li.is-home { background: var(--green); color: var(--green-ink); border-color: var(--green); font-weight: 600; }
.areas-note { margin-top: 1.4rem; color: var(--muted); font-size: .95rem; max-width: 62ch; }

/* ---------- planner ---------- */
.plan-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1024px) {
  .plan-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3.5rem; }
  .plan-grid .sec-head { position: sticky; top: calc(var(--head-h) + var(--tape-h) + 2rem); margin-bottom: 0; }
}
.planner { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.planner-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); background: var(--bg-2); flex-wrap: wrap; }
.planner-step { font-weight: 600; font-size: .9rem; color: var(--muted); }
.planner-prog { display: flex; gap: .4rem; }
.planner-prog i { width: 26px; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background .3s; }
.planner-prog i.is-on { background: var(--green); }
.planner-body { padding: clamp(1.4rem, 3vw, 2.2rem); min-height: 300px; display: grid; align-content: start; gap: 1.4rem; }
.planner-q { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.6rem); text-transform: uppercase; line-height: 1; }
.planner-opts { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.opt {
  text-align: left; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r); padding: .95rem 1.05rem; cursor: pointer; font-weight: 500;
  display: flex; align-items: center; gap: .8rem; transition: transform .3s var(--ease), border-color .25s, background .25s, color .25s;
}
.opt::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; transition: background .2s, border-color .2s; }
.opt:hover { transform: translateY(-2px); border-color: var(--fg); }
.opt:active { transform: translateY(1px) scale(.98); }
.opt[aria-pressed="true"] { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.opt[aria-pressed="true"]::before { background: var(--green-ink); border-color: var(--green-ink); }
.p-screen { display: grid; gap: 1.4rem; }   /* question, answers and Back/Skip each get their own breathing room */
.planner-foot { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-top: .4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.planner-foot .btn:disabled { opacity: .4; cursor: default; transform: none; box-shadow: none; }
.planner-result { display: grid; gap: 1rem; }
.brief { background: var(--bg-2); border-left: 3px solid var(--brass); padding: 1.1rem 1.2rem; border-radius: 0 var(--r) var(--r) 0; line-height: 1.6; font-size: 1.02rem; white-space: pre-wrap; }
.js .planner-body > .p-screen { animation: fadeUp .45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
.form { display: grid; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.2rem, 3vw, 2rem); }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; color: var(--fg); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r); padding: .8rem .9rem; min-width: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.field textarea { min-height: 140px; resize: vertical; }
.radios { display: flex; gap: .5rem; flex-wrap: wrap; }
.radios label { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--pill); cursor: pointer; font-size: .92rem; font-weight: 500; color: var(--fg); }
.radios label:has(input:checked) { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.radios label:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.radios input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hp { position: absolute; left: -9999px; }
/* photos: a dashed drop zone, then square thumbnails with a remove button */
.field-label { font-weight: 600; font-size: .92rem; color: var(--fg); }
.field-opt { font-weight: 400; color: var(--muted); margin-left: .35rem; }
.field .drop-input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.field .drop-zone {
  display: grid; justify-items: center; gap: .15rem; padding: 1.1rem 1rem; min-height: 44px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: var(--bg);
  font-weight: 400; color: var(--muted); transition: border-color .2s, background .2s;
}
.drop-zone b { color: var(--fg); font-weight: 600; font-size: .98rem; }
.drop-hint { font-size: .8125rem; }
.drop-plus { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--accent-text); transition: transform .3s var(--ease); }
.drop-zone:hover, .drop.is-over .drop-zone { border-color: var(--green); background: color-mix(in srgb, var(--green) 8%, var(--bg)); }
.drop-zone:hover .drop-plus, .drop.is-over .drop-plus { transform: rotate(90deg); }
.drop:has(.drop-input:focus-visible) .drop-zone { outline: 2px solid var(--green); outline-offset: 2px; }
.drop-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.drop-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-3); animation: dropIn .35s var(--ease) both; }
.drop-item img { width: 100%; height: 100%; object-fit: cover; }
.drop-kind { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drop-item img + .drop-kind { display: none; }
.drop-item.is-busy::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.drop-x { position: absolute; top: 4px; right: 4px; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--pill); background: rgba(14, 23, 15, .78); color: #F4F6EC; cursor: pointer; }
.drop-x:hover { background: rgba(14, 23, 15, .95); }
.drop-x .ico { width: 16px; height: 16px; }
.drop-note { font-size: .8125rem; color: var(--muted); }
.drop-note.is-warn { color: var(--fg); }
.drop-note.is-warn::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .45rem; border-radius: 50%; background: var(--brass); vertical-align: .05em; }
@keyframes dropIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.form-msg { display: grid; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: var(--r); background: var(--bg-2); border-left: 3px solid var(--green); margin-top: 1rem; }
.form-msg.is-fallback { border-left-color: var(--brass); }
.form-msg h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; }
.form-msg .brief { background: var(--bg); }
.contact-side { display: grid; gap: 1rem; }
.ctile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.4rem; display: grid; gap: .55rem; min-width: 0; }
.ctile-label { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem; color: var(--fg); }
.ctile-label .ico { color: var(--accent-text); }
.ctile-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; text-decoration: none; color: var(--fg); letter-spacing: .01em; overflow-wrap: anywhere; }
.ctile-big:hover { color: var(--accent-text); }
.ctile p { color: var(--muted); font-size: .95rem; }
.ctile-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.ctile-email { font-weight: 600; overflow-wrap: anywhere; }
.ctile-fb { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; } }

/* ---------- CTA band (service + gallery pages) ---------- */
.band { background: var(--green); color: var(--green-ink); }
.band .wrap { display: grid; gap: 1.5rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.band h2 { font-size: clamp(2.2rem, 5vw, 4rem); color: var(--green-ink); }
.band p { color: rgba(244, 246, 236, .84); max-width: 50ch; }
/* on the green band the quote button inverts so it still reads as the main action */
.band .btn-primary { --btn-bg: var(--green-ink); --btn-fg: var(--green-deep); }
.band .btn-primary:hover { --btn-bg: #FFFFFF; }
@media (min-width: 900px) { .band .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .band .cta-row { justify-self: end; } }

/* ---------- service page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.page-hero { padding-block: clamp(2.5rem, 6vw, 5rem) 0; }
.page-hero-grid { display: grid; gap: 2rem; align-items: end; }
.page-hero .page-kicker { margin-top: 1rem; }
.page-hero .page-title { font-size: clamp(2.8rem, 6.4vw, 5.6rem); margin-top: .7rem; }
.page-hero .lede { margin-top: 1.2rem; }
.page-hero .cta-row { margin-top: 1.6rem; }
.page-hero-media { position: relative; }
.page-hero-media .fit { aspect-ratio: 4 / 3; border-radius: var(--r); }
.page-hero-media::after { content: ""; position: absolute; right: -12px; bottom: -12px; width: 40%; height: 40%; border: 2px solid var(--brass); border-left: 0; border-top: 0; border-radius: 0 0 var(--r) 0; pointer-events: none; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; } }
.svc-detail { display: grid; gap: 2.5rem; }
.checks { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.checks li { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); font-size: .96rem; }
.checks .ico { color: var(--accent-text); margin-top: .15rem; }
.svc-detail h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1rem; }
@media (min-width: 900px) { .svc-detail { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 4rem; align-items: start; } }
.project-block + .project-block { margin-top: 2.5rem; }
.project-block h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1; margin-bottom: .4rem; }
.project-block .summary { color: var(--muted); max-width: 66ch; margin-bottom: 1rem; }
.faq { display: grid; gap: .6rem; max-width: 60rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 1.2rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(45deg); transition: transform .3s var(--ease); flex: none; margin-right: .2rem; }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details > div { padding: 0 1.2rem 1.1rem; color: var(--muted); line-height: 1.6; max-width: 70ch; }
.js .faq details[open] > div { animation: fadeUp .35s var(--ease) both; }
.others { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.other { display: grid; gap: .3rem; text-decoration: none; color: var(--fg); padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); transition: transform .3s var(--ease), box-shadow .3s; }
.other:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); color: var(--fg); }
.other b { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; line-height: 1; }
.other span { color: var(--muted); font-size: .88rem; }

/* ---------- footer ---------- */
.site-foot { background: var(--foot-bg); color: var(--foot-fg); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.foot-grid { display: grid; gap: 2.5rem; }
.foot-brand { display: grid; gap: 1rem; align-content: start; }
.plate { background: var(--plate); border-radius: var(--r); padding: .9rem 1.1rem; width: fit-content; max-width: 100%; }
.plate img { width: 220px; max-width: 100%; }
.foot-brand p { color: var(--foot-muted); max-width: 34ch; font-size: .95rem; }
.foot-fb { color: var(--foot-fg); }
.foot-fb:hover { color: var(--brass); }
.foot-col h4 { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: .9rem; }
.foot-col li + li { margin-top: .5rem; }
.foot-col a { color: var(--foot-fg); text-decoration: none; opacity: .9; }
.foot-col a:hover { opacity: 1; color: var(--brass); }
.foot-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(238, 241, 230, .14); display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; font-size: .85rem; color: var(--foot-muted); }
.to-top { background: transparent; border: 1px solid rgba(238, 241, 230, .3); color: var(--foot-fg); border-radius: var(--pill); padding: .45rem .9rem; cursor: pointer; font-size: .85rem; font-weight: 600; }
.to-top:hover { border-color: var(--brass); color: var(--brass); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); } }

/* ---------- mobile call bar (appears once the hero is out of view) ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 1px;
  background: var(--line-strong); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(110%); transition: transform .45s var(--ease);
}
.mobile-cta.is-on { transform: none; }
.mobile-cta a { display: grid; place-items: center; padding: .85rem .5rem; background: var(--bg); color: var(--fg); text-decoration: none; font-weight: 600; font-size: .92rem; }
.mobile-cta a.primary { background: var(--green); color: var(--green-ink); }
@media (min-width: 1024px) { .mobile-cta { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: 58px; } }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(8, 14, 9, .94); color: var(--hero-fg); display: grid; grid-template-rows: auto 1fr auto; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: .9rem var(--gutter); gap: 1rem; }
.lb-count { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .12em; }
.lb-x, .lb-nav { background: rgba(244, 246, 236, .08); border: 1px solid rgba(244, 246, 236, .25); color: var(--hero-fg); border-radius: var(--pill); width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lb-x:hover, .lb-nav:hover { background: rgba(244, 246, 236, .2); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding-inline: var(--gutter); }
.lb-stage img { max-width: 100%; max-height: calc(100svh - 190px); width: auto; height: auto; object-fit: contain; border-radius: var(--r); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.js .lb-stage img.is-new { animation: lbIn .45s var(--ease) both; }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: max(8px, calc(var(--gutter) - 22px)); } .lb-nav.next { right: max(8px, calc(var(--gutter) - 22px)); }
.lb-cap { padding: 1rem var(--gutter) 1.2rem; display: grid; gap: .25rem; text-align: center; }
.lb-cap b { font-weight: 600; }
.lb-cap span { color: var(--hero-muted); font-size: .95rem; }
body.lb-open { overflow: hidden; }

/* ---------- reveal on scroll (IntersectionObserver adds .in) ---------- */
.js [data-reveal]:not(.in) { opacity: 0; transform: translateY(18px); }
[data-reveal] { transition: opacity .75s ease, transform .75s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- 404 ---------- */
.lost { min-height: 60svh; display: grid; place-content: center; text-align: center; gap: 1.2rem; padding-block: 4rem; }
.lost h1 { font-size: clamp(4rem, 14vw, 10rem); color: var(--accent-text); }

/* ---------- phones and tablets ---------- */
/* the open menu lives inside the sticky header, so it scrolls on its own when it is taller than the screen */
.mobile-nav {
  max-height: calc(100vh - var(--head-h) - var(--tape-h));
  max-height: calc(100dvh - var(--head-h) - var(--tape-h) - env(safe-area-inset-top, 0px));
  overflow-y: auto; overscroll-behavior: contain;
}
/* phone held sideways: a slimmer header, and copy beside the photo so the quote button is on the first screen */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --head-h: 56px; --tape-h: 6px; }
  .brand-logo { height: 42px; }
  .site-head.is-scrolled .head-row { height: 52px; }
  .site-head.is-scrolled .brand-logo { height: 38px; }
  .mobile-nav a { font-size: 1.35rem; padding: .55rem 0; }
  .hero { padding-block: .75rem 2rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 1.5rem; }
  .hero-copy { gap: .85rem; }
  .hero .eyebrow { font-size: .75rem; letter-spacing: .1em; gap: .5rem; }
  .hero .eyebrow::before { width: 1.25rem; }
  .hero-title { font-size: clamp(1.9rem, min(11vh, 6vw), 3.2rem); }
  .hero-lede { font-size: 1rem; }
  .hero-media { width: min(100%, calc((100svh - var(--head-h) - var(--tape-h) - 4.5rem) * 4 / 3)); justify-self: end; }
  .sec { padding-block: 2.75rem; }
}
/* touch screens: every tap target at least 44px tall (Apple and Google guidance) */
@media (pointer: coarse), (max-width: 1023px) {
  .menu-btn, .chip, .copy, .radios label, .to-top { min-height: 44px; }
  .drop-x { width: 44px; height: 44px; top: 2px; right: 2px; }
  .tour-sound { min-height: 44px; }
  .chip, .copy, .to-top { display: inline-flex; align-items: center; }
  .copy { padding-inline: 1rem; }
  .ctile-big, .ctile-email, .ctile-fb, .foot-col a, .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-col li + li { margin-top: 0; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- motion preferences: everything collapses to its resting state ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal]:not(.in) { opacity: 1; transform: none; }
  .hero-slide.is-on, .hero-slide.is-on .fit-img { animation: none; transform: none; }
  .tape-fill, .tape-read { animation-duration: auto !important; }
}
