/* ───────────────────────────────────────────────────────────
   FENCED.CA — component styles
   Layered after tokens.css.
   ─────────────────────────────────────────────────────────── */

/* ═══ SHELL + VIEW SWITCHER ════════════════════════════════ */

.shell {
  position: relative;
  min-height: 100vh;
}

.view-switcher {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(14,15,18,0.85);
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: opacity 0.4s var(--ease-out-expo);
  font-family: var(--font-mono);
  font-size: 11px;
}
.view-switcher button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--paper-mute);
  padding: 7px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font: inherit;
  white-space: nowrap;
  transition: background 0.18s var(--ease-out-expo), color 0.18s var(--ease-out-expo);
  cursor: default;
}
.view-switcher button:hover { color: var(--paper); }
.view-switcher button.active {
  background: var(--brass);
  color: var(--ink);
}
.view-switcher .vs-divider {
  width: 1px;
  background: var(--ink-line);
  margin: 4px 4px;
}

/* ═══ SITE NAV ══════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s var(--ease-out-expo), backdrop-filter 0.3s var(--ease-out-expo);
}
.nav-scrolled {
  background: rgba(14,15,18,0.72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--ink-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 48px;
}
.nav-mark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 14px;
  text-decoration: none;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
}
.nav-mark-logo {
  color: var(--paper);
  height: 0.68em;
  width: 0.64em;
  margin-right: 0.02em;
  vertical-align: baseline;
}
.nav-mark-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
}
/* Header phone link — paper by default, brass on hover */
.header-phone {
  transition: color 0.16s var(--ease-out-expo);
}
.header-phone:hover,
.header-phone:focus-visible {
  color: var(--brass) !important;
  outline: none;
}

.nav-mark-fenced { color: var(--paper); }
.nav-mark-dot    { color: var(--brass); }
.nav-mark-ca     { color: var(--brass); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--paper-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-links .nav-link { transition: color 0.18s var(--ease-out-expo); text-decoration: none; color: inherit; display: inline-flex; align-items: center; padding: 8px 0; }
.nav-links .nav-link:hover { color: var(--paper); }

/* ── Nav dropdowns (CSS-only, hover + focus-within) ────────────── */
.nav-item { position: relative; }
.nav-item.has-dropdown > .nav-link::after {
  /* invisible bridge so mouse can move from link to dropdown without losing :hover */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 18px;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 280px;
  max-width: 360px;
  background: var(--ink-2);
  border: 1px solid var(--ink-line-strong);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 8px 16px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
  z-index: 100;
  pointer-events: none;
}
.nav-item.has-dropdown:hover > .nav-dropdown,
.nav-item.has-dropdown:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0s;
  pointer-events: auto;
}
.nav-dropdown-inner { padding: 10px 0; }
.nav-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 70vh;
  overflow-y: auto;
}
.nav-dropdown li a {
  display: block;
  padding: 10px 18px;
  color: var(--paper-dim);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.nav-dropdown li a:hover,
.nav-dropdown li a:focus {
  background: rgba(255,255,255,0.03);
  color: var(--paper);
  border-left-color: var(--brass);
  outline: none;
}
.nav-dd-label {
  display: block;
  font-weight: 500;
}
.nav-dd-desc {
  display: block;
  font-size: 11px;
  color: var(--paper-mute);
  margin-top: 2px;
  text-transform: none;
  letter-spacing: 0;
}
.nav-dd-footer {
  display: block;
  padding: 12px 18px;
  margin-top: 4px;
  border-top: 1px solid var(--ink-line);
  color: var(--brass);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.12s;
}
.nav-dd-footer:hover { background: rgba(255,255,255,0.03); }
.nav-end { display: flex; align-items: center; gap: 14px; }
.nav-locale {
  appearance: none;
  background: transparent;
  border: 1px solid var(--ink-line-strong);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 18px 28px; font-size: 16px; }

/* ═══ HERO ══════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 120px 24px 200px;
  text-align: center;
}
/* ── Lenis smooth scroll (https://lenis.darkroom.engineering) ─────────── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Legacy topo container — kept hidden so any stale refs don't render lines */
.hero-topo { display: none; }
.canada-topo { display: none; }

/* Hero ambient glow — soft brass radial that drifts with the cursor.
   Replaces the old topographic SVG lines. */
.hero-glow {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 50% 38%, rgba(224, 122, 59, 0.22), rgba(224, 122, 59, 0) 70%),
    radial-gradient(ellipse 35% 30% at 30% 65%, rgba(120, 90, 60, 0.18), transparent 75%),
    radial-gradient(ellipse 40% 30% at 75% 55%, rgba(80, 80, 110, 0.14), transparent 75%);
  filter: blur(40px);
  transition: transform 0.9s var(--ease-out-expo);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-meta { opacity: 0.85; margin-bottom: 28px; }
.hero-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 12vw, 192px);
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin: 0 0 32px;
  /* inline-flex with baseline alignment: SVG glyph (vertical-align:baseline)
     sits flush on the text baseline alongside the letterforms. */
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
}
.mark-f, .mark-letters { color: var(--paper); }
/* Hero picket-F glyph — white, sized to match cap-height of "ENCED".
   Pixel-true measurement: 0.71em. Visually tuned up to 0.75em + 0.04em
   downward translate so the picket bottoms reach the letter baseline
   (compensates for the optical-shortness illusion of sparse vertical bars
   against solid letterforms at large display sizes). */
