/* Northern Flooring Solutions — design tokens, base, components */

/* ─── Color schemes ─── */
:root { --accent-rust: #b35a29; --nfs-header-h: 92px; }
/* Shorter header on phones — keeps the fixed bar, spacer, drawer and backdrop
   (all driven off --nfs-header-h) in lockstep so interior content never clips. */
@media (max-width: 720px) { :root { --nfs-header-h: 72px; } }
:root,
[data-scheme="forest"] {
  --ink: #1F1D1A;
  --ink-soft: #3A372F;
  --muted: #6B6657;
  --bone: #F6F1E9;
  --paper: #FBF8F2;
  --clay: #C9B89A;
  --hairline: #E4DBC9;
  --accent: #2B4438;
  --accent-deep: #1B2C25;
  --accent-soft: #E3E8E0;
  --whatsapp: #25D366;
  --whatsapp-deep: #1FAE54;
}
[data-scheme="timber"] {
  --ink: #1E1A14;
  --ink-soft: #3E3527;
  --muted: #6F6450;
  --bone: #F4EEE3;
  --paper: #FAF5EB;
  --clay: #D4BE9A;
  --hairline: #E6D9BF;
  --accent: #8E5A2B;
  --accent-deep: #6E4520;
  --accent-soft: #ECDDC6;
}
[data-scheme="ink"] {
  --ink: #15140F;
  --ink-soft: #2E2C25;
  --muted: #67645A;
  --bone: #EFECE5;
  --paper: #F6F3EC;
  --clay: #BFB6A1;
  --hairline: #D9D3C1;
  --accent: #15140F;
  --accent-deep: #000000;
  --accent-soft: #E1DCD0;
}
[data-scheme="terracotta"] {
  --ink: #231614;
  --ink-soft: #3F2823;
  --muted: #7A5C53;
  --bone: #F2E7DC;
  --paper: #F8EFE4;
  --clay: #D9B79B;
  --hairline: #E6D3BE;
  --accent: #B0533B;
  --accent-deep: #883D2A;
  --accent-soft: #F1DBCC;
}
[data-scheme="slate"] {
  --ink: #14181D;
  --ink-soft: #2E353F;
  --muted: #5E6770;
  --bone: #ECEEF1;
  --paper: #F4F5F8;
  --clay: #A8AFB9;
  --hairline: #D7DCE3;
  --accent: #2C4A6E;
  --accent-deep: #1B3354;
  --accent-soft: #D6E0EC;
}
[data-scheme="wine"] {
  --ink: #1F1612;
  --ink-soft: #3A2A24;
  --muted: #6F5A50;
  --bone: #F2EAE2;
  --paper: #F9F2EC;
  --clay: #D4B59C;
  --hairline: #E5D4C0;
  --accent: #6E2231;
  --accent-deep: #4F1421;
  --accent-soft: #ECD2D6;
}

/* ─── Base ─── */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.serif {
  font-family: "Fraunces", "Cormorant Garamond", Georgia, serif;
  font-feature-settings: "ss01", "ss03";
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  font-weight: 360;
}
.mono {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-feature-settings: "ss01";
}

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-rust);
  font-weight: 500;
}

/* ─── Layout ─── */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

section { position: relative; }
.section-pad { padding: 96px 0; }
@media (max-width: 720px) { .section-pad { padding: 64px 0; } }

/* ─── Header ─── */
.nfs-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s ease, border-color .35s ease, color .35s ease;
  border-bottom: 1px solid transparent;
  color: #fff;
}
.nfs-header.scrolled {
  background: rgba(251, 248, 242, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--hairline);
  color: var(--ink);
}
.nfs-header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nfs-header-h);
}
.nfs-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: "Fraunces", serif; font-weight: 400; font-size: 19px;
  letter-spacing: -0.01em;
  /* Never let the logo collapse or sit under the nav row (kept visible on mobile
     when switching Residential ↔ Commercial). */
  flex: 0 0 auto; position: relative; z-index: 2;
}
/* Scoped under .nfs-header AND flagged !important so the logo size wins over
   WooCommerce's global `.woocommerce img { height: auto; max-width: 100% }` reset
   (applied via body.woocommerce on shop/cart/checkout/product pages) regardless of
   stylesheet load order or CSS-minifying cache plugins — otherwise the logo renders
   at its full natural size and blows up. */
.nfs-header .nfs-logo-img {
  height: 57px !important; width: auto !important; max-width: none !important;
  display: block;
  background: rgba(251, 248, 242, 0.94);
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.nfs-header.scrolled .nfs-logo-img {
  background: transparent;
  padding: 0;
  box-shadow: none;
}
@media (max-width: 720px) {
  .nfs-header .nfs-logo-img { height: 44px !important; padding: 5px 10px; }
  /* On mobile, keep the logo on its light chip in every header state — including
     the solid/scrolled Commercial header — so it can't disappear against a solid
     background when toggling Residential ↔ Commercial. */
  .nfs-header.scrolled .nfs-logo-img,
  .nfs-header.is-solid .nfs-logo-img {
    background: rgba(251, 248, 242, 0.94);
    padding: 5px 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  }
}
.nfs-logo-mark {
  width: 32px; height: 32px; border-radius: 4px;
  background: var(--accent);
  display: grid; place-items: center;
  color: var(--paper);
  font-family: "Fraunces", serif; font-weight: 500; font-size: 17px;
  font-style: italic;
}
.nfs-header.scrolled .nfs-logo-mark { background: var(--accent); }
.nfs-nav { display: flex; gap: 28px; align-items: center; }
.nfs-nav a { font-size: 14px; opacity: 0.92; }
.nfs-nav a:hover { opacity: 1; }
.nfs-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--accent); color: var(--paper);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--accent);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, transform .15s ease;
}
.nfs-cta:hover { background: var(--accent-deep); }
.nfs-cta.ghost { background: transparent; color: #fff; border-color: #fff; opacity: 1; }
.nfs-cta.ghost:hover { background: rgba(255,255,255,0.14); }
.nfs-header.scrolled .nfs-cta.ghost { color: var(--ink); border-color: var(--ink); opacity: 0.85; }
.nfs-header.scrolled .nfs-cta.ghost:hover { opacity: 1; background: rgba(0,0,0,0.04); }
@media (max-width: 880px) { .nfs-nav .nfs-nav-link { display: none; } }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-whatsapp { background: var(--whatsapp); color: #073d20; border-color: var(--whatsapp); }
.btn-whatsapp:hover { background: var(--whatsapp-deep); border-color: var(--whatsapp-deep); color: #042a16; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 58px; padding: 0 28px; font-size: 16px; }
.btn .arrow { transition: transform .25s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* ─── Image placeholders ─── */
.img-ph {
  position: relative; overflow: hidden;
  background-color: var(--clay);
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.06) 25%, transparent 25%, transparent 50%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.06) 75%, transparent 75%);
  background-size: 18px 18px;
  transition: opacity .35s ease;
}
.img-ph::after {
  content: attr(data-ph);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: rgba(0,0,0,0.55); letter-spacing: 0.04em;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
}
.img-ph.img-loaded {
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
}
.img-ph.img-loaded::after { display: none; }
.img-ph.dark { background-color: #2A2620; color: #C9B89A; }
.img-ph.dark::after { color: rgba(255,255,255,0.6); }

/* ─── Reveal animations — visible by default, GSAP overrides initial state if active ─── */
.reveal { opacity: 1; }
.reveal-stagger > * { opacity: 1; }

/* ─── Hero ─── */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* excludes mobile browser chrome so the CTAs never sit below the fold */
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #1a1814;
}
.hero-bg {
  position: absolute; inset: -8% -2%;
  background-color: #2a2620;
  will-change: transform;
}
.hero-bg::before { content: none; }
.hero-bg::after { content: none; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 35%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 100px; padding-bottom: 64px;
}
.hero-headline {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(48px, 8vw, 110px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  max-width: 14ch;
}
.hero-headline em {
  font-style: italic; font-weight: 300;
  color: var(--clay);
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 46ch; opacity: 0.85;
  margin: 0 0 36px;
  line-height: 1.5;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.6; z-index: 2;
}
.hero-scroll .line { width: 1px; height: 32px; background: currentColor; animation: scrollPulse 2.4s ease-in-out infinite; }
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* split text */
.split-word { display: inline-block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; vertical-align: top; }
.split-word > span { display: inline-block; will-change: transform; }
.no-anim .split-word > span { transform: none !important; }

/* ─── Configurator band ─── */
.config-band {
  background: var(--ink);
  color: var(--bone);
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.config-band-inner {
  display: grid; grid-template-columns: 1.4fr auto; gap: 48px;
  align-items: center;
}
@media (max-width: 880px) { .config-band-inner { grid-template-columns: 1fr; } }
.config-band h2 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(34px, 5vw, 58px); line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
}
.config-band h2 em { color: var(--clay); font-style: italic; }
.config-band-cta {
  display: inline-flex; align-items: center; gap: 18px;
  background: var(--bone); color: var(--ink);
  padding: 22px 28px; border-radius: 999px;
  font-size: 17px; font-weight: 500;
  cursor: pointer; border: 0;
  transition: transform .25s ease, background .25s;
}
.config-band-cta:hover { transform: translateY(-2px); background: var(--clay); }
.config-band-cta .arr {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--paper);
  display: grid; place-items: center;
  transition: transform .3s ease;
}
.config-band-cta:hover .arr { transform: translateX(4px); }
.config-band-decor {
  position: absolute; right: -80px; top: -40px; bottom: -40px; width: 320px;
  opacity: 0.06; pointer-events: none;
  background-image: repeating-linear-gradient(110deg, transparent 0 60px, var(--clay) 60px 62px);
}

/* ─── Section heading ─── */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
@media (max-width: 720px) { .section-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 36px; } }
.section-head h2 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 10px 0 0; max-width: 18ch;
}
.section-head p { color: var(--muted); max-width: 38ch; margin: 0; font-size: 16px; }

/* ─── Category grid ─── */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1080px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card {
  position: relative; overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--clay);
}
.cat-card .cat-img {
  position: absolute; inset: 0;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.cat-card:hover .cat-img { transform: scale(1.06); }
.cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
}
.cat-card.is-service::after { background: linear-gradient(180deg, rgba(30,36,28,0.08) 20%, rgba(30,36,28,0.82) 100%); }
.cat-meta {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  z-index: 2; color: #fff;
}
.cat-meta .num { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.1em; opacity: 0.75; }
.cat-meta h3 {
  font-family: "Fraunces", serif; font-weight: 350;
  font-size: 30px; line-height: 1.03; margin: 6px 0 8px; letter-spacing: 0;
  overflow-wrap: anywhere;
}
.cat-meta .subs {
  font-size: 13px; opacity: 0.85;
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, margin .3s;
}
.cat-card:hover .cat-meta .subs { max-height: 60px; margin-top: 6px; }
.cat-meta .arrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; font-size: 13px;
}
.cat-meta .arrow-pill .a {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(8px);
  display: grid; place-items: center;
  transition: background .25s, transform .25s;
}
.cat-card:hover .arrow-pill .a { background: var(--paper); color: var(--ink); transform: translateX(2px); }

/* ─── How it works (pinned) ─── */
.how-section { background: var(--paper); padding: clamp(56px, 8vh, 96px) 0; }
.how-section .section-head { margin-bottom: clamp(32px, 4vh, 56px); }
.how-pin {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 72px; align-items: stretch;
  /* GSAP pins this element at top:88, so making it (100vh - 120px) tall means
     the pinned region fills the viewport with a 32px breather at the bottom.
     The image inside .how-right then has a clear height target to stretch into. */
  height: calc(100vh - 120px);
  max-height: 900px;
}
@media (max-width: 960px) { .how-pin { grid-template-columns: 1fr; gap: 32px; } }
.how-left { align-self: center; }
.how-step-label { display: flex; gap: 14px; align-items: baseline; margin-bottom: 14px; }
.how-step-label .num { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.how-step-label .of { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); }
.how-progress { display: flex; gap: 6px; margin-top: 24px; }
.how-progress span { flex: 1; height: 2px; background: var(--hairline); border-radius: 1px; overflow: hidden; }
.how-progress span.done { background: var(--accent); }
.how-progress span.active { background: var(--accent); }
.how-title {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(36px, 4.5vw, 58px); line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 18px;
}
.how-copy { color: var(--muted); font-size: 17px; max-width: 38ch; }
.how-right {
  position: relative;
  /* Stretch vertically to the .how-pin row height (no align-self override).
     Width derives from that height so the image stays a 4:5 portrait rectangle
     regardless of column width — works identically in Safari and Chromium. */
  --pin-h: min(900px, calc(100vh - 120px));
  width: min(100%, calc(var(--pin-h) * 4 / 5));
  margin: 0 auto;
  border-radius: 4px; overflow: hidden;
}
@media (max-width: 960px) {
  .how-right { width: min(100%, calc(60vh * 4 / 5)); height: 60vh; }
}
.how-frame {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s ease;
}
.how-frame.active { opacity: 1; }
.how-frame .img-ph { position: absolute; inset: 0; }

