/* FN Building Projects / Level. Page styles only: the engine (scrollcraft.css)
   is untouched and themed through its tokens. */

:root {
  /* FN's own palette: paper, charcoal-green ink, one terracotta accent. */
  --sc-canvas: #F5F1EA;
  --sc-surface: #ECE6DB;
  --sc-ink: #1F2420;
  --sc-ink-soft: #565A51;
  --sc-accent: #A94321;
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Manrope", "Arial", sans-serif;
  --sc-font-text: "DM Sans", "Arial", sans-serif;
  --sc-font-mono: "DM Sans", "Arial", sans-serif;
  --sc-shadow-color: 30 18% 22%;
  --sc-edge: inset 0 1px 0 rgba(255, 255, 255, 0.6);

  --forest: #1F2622;
  --forest-2: #2A322D;
  --on-forest: #F3EFE7;
  --on-forest-soft: #C3C6BC;
  --accent-light: #EAA07A;
  --laser: #E2542A;
  --line: #D8D1C4;
  --mark: #F2D6C4;
  --bar-h: 76px;
  --r: 4px;
}
@media (max-width: 860px) { :root { --bar-h: 62px; } }

html { scroll-padding-top: calc(var(--bar-h) + 12px); }
@media (max-width: 860px) { html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } }
body { background: var(--sc-canvas); }
.sc-grain { opacity: 0.035; z-index: 2; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sc-ink); color: var(--sc-canvas); padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ type ---- */
.display-lg, .display-md, .hero-title {
  font-family: var(--sc-font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}
.display-lg { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.6rem); }
.display-md { font-size: clamp(1.9rem, 1.35rem + 2.1vw, 3.3rem); letter-spacing: -0.03em; }
.display-lg em, .display-md em { font-style: normal; color: var(--sc-accent); }
.kicker {
  font-family: var(--sc-font-text); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-accent); margin: 0 0 var(--sc-4);
}
.section-sub { color: var(--sc-ink-soft); max-width: 46ch; margin: var(--sc-4) 0 0; font-size: var(--sc-t-lg); line-height: 1.45; text-wrap: pretty; }
p { text-wrap: pretty; }