.mark-f-svg {
  color: var(--paper);
  height: 0.68em;
  width: 0.64em;
  /* Slightly tighter than text-glyph sidebearing to reduce F→E gap a touch. */
  margin-right: 0.02em;
  vertical-align: baseline;
  flex-shrink: 0;
}
.mark-dot { color: var(--brass); }
/* ".CA" suffix — dot + the "CA" letters that follow it — in brass */
.mark-dot + .mark-letters,
.mark-suffix { color: var(--brass); }

.hero-sub {
  font-family: var(--font-editorial);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--paper-dim);
  max-width: 540px;
  font-weight: 400;
  margin-bottom: 32px;
}
.hero-sub em {
  font-style: italic;
  color: var(--paper);
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
/* Hero stats row — quick-glance proof points under the CTAs */
.hero-stats {
  margin-top: 64px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  max-width: 720px;
  width: 100%;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 80px; }
.hero-stat-n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--paper);
  letter-spacing: 0.01em;
  line-height: 1;
}
.hero-stat-l {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

/* Hero featured-fence thumbnail strip (bottom of hero) */
.hero-thumbs {
  position: absolute;
  left: 0; right: 0; bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 2;
  pointer-events: auto;
}
.hero-thumbs-label {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.hero-thumbs-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 24px;
}
.hero-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  width: 92px;
  transition: transform 0.22s var(--ease-out-expo);
}
.hero-thumb-img {
  display: block;
  width: 92px;
  height: 62px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--ink-line);
  filter: saturate(0.85) brightness(0.78);
  transition: filter 0.25s, border-color 0.25s, transform 0.25s var(--ease-out-expo);
}
.hero-thumb-label {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--paper-dim);
  letter-spacing: 0.04em;
  text-align: center;
  transition: color 0.18s;
}
.hero-thumb:hover .hero-thumb-img {
  filter: saturate(1) brightness(1);
  border-color: var(--brass);
  transform: translateY(-2px);
}
.hero-thumb:hover .hero-thumb-label { color: var(--paper); }

/* Legacy base eyebrow strip removed */
.hero-base { display: none; }