/* ─── Lookbook (horizontal scroll) ─── */
.lookbook { background: var(--bone); padding: clamp(56px, 8vh, 96px) 0; overflow: hidden; }
.lookbook-track-wrap {
  position: relative;
  /* Cap so the pinned section never exceeds viewport: leaves room for
     section padding + section-head (overhead measured at ~340-380px). */
  height: min(70vh, calc(100vh - 340px));
  min-height: 360px;
}
.lookbook-track {
  display: flex; gap: 24px;
  height: 100%;          /* gives lb-card's `min(..., 100%)` a definite reference */
  padding-left: max(32px, calc((100vw - 1320px)/2 + 32px));
  padding-right: 40vw;
  will-change: transform;
  align-items: center;
}
.lb-card {
  flex: 0 0 auto;
  width: 380px;
  height: min(540px, 100%);
  position: relative;
  border-radius: 4px; overflow: hidden;
  background: var(--clay);
}
.lb-card:nth-child(odd) { height: min(480px, calc(100% - 30px)); }
.lb-card:nth-child(3n) { width: 460px; }
.lb-card .img-ph { position: absolute; inset: 0; }
.lb-card .lb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-tag {
  position: absolute; left: 20px; top: 20px;
  z-index: 2;
  background: rgba(0,0,0,0.5); color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 6px 12px; border-radius: 999px;
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.lb-meta {
  position: absolute; left: 20px; right: 20px; bottom: 20px; color: #fff;
  z-index: 2;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.lb-meta h4 { font-family: "Fraunces", serif; font-weight: 350; font-size: 22px; margin: 0; }
.lb-meta p { font-size: 13px; opacity: 0.85; margin: 4px 0 0; }
.lb-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.45) 70%, rgba(0,0,0,0.85) 100%); pointer-events: none; z-index: 1; }

/* ─── Sanding & polishing before/after ─── */
.sanding { background: var(--ink); color: var(--bone); }
.sanding-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
@media (max-width: 880px) { .sanding-grid { grid-template-columns: 1fr; gap: 32px; } }
.sanding h2 { color: var(--bone); }
.sanding p { color: rgba(255,255,255,0.7); }
.ba-wrap {
  position: relative; aspect-ratio: 4/3;
  border-radius: 4px; overflow: hidden;
  cursor: ew-resize; user-select: none;
}
.ba-img { position: absolute; inset: 0; }
.ba-after { clip-path: inset(0 0 0 var(--ba-pos, 50%)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--ba-pos, 50%); transform: translateX(-50%);
  width: 2px; background: #fff;
  pointer-events: none;
}
.ba-handle::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%; background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.ba-handle::after {
  content: "↔"; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--ink); font-size: 18px; font-weight: 700;
}
.ba-label {
  position: absolute; top: 16px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(10px);
  color: #fff; padding: 6px 12px; border-radius: 999px;
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.ba-label.before { left: 16px; }
.ba-label.after { right: 16px; }

/* ─── Tiles spotlight ─── */
.tiles-spotlight { background: var(--paper); }
.tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .tiles-grid { grid-template-columns: 1fr; gap: 40px; }
}
.tiles-copy .eyebrow { display: inline-block; margin-bottom: 14px; }
.tiles-copy h2 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.tiles-copy h2 em { color: var(--accent-rust); font-style: italic; }
.tiles-copy p {
  font-size: 17px; color: var(--muted);
  max-width: 46ch; line-height: 1.55;
  margin: 0 0 28px;
}
.tile-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.tile-chips span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--hairline);
  padding: 8px 12px; border-radius: 999px;
}
.tiles-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 12px;
  aspect-ratio: 1 / 1;
}
@media (max-width: 540px) {
  .tiles-visual { aspect-ratio: auto; }
}
.tile-card {
  position: relative; overflow: hidden;
  border-radius: 4px;
  background: var(--bone);
}
.tile-card .img-ph {
  position: absolute; inset: 0;
  transition: transform .6s cubic-bezier(.5,.05,.15,1);
}
.tile-card:hover .img-ph { transform: scale(1.05); }
.tile-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.tile-tag {
  position: absolute; left: 14px; bottom: 12px;
  z-index: 2;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  padding: 6px 10px; border-radius: 999px;
}