/* ------------------------------------------------------------ buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0.7em 1.15em; border-radius: var(--r);
  font-family: var(--sc-font-text); font-weight: 600; font-size: 0.97rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap; border: 1.5px solid transparent;
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: 0.85em 1.4em; font-size: 1.02rem; }
.btn--primary { background: var(--sc-accent); color: #fff; box-shadow: 0 1px 2px hsl(var(--sc-shadow-color) / 0.25), 0 6px 16px -8px hsl(14 70% 30% / 0.55); }
.btn--ghost { background: rgba(245, 241, 234, 0.9); color: var(--sc-ink); border-color: rgba(31, 36, 32, 0.35); }
.btn--light { background: var(--on-forest); color: var(--forest); }
.btn--outline-light { color: var(--on-forest); border-color: rgba(243, 239, 231, 0.45); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #8E3719; }
  .btn--ghost:hover { border-color: var(--sc-ink); background: #fff; }
  .btn--light:hover { background: #fff; }
  .btn--outline-light:hover { border-color: var(--on-forest); background: rgba(255, 255, 255, 0.06); }
}
.link-arrow { display: inline-flex; align-items: center; gap: 0.45em; min-height: 44px; font-weight: 600; color: var(--sc-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.link-arrow::after { content: ""; width: 0.9em; height: 0.9em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 160ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover::after { transform: translateX(3px); } }
.link-quiet { display: inline-flex; align-items: center; min-height: 44px; color: var(--sc-ink-soft); text-decoration: underline; text-underline-offset: 0.3em; }

/* ------------------------------------------------------------ top bar -- */
.bar {
  position: sticky; top: 0; z-index: 70; height: var(--bar-h);
  display: flex; align-items: center; gap: var(--sc-5);
  padding-inline: var(--sc-gutter);
  background: color-mix(in oklab, var(--sc-canvas) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 10%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--sc-ink); min-height: 44px; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name { display: flex; flex-direction: column; font-family: var(--sc-font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; line-height: 1.15; }
.brand-name small { font-family: var(--sc-font-text); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sc-ink-soft); }
.bar-nav { display: flex; align-items: center; gap: clamp(0.8rem, 1.6vw, 1.8rem); margin-left: auto; }
.bar-nav > a { font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--sc-ink); padding: 10px 2px; min-height: 44px; display: inline-flex; align-items: center; background: linear-gradient(var(--sc-accent), var(--sc-accent)) left calc(100% - 8px) / 0 1.5px no-repeat; transition: background-size 200ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .bar-nav > a:hover { background-size: 100% 1.5px; } }
.nav-contact { display: none; }
.bar-actions { display: flex; align-items: center; gap: var(--sc-4); }
.bar-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-family: var(--sc-font-display); letter-spacing: -0.01em; color: var(--sc-ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.bar-phone svg { width: 18px; height: 18px; fill: var(--sc-accent); }
.bar-phone__short { display: none; }
.menu-btn { display: none; }

@media (max-width: 1180px) {
  .bar-nav > a:nth-child(5), .bar-nav > a:nth-child(6) { display: none; }
}
@media (max-width: 980px) {
  .bar-cta { display: none; }
}
@media (max-width: 860px) {
  .bar { gap: var(--sc-3); }
  .brand { gap: 9px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 0.98rem; white-space: nowrap; }
  .brand-name small { font-size: 0.62rem; letter-spacing: 0.1em; }
  .bar-actions { margin-left: auto; gap: 8px; }
  .bar-phone { padding: 0 12px; border: 1.5px solid color-mix(in oklab, var(--sc-ink) 22%, transparent); border-radius: var(--r); }
  .bar-phone__num { display: none; }
  .bar-phone__short { display: inline; font-family: var(--sc-font-text); font-weight: 600; font-size: 0.95rem; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
    background: var(--sc-ink); color: var(--sc-canvas); border: 0; border-radius: var(--r); font-weight: 600; cursor: pointer;
  }
  .menu-btn__icon, .menu-btn__icon::before { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform 200ms var(--sc-ease-out); }
  .menu-btn__icon { box-shadow: 0 -5px 0 currentColor; top: 2px; }
  .menu-btn__icon::before { content: ""; top: 3.5px; }
  .menu-btn[aria-expanded="true"] .menu-btn__icon { box-shadow: none; transform: rotate(45deg); top: 0; }
  .menu-btn[aria-expanded="true"] .menu-btn__icon::before { transform: rotate(-90deg); top: 0; }
  .bar-nav {
    position: fixed; inset: var(--bar-h) 0 auto 0; z-index: 69;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--sc-4) var(--sc-gutter) var(--sc-6);
    background: var(--sc-canvas); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px hsl(var(--sc-shadow-color) / 0.45);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 200ms var(--sc-ease-out), transform 200ms var(--sc-ease-out), visibility 0s linear 200ms;
  }
  .bar-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .bar-nav > a, .bar-nav > a:nth-child(5), .bar-nav > a:nth-child(6) { display: flex; font-size: 1.15rem; font-family: var(--sc-font-display); font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line); background: none; }
  .nav-contact { display: grid; gap: 4px; padding-top: var(--sc-4); }
  .nav-contact__line { display: flex; align-items: center; min-height: 44px; color: var(--sc-ink); font-weight: 600; }
  .nav-contact .btn { margin-top: var(--sc-3); }
}
@media (max-width: 440px) {
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 0.92rem; }
  .menu-btn { width: 44px; justify-content: center; padding: 0; }
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 380px) {
  .brand-name { font-size: 0.86rem; }
  .bar-phone { width: 44px; justify-content: center; padding: 0; }
  .bar-phone__short { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* --------------------------------------------------------------- hero -- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  height: calc(100svh - var(--bar-h)); min-height: 560px; max-height: 1000px;
  background: #E9DCC8;
}
.hero-scene { position: absolute; inset: 0; z-index: 0; }
.plane { position: absolute; inset: -3% -2%; will-change: transform; }
.plane img, img.plane { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 46% 72%; }
img.plane { inset: auto; }
.plane--far { z-index: 1; }
.plane--house { z-index: 2; }
.plane--light {
  z-index: 3; pointer-events: none; mix-blend-mode: soft-light;
  background:
    radial-gradient(60% 70% at 92% 58%, rgba(255, 196, 128, 0.55), rgba(255, 196, 128, 0) 70%),
    linear-gradient(180deg, rgba(255, 238, 214, 0.25), rgba(255, 238, 214, 0) 45%);
}
img.plane--olive {
  z-index: 4; position: absolute; top: -2%; right: -1.5%; left: auto; bottom: auto;
  width: clamp(420px, 38vw, 760px); height: auto; max-width: none;
  filter: blur(1.2px) saturate(0.92); pointer-events: none;
}
/* A column of paper under the text column (taste.md, shape 3): the copy gets a
   clean ground and the photograph keeps its full contrast on the right. */
.hero-scrim {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(245, 241, 234, 0.72) 0%, rgba(245, 241, 234, 0.56) 24%, rgba(245, 241, 234, 0.18) 40%, rgba(245, 241, 234, 0) 50%),
    radial-gradient(60% 70% at 12% 30%, rgba(245, 241, 234, 0.34) 0%, rgba(245, 241, 234, 0) 70%);
}
/* Mid-size laptops put the pergola behind the lede, so the column is denser there. */
@media (min-width: 861px) and (max-width: 1300px) {
  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(245, 241, 234, 0.86) 0%, rgba(245, 241, 234, 0.74) 30%, rgba(245, 241, 234, 0.36) 44%, rgba(245, 241, 234, 0) 56%),
      radial-gradient(70% 78% at 14% 30%, rgba(245, 241, 234, 0.4) 0%, rgba(245, 241, 234, 0) 70%);
  }
}
.hero-copy {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(2.2rem, 7vh, 5.5rem) var(--sc-gutter) 0;
  max-width: min(56rem, 66vw);
}
.hero-title { font-size: clamp(2.6rem, 1.3rem + 4vw, 5rem); letter-spacing: -0.042em; line-height: 0.98; color: var(--sc-ink); }
.hero-lede { font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem); line-height: 1.45; max-width: 34ch; margin: var(--sc-5) 0 0; color: #2A2F2A; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--sc-6); }
/* The proof strip: solid paper along the hero's foot, never over the design
   visual, so a named review cannot read as that client's house. */
