/* ============================================================
   Pro4mance Roofing — 3D Design System
   Logo-rooted palette with deep perspective and dimensional UI.
   ============================================================ */

:root {
  /* Brand */
  --brand-forest: #1E2A1B;
  --brand-forest-deep: #0E140B;
  --brand-forest-mid: #2B3A26;
  --brand-orange: #E8711A;
  --brand-orange-deep: #C85A0F;
  --brand-orange-soft: #F4A857;
  --brand-cream: #F4E9C8;
  --brand-moss: #7A8B3E;

  /* Light mode */
  --bg: #F2EDDE;
  --bg-elev: #FFFFFF;
  --bg-band: #E7E1CD;
  --bg-deep: #1E2A1B;
  --ink: #121611;
  --ink-2: #3A4237;
  --ink-3: #6B7265;
  --line: rgba(18, 22, 17, 0.12);
  --line-strong: rgba(18, 22, 17, 0.28);
  --accent: var(--brand-orange);
  --accent-ink: var(--brand-forest);
  --shadow-sm: 0 1px 2px rgba(18,22,17,0.08), 0 1px 1px rgba(18,22,17,0.04);
  --shadow-md: 0 10px 30px -8px rgba(18,22,17,0.22), 0 2px 6px rgba(18,22,17,0.06);
  --shadow-lg: 0 40px 80px -20px rgba(18,22,17,0.3), 0 10px 20px -10px rgba(18,22,17,0.15);
  --shadow-3d: 0 1px 0 rgba(255,255,255,0.8) inset, 0 -1px 0 rgba(0,0,0,0.06) inset;
  --grain-opacity: 0.05;
}

[data-theme="dark"] {
  --bg: #0B0F08;
  --bg-elev: #151B10;
  --bg-band: #10160A;
  --bg-deep: #060804;
  --ink: #F2ECD7;
  --ink-2: #C9C3AE;
  --ink-3: #8B8771;
  --line: rgba(242, 236, 215, 0.10);
  --line-strong: rgba(242, 236, 215, 0.22);
  --accent: #F18938;
  --accent-ink: #F4E9C8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 10px 30px -10px rgba(0,0,0,0.7);
  --shadow-lg: 0 40px 80px -20px rgba(0,0,0,0.9), 0 20px 40px -20px rgba(0,0,0,0.6);
  --shadow-3d: 0 1px 0 rgba(255,255,255,0.04) inset, 0 -1px 0 rgba(0,0,0,0.4) inset;
  --grain-opacity: 0.07;
}

/* Type */
:root {
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: background-color 500ms ease, color 500ms ease;
}
html { perspective: 1600px; perspective-origin: 50% 30%; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }

::selection { background: var(--brand-orange); color: #fff; }

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
[data-theme="dark"] body::before { mix-blend-mode: screen; }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--accent);
}

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.92;
  font-size: clamp(44px, 8vw, 132px);
}
.h-section {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 0.96;
  font-size: clamp(36px, 5.4vw, 76px);
  margin: 16px 0 0;
}
.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Buttons with real 3D depth */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 250ms cubic-bezier(.2,.8,.2,1), box-shadow 250ms, background-color 250ms;
  border: 1px solid transparent;
  white-space: nowrap;
  transform-style: preserve-3d;
  position: relative;
}
.btn .arrow { width: 18px; height: 18px; transition: transform 300ms cubic-bezier(.2,.8,.2,1); }
.btn:hover .arrow { transform: translate(3px, -3px); }