/* ─── Trust strip ─── */
.trust { background: var(--paper); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
@media (max-width: 880px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-stat {
  padding: 32px 0; border-right: 1px solid var(--hairline);
  text-align: center;
}
.trust-stat:last-child { border-right: 0; }
@media (max-width: 880px) { .trust-stat { border-right: 0; border-bottom: 1px solid var(--hairline); } .trust-stat:last-child { border-bottom: 0; } }
.trust-stat .n {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(48px, 6vw, 76px); line-height: 1;
  letter-spacing: -0.02em;
}
.trust-stat .l { font-size: 13px; color: var(--muted); margin-top: 8px; }
.review-stars { color: #E2A341; letter-spacing: 2px; }

/* ─── Google reviews (summary bar + swipeable rail) ─── */
.greviews { margin-top: 64px; }

.greviews-summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px;
  padding: 22px 28px; border: 1px solid var(--hairline); border-radius: 4px;
  background: var(--paper);
}
.greviews-brand { display: flex; align-items: baseline; gap: 8px; }
.greviews-wordmark { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.greviews-wordmark span:nth-child(1) { color: #4285F4; }
.greviews-wordmark span:nth-child(2) { color: #EA4335; }
.greviews-wordmark span:nth-child(3) { color: #FBBC05; }
.greviews-wordmark span:nth-child(4) { color: #4285F4; }
.greviews-wordmark span:nth-child(5) { color: #34A853; }
.greviews-wordmark span:nth-child(6) { color: #EA4335; }
.greviews-brand-label { font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }
.greviews-score { display: flex; align-items: center; gap: 10px; }
.greviews-rating { font-family: "Fraunces", serif; font-weight: 400; font-size: 28px; line-height: 1; }
.greviews-score .review-stars { font-size: 17px; }
.greviews-count { font-size: 13px; color: var(--muted); }
.greviews-cta { margin-left: auto; flex: none; }
@media (max-width: 720px) {
  .greviews-summary { padding: 20px; }
  .greviews-cta { margin-left: 0; width: 100%; justify-content: center; }
}

.greviews-rail {
  margin-top: 24px;
  display: flex; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 6px;
  /* The rail is the scroller, so let the cards breathe against the wrap edge. */
  scrollbar-width: none;
}
.greviews-rail::-webkit-scrollbar { display: none; }
.greviews-rail:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .greviews-rail { scroll-behavior: auto; } }

.greview {
  flex: 0 0 clamp(258px, 31%, 340px);
  scroll-snap-align: start;
  background: var(--bone); border: 1px solid var(--hairline); border-radius: 4px;
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
@media (max-width: 720px) { .greview { flex-basis: 82%; padding: 20px; } }

.greview-head { display: flex; align-items: center; gap: 12px; }
.greview-av {
  position: relative; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--av-bg, var(--clay)); color: #fff;
  display: grid; place-items: center;
  font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 17px; line-height: 1;
}
.greview-av .nfs-g-glyph {
  position: absolute; right: -3px; bottom: -3px;
  background: #fff; border-radius: 50%; padding: 2px;
  box-shadow: 0 0 0 1px var(--hairline);
}
.greview-who { min-width: 0; }
.greview-name {
  display: flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.greview-tick { flex: none; }
.greview-when { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.greview-body { display: flex; flex-direction: column; gap: 6px; }
.greview-text {
  margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5;
  overflow: hidden;
}
.greview.is-open .greview-text { -webkit-line-clamp: unset; overflow: visible; }
.greview-more {
  align-self: flex-start; background: none; border: 0; padding: 0;
  font: inherit; font-size: 13px; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.greview-more:hover { color: var(--accent-deep); }

.greviews-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.greviews-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--hairline); background: var(--paper); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.greviews-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.greviews-arrow:disabled { opacity: 0.35; cursor: default; }
.greviews-dots { display: flex; align-items: center; gap: 8px; }
.greviews-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: var(--clay); opacity: 0.5; cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.greviews-dots button[aria-current="true"] { opacity: 1; background: var(--accent); }
.service-area {
  margin-top: 64px; padding: 40px; border: 1px solid var(--hairline);
  border-radius: 4px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center;
}
@media (max-width: 880px) { .service-area { grid-template-columns: 1fr; gap: 20px; padding: 28px; } }
.service-area h3 { font-family: "Fraunces", serif; font-weight: 350; font-size: 28px; margin: 8px 0 12px; letter-spacing: -0.01em; }
.service-area p { color: var(--muted); margin: 0; }
.suburb-list { display: flex; flex-wrap: wrap; gap: 6px 0; column-gap: 14px; font-size: 13px; color: var(--muted); }
.suburb-list .dot { color: var(--clay); }

/* ─── Booking ─── */
.booking { background: var(--bone); }
.booking-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: stretch; }
@media (max-width: 960px) { .booking-grid { grid-template-columns: 1fr; gap: 40px; } }
.booking-copy h2 { margin-top: 12px; }
.booking-steps { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.booking-step { display: flex; gap: 18px; align-items: flex-start; }
.booking-step .n {
  flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  font-family: "Fraunces", serif; font-weight: 400; font-size: 18px;
}
.booking-step h4 { font-family: "Fraunces", serif; font-weight: 400; font-size: 20px; margin: 8px 0 4px; }
.booking-step p { margin: 0; color: var(--muted); font-size: 15px; }
.quickcal {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: 4px; padding: 28px;
}
.quickcal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.quickcal-head h4 { font-family: "Fraunces", serif; font-weight: 400; font-size: 19px; margin: 0; }
.quickcal-head .week-nav { display: flex; gap: 6px; }
.quickcal-head .week-nav button {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--hairline); background: var(--paper);
  cursor: pointer;
}
.quickcal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.quickcal-week.is-single-day { grid-template-columns: minmax(220px, 420px); }
.qc-day {
  text-align: center; padding: 10px 4px;
  border-radius: 4px;
}
.qc-day .dow { font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--muted); letter-spacing: 0.08em; }
.qc-day .date { font-family: "Fraunces", serif; font-size: 22px; margin: 4px 0; }
.qc-slots { display: flex; flex-direction: column; gap: 4px; }
.quickcal-week.is-single-day .qc-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qc-slot {
  font-size: 11px; padding: 5px 6px; border-radius: 4px;
  background: var(--bone); border: 1px solid var(--hairline);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.qc-slot:hover { background: var(--accent-soft); border-color: var(--accent); }
.qc-slot.selected { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.qc-slot.unavail { opacity: 0.3; cursor: not-allowed; }
.qc-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.qc-footer .sel { font-size: 13px; }
.qc-footer .sel strong { font-weight: 500; }
.qc-footer .sel span { color: var(--muted); }

/* Mobile: tighten the 7-column quickcal so it fits below ~540px without overflowing.
   Without min-width:0 the grid items defend their content width and push the
   .booking-grid parent wider than the viewport on the homepage and book page. */
@media (max-width: 540px) {
  .quickcal { padding: 18px; }
  .quickcal-head h4 { font-size: 16px; }
  .quickcal-week { gap: 4px; }
  .quickcal-week.is-single-day { grid-template-columns: 1fr; }
  .quickcal-week.is-single-day .qc-slots { grid-template-columns: 1fr; }
  .qc-day { min-width: 0; }
  .qc-day .dow { font-size: 9px; }
  .qc-day .date { font-size: 16px; }
  .qc-slot { font-size: 10px; padding: 4px 2px; min-width: 0; }
  .qc-footer { flex-direction: column; align-items: stretch; gap: 12px; }
  .qc-footer .btn { width: 100%; text-align: center; }
}

/* ─── Footer ─── */
.nfs-footer {
  background: var(--ink); color: var(--bone);
  padding: 80px 0 40px;
}
.nfs-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; }
@media (max-width: 880px) { .nfs-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .nfs-footer-grid { grid-template-columns: 1fr; } }
.nfs-footer h5 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 16px; font-weight: 500; }
.nfs-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.nfs-footer a:hover { color: var(--clay); }
.nfs-footer .ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.nfs-footer .ig-grid .img-ph { aspect-ratio: 1; border-radius: 2px; }
.nfs-footer .img-ph.ig-single { aspect-ratio: 4 / 3; border-radius: 2px; margin-top: 8px; }
.nfs-foot-accred {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 32px; margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nfs-foot-accred-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-right: 6px;
}
.nfs-foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px 32px;
  padding-top: 24px; margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.nfs-foot-bottom a:hover { color: var(--bone); }
.nfs-foot-legal { display: flex; gap: 24px; flex-wrap: wrap; }

/* Build credit — quiet by default, warms on hover so it reads as a signature, not an ad. */
.nfs-foot-credit {
  display: inline-flex; align-items: center; gap: 5px;
  margin: 0; font-size: 12px; color: rgba(255,255,255,0.45);
}
.nfs-foot-credit a {
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.nfs-foot-credit a:hover { color: var(--bone); border-bottom-color: var(--clay); }
.nfs-foot-heart {
  display: inline-flex; color: var(--accent-rust);
  transform: translateY(0.5px);
  transition: transform .25s ease;
}
.nfs-foot-credit:hover .nfs-foot-heart { transform: translateY(0.5px) scale(1.18); }
@media (max-width: 900px) {
  .nfs-foot-bottom { justify-content: flex-start; }
  .nfs-foot-credit { order: 3; width: 100%; }
}

/* ─── Industry credential badges (ATFA, FSC) ─── */
.cert-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink-soft);
  text-decoration: none;
}
.cert-badge .cert-mark { width: 26px; height: 32px; flex-shrink: 0; display: block; }
.cert-badge-atfa .cert-mark { color: #1F4A8C; }
.cert-badge-fsc .cert-mark { color: #2B4438; }
.cert-badge .cert-text { display: flex; flex-direction: column; line-height: 1.1; }
.cert-badge .cert-name {
  font-family: 'Fraunces', serif; font-size: 15px; font-weight: 500; letter-spacing: 0;
  color: var(--ink);
}
.cert-badge .cert-role {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}
.cert-badge-lg { padding: 14px 22px 14px 16px; gap: 14px; }
.cert-badge-lg .cert-mark { width: 36px; height: 44px; }
.cert-badge-lg .cert-name { font-size: 19px; }
.cert-badge-lg .cert-role { font-size: 10px; margin-top: 3px; }
.cert-badge-dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.15);
}
.cert-badge-dark .cert-name { color: rgba(255,255,255,0.95); }
.cert-badge-dark .cert-role { color: rgba(255,255,255,0.55); }
.cert-badge-dark.cert-badge-atfa .cert-mark { color: #6F9FE0; }
.cert-badge-dark.cert-badge-fsc .cert-mark { color: #7EA98A; }

/* Official-logo variant: render the artwork cleanly, no placeholder chrome. The
   supplied logos assume a light background, so keep the chip light even in the
   dark footer (a white logo tile), otherwise the black wordmark disappears. */
.cert-badge.cert-badge-logo { background: #fff; border-color: rgba(0,0,0,0.1); padding: 8px 14px; }
.cert-badge-logo .cert-logo { display: block; height: 34px; width: auto; max-width: 200px; }
.cert-badge-lg.cert-badge-logo .cert-logo { height: 46px; }

.cert-badge-strip {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 48px;
}

/* ─── Contact launcher nudge bubble ─── */
.cl-nudge {
  position: absolute;
  right: 76px;   /* 60px trigger + 16px gap */
  bottom: 8px;   /* roughly centred against the trigger */
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 18px 18px 4px 18px;
  padding: 12px 16px 12px 14px;
  box-shadow: 0 12px 28px rgba(20,18,15,0.18), 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  width: 268px;
  font-size: 13.5px;
  line-height: 1.35;
  white-space: normal;
  opacity: 0;
  transform: translateX(10px) scale(0.96);
  pointer-events: none;
  transform-origin: bottom right;
  transition:
    opacity .35s ease,
    transform .45s cubic-bezier(.34,1.4,.64,1);
}
.cl-nudge.show {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  animation: clNudgeWiggle 1.2s ease 0.6s 1;
}
@keyframes clNudgeWiggle {
  0%, 100% { transform: translateX(0) scale(1) rotate(0deg); }
  20%      { transform: translateX(0) scale(1) rotate(-2deg); }
  45%      { transform: translateX(0) scale(1) rotate(2deg); }
  70%      { transform: translateX(0) scale(1) rotate(-1deg); }
}
.cl-nudge-tail {
  position: absolute;
  right: -7px;
  bottom: 12px;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transform: rotate(-45deg);
  border-radius: 0 0 3px 0;
}
.cl-nudge-text { flex: 1; min-width: 0; padding-right: 14px; }
.cl-nudge-text strong {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 1px;
  color: var(--ink);
}
.cl-nudge-text span {
  font-family: "Instrument Sans", sans-serif;
  font-size: 12.5px;
  color: var(--muted);
}
.cl-nudge-dismiss {
  position: absolute;
  top: 6px; right: 6px;
  z-index: 2;
  width: 20px; height: 20px;
  flex: none;
  background: transparent;
  border: 0; border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.cl-nudge-dismiss:hover { background: var(--bone); color: var(--ink); }

@media (max-width: 540px) {
  .cl-nudge {
    right: 70px;
    width: calc(100vw - 100px);
    font-size: 12.5px;
    padding: 10px 14px 10px 12px;
  }
  .cl-nudge-text strong { font-size: 14px; }
  .cl-nudge-text span { font-size: 11.5px; }
}

/* ─── Contact launcher (floating bottom-right) ─── */
.cl-widget {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 14px;
}

/* Trigger */
.cl-trigger {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: var(--paper);
  border: 0; cursor: pointer;
  display: grid; place-items: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(20,18,15,0.25), 0 0 0 0 rgba(43, 68, 56, 0.4);
  animation: clPulse 3.4s ease-in-out infinite;
  transition: transform .25s ease, background .2s ease;
}
.cl-trigger:hover { transform: scale(1.06); }
.cl-trigger.open {
  background: var(--ink);
  animation: none;
  box-shadow: 0 10px 30px rgba(20,18,15,0.3);
}
.cl-trigger .cl-icon {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  transition: transform .35s cubic-bezier(.34,1.4,.64,1), opacity .25s ease;
}
.cl-trigger .cl-icon-close {
  font-size: 22px; font-weight: 300;
  transform: rotate(-90deg) scale(0.6);
  opacity: 0;
}
.cl-trigger.open .cl-icon-chat {
  transform: rotate(90deg) scale(0.7); opacity: 0;
}
.cl-trigger.open .cl-icon-close {
  transform: rotate(0deg) scale(1); opacity: 1;
}
@keyframes clPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(20,18,15,0.25), 0 0 0 0 rgba(43, 68, 56, 0.35); }
  60% { box-shadow: 0 10px 30px rgba(20,18,15,0.25), 0 0 0 16px rgba(43, 68, 56, 0); }
}

/* Option menu */
.cl-options {
  display: flex; flex-direction: column; gap: 10px;
  align-items: stretch;
  pointer-events: auto;
}
.cl-options-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  background: rgba(251,248,242,0.9);
  backdrop-filter: blur(8px);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--hairline);
  margin-bottom: 4px;
  align-self: flex-end;
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.34,1.4,.64,1);
  transition-delay: 0s;
}
.cl-options.shown .cl-options-label { opacity: 1; transform: none; }

.cl-option {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 14px;
  width: 252px;
  min-height: 56px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 8px 22px 8px 8px;
  font-family: inherit; text-align: left;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 24px rgba(20,18,15,0.14);
  transition:
    transform .25s cubic-bezier(.34,1.4,.64,1),
    box-shadow .2s ease,
    background .15s,
    opacity .35s ease;
  white-space: nowrap;
  transform-origin: bottom right;
  /* Default (hidden) — flips to visible when .cl-options.shown */
  opacity: 0;
  transform: translateY(14px) scale(0.92);
}
.cl-options.shown .cl-option {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    transform .42s cubic-bezier(.34,1.4,.64,1),
    box-shadow .2s ease,
    background .15s,
    opacity .42s ease;
}
/* Stagger: Call appears first, then Email, then WhatsApp */
.cl-options.shown .cl-option:nth-child(2) { transition-delay: 0s; }
.cl-options.shown .cl-option:nth-child(3) { transition-delay: 0.06s; }
.cl-options.shown .cl-option:nth-child(4) { transition-delay: 0.12s; }
.cl-option:hover {
  transform: translateX(-4px) translateY(0) scale(1);
  box-shadow: 0 12px 30px rgba(20,18,15,0.2);
}

.cl-option .ico {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.cl-option:hover .ico { background: var(--accent); color: var(--paper); }
.cl-option .ico.ico-wa { background: rgba(37,211,102,0.16); color: var(--whatsapp-deep); }
.cl-option.cl-option-wa:hover .ico { background: var(--whatsapp); color: #fff; }

.cl-option .lbl {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 14px; line-height: 1.2;
  min-width: 0;
}
.cl-option .lbl strong { font-weight: 500; color: var(--ink); }
.cl-option .lbl small {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* Panel (Email / WhatsApp) */
.cl-panel {
  width: 360px; max-width: calc(100vw - 32px);
  background: var(--paper);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(20,18,15,0.28), 0 2px 6px rgba(0,0,0,0.08);
  animation: clPanelIn .35s cubic-bezier(.34,1.4,.64,1) both;
  transform-origin: bottom right;
}
@keyframes clPanelIn {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cl-panel-head {
  color: #fff;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.cl-panel-back, .cl-panel-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.18); border: 0;
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  font-size: 14px; line-height: 1;
  flex: none;
  transition: background .15s;
}
.cl-panel-back:hover, .cl-panel-close:hover { background: rgba(255,255,255,0.28); }
.cl-panel-close { margin-left: auto; }
.cl-panel-head-meta { flex: 1; min-width: 0; }
.cl-panel-head-meta .ttl {
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: 17px; line-height: 1.2;
}
.cl-panel-head-meta .sub {
  font-size: 11px; opacity: 0.85;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.cl-panel-body { padding: 18px 20px 22px; color: var(--ink); }
.cl-panel-body .lead {
  font-size: 14px; line-height: 1.5;
  color: var(--ink-soft); margin: 0 0 14px;
}
.cl-panel-body .lead strong { color: var(--ink); font-weight: 500; }

.cl-field {
  width: 100%;
  background: var(--bone); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 11px 12px;
  font-family: inherit; font-size: 14px; color: var(--ink);
  outline: none;
  margin-bottom: 8px;
}
.cl-field:focus { border-color: var(--accent); }

.cl-textarea {
  width: 100%; min-height: 80px; resize: vertical;
  background: var(--bone); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 11px 12px;
  font-family: inherit; font-size: 14px; color: var(--ink);
  outline: none;
}
.cl-textarea:focus { border-color: var(--accent); }

.cl-context {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--bone); border-radius: 8px;
  padding: 10px 12px; margin-top: 10px;
  font-size: 12px; color: var(--muted); line-height: 1.4;
}
.cl-context .ico { flex: none; width: 16px; height: 16px; color: var(--accent); margin-top: 1px; }
.cl-context strong { color: var(--ink); font-weight: 500; }

.cl-send {
  margin-top: 14px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border-radius: 999px;
  border: 0;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .2s, opacity .2s;
}
.cl-send:disabled { opacity: 0.4; cursor: not-allowed; }
.cl-send-wa { background: var(--whatsapp); color: #fff; }
.cl-send-wa:hover { background: var(--whatsapp-deep); }
.cl-send-primary { background: var(--accent); color: var(--paper); }
.cl-send-primary:hover { background: var(--accent-deep); }

/* Sent state */
.cl-sent { text-align: center; padding: 8px 0 4px; }
.cl-sent-tick {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 24px;
  margin: 0 auto 16px;
}
.cl-sent h4 {
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: 22px; margin: 0 0 10px; letter-spacing: -0.01em;
}
.cl-sent p {
  font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0;
}
.cl-sent p strong { color: var(--ink); font-weight: 500; }
.cl-sent p a { color: var(--accent); text-decoration: underline; }

@media (max-width: 540px) {
  .cl-widget { right: 16px; bottom: 16px; }
  .cl-panel { width: calc(100vw - 32px); }
  .cl-option .lbl small { display: none; }
  .cl-nudge { right: 60px; }
}

/* ─── WhatsApp widget ─── */
.wa-widget { position: fixed; right: 20px; bottom: 20px; z-index: 90; }
.wa-bubble {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4), 0 0 0 8px rgba(37, 211, 102, 0.08);
  border: 0;
  animation: waPulse 2.6s ease-in-out infinite;
  transition: transform .2s ease;
}
.wa-bubble:hover { transform: scale(1.06); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  60% { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4), 0 0 0 18px rgba(37, 211, 102, 0); }
}
.wa-card {
  position: absolute; bottom: 0; right: 0;
  width: 340px;
  background: var(--paper);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.1);
  transform-origin: bottom right;
}
.wa-card-head {
  background: #128C7E; color: #fff;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 12px;
}
.wa-card-head .av {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--clay); border: 2px solid rgba(255,255,255,0.5);
  background-image: linear-gradient(135deg, #8E5A2B 0%, #C9B89A 100%);
}
.wa-card-head .who { font-size: 14px; font-weight: 500; }
.wa-card-head .who span { display: block; font-size: 12px; font-weight: 400; opacity: 0.85; }
.wa-card-head .close {
  margin-left: auto;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.18); border: 0; color: #fff;
  cursor: pointer; font-size: 14px; line-height: 1;
}
.wa-card-body { padding: 18px 20px 20px; color: var(--ink); }
.wa-card-body .lead { font-size: 14px; line-height: 1.45; margin: 0 0 14px; }
.wa-card-body .lead strong { color: var(--accent); font-weight: 600; }
.wa-textarea {
  width: 100%; min-height: 76px; resize: vertical;
  background: var(--bone); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 12px;
  font-family: inherit; font-size: 14px; color: var(--ink);
  outline: none;
}
.wa-textarea:focus { border-color: var(--accent); }
.wa-context {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--bone); border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 12px; color: var(--muted);
}
.wa-context .ico { flex: none; width: 16px; height: 16px; color: var(--accent); margin-top: 1px; }
.wa-context strong { color: var(--ink); font-weight: 500; }
.wa-send {
  margin-top: 14px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border-radius: 999px;
  background: var(--whatsapp); color: #fff; border: 0;
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background .2s;
}
.wa-send:hover { background: var(--whatsapp-deep); }
@media (max-width: 540px) {
  .wa-widget { right: 16px; bottom: 16px; }
  .wa-card { width: calc(100vw - 32px); right: 0; }
}

/* ─── Marquee (suburb names) ─── */
.marquee { overflow: hidden; padding: 12px 0; }
.marquee-track { display: flex; gap: 48px; white-space: nowrap; animation: marquee 60s linear infinite; }
.marquee-track .it {
  font-family: "Fraunces", serif; font-weight: 350;
  font-size: 28px; color: var(--clay);
  display: flex; align-items: center; gap: 48px;
}
.marquee-track .it::after { content: "·"; color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Configurator ─── */
.cfg-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bone);
  display: flex; flex-direction: column;
}
.cfg-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 32px; border-bottom: 1px solid var(--hairline);
}
@media (max-width: 720px) { .cfg-head { padding: 16px 20px; } }
.cfg-progress-row { display: flex; gap: 6px; flex: 1; max-width: 360px; margin: 0 32px; }
@media (max-width: 720px) { .cfg-progress-row { margin: 0 16px; } }
.cfg-progress-row span { flex: 1; height: 3px; background: var(--hairline); border-radius: 2px; overflow: hidden; }
.cfg-progress-row span.done { background: var(--accent); }
.cfg-progress-row span.active { background: var(--accent); }
.cfg-step-num { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.cfg-close { background: transparent; border: 0; cursor: pointer; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.cfg-close:hover { color: var(--ink); }

.cfg-body { flex: 1; overflow: auto; }
.cfg-step {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(24px, 4vh, 48px) 32px 32px;
}
@media (max-width: 720px) { .cfg-step { padding: 32px 20px 56px; } }
.cfg-q-head { text-align: center; margin-bottom: clamp(20px, 3vh, 36px); }
.cfg-q-head .eyebrow { display: inline-block; margin-bottom: 10px; }
.cfg-q-head h1 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(26px, 3.6vw, 44px); line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 auto 14px; max-width: 18ch;
}
.cfg-q-head p { color: var(--muted); margin: 0 auto; max-width: 50ch; font-size: 16px; }

.cfg-options {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 1100px; margin: 0 auto;
}
.cfg-options.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
.cfg-options.cols-3 { grid-template-columns: repeat(3, 1fr); max-width: 920px; }
.cfg-options.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) {
  .cfg-options, .cfg-options.cols-3, .cfg-options.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cfg-options.cols-2 { grid-template-columns: 1fr; }
}
.cfg-opt {
  position: relative; aspect-ratio: 1/1;
  border-radius: 4px; overflow: hidden;
  background: var(--clay); cursor: pointer;
  border: 2px solid transparent;
  transition: transform .25s ease, border-color .25s;
}
.cfg-opt:hover { transform: translateY(-3px); }
.cfg-opt.selected { border-color: var(--accent); transform: translateY(-3px); }
.cfg-opt .img-ph { position: absolute; inset: 0; }
.cfg-opt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.75) 100%); }
.cfg-opt .lbl { position: absolute; left: 18px; right: 18px; bottom: 18px; color: #fff; z-index: 2; }
.cfg-opt .lbl h3 { font-family: "Fraunces", serif; font-weight: 350; font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.cfg-opt .lbl p { font-size: 12px; opacity: 0.85; margin: 4px 0 0; }
.cfg-opt .tick {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--paper); display: grid; place-items: center;
  color: var(--accent); font-size: 14px;
  opacity: 0; transform: scale(0.6);
  transition: opacity .2s, transform .2s;
}
.cfg-opt.selected .tick { opacity: 1; transform: scale(1); }

.cfg-foot {
  border-top: 1px solid var(--hairline);
  padding: 20px 32px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--paper);
}
@media (max-width: 720px) { .cfg-foot { padding: 16px 20px; } }
.cfg-restart { background: transparent; border: 0; cursor: pointer; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.cfg-restart:hover { color: var(--ink); }
.cfg-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: 14px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.cfg-back:hover { border-color: var(--accent); background: var(--accent-soft); }
.cfg-next { display: flex; align-items: center; gap: 16px; }
.cfg-next .hint { font-size: 13px; color: var(--muted); }

/* Step transitions — kept minimal due to iframe quirks */
.cfg-step { opacity: 1; }

/* Details step (optional area + floor plan upload) */
.cfg-details {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 20px;
}
.cfg-detail-card {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: 6px; padding: 24px 26px;
}
.cfg-detail-card .label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.cfg-detail-card .label strong {
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: 19px; letter-spacing: -0.01em;
}
.cfg-detail-card .label .opt {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.cfg-detail-card p {
  margin: 0 0 16px; font-size: 14px; color: var(--muted); line-height: 1.5;
}
.cfg-detail-card .input-row {
  display: flex; gap: 10px; align-items: center;
}
.cfg-detail-card input[type="number"], .cfg-detail-card input[type="text"] {
  flex: 1;
  background: var(--bone); border: 1px solid var(--hairline);
  border-radius: 4px; padding: 13px 16px;
  font-family: inherit; font-size: 16px; color: var(--ink);
  outline: none;
}
.cfg-detail-card input:focus { border-color: var(--accent); }
.cfg-detail-card .unit { font-size: 13px; color: var(--muted); padding: 0 4px; }

.cfg-file-drop {
  position: relative;
  border: 1.5px dashed var(--hairline);
  border-radius: 6px; padding: 28px;
  text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--bone);
}
.cfg-file-drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.cfg-file-drop input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
}
.cfg-file-drop .upl-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 18px;
  margin: 0 auto 12px;
}
.cfg-file-drop .upl-l {
  font-family: "Fraunces", serif; font-size: 16px; margin-bottom: 4px;
}
.cfg-file-drop .upl-s { font-size: 12px; color: var(--muted); }