/* Scroll-down cue — bobbing chevron + label, signals "more below" */
.hero-scrollcue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--paper-mute);
  z-index: 2;
  cursor: pointer;
  transition: color 0.2s var(--ease-out-expo), opacity 0.2s;
  opacity: 0.75;
}
.hero-scrollcue:hover { color: var(--brass); opacity: 1; }
.hero-scrollcue-label {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.hero-scrollcue-chev {
  width: 22px;
  height: 12px;
  animation: scrollcue-bob 1.8s var(--ease-in-out-quart, ease-in-out) infinite;
  will-change: transform;
}
@keyframes scrollcue-bob {
  0%   { transform: translateY(-4px); opacity: 0.4; }
  50%  { transform: translateY(4px);  opacity: 1; }
  100% { transform: translateY(-4px); opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scrollcue-chev { animation: none; }
}

/* ═══ FENCE SCENE ═══════════════════════════════════════════ */

.scene {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.scene-fence {
  display: flex;
  flex-direction: column;
}
.scene-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo);
}
.tint-pool .scene-tint {
  background: radial-gradient(ellipse at center, rgba(63,143,178,0.18), transparent 60%);
  opacity: 1;
}
.tint-farm .scene-tint {
  background: linear-gradient(to top, rgba(200,157,82,0.16), transparent 60%);
  opacity: 1;
}
.tint-security .scene-tint {
  background: linear-gradient(to bottom, rgba(61,68,78,0.3), transparent 50%);
  opacity: 1;
}

.scene-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}
.scene-fence-art {
  position: relative;
  width: 100%;
  max-width: 1440px;
  aspect-ratio: 1440 / 520;
  margin-top: -40px;
}
.fence-half {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}
.fence-half-l {
  clip-path: inset(0 50% 0 0);
}
.fence-half-r {
  clip-path: inset(0 0 0 50%);
}
/* Initial state for the scroll-scene halves: off-screen + hidden until
   GSAP/IntersectionObserver brings them in. Scoped to .scene so the static
   pillar hero (.pillar-half-l/-r on MaterialPage) is untouched. */
.scene .fence-half-l { transform: translate3d(-100%, 0, 0); opacity: 0; }
.scene .fence-half-r { transform: translate3d( 100%, 0, 0); opacity: 0; }
.fence-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* spark at fusion seam */
.fence-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  height: 320px;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at center,
      rgba(255,255,255,0.95) 0%,
      rgba(122,184,255,0.7) 8%,
      rgba(122,184,255,0.25) 30%,
      transparent 65%);
  mix-blend-mode: screen;
  filter: blur(4px);
  transform: translate(-50%, -50%) scale(0.6);
  will-change: opacity, transform;
}
.fence-spark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 90%;
  transform: translate(-50%, -50%);
  background: linear-gradient(to bottom,
    transparent,
    rgba(255,255,255,0.85) 30%,
    rgba(255,255,255,0.85) 70%,
    transparent);
  opacity: 0.7;
}

/* copy slab below the fence */
.scene-copy {
  position: absolute;
  left: 0; right: 0;
  bottom: 9vh;
  display: flex;
  justify-content: center;
  pointer-events: auto;
  will-change: transform, opacity;
  opacity: 0;
  /* Soft dark scrim so the headline reads against the fence SVG. */
  background: radial-gradient(ellipse at 50% 70%,
    rgba(8,9,12,0.78) 0%,
    rgba(8,9,12,0.55) 28%,
    rgba(8,9,12,0.18) 52%,
    transparent 72%);
  padding: 6vh 24px 4vh;
}
.scene-copy-inner {
  width: min(880px, 88vw);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.scene-h2 {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--paper);
  max-width: 18ch;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.45);
}
.scene-h2 em {
  font-style: italic;
  color: var(--brass);
}
.scene-lead {
  font-family: var(--font-display);
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--paper);
  max-width: 56ch;
  margin-top: 4px;
  text-wrap: pretty;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}
.scene-foot {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 8px;
}
.scene-copy-inner .eyebrow {
  white-space: nowrap;
  /* Product identifier — this is the headline of the scene, not the H2. */
  font-size: clamp(16px, 1.4vw, 22px);
  letter-spacing: 0.22em;
  color: var(--brass);
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}
.scene-stat {
  font-family: var(--font-mono);
  font-size: var(--t-stat);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
  white-space: nowrap;
}