.btn-primary {
  background: linear-gradient(180deg, #F08A35 0%, #E8711A 50%, #C85A0F 100%);
  color: #FFF8EC;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -2px 0 rgba(0,0,0,0.12),
    0 1px 0 rgba(0,0,0,0.06),
    0 6px 14px -4px rgba(232,113,26,0.45),
    0 2px 4px rgba(0,0,0,0.1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 0 rgba(0,0,0,0.15),
    0 1px 0 rgba(0,0,0,0.08),
    0 14px 28px -6px rgba(232,113,26,0.55),
    0 4px 8px rgba(0,0,0,0.15);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 1px 2px rgba(0,0,0,0.05),
    0 4px 10px -4px rgba(0,0,0,0.08);
}
[data-theme="dark"] .btn-ghost {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 1px 2px rgba(0,0,0,0.6),
    0 4px 10px -4px rgba(0,0,0,0.8);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 1px 2px rgba(0,0,0,0.05),
    0 10px 22px -6px rgba(0,0,0,0.15);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background-color 350ms ease, backdrop-filter 350ms, border-color 350ms;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; transform-style: preserve-3d; }
.brand-mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-forest);
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -2px 0 rgba(0,0,0,0.35),
    0 6px 14px -4px rgba(0,0,0,0.3),
    0 2px 4px rgba(0,0,0,0.15);
  transform: translateZ(20px);
  transition: transform 400ms cubic-bezier(.2,.8,.2,1);
}
.brand:hover .brand-mark { transform: translateZ(30px) rotateY(-12deg); }
.brand-mark img { width: 86%; height: 86%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .bt-name { font-size: 18px; }
.brand-text .bt-sub { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; }

.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a { padding: 10px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); position: relative; transition: color 200ms; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 300ms cubic-bezier(.2,.8,.2,1);
}
.nav-links a:hover::after { transform: scaleX(1); }

.header-right { display: flex; gap: 10px; align-items: center; }

/* Theme toggle */
.theme-toggle {
  width: 60px; height: 32px;
  border-radius: 999px;
  background: var(--bg-band);
  border: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
}
.theme-toggle .knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #F08A35, #E8711A);
  transition: transform 400ms cubic-bezier(.3,1.4,.4,1), background 300ms;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
[data-theme="dark"] .theme-toggle .knob {
  transform: translateX(28px);
  background: linear-gradient(180deg, #FFF4D2, #F4E9C8);
}
.theme-toggle .sun, .theme-toggle .moon { position: absolute; top: 50%; transform: translateY(-50%); font-size: 10px; opacity: 0.5; pointer-events: none; }
.theme-toggle .sun { left: 9px; }
.theme-toggle .moon { right: 9px; }

/* Mobile */
.mobile-toggle { display: none; }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .mobile-toggle {
    display: inline-flex;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    border-radius: 999px; border: 1px solid var(--line);
    background: var(--bg-elev);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 6px -2px rgba(0,0,0,0.1);
  }
  .mobile-toggle span { width: 18px; height: 10px; position: relative; display: block; }
  .mobile-toggle span::before, .mobile-toggle span::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
    transition: transform 300ms cubic-bezier(.2,.8,.2,1);
  }
  .mobile-toggle span::before { top: 0; }
  .mobile-toggle span::after { bottom: 0; }
  .mobile-toggle.open span::before { transform: translateY(4px) rotate(45deg); }
  .mobile-toggle.open span::after { transform: translateY(-4px) rotate(-45deg); }
  .header-right .btn-desktop { display: none; }
}

.mobile-drawer {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 90;
  padding: 100px 24px 40px;
  transform: translateY(-100%);
  transition: transform 600ms cubic-bezier(.7,0,.3,1);
  display: flex; flex-direction: column;
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer nav a {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-drawer nav a span:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.mobile-drawer .mobile-cta { margin-top: 32px; }

/* ============================================================
   HERO — 3D PARALLAX
   ============================================================ */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  min-height: 100vh;
  perspective: 1500px;
  perspective-origin: 50% 40%;
}
@media (max-width: 720px) { .hero { padding: 110px 0 40px; min-height: auto; } }

.hero-bg-layers {
  position: absolute; inset: 0;
  pointer-events: none;
  transform-style: preserve-3d;
}

/* floating 3D shingle shapes in the background */
.shingle-shape {
  position: absolute;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-forest-mid), var(--brand-forest));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -2px 0 rgba(0,0,0,0.4),
    0 30px 50px -10px rgba(0,0,0,0.3);
  opacity: 0.85;
  will-change: transform;
  transition: transform 200ms cubic-bezier(.2,.8,.2,1);
}
[data-theme="light"] .shingle-shape { opacity: 0.9; }
.shingle-shape.s1 { top: 8%; right: -4%; width: 28vw; height: 36vw; transform: rotate(-12deg); max-width: 420px; max-height: 540px; }
.shingle-shape.s2 { top: 40%; right: 20%; width: 16vw; height: 22vw; transform: rotate(18deg); max-width: 240px; max-height: 320px; background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-deep)); }
.shingle-shape.s3 { bottom: -8%; left: -6%; width: 24vw; height: 30vw; transform: rotate(8deg); max-width: 360px; max-height: 440px; background: linear-gradient(135deg, var(--brand-moss), #56682C); }
@media (max-width: 720px) {
  .shingle-shape.s2 { display: none; }
  .shingle-shape.s1 { right: -20%; top: 2%; }
  .shingle-shape.s3 { bottom: -20%; left: -20%; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 50px; } }

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-eyebrow .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; position: relative; }
.hero-eyebrow .dot::before {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%; border: 1px solid var(--accent);
  animation: pulse 2.5s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(52px, 9.5vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.042em;
  margin: 0;
  color: var(--ink);
}
.hero-title .line { display: block; overflow: hidden; padding: 0.02em 0; }
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
  padding-right: 6px;
}
.shingle-word {
  display: inline-block;
  white-space: nowrap;
}
.shingle-letter {
  display: inline-block;
  transform: translateY(-110%) rotate(-8deg);
  opacity: 0;
  animation: shingle-drop 900ms cubic-bezier(.18,.8,.3,1.05) forwards;
  text-shadow: 2px 4px 0 rgba(0,0,0,0.04);
}
[data-theme="dark"] .shingle-letter { text-shadow: 2px 4px 0 rgba(0,0,0,0.3); }
@keyframes shingle-drop {
  0%   { transform: translateY(-110%) rotate(-10deg); opacity: 0; }
  60%  { opacity: 1; }
  85%  { transform: translateY(4%) rotate(1.5deg); }
  100% { transform: translateY(0) rotate(0); opacity: 1; }
}

.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  max-width: 520px;
  color: var(--ink-2);
  margin-top: 32px;
}