.cfg-file-attached {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}
.cfg-file-attached .ico {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--accent); color: var(--paper);
  display: grid; place-items: center; font-size: 14px;
}
.cfg-file-attached .info { flex: 1; min-width: 0; }
.cfg-file-attached .info .n {
  font-family: "Fraunces", serif; font-size: 15px; letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cfg-file-attached .info .s {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: var(--muted); margin-top: 2px;
}
.cfg-file-attached .remove {
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted); font-size: 14px;
  padding: 6px 10px;
}
.cfg-file-attached .remove:hover { color: var(--ink); }

/* Per-product WhatsApp button on result */
.cfg-product .product-ctas {
  display: flex; gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.cfg-product .product-ctas .btn {
  flex: 1; height: 40px; padding: 0 14px;
  justify-content: center; font-size: 13px;
  gap: 6px;
}

/* Result */
.cfg-result-head { text-align: center; margin-bottom: 40px; }
.cfg-result-head h1 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04; letter-spacing: -0.02em;
  margin: 14px auto 12px; max-width: 18ch;
}
.cfg-result-head .summary { color: var(--muted); font-size: 15px; max-width: 56ch; margin: 0 auto; }
.cfg-result-head .summary span { color: var(--ink); font-weight: 500; }
.cfg-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1100px; margin: 0 auto; }
@media (max-width: 880px) { .cfg-result-grid { grid-template-columns: 1fr; } }
.cfg-product {
  background: var(--paper); border-radius: 4px; overflow: hidden;
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column;
}
.cfg-product.featured { border-color: var(--accent); position: relative; }
.cfg-product.featured::before {
  content: "Best match"; position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--accent); color: var(--paper);
  padding: 4px 10px; border-radius: 999px;
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
}
.cfg-product .room {
  position: relative; aspect-ratio: 4/3;
  background: var(--clay);
}
.cfg-product .room .img-ph { position: absolute; inset: 0; }
.cfg-product .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cfg-product .body .cat { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.cfg-product .body h3 { font-family: "Fraunces", serif; font-weight: 400; font-size: 24px; margin: 6px 0 8px; }
.cfg-product .body p { font-size: 14px; color: var(--muted); margin: 0 0 16px; line-height: 1.45; }
.cfg-product .specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cfg-product .spec {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bone); color: var(--ink);
}
.cfg-product .price { font-family: "Fraunces", serif; font-size: 20px; margin-top: auto; }
.cfg-product .price small { font-family: "Instrument Sans", sans-serif; font-size: 12px; color: var(--muted); margin-left: 6px; font-weight: 400; }

.cfg-result-ctas {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 880px; margin-left: auto; margin-right: auto;
}
@media (max-width: 720px) { .cfg-result-ctas { grid-template-columns: 1fr; } }
.cfg-cta-card {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: 4px; padding: 28px;
}
.cfg-cta-card.wa { background: #0E3325; color: var(--bone); border-color: #0E3325; }
.cfg-cta-card h4 { font-family: "Fraunces", serif; font-weight: 400; font-size: 22px; margin: 0 0 6px; }
.cfg-cta-card p { font-size: 14px; margin: 0 0 18px; opacity: 0.8; }
.cfg-cta-card.wa p { color: rgba(255,255,255,0.7); }
.cfg-cta-card .field {
  display: block; width: 100%;
  background: var(--bone); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 12px 14px;
  font-family: inherit; font-size: 14px; margin-bottom: 10px;
  outline: none;
}
.cfg-cta-card .field:focus { border-color: var(--accent); }
.cfg-cta-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 540px) { .cfg-cta-card .row2 { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────────────────────────
   NEW PAGE COMPONENTS
   ───────────────────────────────────────────────────────────── */

/* ─── Page header (cross-page) ─── */
.nfs-header.is-solid {
  background: rgba(251, 248, 242, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--hairline);
  color: var(--ink);
}
.nfs-nav-link.active { opacity: 1; position: relative; }
.nfs-nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--accent);
}

/* ─── Compact page hero ─── */
.page-hero {
  padding: 152px 0 56px;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.page-hero .crumbs {
  display: flex; gap: 8px; align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 28px;
}
.page-hero .crumbs a:hover { color: var(--ink); }
.page-hero .crumbs .sep { color: var(--clay); }
.page-hero h1 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 0 18px; max-width: 16ch;
}
.page-hero h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.page-hero .lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-soft); max-width: 56ch; margin: 0;
  line-height: 1.55;
}

/* ─── Category page layout ─── */
.cat-page-shell {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 56px; padding: 56px 0 96px;
}
@media (max-width: 960px) { .cat-page-shell { grid-template-columns: 1fr; gap: 32px; } }
.cat-sidebar { position: sticky; top: 108px; align-self: start; }
@media (max-width: 960px) { .cat-sidebar { position: static; } }

/* Mobile filter toggle — desktop keeps the sidebar always open, so hide the button there. */
.cat-filter-toggle { display: none; }
@media (max-width: 960px) {
  .cat-filter-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 14px 18px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink); background: var(--paper);
    border: 1px solid var(--hairline); border-radius: 8px; cursor: pointer;
  }
  .cat-filter-toggle-caret { transition: transform .25s ease; color: var(--muted); }
  .cat-filter-toggle[aria-expanded="true"] .cat-filter-toggle-caret { transform: rotate(180deg); }
  /* Collapsed by default on mobile; the toggle reveals it. */
  .cat-sidebar-body { display: none; margin-top: 16px; }
  .cat-sidebar-body.open { display: block; }
}
.cat-sidebar h5 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px; font-weight: 500;
}
.cat-sidebar h5:not(:first-of-type) { margin-top: 32px; }
.cat-filter-group { display: flex; flex-direction: column; gap: 6px; }
.cat-filter {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0;
  font-size: 14px; cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.cat-filter:hover { color: var(--accent); }
.cat-filter input { display: none; }
.cat-filter .box {
  display: inline-flex; align-items: center; gap: 10px;
}
.cat-filter .checkbox {
  width: 16px; height: 16px; border-radius: 3px;
  border: 1.5px solid var(--hairline);
  display: grid; place-items: center;
  transition: background .15s, border-color .15s;
}
.cat-filter input:checked + .box .checkbox {
  background: var(--accent); border-color: var(--accent);
}
.cat-filter input:checked + .box .checkbox::after {
  content: ""; width: 9px; height: 5px;
  border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.cat-filter .count { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--muted); }

.cat-filter-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline);
}
.cat-filter-head h4 {
  font-family: "Fraunces", serif; font-weight: 400; font-size: 20px; margin: 0;
  letter-spacing: -0.01em; color: var(--ink);
}
.cat-filter-clear {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); white-space: nowrap;
}
.cat-filter-clear:hover { color: var(--accent-deep); }

.cat-results-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}
.cat-results-head .count { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.cat-sort { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.cat-sort select {
  font-family: inherit; font-size: 13px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  padding: 6px 32px 6px 12px; border-radius: 999px;
  color: var(--ink); cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' stroke='%23666' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 18px;
}
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .25s ease;
}
.product-card:hover { transform: translateY(-3px); }
.product-card .pc-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--clay);
  margin-bottom: 14px;
}
.product-card .pc-img .img-ph { position: absolute; inset: 0; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .pc-img .img-ph { transform: scale(1.05); }
.product-card .pc-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(251, 248, 242, 0.92);
  padding: 4px 10px; border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--accent); text-transform: uppercase;
}
.product-card .pc-cat {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 4px;
}
.product-card .pc-name {
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: 21px; line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.product-card .pc-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--muted);
}
.product-card .pc-meta .pc-price {
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: 16px; color: var(--ink);
}
.product-card .pc-meta .pc-price small {
  font-family: "Instrument Sans", sans-serif;
  font-size: 11px; color: var(--muted); margin-left: 4px;
}
.product-card .pc-swatches {
  display: flex; gap: 5px; margin-top: 10px;
}
.product-card .pc-swatches .sw {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--hairline);
}

/* Compare bar */
.compare-bar {
  position: sticky; bottom: 0;
  margin: 32px 0 0;
  background: var(--ink); color: var(--bone);
  border-radius: 6px;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 24px; flex-wrap: wrap;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}
.compare-bar .ck {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
}
.compare-bar .ck-thumbs { display: flex; }
.compare-bar .ck-thumb {
  width: 38px; height: 38px; border-radius: 4px;
  background: var(--clay); border: 2px solid var(--ink);
  margin-left: -10px;
}
.compare-bar .ck-thumb:first-child { margin-left: 0; }
.compare-bar .ck-empty {
  width: 38px; height: 38px; border-radius: 4px;
  border: 1.5px dashed rgba(255,255,255,0.25);
  margin-left: -10px;
}