/* scene counter — bottom right */
.scene-counter {
  position: absolute;
  bottom: 24px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--t-stat);
  letter-spacing: 0.18em;
  color: var(--paper-mute);
  z-index: 3;
}
.ctr-rule {
  width: 22px;
  height: 1px;
  background: var(--paper-mute);
}

/* reduced-motion fallback */
/* prefers-reduced-motion users: fully static fallback (no parallax). */
@media (prefers-reduced-motion: reduce) {
  .scene {
    height: auto;
    min-height: 100vh;
    padding: 14vh 24px;
    overflow: visible;
  }
  .scene-stage {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    transform: none !important;
  }
  .scene-fence-art { max-width: 100%; }
  .fence-half {
    transform: none !important;
    opacity: 1 !important;
    clip-path: none !important;
  }
  .fence-half-r { display: none; }
  .scene-copy {
    position: relative;
    bottom: auto;
    margin-top: 48px;
    opacity: 1 !important;
    transform: none !important;
  }
  .scene.in .scene-copy { opacity: 1; }
}

/* Mobile parallax: keep the GSAP pin/scrub geometry (height: 100vh, fence
   halves slide-in) but tighten padding and copy sizes for narrow screens. */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  /* Stage: center fence+copy as ONE block so they enter/exit together when
     the scene scrolls past unpin. Desktop layout (absolute copy at bottom)
     is untouched. */
  .scene-stage {
    padding: 0 16px;
    justify-content: center;
    gap: 32px;
  }
  /* Fence art: wider aspect so the actual fence pattern renders at usable
     height (~225px on iPhone 14 Pro instead of ~130px). */
  .scene-fence-art {
    max-width: 92vw;
    aspect-ratio: 1440 / 900;
    margin-top: 0;
    flex: 0 0 auto;
  }
  /* Copy: flow naturally below fence inside the centered stage flex (NOT
     absolute-bottom like desktop). This keeps fence + copy together during
     the scroll-past so we never see one without the other. */
  .scene-copy {
    position: relative;
    bottom: auto;
    padding: 0 20px;
    background: none; /* scrim not needed when copy is below fence, not over it */
    flex: 0 0 auto;
  }
  .scene-copy-inner {
    width: min(560px, 92vw);
    gap: 10px;
  }
  .scene-h2 {
    font-size: clamp(28px, 7vw, 40px) !important;
    line-height: 1.1;
    max-width: 16ch;
  }
  .scene-lead {
    font-size: 15px;
    line-height: 1.5;
    max-width: 38ch;
  }
  .scene-foot {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
  }
  .scene-copy-inner .eyebrow {
    font-size: 13px;
    letter-spacing: 0.18em;
  }
  /* Spark scaled down so the blue fusion flash doesn't blow out a small screen */
  .fence-spark {
    width: 180px;
    height: 180px;
  }
  /* Convergence grid origin */
  .conv-grid {
    transform-origin: center center;
  }
}

/* ═══ CONVERGENCE ═══════════════════════════════════════════ */