.hero-ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* Hero video card — fully 3D */
.hero-video-wrap {
  position: relative;
  perspective: 1200px;
}
.hero-video-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--brand-forest-deep);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateY(30px) rotateY(-8deg) rotateX(4deg);
  animation: card-in 1100ms 300ms cubic-bezier(.2,.8,.2,1) forwards;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 400ms cubic-bezier(.2,.8,.2,1);
}
@keyframes card-in {
  to { opacity: 1; transform: translateY(0) rotateY(-4deg) rotateX(2deg); }
}

.hero-video-card video,
.hero-video-card .video-placeholder {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-sound-toggle {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(244,233,200,0.5);
  background: rgba(15,19,16,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--brand-cream);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateZ(30px);
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.video-sound-toggle:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  transform: translateZ(30px) scale(1.08);
}
.video-sound-toggle svg { display: block; }
.video-placeholder {
  background:
    radial-gradient(circle at 30% 40%, rgba(232,113,26,0.35), transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(122,139,62,0.3), transparent 55%),
    linear-gradient(180deg, #2B3A26 0%, #141C11 100%);
  display: grid; place-items: center;
  color: var(--brand-cream);
}
.video-placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(244,233,200,0.04) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(244,233,200,0.04) 0 1px, transparent 1px 80px);
}

/* floating 3D scanlines over placeholder */
.video-placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(0,0,0,0.06) 3px 4px);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.video-placeholder-content { position: relative; text-align: center; z-index: 2; transform: translateZ(50px); }
.video-placeholder .play {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(180deg, #F18938, #E8711A 50%, #C85A0F 100%);
  display: grid; place-items: center;
  margin: 0 auto 22px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.3),
    inset 0 -3px 0 rgba(0,0,0,0.25),
    0 20px 40px rgba(232,113,26,0.45),
    0 4px 0 rgba(100,40,0,0.3);
  position: relative;
  cursor: pointer;
  transition: transform 300ms cubic-bezier(.2,.8,.2,1);
  transform: translateZ(30px);
}
.video-placeholder .play::before {
  content: "";
  position: absolute; inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(232,113,26,0.5);
  animation: pulse-ring 2.5s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}
.video-placeholder .play:hover { transform: translateZ(40px) scale(1.06); }
.video-placeholder .play svg { width: 30px; height: 30px; margin-left: 4px; fill: #FFF8EC; filter: drop-shadow(0 2px 0 rgba(0,0,0,0.2)); }
.video-placeholder .vp-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,233,200,0.7);
}
.video-placeholder .vp-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  margin-top: 8px;
}

.hero-video-card .corner {
  position: absolute; width: 26px; height: 26px;
  border: 1.5px solid var(--brand-cream);
  opacity: 0.85;
  transform: translateZ(20px);
}
.hero-video-card .corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.hero-video-card .corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.hero-video-card .corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.hero-video-card .corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }

.hero-video-card .meta-chip {
  position: absolute;
  left: 20px; bottom: 20px;
  background: rgba(15,19,16,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--brand-cream);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex; gap: 8px; align-items: center;
  transform: translateZ(30px);
}
.hero-video-card .meta-chip .dot {
  width: 6px; height: 6px; background: #34D96B; border-radius: 50%;
  box-shadow: 0 0 10px #34D96B;
}

/* Floating card badges around the video — 3D depth */
.hero-badge {
  position: absolute;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.6);
  z-index: 3;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  animation: float 6s ease-in-out infinite;
  transform: translateZ(60px);
}
[data-theme="dark"] .hero-badge { box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05); }
.hero-badge.b1 { top: 12%; left: -10%; animation-delay: -2s; }
.hero-badge.b2 { bottom: 18%; right: -14%; animation-delay: -4s; }
.hero-badge .badge-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--brand-forest);
  color: var(--brand-orange);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
}
.hero-badge small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
}
@keyframes float {
  0%, 100% { transform: translateZ(60px) translateY(0) rotate(-2deg); }
  50% { transform: translateZ(70px) translateY(-10px) rotate(0deg); }
}
@media (max-width: 960px) {
  .hero-badge.b1 { left: -5%; top: 4%; }
  .hero-badge.b2 { right: -5%; bottom: 4%; }
}
@media (max-width: 520px) {
  .hero-badge.b1 { left: 4%; padding: 10px 14px; font-size: 12px; }
  .hero-badge.b2 { right: 4%; padding: 10px 14px; font-size: 12px; }
  .hero-badge .badge-icon { width: 28px; height: 28px; font-size: 15px; }
}

/* Hero stats row */
.hero-stats {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
@media (max-width: 860px) { .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } }

.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.hero-stat .num em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  margin-left: 2px;
}
.hero-stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
}

/* ============================================================
   STORM TICKER
   ============================================================ */
.storm-band {
  background: var(--brand-forest);
  color: var(--brand-cream);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.3);
}
[data-theme="dark"] .storm-band { background: #050804; }

.ticker {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ticker span { display: inline-flex; align-items: center; gap: 60px; }
.ticker .dot { width: 8px; height: 8px; background: var(--brand-orange); border-radius: 50%; box-shadow: 0 0 10px rgba(232,113,26,0.6); }
.ticker .serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--brand-orange-soft);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 140px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 90px 0; } }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
  margin-bottom: 64px;
}
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } }
.section-head .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}
@media (max-width: 720px) { .section-head .meta { text-align: left; } }

/* ============================================================
   SERVICES — 3D cards that tilt on mouse
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  perspective: 1500px;
}

.service {
  grid-column: span 6;
  background: var(--bg-elev);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex; flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255,255,255,0.5);
  transform-style: preserve-3d;
  transition: transform 400ms cubic-bezier(.2,.8,.2,1), box-shadow 400ms;
  will-change: transform;
}
[data-theme="dark"] .service { box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.04); }
.service.sm { grid-column: span 4; }
.service.lg { grid-column: span 8; min-height: 380px; }
@media (max-width: 860px) {
  .service.sm, .service.lg, .service { grid-column: span 12; }
}

.service:hover {
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
[data-theme="dark"] .service:hover { box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05); }

.service-inner {
  position: relative;
  transform-style: preserve-3d;
  display: flex; flex-direction: column;
  height: 100%;
  width: 100%;
}

.service .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  transform: translateZ(20px);
}
.service h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 14px 0 12px;
  transform: translateZ(40px);
  color: var(--ink);
}
.service h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.service p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 46ch;
  margin: 0;
  transform: translateZ(20px);
}
.service .service-arrow {
  margin-top: auto;
  padding-top: 32px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  transform: translateZ(30px);
}
.service .service-arrow svg { width: 16px; height: 16px; transition: transform 300ms cubic-bezier(.2,.8,.2,1); }
.service:hover .service-arrow svg { transform: translate(4px, -4px); }

/* 3D "shingle" stack icon in corner */
.service .shingle-stack {
  position: absolute;
  top: 24px; right: 24px;
  width: 80px; height: 60px;
  transform-style: preserve-3d;
  transform: translateZ(50px) rotateX(48deg) rotateZ(-18deg);
}
.service .shingle-stack .tile {
  position: absolute;
  width: 100%;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand-forest-mid), var(--brand-forest));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 4px rgba(0,0,0,0.15);
}
.service .shingle-stack .tile:nth-child(1) { top: 0; transform: translateZ(24px); background: linear-gradient(180deg, var(--brand-orange), var(--brand-orange-deep)); }
.service .shingle-stack .tile:nth-child(2) { top: 14px; transform: translateZ(16px); }
.service .shingle-stack .tile:nth-child(3) { top: 28px; transform: translateZ(8px); }
.service .shingle-stack .tile:nth-child(4) { top: 42px; transform: translateZ(0); }