/* ─── Work Gallery ─── */
.nfs-work-gallery {
  background: var(--paper);
}
.wg-hero {
  background:
    linear-gradient(180deg, rgba(246, 241, 233, 0.94), rgba(251, 248, 242, 0.98)),
    var(--bone);
}
.wg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 48px;
  align-items: end;
}
.wg-hero-copy h1 {
  max-width: 820px;
  margin: 14px 0 18px;
  font-size: 82px;
  line-height: 0.96;
  letter-spacing: 0;
}
.wg-hero-copy .lede {
  max-width: 720px;
  color: var(--ink-soft);
}
.wg-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--hairline);
}
.wg-hero-stats div {
  min-height: 150px;
  padding: 22px;
  background: rgba(251, 248, 242, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.wg-hero-stats strong {
  font-family: "Fraunces", serif;
  font-size: 56px;
  line-height: 1;
  font-weight: 360;
  letter-spacing: 0;
  color: var(--accent);
}
.wg-hero-stats span {
  color: var(--muted);
  font-size: 13px;
}
.wg-browser {
  background: var(--paper);
}
.wg-browser-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}
.wg-browser-head h2 {
  margin: 8px 0 0;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 0;
}
.wg-browser-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.wg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  margin: 0 0 28px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--bone);
}
.wg-filter {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(31, 29, 26, 0.12);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.2;
  transition: background .16s, border-color .16s, color .16s, transform .16s;
}
.wg-filter:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
}
.wg-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bone);
}
.wg-filter small {
  min-width: 24px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(31, 29, 26, 0.08);
  color: inherit;
  text-align: center;
  font-size: 11px;
}
.wg-filter.is-active small {
  background: rgba(251, 248, 242, 0.16);
}
.wg-grid {
  columns: 4 260px;
  column-gap: 18px;
}
.wg-card {
  width: 100%;
  display: inline-block;
  margin: 0 0 18px;
  overflow: hidden;
  break-inside: avoid;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(31, 29, 26, 0.06);
}
.wg-media {
  background: var(--clay);
}
.wg-media img,
.wg-media video {
  width: 100%;
  height: auto;
  display: block;
}
.wg-media video {
  aspect-ratio: 16 / 9;
  background: var(--ink);
}
.wg-card-meta {
  padding: 14px 15px 16px;
}
.wg-card-meta span {
  display: block;
  margin-bottom: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent-rust);
}
.wg-card-meta h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 20px;
  line-height: 1.16;
  font-weight: 390;
  letter-spacing: 0;
}
.wg-card-meta small {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
}
.wg-load-more-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.wg-load-more-wrap[hidden] {
  display: none;
}
.wg-load-status {
  color: var(--muted);
  font-size: 13px;
}
.wg-load-more[disabled] {
  cursor: wait;
  opacity: .62;
}
.wg-empty {
  padding: 40px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--bone);
  text-align: center;
}
.wg-empty h3 {
  margin: 0 0 18px;
}
@media (max-width: 960px) {
  .wg-hero-grid,
  .wg-browser-head {
    grid-template-columns: 1fr;
  }
  .wg-hero-stats {
    max-width: 520px;
  }
  .wg-hero-copy h1 {
    font-size: 58px;
  }
  .wg-browser-head h2 {
    font-size: 44px;
  }
}
@media (max-width: 540px) {
  .wg-hero-copy h1 {
    font-size: 42px;
  }
  .wg-browser-head h2 {
    font-size: 36px;
  }
  .wg-hero-stats strong {
    font-size: 46px;
  }
  .wg-hero-stats {
    grid-template-columns: 1fr;
  }
  .wg-hero-stats div {
    min-height: 112px;
  }
  .wg-filters {
    padding: 10px;
  }
  .wg-filter {
    width: 100%;
    justify-content: space-between;
  }
  .wg-grid {
    columns: 1;
  }
  .wg-load-more-wrap {
    align-items: stretch;
  }
  .wg-load-more,
  .wg-load-status {
    width: 100%;
    text-align: center;
  }
}

/* ─── Featured callout band ─── */
.callout-band {
  background: var(--accent); color: var(--bone);
  padding: 56px 0;
}
.callout-grid {
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px;
  align-items: center;
}
@media (max-width: 720px) { .callout-grid { grid-template-columns: 1fr; gap: 20px; } }
.callout-grid h3 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(28px, 3.8vw, 42px); line-height: 1.08;
  letter-spacing: -0.015em; margin: 0;
  color: var(--bone);
}
.callout-grid h3 em { font-style: italic; color: var(--clay); }
.callout-grid .lead { font-size: 15px; opacity: 0.8; max-width: 50ch; margin-top: 12px; }
.btn-on-accent { background: var(--bone); color: var(--accent-deep); border-color: var(--bone); }
.btn-on-accent:hover { background: var(--clay); border-color: var(--clay); color: var(--accent-deep); }

/* ─── Product detail ─── */
.pd-main {
  padding: 128px 0 64px;
}
.pd-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 72px;
}
@media (max-width: 1080px) { .pd-grid { grid-template-columns: 1fr; gap: 40px; } }

.pd-gallery { display: flex; flex-direction: column; gap: 12px; }
.pd-main-img {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 4px; overflow: hidden;
  background: var(--clay);
}
.pd-main-img .img-ph { position: absolute; inset: 0; }
.pd-thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.pd-thumb {
  aspect-ratio: 1; border-radius: 3px; overflow: hidden;
  background: var(--clay); cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s;
  position: relative;
}
.pd-thumb .img-ph { position: absolute; inset: 0; }
.pd-thumb.active { border-color: var(--accent); }
.pd-room-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--bone);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 6px 14px; cursor: pointer;
  align-self: flex-start;
  transition: background .15s, border-color .15s, color .15s;
}
.pd-room-toggle:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.pd-room-toggle.on { background: var(--accent); color: var(--paper); border-color: var(--accent); }

/* Right side: title, price, swatches, specs, ctas */
.pd-info .crumbs { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.pd-info .crumbs .sep { color: var(--clay); }
.pd-info h1 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.pd-info .pd-cat-name {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.1em; color: var(--accent-rust); text-transform: uppercase;
  margin-bottom: 6px;
}
.pd-info .pd-blurb {
  font-size: 17px; line-height: 1.55; color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 56ch;
}
.pd-info .pd-blurb p + p { margin-top: 0.8em; }

/* Real feature bullets (from the product's short description). */
.pd-features {
  list-style: none; margin: 0 0 28px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 56ch;
}
.pd-features li {
  position: relative; padding-left: 26px;
  font-size: 15px; line-height: 1.5; color: var(--ink-soft);
}
.pd-features li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg);
  background: var(--accent);
}

/* "Supplied & installed" note replaces the (quote-based) price block. */
.pd-supply-note {
  background: var(--accent-soft); border-radius: 6px;
  padding: 16px 18px; margin-bottom: 28px; max-width: 56ch;
  font-size: 14px; line-height: 1.55; color: var(--ink-soft);
}
.pd-supply-note strong {
  display: block; font-family: "Fraunces", serif; font-weight: 400; font-size: 17px;
  color: var(--accent-deep); margin-bottom: 4px;
}

/* Real product images fill their frames (no .img-ph placeholder). */
.pd-main-img img, .pd-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* ─── Product image zoom ─── */
.pd-main-img { cursor: zoom-in; }
.pd-main-img .pd-hero-img { transition: transform .25s ease-out; }
.pd-main-img.is-zooming .pd-hero-img { transition: transform .05s ease-out; }
.pd-zoom-hint {
  position: absolute; z-index: 2; right: 12px; bottom: 12px;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(20, 18, 15, 0.55); color: #fff;
  backdrop-filter: blur(2px);
  opacity: 0.85; transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.pd-main-img:hover .pd-zoom-hint { opacity: 0; transform: scale(0.9); }

.pd-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 4vmin;
  background: rgba(20, 18, 15, 0.92);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.pd-lightbox[hidden] { display: none; }
.pd-lightbox-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 4px; cursor: zoom-in;
  transform: scale(1); transition: transform .2s ease;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.pd-lightbox-img.is-zoomed { transform: scale(2); cursor: zoom-out; }
.pd-lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, 0.14); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s;
}
.pd-lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }
body.pd-lightbox-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .pd-main-img .pd-hero-img, .pd-lightbox-img { transition: none; }
}

.pd-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 13px; color: var(--muted); }
.pd-rating .stars { color: #E2A341; letter-spacing: 2px; }

.pd-price-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 20px 0; margin: 0 0 24px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.pd-price {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: 40px; letter-spacing: -0.02em;
}
.pd-price-sub { font-size: 13px; color: var(--muted); }
.pd-price-sub strong { color: var(--ink); font-weight: 500; }

.pd-options { display: flex; flex-direction: column; gap: 22px; margin-bottom: 28px; }
.pd-option-label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase;
}
.pd-option-label .sel { color: var(--ink); text-transform: none; font-family: "Fraunces", serif; font-size: 14px; letter-spacing: 0; }
.pd-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-swatch {
  width: 60px; height: 60px; border-radius: 4px;
  cursor: pointer; position: relative;
  border: 2px solid var(--hairline);
  transition: border-color .15s, transform .15s;
  overflow: hidden;
}
.pd-swatch:hover { transform: translateY(-2px); }
.pd-swatch.selected { border-color: var(--accent); }
.pd-swatch .img-ph { position: absolute; inset: 0; }
.pd-swatch.selected::after {
  content: "✓"; position: absolute; top: -6px; right: -6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--paper);
  display: grid; place-items: center; font-size: 12px;
  border: 2px solid var(--paper);
}
.pd-pack-options { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-pack {
  border: 1.5px solid var(--hairline);
  background: var(--paper); border-radius: 4px;
  padding: 12px 16px; cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s;
}
.pd-pack:hover { border-color: var(--ink); }
.pd-pack.selected { border-color: var(--accent); background: var(--accent-soft); }
.pd-pack .pack-l { font-family: "Fraunces", serif; font-size: 16px; }
.pd-pack .pack-s { font-size: 11px; color: var(--muted); margin-top: 2px; font-family: "JetBrains Mono", monospace; letter-spacing: 0.04em; }

.pd-cta-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.pd-cta-stack .btn { justify-content: center; height: 56px; font-size: 15px; }

.pd-trust-tags {
  display: flex; flex-wrap: wrap; gap: 12px 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 13px; color: var(--muted);
}
.pd-trust-tags .tt { display: flex; align-items: center; gap: 8px; }
.pd-trust-tags .tt::before {
  content: "✓"; color: var(--accent); font-weight: 700;
}

/* Product detail — area calculator */
.pd-calc {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: 6px; padding: 22px 24px;
  margin-top: 24px;
}
.pd-calc h5 {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px; font-weight: 500;
}
.pd-calc-row { display: flex; gap: 10px; }
.pd-calc-row input {
  flex: 1;
  background: var(--bone); border: 1px solid var(--hairline);
  border-radius: 4px; padding: 12px 14px;
  font-family: inherit; font-size: 14px;
  outline: none; color: var(--ink);
}
.pd-calc-row input:focus { border-color: var(--accent); }
.pd-calc-row .unit { font-size: 12px; color: var(--muted); padding: 0 8px; align-self: center; }
.pd-calc-total {
  margin-top: 16px; display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; border-top: 1px solid var(--hairline);
}
.pd-calc-total .l { font-size: 13px; color: var(--muted); }
.pd-calc-total .v { font-family: "Fraunces", serif; font-size: 28px; }
.pd-calc-total .v small { font-family: "Instrument Sans", sans-serif; font-size: 12px; color: var(--muted); margin-left: 4px; }

/* Product detail — spec table */
.pd-specs-section { padding: 64px 0; background: var(--paper); }
.pd-specs-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .pd-specs-grid { grid-template-columns: 1fr; gap: 24px; } }
/* Real long description sits in the grid cell (drop full-page prose sizing). */
.pd-long.nfs-prose { max-width: none; padding-bottom: 0; font-size: 16px; margin-top: 16px; }
.pd-long.nfs-prose > * + * { margin-top: 1em; }
.pd-specs-grid h2 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(32px, 4vw, 48px); line-height: 1.05;
  letter-spacing: -0.02em; margin: 12px 0 0; max-width: 16ch;
}
.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--hairline); }
@media (max-width: 540px) { .spec-table { grid-template-columns: 1fr; } }
.spec-row {
  display: grid; grid-template-columns: 1.2fr 1fr;
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.spec-row .k { color: var(--muted); }
.spec-row .v { font-family: "Fraunces", serif; font-size: 16px; }

/* Product detail — room visualizer */
.pd-room-vis { padding: 64px 0; }
.pd-room-vis-inner { position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: var(--clay); }
.pd-room-vis-inner .img-ph { position: absolute; inset: 0; }
.pd-room-pill {
  position: absolute; top: 24px; left: 24px;
  background: rgba(0,0,0,0.55); color: #fff;
  padding: 8px 16px; border-radius: 999px;
  backdrop-filter: blur(10px);
  display: inline-flex; gap: 8px; align-items: center;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.pd-room-controls {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.pd-room-picker {
  display: flex; gap: 4px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(14px);
  padding: 6px; border-radius: 999px;
}
.pd-room-pick {
  background: transparent; border: 0; color: rgba(255,255,255,0.7);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; cursor: pointer;
  transition: background .15s, color .15s;
}
.pd-room-pick:hover { color: #fff; }
.pd-room-pick.active { background: rgba(255,255,255,0.92); color: var(--ink); }

/* Related products carousel */
.pd-related { padding: 80px 0 96px; background: var(--bone); }
.pd-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1080px) { .pd-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pd-related-grid { grid-template-columns: 1fr; } }

/* ─── Book a Consultation page ─── */
.book-hero { padding: 152px 0 56px; background: var(--paper); border-bottom: 1px solid var(--hairline); }
.book-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .book-hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.book-hero-grid .photo {
  aspect-ratio: 4/5;
  border-radius: 4px; background: var(--clay); position: relative; overflow: hidden;
}
.book-hero-grid .photo .img-ph { position: absolute; inset: 0; }

/* Three-step story bar */
.book-stepbar {
  background: var(--ink); color: var(--bone);
  padding: 56px 0;
}
.book-stepbar-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
@media (max-width: 880px) { .book-stepbar-inner { grid-template-columns: 1fr; gap: 32px; } }
.book-stepbar .step {
  padding: 0 32px;
  position: relative;
}
.book-stepbar .step:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 8px; bottom: 8px;
  width: 1px; background: rgba(255,255,255,0.1);
}
@media (max-width: 880px) { .book-stepbar .step::after { display: none; } }
.book-stepbar .step:first-child { padding-left: 0; }
.book-stepbar .step:last-child { padding-right: 0; }
.book-stepbar .step .num {
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  letter-spacing: 0.1em; color: var(--clay);
  margin-bottom: 12px;
}
.book-stepbar .step h3 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: 28px; line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 10px; color: var(--bone);
}
.book-stepbar .step p { font-size: 14px; color: rgba(255,255,255,0.65); margin: 0; max-width: 32ch; }

/* Big quickcal */
.book-calendar-section { padding: 80px 0; background: var(--bone); }
.book-calendar-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: stretch; }
@media (max-width: 960px) { .book-calendar-grid { grid-template-columns: 1fr; gap: 32px; } }
.book-form { background: var(--paper); border: 1px solid var(--hairline); border-radius: 6px; padding: 32px; }
.book-form h3 { font-family: "Fraunces", serif; font-weight: 400; font-size: 24px; margin: 0 0 18px; }
.book-form .field-label {
  display: block;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.book-form .field-row { margin-bottom: 18px; }
.book-form .field-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) {
  .book-form { padding: 20px; }
  .book-form .field-row.two { grid-template-columns: 1fr; }
  .book-form input.field, .book-form select.field, .book-form textarea.field { min-width: 0; }
}
.book-form .field {
  width: 100%; background: var(--bone);
  border: 1px solid var(--hairline); border-radius: 4px;
  padding: 12px 14px; font-family: inherit; font-size: 14px;
  outline: none; color: var(--ink);
}
.book-form .field:focus { border-color: var(--accent); }
.book-form textarea.field { min-height: 80px; resize: vertical; font-family: inherit; }
.book-form .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.book-form .chip {
  border: 1px solid var(--hairline); background: var(--paper);
  padding: 7px 12px; border-radius: 999px;
  font-size: 12px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.book-form .chip:hover { border-color: var(--ink); }
.book-form .chip.on { background: var(--accent); color: var(--paper); border-color: var(--accent); }

.book-confirm {
  margin-top: 8px;
  background: var(--accent-soft); color: var(--accent-deep);
  border-radius: 4px; padding: 14px 16px;
  font-size: 13px; display: flex; gap: 10px; align-items: flex-start;
}
.book-confirm .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; }