.scene-convergence {
  overflow: hidden;
  background: #08090C;
}
.conv-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  will-change: transform, opacity;
  opacity: 0;
}
.conv-cell {
  position: relative;
  overflow: hidden;
  background: #1F2227;
  border: 1px solid rgba(245,244,239,0.04);
}
.conv-cell svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(1.15);
}
.conv-cell-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(8,9,12,0.85) 100%);
  pointer-events: none;
}
.conv-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  z-index: 2;
  will-change: opacity, transform;
  opacity: 0;
  pointer-events: none;
}
.conv-copy > * { pointer-events: auto; }
.conv-copy .scene-h2 { max-width: 22ch; }
.conv-copy .scene-lead { max-width: 60ch; }
.conv-map {
  margin-top: 32px;
  width: min(620px, 78vw);
  color: var(--paper-dim);
}
.canada-map {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  color: var(--paper);
}
.canada-map > img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.4));
}
.canada-map-pins {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.canada-map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  pointer-events: none;
}
.canada-map-pulse,
.canada-map-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--brass);
}
.canada-map-dot {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 2px rgba(8,9,12,0.85);
}
.canada-map-pulse {
  width: 12px;
  height: 12px;
  opacity: 0;
  animation: canada-map-pulse 6s ease-out infinite;
  animation-delay: inherit;
}
.canada-map-dot {
  animation: canada-map-dot 6s ease-out infinite;
  animation-delay: inherit;
}
.canada-map-label {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
/* 6s cycle, 10 dots, one at a time. Each dot is "off" the whole cycle
   except for a brief blink — 0–7% of the cycle (≈ 0.42s of 6s). */
@keyframes canada-map-pulse {
  0%   { width: 12px; height: 12px; opacity: 0.55; }
  7%   { width: 52px; height: 52px; opacity: 0;    }
  100% { width: 12px; height: 12px; opacity: 0;    }
}
@keyframes canada-map-dot {
  0%, 7%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.55; }
  3%           { transform: translate(-50%, -50%) scale(1.6); opacity: 1;    }
}

/* ═══ AUDIENCES ═════════════════════════════════════════════ */

.scene-audiences {
  height: auto;
  min-height: 100vh;
  padding: 14vh 0 14vh;
  background: var(--ink-2);
}
.aud-head {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.aud-grid {
  width: min(1280px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
}
.aud-card {
  position: relative;
  background: var(--ink-2);
  padding: 48px 40px 40px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: background 0.3s var(--ease-out-expo);
}
.aud-card:hover { background: var(--ink-3); }
.aud-h {
  font-family: var(--font-editorial);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.05;
  max-width: 16ch;
}
.aud-p {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--paper-dim);
  max-width: 44ch;
  line-height: 1.55;
}
.aud-card .tlink { margin-top: auto; align-self: flex-start; }
.aud-pattern {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 200px;
  height: 80px;
  color: var(--steel);
  opacity: 0.45;
}
.aud-pattern svg { width: 100%; height: 100%; }
.aud-card.aud-pool .aud-pattern,
.aud-card.aud-farmer .aud-pattern { color: var(--brass); opacity: 0.4; }

@media (max-width: 768px) {
  .aud-grid { grid-template-columns: 1fr; }
  .aud-card { padding: 32px 24px 28px; min-height: auto; }
}

/* ═══ TRUST + CTA ═══════════════════════════════════════════ */

.scene-trust {
  height: auto;
  min-height: 100vh;
  padding: 14vh 0 8vh;
  display: flex;
  flex-direction: column;
  gap: 96px;
  background: var(--ink);
}
.trust-logos { text-align: center; }
.trust-lbl { margin-bottom: 24px; display: block; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 56px;
  justify-content: center;
  align-items: center;
  opacity: 0.75;
}
.trust-logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
  text-transform: uppercase;
}
.trust-promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
.promise {
  background: var(--ink);
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.promise h3 {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.05;
}
.promise p {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--paper-dim);
}
@media (max-width: 768px) {
  .trust-promises { grid-template-columns: 1fr; }
  .promise { padding: 36px 24px; }
}

.trust-cta-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
}
.trust-h2 { max-width: 22ch; }
.trust-fine {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper-mute);
  margin-top: 8px;
}
.trust-fine a { color: var(--brass); border-bottom: 1px solid currentColor; }

/* ═══ FOOTER ════════════════════════════════════════════════ */