.service.featured {
  background: linear-gradient(135deg, var(--brand-forest-mid) 0%, var(--brand-forest) 100%);
  color: var(--brand-cream);
  border-color: transparent;
}
.service.featured .num { color: rgba(244,233,200,0.6); }
.service.featured h3 { color: var(--brand-cream); }
.service.featured h3 em { color: var(--brand-orange-soft); }
.service.featured p { color: rgba(244,233,200,0.75); }
.service.featured .service-arrow { color: var(--brand-cream); }
.service.featured .shingle-stack .tile { background: linear-gradient(180deg, var(--brand-forest), #0a130a); }
.service.featured .shingle-stack .tile:nth-child(1) { background: linear-gradient(180deg, var(--brand-orange), var(--brand-orange-deep)); }

/* ============================================================
   PROCESS — isometric numbered steps
   ============================================================ */
.process {
  background: var(--brand-forest);
  color: var(--brand-cream);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .process { background: #050804; }

.process::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(232,113,26,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(122,139,62,0.08), transparent 40%),
    repeating-linear-gradient(90deg, rgba(244,233,200,0.03) 0 1px, transparent 1px 120px);
  pointer-events: none;
}
.process h2 { color: var(--brand-cream); }
.process .eyebrow { color: rgba(244,233,200,0.6); }
.process .eyebrow::before { background: var(--brand-orange); }
.process .section-head .meta { color: rgba(244,233,200,0.6); }

.steps {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  perspective: 1500px;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 36px 28px;
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(244,233,200,0.04), rgba(244,233,200,0.01));
  border: 1px solid rgba(244,233,200,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 500ms cubic-bezier(.2,.8,.2,1), background 400ms;
  transform-style: preserve-3d;
}
.step:hover { transform: translateY(-8px) rotateX(4deg); background: linear-gradient(180deg, rgba(244,233,200,0.08), rgba(244,233,200,0.02)); }

.step .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1;
  color: var(--brand-orange);
  background: rgba(232,113,26,0.1);
  border: 1px solid rgba(232,113,26,0.35);
  margin-bottom: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.step h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--brand-cream);
}
.step p {
  color: rgba(244,233,200,0.7);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  max-width: 30ch;
}

/* ============================================================
   INSURANCE / DOC
   ============================================================ */
.insurance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  perspective: 1600px;
}
@media (max-width: 960px) { .insurance { grid-template-columns: 1fr; gap: 50px; } }

.insurance-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: visible;
  transform-style: preserve-3d;
  transform: rotateY(-12deg) rotateX(8deg);
  transition: transform 700ms cubic-bezier(.2,.8,.2,1);
}
.insurance-visual:hover { transform: rotateY(-6deg) rotateX(4deg); }