.faq-section { padding: 80px 0; background: var(--paper); border-top: 1px solid var(--hairline); }
.faq-list { max-width: 760px; margin: 32px 0 0; }
.faq-item { border-top: 1px solid var(--hairline); padding: 22px 0; cursor: pointer; }
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-item-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.faq-item-head h4 { font-family: "Fraunces", serif; font-weight: 400; font-size: 21px; line-height: 1.25; margin: 0; }
.faq-item-head .ic {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--hairline); display: grid; place-items: center;
  font-size: 14px; color: var(--muted);
  transition: transform .25s ease, background .15s, color .15s;
  flex: none;
}
.faq-item.open .faq-item-head .ic { background: var(--accent); border-color: var(--accent); color: var(--paper); transform: rotate(45deg); }
.faq-item-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
}
.faq-item.open .faq-item-body {
  max-height: 200px;
  padding-top: 14px;
}
.faq-item-body p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; max-width: 56ch; }

/* ─── About / Our Story page ─── */
.about-hero { padding: 160px 0 80px; background: var(--paper); border-bottom: 1px solid var(--hairline); }
.about-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
@media (max-width: 960px) { .about-hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-hero-grid .photo {
  aspect-ratio: 4/5;
  border-radius: 4px; background: var(--clay); position: relative; overflow: hidden;
}
.about-hero-grid .photo .img-ph { position: absolute; inset: 0; }
.about-quote-tag {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  background: rgba(20,18,15,0.85); color: var(--bone);
  backdrop-filter: blur(10px);
  padding: 18px 22px; border-radius: 4px;
}
.about-quote-tag p {
  font-family: "Fraunces", serif; font-weight: 350;
  font-size: 18px; line-height: 1.35; margin: 0 0 8px;
  font-style: italic;
}
.about-quote-tag .who { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.1em; opacity: 0.7; text-transform: uppercase; }

.story-section { padding: 96px 0; background: var(--bone); }
.story-grid { display: grid; grid-template-columns: 220px 1fr; gap: 72px; align-items: flex-start; }
@media (max-width: 880px) { .story-grid { grid-template-columns: 1fr; gap: 24px; } }
.story-grid h2 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(36px, 5vw, 64px); line-height: 1.04;
  letter-spacing: -0.02em; margin: 0; max-width: 18ch;
}
.story-grid h2 em { color: var(--accent); font-style: italic; }
.story-grid p {
  font-size: 17px; line-height: 1.65; color: var(--ink-soft);
  margin: 0 0 1.2em; max-width: 56ch;
}
.story-grid p.lead {
  font-family: "Fraunces", serif; font-weight: 350;
  font-size: 22px; line-height: 1.45; color: var(--ink);
  margin-bottom: 1.6em;
}

.about-yearlist { display: flex; flex-direction: column; gap: 8px; }
.about-yearlist .y { display: flex; gap: 12px; font-size: 13px; }
.about-yearlist .y .n { font-family: "JetBrains Mono", monospace; color: var(--muted); width: 44px; flex: none; }
.about-yearlist .y .t { color: var(--ink-soft); }

/* Team gallery */
.team-section { padding: 96px 0; background: var(--paper); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
@media (max-width: 880px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card .ph {
  aspect-ratio: 4/5; background: var(--clay);
  border-radius: 4px; overflow: hidden; position: relative;
  margin-bottom: 14px;
}
.team-card .ph .img-ph { position: absolute; inset: 0; }
.team-card .role { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.team-card .name { font-family: "Fraunces", serif; font-weight: 400; font-size: 20px; margin: 4px 0 4px; }
.team-card .note { font-size: 13px; color: var(--muted); }

/* Value pillars */
.values-section { padding: 96px 0; background: var(--ink); color: var(--bone); }
.values-section .eyebrow { color: var(--clay); }
.values-section h2 { color: var(--bone); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; }
@media (max-width: 880px) { .values-grid { grid-template-columns: 1fr; } }
.value {
  padding: 32px 32px 32px 0;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.value:last-child { border-right: 0; }
@media (max-width: 880px) {
  .value { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 24px 0; }
  .value:last-child { border-bottom: 0; }
}
.value .vnum { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--clay); letter-spacing: 0.1em; margin-bottom: 18px; }
.value h3 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: 30px; line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 12px; color: var(--bone);
}
.value p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.65); max-width: 38ch; margin: 0; }

/* Map / service area */
.map-section { padding: 96px 0; background: var(--bone); }
.map-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center; }
@media (max-width: 880px) { .map-grid { grid-template-columns: 1fr; gap: 32px; } }
.map-wrap {
  aspect-ratio: 4/3; background: var(--clay);
  border-radius: 4px; overflow: hidden; position: relative;
  border: 1px solid var(--hairline);
}
.map-wrap .img-ph { position: absolute; inset: 0; }
/* ServiceGlobe — natural-earth globe with single Thomastown marker */
.warehouse-media-grid {
  /* Equal columns so the landscape shopfront photo and the globe read as a matched pair;
     both boxes carry the same 4/3 ratio, so the row height comes out level. */
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  align-items: stretch;
}
.warehouse-globe {
  position: relative; width: 100%;
  aspect-ratio: 4/3;
  border-radius: 4px; overflow: hidden;
  background: var(--bone);
}
.service-globe-host {
  position: relative; width: 100%; height: 100%;
  display: block; background: transparent;
}
.warehouse-globe .service-globe-host { position: absolute; inset: 0; }
.service-globe-host canvas { display: block; }
.service-globe-fallback { background: var(--bone); border-radius: 4px; overflow: hidden; }
.service-globe-fallback svg { width: 100%; height: 100%; display: block; }
@media (max-width: 720px) {
  .warehouse-media-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   MEGA MENU + ANIMATED SEGMENT TOGGLE
   ───────────────────────────────────────────────────────────── */

/* Header gets taller to fit the segment toggle + nav row */
.nfs-header { z-index: 100; }
.nfs-header-row {
  height: var(--nfs-header-h);
  position: relative;
}

/* Segment toggle (Residential ↔ Commercial) — sliding pill */
.seg-toggle {
  position: relative;
  display: inline-flex;
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 3px;
  margin-right: 8px;
  isolation: isolate;
  backdrop-filter: blur(10px);
  transition: background .35s ease;
}
.nfs-header.scrolled .seg-toggle,
.nfs-header.is-solid .seg-toggle { background: rgba(0,0,0,0.05); }
.seg-pill {
  position: absolute;
  top: 3px; bottom: 3px;
  background: var(--accent);
  border-radius: 999px;
  z-index: -1;
  transition: left .42s cubic-bezier(.45,.05,.15,1), width .42s cubic-bezier(.45,.05,.15,1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.seg-toggle a {
  position: relative;
  padding: 8px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit; opacity: 0.6;
  transition: color .25s ease, opacity .25s ease;
  border-radius: 999px;
  white-space: nowrap;
}
.seg-toggle a:hover { opacity: 0.95; }
.seg-toggle a.on { color: var(--paper); opacity: 1; }
.nfs-header.scrolled .seg-toggle a.on,
.nfs-header.is-solid .seg-toggle a.on { color: var(--paper); }
@media (max-width: 720px) {
  .seg-toggle { display: none; }
}

/* Mega menu top-level button (replaces nfs-nav-link for items with dropdowns) */
.mm-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; cursor: pointer;
  font-family: inherit; font-size: 14px;
  padding: 8px 4px; color: inherit; opacity: 0.92;
  transition: opacity .15s;
  position: relative;
  white-space: nowrap;
}
.mm-trigger:hover { opacity: 1; }
.mm-trigger .caret {
  font-size: 10px;
  transition: transform .25s ease;
  opacity: 0.55;
}
.mm-trigger.open .caret { transform: rotate(180deg); opacity: 0.9; }
.mm-trigger.active::after,
.mm-trigger.open::after {
  content: ""; position: absolute;
  left: 0; right: 14px; bottom: -22px;
  height: 2px; background: var(--accent);
  transform-origin: left;
  animation: mmActive .35s cubic-bezier(.5,.05,.15,1) both;
}
@keyframes mmActive {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}
/* Blog is a plain nav link (no caret) — pull its active underline to the edge. */
.mm-trigger.nfs-blog.active::after { right: 4px; }
.mm-drawer-blog h6 { margin: 0; }
.mm-drawer-blog h6 a { color: inherit; display: inline-flex; align-items: center; gap: 8px; }
.mm-drawer-blog h6 a:hover { color: var(--accent); }

@media (max-width: 880px) {
  .mm-trigger { display: none; }
}

/* Mega panel — drops down from header */
.mm-panel-wrap {
  position: absolute;
  left: 0; right: 0; top: 100%;
  pointer-events: none;
  z-index: 90;
}
.mm-backdrop {
  position: fixed;
  top: var(--nfs-header-h); left: 0; right: 0; bottom: 0;
  background: rgba(20,18,15,0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.mm-backdrop.show { opacity: 1; pointer-events: auto; }

.mm-panel {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 24px 48px -16px rgba(20,18,15,0.18);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .4s cubic-bezier(.6,.05,.15,1), opacity .25s ease;
  pointer-events: none;
}
.mm-panel.open {
  max-height: 720px;
  opacity: 1;
  pointer-events: auto;
}
.mm-panel-inner {
  padding: 44px 0 40px;
}
.mm-grid {
  display: grid; gap: 48px;
  grid-template-columns: repeat(4, 1fr) 1.1fr;
}
.mm-grid.cols-3 { grid-template-columns: repeat(3, 1fr) 1.2fr; }
.mm-grid.cols-2 { grid-template-columns: repeat(2, 1fr) 1.4fr; }
/* 5–6 top-level columns (Floors). Tighter gap; the feature card is dropped at 6
   so six ranges stay legible within the panel's max width. */
.mm-grid.cols-5 { grid-template-columns: repeat(5, 1fr) 1.1fr; gap: 32px; }
.mm-grid.cols-6 { grid-template-columns: repeat(6, 1fr); gap: 28px; }
.mm-grid.cols-6 .mm-feature { display: none; }
/* No feature tile (e.g. Floors after the picker CTA was removed): drop the
   reserved feature column so the content columns fill the panel evenly. */
.mm-grid.no-feature { grid-template-columns: repeat(4, 1fr); }
.mm-grid.no-feature.cols-2 { grid-template-columns: repeat(2, 1fr); }
.mm-grid.no-feature.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mm-grid.no-feature.cols-5 { grid-template-columns: repeat(5, 1fr); }
.mm-grid.no-feature.cols-6 { grid-template-columns: repeat(6, 1fr); }

.mm-col h6 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px; font-weight: 500;
  padding-bottom: 12px; border-bottom: 1px solid var(--hairline);
}
.mm-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.mm-col a {
  font-family: "Fraunces", serif; font-weight: 380;
  font-size: 17px; line-height: 1.25;
  color: var(--ink); letter-spacing: -0.005em;
  display: inline-flex; align-items: baseline; gap: 10px;
  transition: color .15s, transform .15s;
}
.mm-col a:hover { color: var(--accent); transform: translateX(2px); }
.mm-col a .badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
  padding: 3px 7px; border-radius: 999px; font-weight: 500;
}
.mm-col .sub {
  display: block;
  font-family: "Instrument Sans", sans-serif;
  font-size: 12px; color: var(--muted);
  font-weight: 400; letter-spacing: 0; margin-top: 2px;
}

/* Featured card (right side of mega panel) */
.mm-feature {
  background: var(--bone);
  border-radius: 4px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.mm-feature .ph {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 3px; overflow: hidden;
  background: var(--clay);
}
.mm-feature .ph .img-ph { position: absolute; inset: 0; }
.mm-feature .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--accent); text-transform: uppercase;
}
.mm-feature h4 {
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: 22px; margin: 0; line-height: 1.2; letter-spacing: -0.01em;
}
.mm-feature p {
  font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0;
}
.mm-feature .cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-top: auto;
}
.mm-feature .cta .a {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--paper);
  display: grid; place-items: center;
  transition: transform .2s ease;
}
.mm-feature:hover .cta .a { transform: translateX(3px); }