.hero-proof {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 12;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px;
  padding: 14px var(--sc-gutter);
  background: var(--sc-canvas);
  border-top: 1px solid color-mix(in oklab, var(--sc-ink) 10%, transparent);
}
.hero-review {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 0; align-items: center;
  padding: 4px 0; min-height: 44px; color: var(--sc-ink); text-decoration: none;
  transition: transform 160ms var(--sc-ease-out);
}
.hero-creds { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.hero-creds a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 0.92rem; font-weight: 600; color: var(--sc-ink); text-decoration: none;
}
.hero-creds a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sc-accent); flex: none; }
@media (hover: hover) and (pointer: fine) { .hero-creds a:hover { text-decoration: underline; text-underline-offset: 0.25em; } }
.hero-review .stars { grid-row: span 2; }
.hero-review__quote { font-family: var(--sc-font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.12rem; }
.hero-review__who { font-size: 0.88rem; color: var(--sc-ink-soft); }
@media (hover: hover) and (pointer: fine) { .hero-review:hover .hero-review__quote { text-decoration: underline; text-underline-offset: 0.2em; } }

.stars { display: inline-flex; gap: 2px; }
.stars i { width: 16px; height: 16px; background: #C8641E; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.3 5.9 20.6l1.4-6.8L2.2 9.1l6.9-.8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.3 5.9 20.6l1.4-6.8L2.2 9.1l6.9-.8z'/%3E%3C/svg%3E") center / contain no-repeat; }

@media (max-aspect-ratio: 4/5) {
  .plane img, img.plane { object-position: 50% 60%; }
  img.plane--olive { width: 72vw; top: 31%; right: -20vw; }
  .hero-scrim { background: linear-gradient(180deg, rgba(245, 241, 234, 0.78) 0%, rgba(245, 241, 234, 0.55) 34%, rgba(245, 241, 234, 0) 58%); }
}
@media (max-width: 860px) {
  .hero { height: calc(100svh - var(--bar-h)); min-height: 540px; max-height: none; }
  .hero-copy { max-width: none; padding-top: clamp(1.4rem, 4.5vh, 2.6rem); }
  .hero-title { font-size: clamp(2.3rem, 1.3rem + 5.4vw, 3.4rem); }
  .hero-lede { font-size: 1.02rem; margin-top: var(--sc-4); max-width: 30ch; }
  .hero-actions { margin-top: var(--sc-5); }
  .hero-actions .btn--ghost { display: none; }
  .hero-proof { padding-block: 10px; gap: 0 18px; }
  .hero-review__quote { font-size: 0.98rem; }
  .hero-creds { gap: 0 16px; }
  .hero-creds a { font-size: 0.8rem; min-height: 32px; }
  .hero-creds li:last-child { display: none; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .hero-creds { display: none; }
}

/* ------------------------------------------------------------ reviews -- */
.reviews { padding-block: clamp(4.5rem, 9vw, 8.5rem) clamp(3.5rem, 7vw, 6.5rem); }
.reviews-head { max-width: 60rem; }
.reviews-head .display-lg em { display: inline; }
.review-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.25rem, 2.2vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start;
}
.review { margin: 0; padding: clamp(1.4rem, 2.4vw, 2.2rem); background: #FBF8F3; border-radius: 6px; box-shadow: var(--sc-edge), 0 1px 2px hsl(var(--sc-shadow-color) / 0.12), 0 14px 30px -22px hsl(var(--sc-shadow-color) / 0.45); }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: #2A2F2A; }
.review--lead { grid-column: 1 / span 7; grid-row: span 2; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.8rem, 3.4vw, 3rem); }
.review--lead blockquote p { font-family: var(--sc-font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.95rem); line-height: 1.34; color: var(--sc-ink); margin-top: var(--sc-4); }
.review:not(.review--lead) { grid-column: 8 / span 5; }
.review mark { background: linear-gradient(transparent 58%, var(--mark) 58%); color: inherit; padding: 0 0.08em; }
.review figcaption { display: flex; flex-direction: column; margin-top: var(--sc-5); padding-top: var(--sc-4); border-top: 1px solid var(--line); }
.review-name { font-weight: 700; font-family: var(--sc-font-display); letter-spacing: -0.01em; }
.review-meta { font-size: 0.88rem; color: var(--sc-ink-soft); }
.reviews-foot { display: flex; flex-wrap: wrap; gap: var(--sc-2) var(--sc-6); margin-top: var(--sc-6); }
@media (max-width: 860px) {
  .review--lead, .review:not(.review--lead) { grid-column: 1 / -1; grid-row: auto; }
}

/* ------------------------------------------------------------ services - */
.services { padding-block: clamp(3.5rem, 7vw, 6.5rem); border-top: 1px solid var(--line); }
.section-head { max-width: 46rem; }
.section-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--sc-4) var(--sc-8); max-width: none; }
.section-head--split .section-sub { margin: 0; }
.service-list { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: clamp(96px, 16vw, 200px) 1fr 44px; gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
  padding-block: clamp(1rem, 1.8vw, 1.5rem); border-bottom: 1px solid var(--line);
  color: var(--sc-ink); text-decoration: none;
}
.service img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; filter: saturate(0.92); transition: filter 200ms var(--sc-ease-out); }
.service-body { display: flex; flex-direction: column; gap: 4px; }
.service-title { font-family: var(--sc-font-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.15; }
.service-text { color: var(--sc-ink-soft); max-width: 52ch; }
.service-go { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--sc-ink) 22%, transparent); position: relative; transition: background-color 180ms var(--sc-ease-out), border-color 180ms var(--sc-ease-out); }
.service-go::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; background: var(--sc-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (hover: hover) and (pointer: fine) {
  .service:hover img { filter: saturate(1.08); }
  .service:hover .service-go { background: var(--sc-accent); border-color: var(--sc-accent); }
  .service:hover .service-go::after { background: #fff; }
}
.services-note { margin: var(--sc-6) 0 0; color: var(--sc-ink-soft); }
.services-note a { color: var(--sc-accent); font-weight: 600; }
@media (max-width: 560px) {
  .service { grid-template-columns: 88px 1fr; }
  .service-go { display: none; }
  .service-text { font-size: 0.94rem; }
}

/* --------------------------------------------------- the level reveal -- */
.level { background: #FBFAF7; }
.level-stage { background: #FBFAF7; }
.level-img { position: absolute; inset: 0; }
.level-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.level-drawing { z-index: 2; will-change: mask-image; }
.level-photo { z-index: 1; }
/* The line rides a full-stage track moved by transform only: translateY in %
   of the track, which is the stage height. */
.level-track {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  transform: translate3d(0, calc((100 - var(--lvl-edge, 0)) * 1%), 0);
  will-change: transform;
}
.level-line {
  position: absolute; left: 0; right: 0; top: 0; height: 0;
  border-top: 2px solid var(--laser);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 -1px 0 rgba(255, 255, 255, 0.5);
  opacity: var(--lvl-line-o, 1);
}
.level-line::before, .level-line::after { content: ""; position: absolute; top: -7px; width: 2px; height: 12px; background: var(--laser); }
.level-line::before { left: var(--sc-gutter); }
.level-line::after { right: var(--sc-gutter); }
.level-read {
  position: absolute; right: calc(var(--sc-gutter) + 14px); bottom: 6px;
  padding: 3px 8px; border-radius: 3px; background: var(--sc-accent); color: #fff;
  font-family: var(--sc-font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.level-copy {
  position: absolute; z-index: 5; left: var(--sc-gutter); top: calc(var(--bar-h) + clamp(1rem, 3.5vh, 2.5rem));
  width: min(31rem, 42vw);
  display: grid;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  background: rgba(251, 249, 245, 0.96); border-radius: 6px;
  box-shadow: 0 1px 2px hsl(var(--sc-shadow-color) / 0.14), 0 18px 40px -26px hsl(var(--sc-shadow-color) / 0.55);
}
/* All three lines share one cell, so the card never jumps as they cross. */
.level-copy .cue { grid-area: 1 / 1; align-self: start; }
.level-copy .display-md { font-size: clamp(1.55rem, 1.1rem + 1.5vw, 2.5rem); }
.level-copy p { margin: var(--sc-4) 0 0; color: #3A3F39; line-height: 1.55; }
.cue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
/* Near the ceiling the reading drops below the line so the header never hides it. */
.lvl-high .level-read { bottom: auto; top: 8px; }
.level-controls {
  position: absolute; z-index: 5; right: var(--sc-gutter); bottom: clamp(1rem, 4vh, 2.5rem);
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 6px;
  background: rgba(31, 36, 32, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.level-controls button {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 4px; background: transparent; color: #E9E6DE;
  font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out);
}
.level-controls button[aria-pressed="true"] { background: var(--on-forest); color: var(--forest); }
.level-controls :focus-visible { outline-color: var(--accent-light); }
@media (hover: hover) and (pointer: fine) { .level-controls button[aria-pressed="false"]:hover { background: rgba(255, 255, 255, 0.1); } }
@media (max-width: 860px) {
  .level-copy { width: auto; right: var(--sc-gutter); top: calc(var(--bar-h) + 0.75rem); padding: 1rem 1.1rem; }
  .level-copy .display-md { font-size: clamp(1.35rem, 1rem + 2.2vw, 1.8rem); }
  .level-copy p { font-size: 0.95rem; margin-top: var(--sc-3); }
  .cue-actions .btn { min-height: 44px; padding-block: 0.55em; }
  .cue-more { display: none; }
  .level-controls { left: var(--sc-gutter); right: var(--sc-gutter); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); justify-content: stretch; }
  .level-controls button { flex: 1; }
}
/* Short phones: headlines only in the first two cards, so the room gets the screen. */
@media (max-width: 860px) and (max-height: 760px) {
  .level-copy .cue:not(.cue--last) p { display: none; }
}
/* ---------------------------------------------------------------- work -- */
.work { padding-block: clamp(4rem, 8vw, 7.5rem); }
.work-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.work-tabs button {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid color-mix(in oklab, var(--sc-ink) 22%, transparent); background: transparent; color: var(--sc-ink);
  font-weight: 600; font-size: 0.93rem; transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out);
}
.work-tabs button[aria-selected="true"] { background: var(--sc-ink); border-color: var(--sc-ink); color: var(--sc-canvas); }
@media (hover: hover) and (pointer: fine) { .work-tabs button[aria-selected="false"]:hover { border-color: var(--sc-ink); } }
.compare-wrap { margin-top: var(--sc-5); }
.compare {
  position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; max-height: 78vh; width: 100%;
  background: #D9D2C5; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  box-shadow: 0 1px 2px hsl(var(--sc-shadow-color) / 0.14), 0 26px 50px -34px hsl(var(--sc-shadow-color) / 0.6);
}
/* The photos are 4:3 phone shots: show them whole, no larger than the screen
   allows, rather than cropping and enlarging them into a wide frame. */
@media (min-width: 861px) { .compare { max-inline-size: min(100%, calc((100svh - var(--bar-h) - 7rem) * 4 / 3)); margin-inline: auto; } .compare-caption { max-inline-size: min(100%, calc((100svh - var(--bar-h) - 7rem) * 4 / 3)); margin-inline: auto; } }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); pointer-events: none; }
.compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6' fill='none' stroke='%231F2420' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.compare-tag { position: absolute; top: 14px; padding: 5px 10px; border-radius: 3px; background: rgba(31, 36, 32, 0.82); color: #fff; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; pointer-events: none; }
.compare-tag--before { left: 14px; }
.compare-tag--after { right: 14px; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 64px; height: 100vh; }
.compare-range::-moz-range-thumb { width: 64px; height: 100vh; border: 0; }
.compare-range:focus-visible { outline: none; }
/* The reveal wrapper clips anything outside the frame, so the focus ring is
   drawn on the handle knob, inside the clipped box. */
.compare:has(.compare-range:focus-visible) .compare-handle::after { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--sc-accent), 0 2px 6px rgba(0, 0, 0, 0.25); }
.compare:has(.compare-range:focus-visible) { box-shadow: inset 0 0 0 3px var(--sc-accent), 0 26px 50px -34px hsl(var(--sc-shadow-color) / 0.6); }
.compare-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 20px; margin: var(--sc-3) 0 0; color: var(--sc-ink-soft); }
.compare-caption__what { font-weight: 600; color: var(--sc-ink); }
.compare.is-swapping img { animation: fn-fade 360ms var(--sc-ease-out); }
@keyframes fn-fade { from { opacity: 0.25; } to { opacity: 1; } }
@media (max-width: 560px) {
  .work-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--sc-gutter) * -1); padding-inline: var(--sc-gutter); scroll-padding-inline: var(--sc-gutter); scroll-snap-type: x proximity; scrollbar-width: none; }
  .work-tabs::-webkit-scrollbar { display: none; }
  .work-tabs button { flex: none; scroll-snap-align: start; }
}