.insurance-visual .stack {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* stacked papers */
.insurance-visual .doc {
  position: absolute;
  inset: 0;
  background: var(--bg-elev);
  border-radius: 14px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.7;
  border: 1px solid var(--line);
}
.insurance-visual .doc:nth-child(1) { transform: translateZ(0) rotate(-4deg) translate(-6%, 8%); opacity: 0.6; }
.insurance-visual .doc:nth-child(2) { transform: translateZ(30px) rotate(2deg) translate(2%, 0); opacity: 0.85; }
.insurance-visual .doc:nth-child(3) { transform: translateZ(80px) rotate(-1deg); }

.insurance-visual .doc h5 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.insurance-visual .doc h5 small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 400;
  letter-spacing: 0.1em;
}
.insurance-visual .doc .row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.insurance-visual .doc .row span:last-child { color: var(--ink); font-weight: 500; }
.insurance-visual .doc .total {
  margin-top: auto;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  display: flex; justify-content: space-between;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.insurance-visual .stamp {
  position: absolute;
  right: -20px; bottom: 20%;
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 2.5px solid var(--brand-orange);
  color: var(--brand-orange);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-align: center;
  transform: translateZ(120px) rotate(-14deg);
  background: rgba(232,113,26,0.08);
  box-shadow: 0 20px 40px -10px rgba(232,113,26,0.3);
}
.insurance-visual .stamp span { max-width: 80%; line-height: 1.2; }

.insurance-body .serif-hl {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
}
.insurance-body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 28px 0 0;
  max-width: 50ch;
}
.insurance-body .bullets {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.insurance-body .bullets li {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.insurance-body .bullets li:last-child { border-bottom: 1px solid var(--line); }
.insurance-body .bullets .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.insurance-body .bullets .lbl {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.insurance-body .bullets svg { width: 18px; color: var(--accent); }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial-wrap {
  background: var(--bg-band);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) { .testimonial-wrap { padding: 90px 0; } }

.testimonial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .testimonial { grid-template-columns: 1fr; } }

.testimonial blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}
.testimonial blockquote::before {
  content: "\201C";
  display: block;
  font-size: 120px;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 10px;
  font-family: var(--font-serif);
}
.testimonial cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-style: normal;
  margin-top: 32px;
}
.testimonial cite strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 4px;
  font-weight: 500;
}

.testimonial-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; perspective: 1000px; }
.tcard {
  padding: 26px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.6);
  transform-style: preserve-3d;
  transition: transform 500ms cubic-bezier(.2,.8,.2,1);
}
[data-theme="dark"] .tcard { box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.04); }
.tcard:nth-child(1) { transform: rotateY(6deg) translateY(-10px); }
.tcard:nth-child(2) { transform: rotateY(-6deg) translateY(10px); }
.tcard:hover { transform: rotateY(0) translateY(-20px); box-shadow: var(--shadow-lg); }

.tcard .stars { color: var(--brand-orange); font-size: 14px; letter-spacing: 2px; }
.tcard p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.tcard cite {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  font-style: normal;
  letter-spacing: 0.08em;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: 160px 0;
  background: linear-gradient(180deg, #F08A35 0%, #E8711A 50%, #C85A0F 100%);
  color: #1a0f02;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 20px 60px -20px rgba(100,40,0,0.3), inset 0 -20px 60px -20px rgba(100,40,0,0.3);
}
[data-theme="dark"] .cta { background: linear-gradient(180deg, #D9661A 0%, #B04E0D 100%); color: #FFF8EC; }

.cta::before {
  content: "";
  position: absolute; right: -10%; top: -50%;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 60%);
  pointer-events: none;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 14ch;
}
.cta h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #1a0f02;
  opacity: 0.65;
}

.cta-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; position: relative; z-index: 2; }
@media (max-width: 860px) { .cta-row { grid-template-columns: 1fr; } }

.cta-actions { display: flex; flex-direction: column; gap: 16px; text-align: right; }
@media (max-width: 860px) { .cta-actions { text-align: left; align-items: flex-start; } }

.cta-actions .phone {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
  font-weight: 500;
  display: inline-block;
  position: relative;
}
.cta-actions .phone small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.7;
  font-weight: 400;
}
.cta-actions .phone::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 400ms cubic-bezier(.2,.8,.2,1);
}
.cta-actions .phone:hover::after { transform: scaleX(1); transform-origin: left; }

.cta .btn-dark {
  background: #1a0f02;
  color: var(--brand-cream);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 8px 20px -4px rgba(0,0,0,0.3),
    0 2px 4px rgba(0,0,0,0.2);
}
.cta .btn-dark:hover { background: #0F1310; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 16px 30px -6px rgba(0,0,0,0.4); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--brand-forest-deep);
  color: var(--brand-cream);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}