/* Mobile hamburger + drawer */
.mm-hamburger {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  padding: 0;
  color: inherit;
}
.mm-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform .3s ease, opacity .3s ease;
}
.mm-hamburger span::before, .mm-hamburger span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform .3s ease;
}
.mm-hamburger span::before { top: -6px; }
.mm-hamburger span::after { top: 6px; }
.mm-hamburger.open span { background: transparent; }
.mm-hamburger.open span::before { transform: rotate(45deg) translate(4px, 4px); }
.mm-hamburger.open span::after { transform: rotate(-45deg) translate(4px, -4px); }
@media (max-width: 880px) {
  .mm-hamburger { display: inline-flex; }
}

.mm-drawer {
  position: fixed;
  top: var(--nfs-header-h); left: 0; right: 0; bottom: 0;
  background: var(--paper);
  z-index: 95;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.5,.05,.15,1);
  overflow-y: auto;
  display: none;
}
@media (max-width: 880px) {
  .mm-drawer.open { transform: translateX(0); }
  .mm-drawer { display: block; }
}
/* Lock the page behind the open mobile drawer so touch scroll stays in the menu.
   `overscroll-behavior` stops the drawer's own scroll from chaining to the page. */
body.mm-drawer-open { overflow: hidden; }
.mm-drawer { overscroll-behavior: contain; }
.mm-drawer-inner { padding: 32px 24px 64px; }
.mm-drawer h6 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 32px 0 14px; font-weight: 500;
  padding-bottom: 10px; border-bottom: 1px solid var(--hairline);
}
/* Was `.mm-drawer h6:first-of-type`, which matched every section heading (each is the
   only h6 inside its own section wrapper) and so collapsed the gap between them all. */
.mm-drawer .mm-drawer-section:first-of-type h6 { margin-top: 0; }
.mm-drawer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.mm-drawer a {
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: 20px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.mm-drawer a .arr { font-size: 14px; color: var(--muted); }
.mm-drawer .mm-cta-row {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.mm-drawer .mm-cta-row .btn { justify-content: center; }

/* Drawer: Residential ↔ Commercial switcher. The header's copy is hidden below
   720px, so this is the only switcher on phones. Re-shown over the base rule. */
.mm-drawer-seg { margin-bottom: 28px; }
.mm-drawer .seg-toggle {
  display: inline-flex;
  background: rgba(0,0,0,0.05);
  margin-right: 0;
  backdrop-filter: none;
}
.mm-drawer .seg-toggle a { color: var(--ink); }
.mm-drawer .seg-toggle a.on { color: var(--paper); }

/* Drawer: collapsible section per top-level menu */
.mm-acc { border-bottom: 1px solid var(--hairline); }
.mm-acc > summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 0; cursor: pointer;
  list-style: none;
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: 20px; color: var(--ink);
}
.mm-acc > summary::-webkit-details-marker { display: none; }
.mm-acc > summary::marker { content: ""; }
.mm-acc > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Plus that becomes a minus when the section opens */
.mm-acc-icon { position: relative; width: 14px; height: 14px; flex: none; }
.mm-acc-icon::before, .mm-acc-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 1.5px; background: var(--muted);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .25s ease;
}
.mm-acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.mm-acc[open] .mm-acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.mm-acc-body { padding: 2px 0 24px; }
.mm-acc-group + .mm-acc-group { margin-top: 22px; }
/* Group heads are quieter than the section head and drop the section-level rule. */
.mm-drawer .mm-acc-group-head {
  margin: 0 0 12px;
  padding-bottom: 0;
  border-bottom: 0;
}
.mm-drawer .mm-acc-group-head a { font-family: inherit; font-size: inherit; color: inherit; display: inline; }
.mm-drawer .mm-acc-group-head a:hover { color: var(--accent); }
.mm-drawer .mm-acc-group ul { gap: 12px; }
.mm-drawer .mm-acc-group a { font-size: 16px; }

/* Hide individual primary nav links if mega menu provides them */
.nfs-nav { gap: 22px; }
@media (max-width: 880px) {
  .nfs-nav { gap: 12px; }
  .nfs-nav .nfs-nav-link, .nfs-nav .nfs-cta.ghost { display: none; }
  .nfs-nav .nfs-cta:not(.ghost) { display: none; }
}

/* ─── HOMEPAGE BRANDS STRIP ─── */
.brands-section {
  background: var(--paper);
  padding: 88px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.brands-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.brands-head .eyebrow { display: inline-block; margin-bottom: 14px; }
.brands-head h2 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.brands-head h2 em { color: var(--accent); font-style: italic; }
.brands-head p {
  color: var(--muted); font-size: 16px;
  max-width: 52ch; margin: 0 auto;
  line-height: 1.55;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
@media (max-width: 960px) { .brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .brands-grid { grid-template-columns: repeat(2, 1fr); } }
.brand-cell {
  position: relative;
  padding: 32px 24px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  justify-content: space-between;
  min-height: 168px;
  cursor: default;
  overflow: hidden;
  background: var(--paper);
  transition: background .3s ease;
}
.brand-cell:hover { background: var(--bone); }
.brand-cell.has-logo {
  align-items: center;
  justify-content: center;
  min-height: 148px;
  padding: 28px 24px;
}
.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 82px;
}
.brand-logo {
  display: block;
  width: auto;
  max-width: min(100%, 210px);
  max-height: 82px;
  object-fit: contain;
  transition: transform .35s cubic-bezier(.5,.05,.15,1), opacity .25s ease;
}
.brand-cell.has-logo:hover .brand-logo { transform: translateY(-3px); opacity: .9; }
.brand-cell::before {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.5,.05,.15,1);
}
.brand-cell:hover::before { transform: scaleX(1); }
.brand-cell .wm {
  font-family: "Fraunces", serif;
  font-weight: 350;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: transform .35s cubic-bezier(.5,.05,.15,1);
}
.brand-cell:hover .wm { transform: translateY(-3px); }
.brand-cell .wm em { font-style: italic; color: var(--accent); }
/* Commercial suppliers: real logos sit in the same watermark slot as the name. */
.brand-cell .wm .brand-logo {
  display: block; max-height: 40px; max-width: 100%; width: auto;
  object-fit: contain; filter: grayscale(1); opacity: 0.8;
  transition: filter .3s, opacity .3s;
}
.brand-cell:hover .wm .brand-logo { filter: grayscale(0); opacity: 1; }
.brand-cell .meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 14px;
}
.brand-cell .cat {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  max-width: 70%;
  line-height: 1.45;
}
.brand-cell .since {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: var(--clay);
  letter-spacing: 0.06em;
}
.brand-cell.featured { background: var(--ink); color: var(--bone); }
.brand-cell.featured .wm { color: var(--bone); }
.brand-cell.featured .wm em { color: var(--clay); }
.brand-cell.featured .cat { color: rgba(255,255,255,0.55); }
.brand-cell.featured .since { color: var(--clay); }
.brand-cell.featured::before { background: var(--clay); }
.brand-cell.featured:hover { background: #0e0c08; }

.brands-footnote {
  margin-top: 56px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.brands-footnote p {
  margin: 0; color: var(--muted); font-size: 14px;
  max-width: 60ch;
}

/* ─── COMMERCIAL PAGE ─── */

/* Commercial dark hero */
.com-hero {
  position: relative;
  background: var(--ink); color: var(--bone);
  padding: 152px 0 96px;
  overflow: hidden;
}
.com-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(135deg, var(--ink) 0%, var(--accent-deep) 100%);
  opacity: 0.85; z-index: 0;
}
.com-hero-bg {
  position: absolute; inset: -8% -2%; opacity: 0.45;
  z-index: 0;
}
.com-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(20,18,15,0.6) 70%, var(--ink) 100%);
}
.com-hero-content { position: relative; z-index: 2; }
.com-hero h1 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(46px, 7vw, 96px);
  line-height: 1.02; letter-spacing: -0.025em;
  margin: 18px 0 24px;
  max-width: 18ch; color: var(--bone);
}
.com-hero h1 em { color: var(--clay); font-style: italic; font-weight: 300; }
.com-hero .lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255,255,255,0.78);
  max-width: 60ch; margin: 0 0 36px;
  line-height: 1.55;
}
.com-hero .eyebrow { color: var(--clay); }

.com-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 72px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 720px) { .com-hero-stats { grid-template-columns: repeat(2, 1fr); } }
.com-hero-stats .s {
  padding: 28px 24px 0 0;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.com-hero-stats .s:last-child { border-right: 0; }
.com-hero-stats .v { font-family: "Fraunces", serif; font-weight: 300; font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.02em; color: var(--bone); }
.com-hero-stats .l { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 6px; max-width: 22ch; }

/* Segments grid (Hospitality / Retail / Offices / etc) */
.com-segments { padding: 96px 0; background: var(--bone); }
.seg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1180px) { .seg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 880px) { .seg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .seg-grid { grid-template-columns: 1fr; } }
.seg-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px; overflow: hidden;
  background: var(--clay); cursor: pointer;
  border: 1px solid var(--hairline);
}
.seg-card .img-ph { position: absolute; inset: 0; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.seg-card:hover .img-ph { transform: scale(1.06); }
.seg-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 30%, rgba(0,0,0,0.85) 100%);
}
.seg-meta {
  position: absolute; inset: auto 24px 24px; color: #fff;
  z-index: 2;
}
.seg-meta .num { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.1em; opacity: 0.75; }
.seg-meta h3 { font-family: "Fraunces", serif; font-weight: 350; font-size: 26px; margin: 6px 0 8px; letter-spacing: -0.01em; }
.seg-meta .stat-row { display: flex; gap: 18px; font-size: 12px; opacity: 0.85; }
.seg-meta .stat-row span { display: flex; gap: 6px; align-items: baseline; }
.seg-meta .stat-row strong { font-family: "Fraunces", serif; font-weight: 400; font-size: 16px; color: var(--clay); }

/* Project case studies */
.com-projects { padding: 96px 0; background: var(--paper); }
.com-projects-list { display: flex; flex-direction: column; gap: 96px; margin-top: 64px; }
.proj-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.proj-row.flip { grid-template-columns: 1fr 1fr; }
.proj-row.flip .proj-photo { order: 2; }
@media (max-width: 880px) {
  .proj-row, .proj-row.flip { grid-template-columns: 1fr; gap: 24px; }
  .proj-row.flip .proj-photo { order: 0; }
}
.proj-photo { aspect-ratio: 5/4; border-radius: 4px; overflow: hidden; background: var(--clay); position: relative; }
.proj-photo .img-ph { position: absolute; inset: 0; }
.proj-photo .proj-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(0,0,0,0.55); color: #fff; backdrop-filter: blur(10px);
  padding: 6px 12px; border-radius: 999px;
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proj-info .client {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase;
  margin-bottom: 8px;
}
.proj-info h3 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(28px, 3.5vw, 42px); line-height: 1.1;
  letter-spacing: -0.02em; margin: 0 0 16px;
  max-width: 18ch;
}
.proj-info p {
  font-size: 16px; line-height: 1.55; color: var(--ink-soft);
  margin: 0 0 24px; max-width: 50ch;
}
.proj-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px;
  padding: 22px 0; margin-bottom: 24px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.proj-facts .k {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 4px;
}
.proj-facts .v { font-family: "Fraunces", serif; font-size: 18px; letter-spacing: -0.01em; }
.proj-pull {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 18px;
  font-family: "Fraunces", serif; font-weight: 350;
  font-size: 17px; font-style: italic;
  color: var(--ink-soft); line-height: 1.45;
  margin: 0;
}
.proj-pull .who {
  display: block; margin-top: 8px;
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  font-style: normal; letter-spacing: 0.1em;
  color: var(--muted); text-transform: uppercase;
}