.footer {
  background: var(--ink-2);
  border-top: 1px solid var(--ink-line);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-grid h4 {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 16px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid ul li {
  margin-bottom: 8px;
}
.footer-grid ul li a {
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.footer-grid ul li a:hover {
  color: var(--paper);
}
.footer-brand .ft-mark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 16px;
  margin-bottom: 8px;
}
.footer-brand .ft-tag {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 18px;
  color: var(--paper-dim);
  margin-bottom: 28px;
}
.footer-brand .ft-cred {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper-mute);
  letter-spacing: 0.08em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--paper-dim);
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:nth-child(4) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--ink-line); }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:nth-child(4) { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid > div:nth-child(4) { grid-template-columns: 1fr; }
}

/* ═══ MOBILE NAV TWEAKS ════════════════════════════════════ */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { padding: 16px 0; }
  .nav-locale { display: none; }
  /* Hero grows naturally on mobile so stats + thumb strip don't overlap. */
  .hero {
    padding: 100px 16px 40px;
    min-height: auto;
    justify-content: flex-start;
  }
  .hero-stats {
    margin-top: 40px;
    gap: 20px;
    padding: 18px 0;
  }
  /* Thumbs flow below stats in natural document order (NOT absolute on mobile) */
  .hero-thumbs {
    position: relative;
    inset: auto;
    margin-top: 48px;
    padding-bottom: 24px;
  }
  .hero-base { display: none; }
  .scene-counter { right: 16px; bottom: 16px; }
}

/* ─── TESTIMONIALS (homepage scroll scene replacement for Audiences) ─── */
.scene-testimonials {
  height: auto;
  min-height: 100vh;
  padding: 14vh 0;
  background: var(--ink-2);
}
.tm-grid {
  width: min(1280px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
}
.tm-card {
  background: var(--ink-2);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.3s var(--ease-out-expo);
}
.tm-card:hover { background: var(--ink-3); }
.tm-head { display: flex; justify-content: space-between; align-items: center; }
.tm-stars { letter-spacing: 2px; font-size: 14px; color: rgba(245,244,239,0.18); }
.tm-star-on { color: var(--brass); }
.tm-city { color: var(--paper-mute); }
.tm-quote {
  font-family: var(--font-editorial);
  font-size: 21px;
  line-height: 1.45;
  color: var(--paper);
  margin: 0;
  text-wrap: pretty;
}
.tm-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ink-line);
}
.tm-name { font-family: var(--font-display); font-weight: 500; color: var(--paper); font-size: 14px; }
.tm-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
@media (max-width: 768px) {
  .tm-grid { grid-template-columns: 1fr; }
  .tm-card { padding: 28px 22px; }
  .tm-quote { font-size: 17px; }
}

/* ───────────────────────────────────────────────────────────────────────────
   Material Service Page (MSP) — /fences/[material]/[service]
   Service-intent landing page. 7 sections, H1→H2→H3 hierarchy.
   Built 2026-05-17 to replace 5-component shell.
   ─────────────────────────────────────────────────────────────────────────── */

.msp-main {
  background: var(--ink);
  color: var(--paper);
}
.msp-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}
.msp-section {
  padding: 88px 0;
  border-top: 1px solid var(--ink-line);
}
.msp-section:first-child { border-top: none; }
.msp-section--inclusions,
.msp-section--pricing,
.msp-section--related {
  background: var(--ink-2);
}
.msp-section--faq { background: var(--ink); }

/* Eyebrow — mono uppercase brass-tinted label above each section */
.msp-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
  padding-left: 14px;
  position: relative;
}
.msp-eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 1px;
  background: var(--brass);
}

/* H2 — section title. Brass top-rule, then large display heading. */
.msp-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin: 0 0 24px;
  max-width: 24ch;
}

/* H3 — subsection title within a section */
.msp-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--paper);
  margin: 40px 0 14px;
}

/* Body — paper-dim, comfortable reading width, generous leading */
.msp-body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--paper-dim);
  max-width: 68ch;
  margin: 0 0 16px;
}
.msp-body-muted {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper-mute);
  max-width: 70ch;
  margin: 0 0 28px;
}
.msp-lead {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.55;
  color: var(--paper);
  max-width: 62ch;
  margin: 0 0 8px;
}