.footer-big {
  font-family: var(--font-display);
  font-size: clamp(64px, 14vw, 220px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.85;
  color: var(--brand-cream);
  margin: 0 0 60px;
  opacity: 0.95;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.footer-big em { font-family: var(--font-serif); font-style: italic; color: var(--brand-orange); font-weight: 400; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(244,233,200,0.15);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h6 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,233,200,0.5);
  margin: 0 0 16px;
  font-weight: 400;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a {
  color: rgba(244,233,200,0.85);
  font-size: 14px;
  transition: color 200ms;
}
.footer-col a:hover { color: var(--brand-orange); }

.footer-meta {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(244,233,200,0.1);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(244,233,200,0.5);
  flex-wrap: wrap; gap: 16px;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 900ms cubic-bezier(.2,.8,.2,1), transform 900ms cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   IMAGE PLACEHOLDERS (drop real <img> in to replace)
   ============================================================ */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-band);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.4);
  isolation: isolate;
}
[data-theme="dark"] .photo { box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.04); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(232,113,26,0.18), transparent 40%),
    linear-gradient(45deg, rgba(122,139,62,0.2), transparent 45%),
    repeating-linear-gradient(45deg, rgba(18,22,17,0.06) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #2B3A26, #141C11);
}
[data-theme="light"] .photo.placeholder::before {
  background:
    linear-gradient(135deg, rgba(232,113,26,0.14), transparent 40%),
    linear-gradient(45deg, rgba(122,139,62,0.14), transparent 45%),
    repeating-linear-gradient(45deg, rgba(18,22,17,0.05) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #D8D0B8, #BCB59D);
}
.photo .photo-label {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 6px 12px;
  background: rgba(15,19,16,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--brand-cream);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
}

/* ============================================================
   WORK GALLERY
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  perspective: 1400px;
}
.work-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 500ms cubic-bezier(.2,.8,.2,1), box-shadow 500ms;
}
.work-item .photo { border-radius: 20px; aspect-ratio: 4/3; width: 100%; height: 100%; }
.work-item .photo-label { display: none; }
.work-item .meta-row {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
  background: linear-gradient(180deg, transparent, rgba(10,13,8,0.88));
  color: var(--brand-cream);
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
  z-index: 3;
}
.work-item .meta-row h4 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.work-item .meta-row h4 em { font-family: var(--font-serif); font-style: italic; color: var(--brand-orange-soft); font-weight: 400; }
.work-item .meta-row small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  display: block;
  margin-top: 6px;
}
.work-item .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(244,233,200,0.3);
  border-radius: 999px;
  white-space: nowrap;
}
.work-item:hover { transform: translateY(-6px) rotateX(2deg); }
.work-item.lg { grid-column: span 7; }
.work-item.md { grid-column: span 5; }
.work-item.sm { grid-column: span 4; }
@media (max-width: 860px) {
  .work-item.lg, .work-item.md, .work-item.sm { grid-column: span 12; }
}

/* Before / After slider */
.ba {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  background: var(--bg-band);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.ba .side {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.ba .side.before {
  background-image: url('assets/work/before.jpg');
  background-size: cover;
  background-position: center;
}
.ba .side.after {
  clip-path: inset(0 0 0 var(--pos, 50%));
  background-image: url('assets/work/after.jpg');
  background-size: cover;
  background-position: center;
}
.ba .side .label {
  position: absolute;
  top: 18px;
  padding: 6px 14px;
  background: rgba(10,13,8,0.7);
  backdrop-filter: blur(8px);
  color: var(--brand-cream);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 999px;
}
.ba .side.before .label { left: 18px; }
.ba .side.after .label { right: 18px; }

.ba .handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: var(--brand-orange);
  box-shadow: 0 0 24px rgba(232,113,26,0.6);
  pointer-events: none;
  z-index: 3;
}
.ba .handle::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, #F18938, #E8711A);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -2px 0 rgba(0,0,0,0.2),
    0 10px 30px rgba(232,113,26,0.5);
}
.ba .handle::after {
  content: "‹ ›";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.05em;
  z-index: 1;
}
.ba .hint {
  position: absolute;
  left: 50%; bottom: 20px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(244,233,200,0.7);
  text-transform: uppercase;
  pointer-events: none;
}

/* Gallery header row to sit next to heading */
.ba-wrap { perspective: 1500px; }
.ba {
  transform: rotateX(2deg);
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}
.ba:hover { transform: rotateX(0); }

/* 3D isometric roof graphic (uses CSS only) */
.iso-roof {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  transform-style: preserve-3d;
  transform: rotateX(55deg) rotateZ(-35deg);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact {
  padding: 140px 0;
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info .eyebrow { margin-bottom: 12px; }
.contact-info h2 { margin: 0 0 24px; }
.contact-info .lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--ink-2);
  margin: 0 0 40px;
  max-width: 32ch;
}
.contact-info .info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-info .info-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.contact-info .info-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-info .info-list .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-info .info-list .v {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 500;
}
.contact-info .info-list .v small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.contact-card {
  position: relative;
  padding: 40px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.5);
  transform-style: preserve-3d;
  perspective: 1500px;
}
[data-theme="dark"] .contact-card { box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.04); }
@media (max-width: 520px) { .contact-card { padding: 28px 22px; } }

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.contact-card h3 em { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-weight: 400; }
.contact-card .lede {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

.field { position: relative; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 200ms, box-shadow 200ms, background 200ms;
  box-shadow: inset 0 2px 3px rgba(18,22,17,0.04);
  -webkit-appearance: none;
  appearance: none;
}
[data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea {
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.3);
}
.field textarea { min-height: 120px; resize: vertical; font-family: inherit; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232,113,26,0.15), inset 0 2px 3px rgba(18,22,17,0.04);
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'><path d='M5 8l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.service-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  background: var(--bg);
  transition: all 200ms;
  user-select: none;
}
.chip:hover { border-color: var(--line-strong); }
.chip.active {
  background: var(--brand-forest);
  color: var(--brand-cream);
  border-color: var(--brand-forest);
}