/* "Why us" 4-up — same look as homepage "How it works" steps but no pinning */
.com-why { padding: 96px 0; background: var(--ink); color: var(--bone); }
.com-why .eyebrow { color: var(--clay); }
.com-why h2 { color: var(--bone); }
.com-why p.lede { color: rgba(255,255,255,0.65); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; }
@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }
.why-item {
  padding: 32px 32px 32px 0;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.why-item:last-child { border-right: 0; }
@media (max-width: 880px) {
  .why-item:nth-child(2n) { border-right: 0; }
  .why-item:nth-child(-n+2) { padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
}
@media (max-width: 540px) {
  .why-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 24px 0; }
  .why-item:last-child { border-bottom: 0; }
}
.why-item .ic {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: grid; place-items: center;
  font-family: "Fraunces", serif; font-weight: 400; font-size: 18px;
  color: var(--clay);
  margin-bottom: 22px;
}
.why-item h3 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: 26px; line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 12px; color: var(--bone);
}
.why-item p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.65); max-width: 32ch; margin: 0; }

/* Process timeline */
.com-process { padding: 96px 0; background: var(--bone); }
.process-bar {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  position: relative;
}
@media (max-width: 880px) { .process-bar { grid-template-columns: 1fr; gap: 24px; } }
.process-bar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px;
  height: 1px; background: var(--hairline);
}
@media (max-width: 880px) { .process-bar::before { display: none; } }
.process-step { padding: 0 16px 0 0; position: relative; }
.process-step:first-child { padding-left: 0; }
.process-step .dot {
  position: relative; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--hairline);
  display: grid; place-items: center;
  margin-bottom: 18px;
  font-family: "Fraunces", serif; font-size: 16px;
  transition: background .15s, color .15s, border-color .15s;
}
.process-step .dot.on {
  background: var(--accent); color: var(--paper); border-color: var(--accent);
}
.process-step .day {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase;
  margin-bottom: 6px;
}
.process-step h4 { font-family: "Fraunces", serif; font-weight: 400; font-size: 18px; margin: 0 0 6px; letter-spacing: -0.01em; }
.process-step p { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; max-width: 22ch; }

/* Trade accounts strip */
.com-trade {
  background: var(--accent); color: var(--bone);
  padding: 80px 0;
}
.com-trade .eyebrow { color: var(--clay); }
.com-trade h2 { color: var(--bone); font-family: "Fraunces", serif; font-weight: 300; font-size: clamp(32px, 4.5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 12px 0 16px; max-width: 18ch; }
.com-trade h2 em { color: var(--clay); font-style: italic; }
.com-trade p { color: rgba(255,255,255,0.78); max-width: 50ch; margin: 0; font-size: 16px; }
.com-trade-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 880px) { .com-trade-grid { grid-template-columns: 1fr; gap: 32px; } }
.com-trade-perks {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--accent-deep);
  padding: 32px; border-radius: 6px;
}
.com-trade-perk { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,0.85); }
.com-trade-perk::before {
  content: "✓"; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--clay); color: var(--accent-deep);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.com-trade-perk strong { color: var(--bone); font-weight: 500; }

/* Specifier resources / downloads */
.com-resources { padding: 96px 0; background: var(--paper); }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
@media (max-width: 880px) { .res-grid { grid-template-columns: 1fr; } }
.res-card {
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: 6px; padding: 28px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, transform .2s;
  cursor: pointer;
}
.res-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.res-card .tag {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase;
  margin-bottom: 6px;
}
.res-card h4 { font-family: "Fraunces", serif; font-weight: 400; font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.res-card p { font-size: 14px; color: var(--muted); margin: 6px 0 14px; line-height: 1.5; }
.res-card .meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase;
  padding-top: 14px; margin-top: auto;
  border-top: 1px solid var(--hairline);
}
.res-card .meta .arr {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--paper);
  display: grid; place-items: center;
  font-size: 14px;
  transition: transform .2s;
}
.res-card:hover .meta .arr { transform: translateX(4px); }
/* Cards are now request triggers, not links — reset the native button chrome. */
button.res-card { width: 100%; text-align: left; font: inherit; color: inherit; -webkit-appearance: none; appearance: none; }

/* Credential "request a copy" modal */
.cert-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; }
.cert-modal[hidden] { display: none; }
.cert-modal-backdrop { position: absolute; inset: 0; background: rgba(20,16,12,0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cert-modal-panel {
  position: relative; z-index: 1; width: 100%; max-width: 560px;
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 10px;
  padding: 40px; box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.cert-modal-x {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  font-size: 26px; line-height: 1; cursor: pointer; transition: background .15s, color .15s;
}
.cert-modal-x:hover { background: var(--bone); color: var(--ink); }
.cert-modal-panel .eyebrow { color: var(--accent); }
.cert-modal-panel h3 { font-family: "Fraunces", serif; font-weight: 400; font-size: 28px; letter-spacing: -0.01em; margin: 8px 0 0; }
.cert-modal-panel h3 [data-cert-title-out] { color: var(--accent); }
.cert-modal-lede { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 12px 0 24px; }
.cert-modal-foot { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }
.cert-modal-foot a { color: var(--accent); }
body.cert-modal-open { overflow: hidden; }
@media (max-width: 560px) { .cert-modal-panel { padding: 28px 22px; } }

/* Project enquiry form (big) */
.com-enquiry { background: var(--paper); color: var(--ink); padding: 96px 0; }
.com-enquiry .eyebrow { color: var(--accent); }
.com-enquiry h2 { color: var(--ink); font-family: "Fraunces", serif; font-weight: 300; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin: 12px 0 0; }
.com-enquiry-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: flex-start; }
@media (max-width: 960px) { .com-enquiry-grid { grid-template-columns: 1fr; gap: 32px; } }
.com-enquiry-side p { color: var(--ink-soft); margin: 18px 0 28px; font-size: 16px; max-width: 38ch; line-height: 1.55; }
.com-enquiry-side .contact-line {
  padding: 18px 0; border-top: 1px solid var(--hairline);
}
.com-enquiry-side .contact-line:last-child { border-bottom: 1px solid var(--hairline); }
.com-enquiry-side .contact-line .l { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.com-enquiry-side .contact-line .v { font-family: "Fraunces", serif; font-size: 17px; color: var(--ink); }
.com-enquiry-side .contact-line .v a { color: var(--accent); }
.com-enquiry-form {
  background: var(--bone);
  border: 1px solid var(--hairline);
  box-shadow: 0 20px 50px rgba(31, 29, 26, 0.06);
  border-radius: 6px;
  padding: 36px;
}
.com-enquiry-form .field-row { margin-bottom: 18px; }
.com-enquiry-form .field-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .com-enquiry-form .field-row.two { grid-template-columns: 1fr; } }
.com-enquiry-form .field-label {
  display: block;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.com-enquiry-form .field {
  width: 100%; background: var(--paper);
  border: 1px solid var(--hairline); border-radius: 4px;
  padding: 12px 14px; font-family: inherit; font-size: 14px;
  outline: none; color: var(--ink);
}
.com-enquiry-form .field::placeholder { color: rgba(31, 29, 26, 0.4); }
.com-enquiry-form .field:focus { border-color: var(--accent); background: #fff; }
.com-enquiry-form textarea.field { min-height: 88px; resize: vertical; }
.com-enquiry-form select.field {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' stroke='%236B6657' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.com-enquiry-form .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.com-enquiry-form .chip {
  border: 1px solid var(--hairline);
  background: var(--paper); color: var(--ink-soft);
  padding: 7px 14px; border-radius: 999px;
  font-size: 12px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.com-enquiry-form .chip:hover { border-color: var(--accent); color: var(--accent); }
.com-enquiry-form .chip.on { background: var(--accent); border-color: var(--accent); color: var(--bone); font-weight: 500; }

.com-clients {
  padding: 64px 0; background: var(--bone);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.com-clients .clients-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 32px; align-items: center;
}
@media (max-width: 880px) { .com-clients .clients-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.client-logo {
  font-family: "Fraunces", serif; font-weight: 350;
  font-size: 20px; letter-spacing: -0.01em;
  color: var(--muted); text-align: center;
  opacity: 0.65;
  transition: opacity .2s, color .2s;
  cursor: default;
}
.client-logo:hover { opacity: 1; color: var(--ink); }
.client-logo span { display: block; font-family: "JetBrains Mono", monospace; font-size: 9px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); margin-top: 2px; }
/* Real client logos: unify six mixed-format marks into one tidy monochrome wall.
   brightness(0) renders every logo (incl. white-on-transparent art) as a dark
   silhouette on the bone strip, respecting each PNG/SVG's transparency. */
.client-logo.has-logo { opacity: 1; padding: 0 4px; display: flex; align-items: center; justify-content: center; }
.client-logo-img {
  max-width: 100%; max-height: 42px; width: auto; height: auto;
  object-fit: contain; display: block;
  filter: brightness(0); opacity: 0.5;
  transition: opacity .2s ease;
}
.client-logo.has-logo:hover .client-logo-img { opacity: 0.82; }
@media (max-width: 880px) { .client-logo-img { max-height: 36px; } }

/* ─── Mobile: trim interior-hero top padding ───
   The 152–160px top padding was sized to clear the fixed header on desktop; on a
   phone it wastes most of the first screen. Clear the shorter mobile header (72px)
   with a tighter gap instead. */
@media (max-width: 720px) {
  .page-hero { padding-top: 104px; }
  .book-hero { padding-top: 104px; }
  .about-hero { padding-top: 104px; }
  .com-hero { padding-top: 108px; }
  .pd-main { padding-top: 96px; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { transform: none !important; }
}

/* ─── Long-form documents: Privacy / Terms (template-legal.php) and generic pages ─── */
.nfs-legal-hero,
.nfs-page-hero {
  padding: 152px 0 48px;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.nfs-legal-hero h1,
.nfs-page-hero h1 {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04; letter-spacing: -0.025em;
  margin: 14px 0 0; max-width: 18ch;
}
.nfs-legal-updated {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 20px 0 0;
}

/* Two columns on desktop: a sticky contents rail beside the document. */
.nfs-legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 72px;
  padding-top: 72px; padding-bottom: 104px;
  align-items: start;
}
@media (max-width: 1020px) {
  .nfs-legal-layout { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 72px; }
}

.nfs-legal-toc { position: sticky; top: calc(var(--nfs-header-h) + 24px); }
@media (max-width: 1020px) {
  .nfs-legal-toc {
    position: static;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 22px 24px;
  }
}
.nfs-legal-toc-title {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-rust); margin: 0 0 16px;
}
.nfs-legal-toc ol {
  list-style: none; margin: 0; padding: 0;
  counter-reset: nfs-legal-toc;
  border-left: 1px solid var(--hairline);
}
.nfs-legal-toc li { counter-increment: nfs-legal-toc; }
.nfs-legal-toc a {
  display: block; padding: 7px 0 7px 18px; margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 13.5px; line-height: 1.35; color: var(--muted);
  transition: color .18s ease, border-color .18s ease;
}
.nfs-legal-toc a:hover { color: var(--ink); border-left-color: var(--accent-rust); }
/* Top-level parts anchor the rail; subsections indent under them. */
.nfs-legal-toc .is-level-2 + .is-level-3 a { padding-top: 9px; }
.nfs-legal-toc .is-level-2 a { color: var(--ink); font-weight: 500; }
.nfs-legal-toc .is-level-3 a { padding-left: 30px; font-size: 13px; }
.nfs-legal-toc .is-level-3 + .is-level-2 a { margin-top: 10px; }

/* Document body. Generous measure and rhythm — these pages are read, not skimmed. */
.nfs-legal-body {
  max-width: 72ch;
  font-size: 16.5px; line-height: 1.72; color: var(--ink-soft);
}
.nfs-legal-body > * + * { margin-top: 1.15em; }
.nfs-legal-body h2 {
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.18; letter-spacing: -0.015em; color: var(--ink);
  margin-top: 2.4em; padding-top: 1.4em;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: calc(var(--nfs-header-h) + 24px);
}
.nfs-legal-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.nfs-legal-body h3 {
  font-size: 17px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.005em;
  margin-top: 2em;
  scroll-margin-top: calc(var(--nfs-header-h) + 24px);
}
.nfs-legal-body ul { padding-left: 22px; }
.nfs-legal-body li { margin-top: 0.55em; }
.nfs-legal-body li::marker { color: var(--clay); }
.nfs-legal-body strong { color: var(--ink); font-weight: 600; }
/* Underline prose links only. Without :not(.btn) this repaints the bottom border of the
   buttons in the help card, which reads as a pill button clipped flat along its base. */
.nfs-legal-body a:not(.btn) {
  color: var(--ink);
  border-bottom: 1px solid var(--clay);
  transition: border-color .2s ease;
}
.nfs-legal-body a:not(.btn):hover { border-bottom-color: var(--accent-rust); }

/* The ACL mandatory wording gets a pull-quote treatment so it reads as prominently as
   reg 90 of the Competition and Consumer Regulations requires, rather than disappearing
   into the prose. Tagged explicitly by nfs_legal_blocks(), not inferred from markup shape. */
.nfs-legal-body .nfs-legal-callout {
  display: block;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  font-weight: 500; color: var(--ink);
}

.nfs-legal-help {
  margin-top: 72px; padding: 30px 32px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.nfs-legal-help h2 {
  font-family: "Fraunces", serif; font-weight: 400; font-size: 24px;
  margin: 0 0 8px; padding: 0; border: 0; color: var(--ink);
}
.nfs-legal-help p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.nfs-legal-help-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .nfs-legal-hero,
  .nfs-page-hero { padding-top: 104px; }
  .nfs-legal-body { font-size: 16px; }
}