/* Inline brass link */
.msp-link {
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 122, 59, 0.4);
  transition: border-color 0.2s var(--ease-out-expo), color 0.2s var(--ease-out-expo);
}
.msp-link:hover,
.msp-link:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--paper);
}
.msp-link-out {
  margin: 24px 0 0;
  font-size: 15px;
}

/* Use-case chips */
.msp-use-cases {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.msp-use-cases li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dim);
  padding: 7px 12px;
  border: 1px solid var(--ink-line-strong);
  border-radius: 2px;
}

/* Table — inclusions + lead-time */
.msp-table-wrap {
  overflow-x: auto;
  margin: 24px 0 8px;
  border: 1px solid var(--ink-line-strong);
  border-radius: 4px;
}
.msp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 15px;
}
.msp-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-mute);
  background: var(--ink-3);
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-line-strong);
}
.msp-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--ink-line);
  vertical-align: top;
  line-height: 1.55;
  color: var(--paper-dim);
}
.msp-table tr:last-child td { border-bottom: none; }
.msp-td-item { color: var(--paper); font-weight: 500; min-width: 200px; }
.msp-td-flag {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  width: 80px;
}
.msp-td-flag.is-yes { color: var(--brass); }
.msp-td-flag.is-no  { color: var(--paper-mute); }
.msp-td-note { color: var(--paper-mute); font-size: 14px; }
.msp-table--lead .msp-td-lead {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper);
  letter-spacing: 0.02em;
}

/* Process steps — numbered ordered list with brass numerals */
.msp-steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.msp-step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  transition: border-color 0.2s var(--ease-out-expo), transform 0.2s var(--ease-out-expo);
}
.msp-step:hover { border-color: var(--ink-line-strong); }
.msp-section--inclusions .msp-step,
.msp-section--pricing .msp-step,
.msp-section--related .msp-step {
  background: var(--ink-3);
}
.msp-step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--brass);
  letter-spacing: -0.02em;
}
.msp-step-body { padding-top: 8px; }
.msp-step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--paper);
  margin: 0 0 8px;
  line-height: 1.3;
}
.msp-step-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper-dim);
  margin: 0;
  max-width: 60ch;
}

/* FAQ — disclosure list */
.msp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}
.msp-faq {
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  background: var(--ink-2);
  transition: border-color 0.2s var(--ease-out-expo);
}
.msp-faq[open] { border-color: rgba(224, 122, 59, 0.5); }
.msp-faq-q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--paper);
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 60px;
  line-height: 1.35;
}
.msp-faq-q::-webkit-details-marker { display: none; }
.msp-faq-q::after {
  content: "+";
  position: absolute;
  right: 24px; top: 18px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 300;
  color: var(--brass);
  transition: transform 0.2s var(--ease-out-expo);
}
.msp-faq[open] .msp-faq-q::after { content: "−"; }
.msp-faq-a {
  padding: 0 24px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--paper-dim);
  max-width: 68ch;
}

/* Related — 3-column grid */
.msp-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.msp-related-col h3 { margin-top: 0; }
.msp-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msp-related-list a {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}
.msp-btn-primary {
  display: inline-block;
  margin-top: 14px;
  padding: 14px 26px;
  background: var(--brass);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s var(--ease-out-expo), transform 0.15s var(--ease-out-expo);
}
.msp-btn-primary:hover,
.msp-btn-primary:focus-visible {
  background: #ee8c4d;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .msp-section { padding: 64px 0; }
  .msp-h2 { font-size: clamp(24px, 6vw, 32px); }
  .msp-step { grid-template-columns: 56px 1fr; gap: 16px; padding: 20px; }
  .msp-step-num { font-size: 38px; }
  .msp-table { font-size: 14px; }
  .msp-table th, .msp-table td { padding: 12px 14px; }
}