.form-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 32px; flex-wrap: wrap;
}
.form-foot .fine {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  max-width: 32ch;
}

.form-success {
  display: none;
  padding: 20px;
  background: rgba(122,139,62,0.12);
  border: 1px solid var(--brand-moss);
  border-radius: 12px;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
}
.form-success.visible { display: block; animation: fadeUp 400ms ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.header-fb {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3578E5, #1877F2);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 8px rgba(24,119,242,0.3);
  transition: transform 250ms cubic-bezier(.2,.8,.2,1), box-shadow 250ms;
  flex-shrink: 0;
}
.header-fb:hover { transform: translateY(-2px) scale(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 8px 20px rgba(24,119,242,0.45); }
@media (max-width: 960px) { .header-fb { display: none; } }

/* Social icons */
.social-link { display: inline-flex; align-items: center; gap: 8px; }
.social-link .fb-ico, .social-link .ig-ico {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: rgba(244,233,200,0.1);
  color: var(--brand-orange);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  transition: background 200ms;
}
.social-link:hover .fb-ico, .social-link:hover .ig-ico { background: var(--brand-orange); color: var(--brand-forest); }

/* Facebook floating widget */
.fb-widget {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 80;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 18px 14px 14px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.5);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: transform 300ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms;
  animation: fb-pop 600ms 1.5s cubic-bezier(.3,1.4,.4,1) backwards;
}
[data-theme="dark"] .fb-widget { box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05); }
@keyframes fb-pop {
  from { transform: translateY(20px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.fb-widget:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 20px 40px -10px rgba(24,119,242,0.3); }
.fb-widget .fb-logo {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3578E5, #1877F2);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 12px rgba(24,119,242,0.4);
  flex-shrink: 0;
}
.fb-widget small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: 2px;
}
.fb-widget .fb-close {
  position: absolute;
  top: -8px; right: -8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
  cursor: pointer;
}
@media (max-width: 520px) {
  .fb-widget { bottom: 16px; right: 16px; padding: 10px 14px 10px 10px; font-size: 12px; }
  .fb-widget .fb-logo { width: 32px; height: 32px; font-size: 18px; }
}
.fb-widget.hidden { display: none !important; }

/* Blog page */
.blog-hero { padding: 160px 0 60px; }
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 16px 0 0;
  max-width: 18ch;
}
.blog-hero h1 em { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-weight: 400; }
.blog-hero p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-2);
  max-width: 50ch;
  margin-top: 28px;
}
.blog-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
}
@media (max-width: 860px) { .blog-feature { grid-template-columns: 1fr; } }
.blog-feature .photo { aspect-ratio: 4/3; border-radius: 20px; }
.blog-feature .cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.blog-feature h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 16px 0;
}
.blog-feature h2 em { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-weight: 400; }
.blog-feature .excerpt { font-size: 16px; color: var(--ink-2); line-height: 1.6; max-width: 50ch; margin: 0 0 24px; }
.blog-feature .byline {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); display: flex; gap: 14px; align-items: center;
}
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 120px;
}
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.post {
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 400ms cubic-bezier(.2,.8,.2,1);
}
.post:hover { transform: translateY(-6px); }
.post .photo { aspect-ratio: 4/3; border-radius: 14px; }
.post .cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.post h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.post h3 em { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-weight: 400; }
.post p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.post .meta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .shingle-letter { transform: none; opacity: 1; }
  .hero-video-card { opacity: 1; transform: none; }
}