/* ------------------------------------------------------------- process - */
.process { padding-block: clamp(4rem, 8vw, 7rem); background: var(--sc-surface); }
.steps { list-style: none; margin: clamp(2.25rem, 4.5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2.25rem); counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: linear-gradient(90deg, var(--sc-accent), color-mix(in oklab, var(--sc-accent) 30%, transparent)); }
.step { position: relative; counter-increment: step; padding-top: 52px; }
.step::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sc-surface); border: 2px solid var(--sc-accent); color: var(--sc-accent);
  font-family: var(--sc-font-display); font-weight: 800; font-size: 0.95rem;
}
.step h3 { margin: 0; font-family: var(--sc-font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.025em; line-height: 1.2; }
.step p { margin: var(--sc-3) 0 0; color: #3E433D; }
.step .receipt { margin-top: var(--sc-4); padding-top: var(--sc-3); border-top: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent); font-weight: 600; color: var(--sc-ink); font-size: 0.95rem; }
.step .receipt a { color: var(--sc-accent); display: inline-flex; min-height: 44px; align-items: center; margin-block: -12px; }
.receipt--quote { font-family: var(--sc-font-display); letter-spacing: -0.01em; }
.receipt--quote span { display: block; font-family: var(--sc-font-text); font-weight: 500; font-size: 0.85rem; color: var(--sc-ink-soft); margin-top: 2px; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 var(--sc-6) 56px; }
  .step::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px; background: color-mix(in oklab, var(--sc-accent) 45%, transparent); }
  .step:last-child::after { display: none; }
}

/* --------------------------------------------------------------- about -- */
.about { padding-block: clamp(4rem, 8vw, 7rem); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.about-photo figcaption { margin-top: var(--sc-3); font-size: 0.88rem; color: var(--sc-ink-soft); }
.about-lede { font-size: var(--sc-t-lg); line-height: 1.5; color: #2F342E; max-width: 48ch; margin: var(--sc-5) 0 0; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sc-6); margin: var(--sc-6) 0 0; border-top: 1px solid var(--line); }
.creds div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.creds dt { font-weight: 700; font-family: var(--sc-font-display); letter-spacing: -0.01em; }
.creds dd { margin: 2px 0 0; color: var(--sc-ink-soft); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.about-links { display: flex; flex-wrap: wrap; gap: 0 var(--sc-6); margin: var(--sc-5) 0 0; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo img { aspect-ratio: 5 / 4; object-position: 50% 30%; }
}
@media (max-width: 340px) { .creds { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- guides -- */
.guides { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--sc-surface); }
.guide-groups { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(1.5rem, 3.5vw, 3rem); margin-top: clamp(2rem, 4vw, 3rem); }
.guide-group h3 { margin: 0 0 var(--sc-3); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-accent); }
.guide-group ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent); }
.guide-group li { border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent); }
.guide-group a { display: flex; flex-direction: column; gap: 3px; padding: 14px 28px 14px 0; min-height: 44px; position: relative; color: var(--sc-ink); text-decoration: none; }
.guide-group a::after { content: ""; position: absolute; right: 2px; top: 18px; width: 16px; height: 16px; background: var(--sc-ink-soft); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out); }
.guide-title { font-family: var(--sc-font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.015em; line-height: 1.3; }
.guide-text { font-size: 0.92rem; color: var(--sc-ink-soft); line-height: 1.45; }
@media (hover: hover) and (pointer: fine) {
  .guide-group a:hover .guide-title { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
  .guide-group a:hover::after { transform: translateX(3px); background: var(--sc-accent); }
}
.guides-foot { margin: var(--sc-6) 0 0; }
@media (max-width: 980px) { .guide-groups { grid-template-columns: 1fr 1fr; } .guide-group:first-child { grid-column: 1 / -1; } }
@media (max-width: 620px) { .guide-groups { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- faq -- */
.faq { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); }
.faq-head .section-sub a { color: var(--sc-accent); font-weight: 600; white-space: nowrap; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 14px 0; font-family: var(--sc-font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.015em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform 200ms var(--sc-ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 var(--sc-5); color: #3E433D; max-width: 62ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- close -- */
.close {
  --sc-ink: var(--on-forest); --sc-ink-soft: var(--on-forest-soft);
  color: var(--on-forest); background: var(--forest);
  padding-top: clamp(4.5rem, 9vw, 8rem);
}
.close :focus-visible { outline-color: var(--accent-light); }
.close-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.close-lede { font-size: var(--sc-t-lg); line-height: 1.5; color: var(--on-forest-soft); max-width: 46ch; margin: var(--sc-5) 0 0; }
.close-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--sc-7); }
.close-facts { margin: 0; border-top: 1px solid rgba(243, 239, 231, 0.18); }
.close-facts div { padding: 14px 0; border-bottom: 1px solid rgba(243, 239, 231, 0.18); }
.close-facts dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); }
.close-facts dd { margin: 4px 0 0; color: var(--on-forest); }
.close-facts a { color: var(--on-forest); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: rgba(243, 239, 231, 0.5); }
.close-facts dd > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
.ground { position: relative; margin-top: clamp(3.5rem, 7vw, 6rem); padding-inline: var(--sc-gutter); }
.ground-line { display: block; height: 2px; background: var(--laser); transform-origin: 0 50%; transform: scaleX(var(--ground-x, 1)); }
.ground-read { display: inline-block; margin-top: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent-light); font-variant-numeric: tabular-nums; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: var(--sc-6) calc(var(--sc-6) + env(safe-area-inset-bottom, 0px)); font-size: 0.86rem; color: var(--on-forest-soft); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { color: var(--on-forest-soft); min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 860px) {
  .close-grid { grid-template-columns: 1fr; }
  .close-actions .btn { flex: 1 1 100%; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ------------------------------------------------------ thumb bar (phones) */
.thumbbar { display: none; }
@media (max-width: 860px) {
  .thumbbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
    display: grid; grid-template-columns: 64px 64px 1fr; gap: 8px;
    padding: 10px var(--sc-gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in oklab, var(--sc-canvas) 96%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -20px hsl(var(--sc-shadow-color) / 0.55);
    transform: translateY(110%); transition: transform 260ms var(--sc-ease-out);
  }
  .thumbbar { visibility: hidden; transition: transform 260ms var(--sc-ease-out), visibility 0s linear 260ms; }
  .thumbbar.is-on { transform: none; visibility: visible; transition-delay: 0s; }
  .thumbbar a {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: var(--r);
    font-weight: 600; font-size: 0.7rem; letter-spacing: 0.01em; text-decoration: none; color: var(--sc-ink);
    border: 1.5px solid color-mix(in oklab, var(--sc-ink) 22%, transparent); white-space: nowrap;
  }
  .thumbbar svg { width: 20px; height: 20px; fill: var(--sc-accent); flex: none; }
  .thumbbar a.thumbbar-cta { flex-direction: row; font-size: 0.98rem; background: var(--sc-accent); border-color: var(--sc-accent); color: #fff; }
}

/* ------------------------------------------------------ reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .plane { transform: none !important; }
  .thumbbar { transition: none; }
  .level-drawing { transition: opacity 200ms linear; }
}


/* ---------------------------------------------------------- WordPress -- */
/* Logged-in admins get the WP admin bar; keep the sticky header clear of it. */
body.admin-bar .bar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .bar { top: 46px; } }

/* Anchors kept from the previous homepage so old links still land. */
.anchor { position: relative; top: calc(var(--bar-h) * -1 - 12px); display: block; height: 0; visibility: hidden; }

/* The site footer, redrawn in this design with every link the old one had. */
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 3vw, 3rem); padding-block: var(--sc-7) var(--sc-6); border-top: 1px solid rgba(243, 239, 231, 0.16); }
.foot .foot-grid nav { display: block; }
.foot-name { display: block; font-family: var(--sc-font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--on-forest); margin-bottom: var(--sc-3); }
.foot-brand p { margin: 0; max-width: 34ch; color: var(--on-forest-soft); font-size: 0.95rem; line-height: 1.6; }
.foot-grid h2 { margin: 0 0 var(--sc-3); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-forest); font-size: 0.95rem; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot-grid li a:hover { text-decoration: underline; text-underline-offset: 0.25em; } }
.foot-social { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: var(--sc-4); }
.foot-social a { color: var(--on-forest-soft); font-size: 0.9rem; min-height: 40px; display: inline-flex; align-items: center; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: var(--sc-5) calc(var(--sc-6) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(243, 239, 231, 0.16); font-size: 0.86rem; color: var(--on-forest-soft); }
.faq-list details p a { color: var(--sc-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 860px) { .foot-bar { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* v2.4.145: the copyright row spans the full footer width (it shrank to its text inside the flex .foot). */
.foot > .foot-grid, .foot > .foot-bar { flex: 1 1 100%; }

/* ------------------------------------------------ v2.4.149 civil first --
   The hero is split: copy on solid paper, FN's own photographs framed
   beside it; the CIDB grade sits above the headline; the track record and the
   compliance panel answer what a contractor or tender panel checks first. */

.hero-grade {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: var(--sc-5);
  padding: 8px 16px 8px 10px; min-height: 44px;
  background: var(--sc-canvas); border: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent); border-radius: var(--r);
  color: var(--sc-ink); text-decoration: none;
  box-shadow: 0 1px 2px hsl(var(--sc-shadow-color) / 0.12), 0 8px 22px -14px hsl(var(--sc-shadow-color) / 0.45);
}
.hero-grade__logo { width: 64px; height: auto; flex: none; }
.hero-grade__mark {
  font-family: var(--sc-font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: var(--sc-accent);
  padding-left: 12px; border-left: 1px solid var(--line);
}
.hero-grade__text { display: flex; flex-direction: column; line-height: 1.25; }
.hero-grade__text strong { font-family: var(--sc-font-display); font-size: 0.98rem; letter-spacing: -0.01em; }
.hero-grade__text span { font-size: 0.8rem; color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .hero-grade:hover .hero-grade__text span { text-decoration: underline; text-underline-offset: 0.2em; } }

.hero-creds__logo { height: 20px; width: auto; flex: none; }
.hero-creds a:has(.hero-creds__logo)::before { display: none; }

@media (max-width: 860px) {
  .hero-grade { gap: 9px; padding: 6px 12px 6px 8px; margin-bottom: var(--sc-4); }
  .hero-grade__logo { width: 48px; }
  .hero-grade__mark { padding-left: 9px; }
  .hero-grade__text strong { font-size: 0.86rem; }
  .hero-grade__text span { font-size: 0.72rem; }
}

/* track record */
.track { padding-block: clamp(3.5rem, 7vw, 6.5rem); border-top: 1px solid var(--line); }
.track-list { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
.track-card { display: flex; flex-direction: column; gap: 6px; height: 100%; color: var(--sc-ink); text-decoration: none; }
.track-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; margin-bottom: 10px; filter: saturate(0.94); transition: filter 200ms var(--sc-ease-out); }
.track-meta { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sc-accent); }
.track-title { font-family: var(--sc-font-display); font-weight: 700; font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem); letter-spacing: -0.03em; line-height: 1.15; }
.track-text { color: var(--sc-ink-soft); }
@media (hover: hover) and (pointer: fine) {
  .track-card:hover img { filter: saturate(1.08); }
  .track-card:hover .track-title { text-decoration: underline; text-underline-offset: 0.2em; }
}
@media (max-width: 860px) { .track-list { grid-template-columns: 1fr; } }

/* capability and compliance */
.capability { padding-block: clamp(4rem, 8vw, 7rem); background: var(--sc-surface); }
.capability-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cap-facts { list-style: none; margin: var(--sc-6) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sc-6); border-top: 1px solid var(--line); }
.cap-facts li { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cap-facts b { font-family: var(--sc-font-display); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); letter-spacing: -0.035em; line-height: 1.05; color: var(--sc-ink); font-variant-numeric: tabular-nums; }
.cap-facts span { color: var(--sc-ink-soft); font-size: 0.92rem; }
.cap-note { margin: var(--sc-4) 0 0; font-size: 0.86rem; color: var(--sc-ink-soft); max-width: 52ch; }
.cap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: var(--sc-6) 0 0; }
.capability-creds h3 { font-family: var(--sc-font-display); font-size: 1.15rem; letter-spacing: -0.02em; margin: 0; }
.capability-creds .creds { grid-template-columns: 1fr 1fr; margin-top: var(--sc-4); }
.creds .creds-lead { grid-column: 1 / -1; }
.creds-lead dt { font-size: 1.12rem; }
.creds dt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.creds-logo { height: 30px; width: auto; flex: none; }
.creds-logo--sm { height: 22px; }
.creds dd a { color: var(--sc-accent); font-weight: 600; }
@media (max-width: 860px) {
  .capability-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .cap-facts, .capability-creds .creds { grid-template-columns: 1fr; }
}

/* split hero */
.hero--split { height: auto; min-height: 0; max-height: none; overflow: visible; background: var(--sc-canvas); border-bottom: 1px solid var(--line); }
.hero-split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  max-width: var(--sc-maxw, 1320px); margin-inline: auto;
  padding: clamp(1.75rem, 5vh, 4rem) var(--sc-gutter) clamp(2rem, 5vh, 4rem);
}
.hero--split .hero-copy { padding: 0; max-width: none; }
.hero--split .hero-title { font-size: clamp(2.5rem, 1.2rem + 2.9vw, 4.1rem); text-wrap: balance; }
.hero--split .hero-lede { max-width: 38ch; }
.hero--split .hero-creds { margin-top: var(--sc-6); padding-top: var(--sc-4); border-top: 1px solid var(--line); }
.hero--split .hero-creds a { font-size: 0.86rem; }
.hero-media { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-media a { position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--sc-surface); }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--sc-ease-out); }
.hero-media__main { grid-column: 1 / -1; aspect-ratio: 16 / 8.4; }
.hero-media__main img { object-position: 40% 50%; }
.hero-media__thumb { aspect-ratio: 16 / 9; }
.hero-media__tag {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 3px;
  background: color-mix(in oklab, var(--sc-ink) 82%, transparent); color: #fff;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2;
}
@media (hover: hover) and (pointer: fine) { .hero-media a:hover img { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .hero-media img { transition: none; } }
@media (max-width: 999px) {
  .hero-split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero--split .hero-title { font-size: clamp(2.3rem, 1.3rem + 5.4vw, 3.4rem); }
  .hero--split .hero-actions .btn--ghost { display: inline-flex; }
  .hero--split .hero-creds { display: flex; }
  .hero--split .hero-creds li:last-child { display: list-item; }
  .hero-media__tag { font-size: 0.72rem; left: 8px; bottom: 8px; }
}
@media (max-width: 480px) { .hero-media__thumb .hero-media__tag { display: none; } }

/* v2.4.150: site safety team */
.capability-creds .safety-head, .safety-head { font-family: var(--sc-font-display); font-size: 1.15rem; letter-spacing: -0.02em; margin: 2.75rem 0 0; }
.safety-team { list-style: none; margin: var(--sc-4) 0 0; padding: 0; border-top: 1px solid var(--line); }
.safety-team li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; }
.safety-team li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 9px; height: 9px; border-radius: 2px; background: var(--sc-accent); }
.safety-team b { font-family: var(--sc-font-display); font-weight: 700; letter-spacing: -0.01em; }
.safety-team span { color: var(--sc-ink-soft); font-size: 0.92rem; }

/* v2.4.150: civil skills list */
.civil-skills { list-style: none; margin: var(--sc-5) 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 36rem; }
.civil-skills li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; }
.civil-skills b { font-family: var(--sc-font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.civil-skills span { color: var(--sc-ink-soft); font-size: 0.92rem; }
.civil-skills li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 9px; height: 9px; border-radius: 2px; background: var(--sc-accent); }
