/* ==========================================================================
   Manifest Metals — site styles
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #1b1918;
  --ink-2: #24211f;
  --graphite: #2b2b2b;
  --steel: #666c75;
  --mist: #a7acb3;
  --line: #e2dbcf;
  --line-dark: rgba(255, 255, 255, 0.1);
  --paper: #fbf9f5;
  --bone: #f4efe6;
  --sand: #ebe3d5;
  /* Brand: maroon #8B1A1A with charcoal (from the Manifest email signature and field forms) */
  --copper: #8b1a1a;
  --copper-hot: #a62a24;
  --ember: #e5c095;
  --text: #22252b;
  --text-soft: #5b616a;
  --text-inv: #eef0f2;
  --text-inv-soft: #a9afb7;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --radius-lg: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 100%;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.45em;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.15; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--text-soft); max-width: 40em; }
.dark .lead { color: var(--text-inv-soft); }
::selection { background: var(--copper); color: #fff; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--copper); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.dark .eyebrow { color: var(--ember); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--copper); --fg: #fff; --bd: var(--copper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font: 600 16px/1 var(--body); letter-spacing: 0.005em;
  color: var(--fg); background: var(--bg); border: 1.5px solid var(--bd);
  border-radius: var(--radius); text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { --bg: var(--copper-hot); --bd: var(--copper-hot); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(139, 26, 26, 0.7); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: rgba(27, 25, 24, 0.22); }
.btn-ghost:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); box-shadow: none; }
.dark .btn-ghost { --fg: #fff; --bd: rgba(255, 255, 255, 0.3); }
.dark .btn-ghost:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--copper);
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: border-color 0.2s, gap 0.2s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover { border-color: currentColor; }
.link-arrow:hover::after { transform: translateX(3px); }
.dark .link-arrow { color: var(--ember); }

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--ink); color: var(--text-inv-soft);
  font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.topbar ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar li { display: flex; align-items: center; gap: 8px; }
.topbar li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--copper-hot); }
.topbar a { text-decoration: none; color: #fff; }
.topbar a:hover { color: var(--ember); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex: none; }
.brand-mark { width: 80px; flex: none; color: #fff; --logo-bg: var(--ink); display: block; }
.brand-mark svg { width: 100%; height: auto; display: block; }
.brand-mark.lg { width: 104px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 800 21px/1 var(--display); font-stretch: 118%; letter-spacing: 0.01em; text-transform: uppercase; }
.brand-sub { font: 500 10.5px/1 var(--mono); letter-spacing: 0.34em; color: var(--ember); margin-top: 6px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  position: relative; text-decoration: none; font-weight: 500; font-size: 15px;
  color: rgba(255, 255, 255, 0.82); padding: 10px 12px; border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--copper-hot); }
.nav .lang { font-family: var(--mono); font-size: 12.5px !important; letter-spacing: 0.1em; border: 1px solid rgba(255, 255, 255, 0.22); margin: 0 6px 0 8px; }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius); background: transparent; color: #fff; cursor: pointer; padding: 0; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }
.bone { background: var(--bone); }
.sand { background: var(--sand); }
.dark { background: var(--ink); color: var(--text-inv); }
.dark p { color: var(--text-inv-soft); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.12rem; color: var(--text-soft); }
.dark .section-head p { color: var(--text-inv-soft); }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(1200px 520px at 78% 72%, rgba(232, 128, 70, 0.55), transparent 60%),
    radial-gradient(900px 400px at 88% 60%, rgba(255, 190, 120, 0.35), transparent 60%),
    linear-gradient(180deg, #0d1019 0%, #1a1a2b 38%, #3a2a3f 64%, #7b4640 86%, #b8653f 100%);
}
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art svg { width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 12, 18, 0.88) 0%, rgba(10, 12, 18, 0.6) 38%, rgba(10, 12, 18, 0) 66%); }
.hero .container { min-height: min(86vh, 820px); display: flex; flex-direction: column; justify-content: center; padding-top: 72px; padding-bottom: 150px; }
.hero h1 { max-width: 12.5em; font-size: clamp(2.6rem, 5.8vw, 5.4rem); }
.hero h1 em { font-style: normal; color: var(--ember); }
.hero .lead { color: rgba(255, 255, 255, 0.78); max-width: 34em; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 40px 0 0; padding: 0; list-style: none; font: 500 12.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.hero-tags li { display: flex; align-items: center; gap: 9px; }
.hero-tags svg { width: 16px; height: 16px; color: var(--ember); }

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(180deg, #0d1019 0%, #1b1b2c 55%, #3b2b3c 100%);
}
.page-hero .container { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.page-hero h1 { max-width: 14em; }
.page-hero .lead { color: rgba(255, 255, 255, 0.76); }
.page-hero-art { position: absolute; right: 0; bottom: 0; width: min(62%, 900px); z-index: -1; opacity: 0.95; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 16, 25, 0.95) 30%, rgba(13, 16, 25, 0.2) 80%); }
.crumbs { font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-inv-soft); margin-bottom: 26px; }
.crumbs a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.4); }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 8px; opacity: 0.5; }

/* ---------- Fact strip ---------- */
.facts { position: relative; z-index: 2; margin-top: -92px; }
.facts-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(27, 25, 24, 0.35), 0 0 0 1px rgba(27, 25, 24, 0.04);
  overflow: hidden;
}
.fact { padding: 30px 28px 32px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact-big { font: 800 clamp(2rem, 3.2vw, 2.8rem)/1 var(--display); font-stretch: 112%; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 12px; display: block; }
.fact-big small { font-size: 0.5em; font-weight: 700; letter-spacing: 0; color: var(--copper); margin-left: 4px; }
.fact p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-soft); }

/* ---------- Desert section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.top { align-items: start; }
.big-quote { font: 800 clamp(1.7rem, 3vw, 2.5rem)/1.12 var(--display); letter-spacing: -0.02em; color: var(--ink); margin: 0 0 28px; }
.big-quote em { font-style: normal; color: var(--copper); }

.points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.points .ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--copper); }
.dark .points .ic { background: rgba(255, 255, 255, 0.05); border-color: var(--line-dark); color: var(--ember); }
.points .ic svg { width: 22px; height: 22px; }
.points strong { display: block; font-family: var(--display); font-size: 1.12rem; letter-spacing: -0.01em; margin-bottom: 2px; color: var(--ink); }
.dark .points strong { color: #fff; }
.points p { margin: 0; color: var(--text-soft); font-size: 16px; }
.dark .points p { color: var(--text-inv-soft); }

/* Lifespan chart */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); box-shadow: 0 30px 60px -40px rgba(27, 25, 24, 0.35); }
.chart-card h3 { margin-bottom: 4px; }
.chart-card .sub { font-size: 14.5px; color: var(--text-soft); margin-bottom: 28px; }
.bars { display: grid; gap: 22px; }
.bar-row { display: grid; gap: 8px; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.bar-label span:last-child { font-family: var(--mono); font-weight: 500; font-size: 13.5px; color: var(--text-soft); white-space: nowrap; }
.bar-track { position: relative; height: 14px; background: repeating-linear-gradient(90deg, var(--bone) 0 calc(14.2857% - 1px), var(--line) calc(14.2857% - 1px) 14.2857%); border-radius: 3px; }
.bar-fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--copper); transform-origin: left; }
.bar-fill.muted { background: var(--mist); }
.bar-fill.warn { background: repeating-linear-gradient(135deg, #b64a3a 0 6px, #cf6a52 6px 12px); }
.bar-axis { display: flex; justify-content: space-between; font: 500 11.5px/1 var(--mono); color: var(--steel); margin-top: 14px; }
.chart-note { font-size: 13px; color: var(--steel); margin: 22px 0 0; line-height: 1.5; }

/* ---------- System cards ---------- */
.systems { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.system {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.system:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -36px rgba(27, 25, 24, 0.45); }
.system-photo { aspect-ratio: 3 / 2; overflow: hidden; background: #1a1d23; }
.system-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.system:hover .system-photo img { transform: scale(1.04); }
.system-body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; font: 500 11.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 10px; border-radius: 4px; background: rgba(139, 26, 26, 0.1); color: var(--copper); margin-bottom: 16px; }
.tag.neutral { background: rgba(27, 25, 24, 0.06); color: var(--graphite); }
.checks { list-style: none; padding: 0; margin: 8px 0 26px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 10px; border-left: 2.5px solid var(--copper); border-bottom: 2.5px solid var(--copper); transform: rotate(-45deg) scale(0.8); transform-origin: left top; }
.dark .checks li::before { border-color: var(--ember); }
.system .link-arrow { margin-top: auto; }

/* ---------- Audience cards ---------- */
.audience {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 560px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg);
  color: #fff; text-decoration: none; isolation: isolate;
  transition: transform 0.35s var(--ease);
}
.audience:hover { transform: translateY(-4px); }
.audience { background: #0f1116; }
.audience-img { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.audience-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.audience:hover .audience-img img { transform: scale(1.04); }
.audience::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 17, 22, 0) 35%, rgba(15, 17, 22, 0.82) 70%, rgba(15, 17, 22, 0.95) 100%); }
.audience .eyebrow { color: var(--ember); }
.audience h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: 12px; }
.audience p { color: rgba(255, 255, 255, 0.78); max-width: 30em; }
.audience .link-arrow { color: #fff; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); counter-reset: step; position: relative; }
.step { position: relative; padding-top: 70px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font: 500 14px/1 var(--mono);
  background: var(--paper); border: 1.5px solid var(--copper); color: var(--copper); z-index: 1;
}
.step::after { content: ""; position: absolute; top: 24px; left: 48px; right: calc(-1 * clamp(16px, 2vw, 28px)); height: 1.5px; background: repeating-linear-gradient(90deg, var(--mist) 0 6px, transparent 6px 12px); }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 16px; margin: 0; }
.bone .step::before { background: var(--bone); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font: 700 clamp(1.05rem, 1.5vw, 1.22rem)/1.3 var(--display); letter-spacing: -0.01em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 400 22px/1 var(--body); color: var(--copper); transition: transform 0.25s var(--ease), background 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--bone); }
.faq summary:hover { color: var(--copper); }
.faq .answer { padding: 0 56px 26px 0; color: var(--text-soft); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; isolation: isolate; background: linear-gradient(120deg, #4e0d0d 0%, #8b1a1a 55%, #a3322a 100%); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, transparent 0 58px, rgba(0, 0, 0, 0.08) 58px 60px, rgba(255, 255, 255, 0.06) 60px 62px, transparent 62px 120px); }
.cta-band .container { display: grid; grid-template-columns: 1.3fr auto; gap: 32px 48px; align-items: center; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 1.12rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band .btn { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.cta-band .btn:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); box-shadow: none; }
.cta-band .btn-ghost { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, 0.55); }
.cta-band .btn-ghost:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }

/* ---------- Cards / misc ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -34px rgba(27, 25, 24, 0.4); }
.card .ic { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--bone); color: var(--copper); margin-bottom: 22px; }
.card .ic svg { width: 26px; height: 26px; }
.card p { color: var(--text-soft); margin: 0; font-size: 16px; }
.dark .card { background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark); }
.dark .card .ic { background: rgba(166, 42, 36, 0.14); color: var(--ember); }
.dark .card p { color: var(--text-inv-soft); }
.dark .card h3 { color: #fff; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.panel.accent { border-top: 4px solid var(--copper); }
.dark .panel { background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark); }

.callout { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.callout .ic { width: 56px; height: 56px; border-radius: 50%; background: rgba(166, 42, 36, 0.16); color: var(--ember); display: grid; place-items: center; }
.callout .ic svg { width: 26px; height: 26px; }
.callout h3 { margin: 0 0 4px; }
.callout p { margin: 0; color: var(--text-inv-soft); }

/* Comparison table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: 16px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--ink); color: #fff; font: 700 1.05rem/1.2 var(--display); letter-spacing: -0.01em; }
.compare thead th:nth-child(2) { background: var(--copper); }
.compare tbody th { width: 22%; font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); background: var(--bone); }
.compare td { color: var(--text); }
.compare td strong { color: var(--ink); }

/* Area list */
.areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.areas li { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; }
.dark .areas li { background: transparent; border-color: var(--line-dark); color: var(--text-inv); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label, .field legend { font: 600 14px/1.2 var(--body); color: var(--ink); }
.field .opt { font-weight: 400; color: var(--steel); }
.input, .select, .textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--ink);
  background: #fff; border: 1.5px solid #d8d0c3; border-radius: var(--radius); padding: 14px 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 4px rgba(139, 26, 26, 0.16); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #b3372a; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.choices legend { margin-bottom: 9px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 11px 16px; border: 1.5px solid #d8d0c3; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; transition: all 0.15s; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: #1f7a45; font-weight: 600; }
.form-status.err { color: #b3372a; font-weight: 600; }
.form-fine { font-size: 13px; color: var(--steel); margin: 0; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.phone-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 3.4vw, 44px); position: relative; overflow: hidden; isolation: isolate; }
.phone-card::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(166, 42, 36, 0.45), transparent 70%); z-index: -1; }
.phone-card .big { display: block; font: 800 clamp(2rem, 3.6vw, 2.9rem)/1 var(--display); font-stretch: 108%; color: #fff; text-decoration: none; margin: 8px 0 14px; letter-spacing: -0.01em; }
.phone-card .big:hover { color: var(--ember); }
.phone-card p { color: var(--text-inv-soft); }
.kv { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; }
.kv li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-dark); font-size: 15.5px; }
.kv li span:first-child { font: 500 11.5px/1.9 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-inv-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-inv-soft); position: relative; padding-top: 0; }
.footer-ridge { display: block; width: 100%; height: 70px; color: var(--ink); background: var(--paper); }
.footer-ridge.on-bone { background: var(--bone); }
.footer-ridge.on-sand { background: var(--sand); }
.footer-ridge.on-brand { background: linear-gradient(120deg, #4e0d0d 0%, #8b1a1a 55%, #a3322a 100%); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 40px 0 56px; }
.foot-h { font: 500 11.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin: 6px 0 20px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15px; }
.footer-top a { text-decoration: none; color: var(--text-inv-soft); transition: color 0.2s; }
.footer-top a:hover { color: #fff; }
.footer-blurb { margin: 22px 0 0; font-size: 15px; max-width: 26em; }
.footer-phone { font: 800 1.6rem/1 var(--display); color: #fff !important; letter-spacing: -0.01em; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 22px 0 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.footer-bottom a { color: var(--text-inv-soft); }

/* Mobile call bar */
.callbar { display: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .bar-fill { transform: scaleX(0); transition: transform 1.2s var(--ease); }
.js .bars.in .bar-fill { transform: scaleX(1); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font: 800 clamp(6rem, 18vw, 12rem)/1 var(--display); font-stretch: 120%; color: var(--copper); letter-spacing: -0.04em; }

/* ---------- Responsive ---------- */
/* The full nav needs ~1180px; below that it becomes the menu */
@media (max-width: 1180px) {
  :root { --header-h: 66px; }
  .topbar ul li:nth-child(n+2) { display: none; }
  .menu-toggle { display: block; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
  .site-header.scrolled { background: var(--ink); }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: calc(var(--header-h) + 54px) var(--gutter) 32px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { font: 700 1.5rem/1.2 var(--display) !important; padding: 18px 0 !important; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--ember); }
  .nav .lang { border: 0; border-bottom: 1px solid var(--line-dark); margin: 0; letter-spacing: 0 !important; }
  .nav .btn { margin-top: 24px; min-height: 56px; font-size: 17px; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {

  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .faq-wrap, .contact-grid { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; }
  .systems { grid-template-columns: 1fr; }
  .facts-inner { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step:nth-child(2)::after { display: none; }
  .cta-band .container { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(180deg, rgba(10, 12, 18, 0.82) 0%, rgba(10, 12, 18, 0.55) 55%, rgba(10, 12, 18, 0.1) 100%); }
  .page-hero-art { width: 100%; opacity: 0.4; }
  .callout { grid-template-columns: auto 1fr; }
  .callout .btn { grid-column: 1 / -1; }

  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(27, 25, 24, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line-dark);
    transform: translateY(110%); transition: transform 0.3s var(--ease);
  }
  .callbar.show { transform: none; }
  .callbar .btn { min-height: 50px; font-size: 15.5px; padding: 0 12px; }
  .callbar .btn-ghost { --fg: #fff; --bd: rgba(255, 255, 255, 0.3); }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 76px; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 9.5px; letter-spacing: 0.3em; }
  .brand-mark { width: 64px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .facts { margin-top: -64px; }
  .fact { padding: 22px 18px 24px; }
  .fact p { font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .hero .container { min-height: 0; padding-top: 56px; padding-bottom: 120px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .audience { min-height: 380px; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tbody th { border-bottom: 0; padding-bottom: 8px; }
  .compare td { padding-top: 10px; }
  .compare td::before { content: attr(data-label); display: block; font: 700 13px/1.3 var(--display); color: var(--copper); margin-bottom: 4px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .kv li { grid-template-columns: 1fr; gap: 2px; }
  .faq .answer { padding-right: 0; }
  .topbar { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .bar-fill { transform: none; }
}

@media print {
  .topbar, .site-header, .callbar, .cta-band, .footer-ridge { display: none !important; }
}

/* ==========================================================================
   Photo-led components
   ========================================================================== */
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }

.photo-hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; background: #0d1019; }
.photo-hero-img { position: absolute; inset: 0; z-index: -2; }
.photo-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 60% 50%); }
.photo-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(9, 11, 16, 0.82) 0%, rgba(9, 11, 16, 0.55) 34%, rgba(9, 11, 16, 0) 62%),
  linear-gradient(0deg, rgba(9, 11, 16, 0.55) 0%, rgba(9, 11, 16, 0) 30%); }
.photo-hero .container { min-height: min(72vh, 680px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 96px; padding-bottom: clamp(56px, 7vw, 96px); }
.photo-hero.home .container { min-height: min(92vh, 900px); padding-bottom: 160px; }
.photo-hero h1 { max-width: 12em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.photo-hero.home h1 { font-size: clamp(2.8rem, 6.6vw, 6rem); max-width: 10.5em; }
.photo-hero h1 em { font-style: normal; color: var(--ember); }
.photo-hero .lead { color: rgba(255, 255, 255, 0.84); max-width: 34em; margin-bottom: 34px; }
.photo-hero .crumbs { color: rgba(255, 255, 255, 0.7); }
.kenburns img { animation: kenburns 18s var(--ease) both; transform-origin: 62% 55%; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

.section-head.wide { max-width: 900px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); margin-bottom: clamp(48px, 6vw, 80px); }
.duo figure, .wide-photo, .stack-photo { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #1a1d23; }
.duo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.duo figcaption, .wide-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 22px; color: #fff;
  background: linear-gradient(180deg, rgba(9, 11, 16, 0) 0%, rgba(9, 11, 16, 0.78) 100%); font-size: 16px; line-height: 1.45;
}
.duo figcaption .mono, .wide-photo figcaption .mono { display: block; color: var(--ember); margin-bottom: 6px; }
.wide-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.stack-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sun-split { gap: clamp(32px, 5vw, 72px); }

/* Visualizer */
.visualizer-section { background: var(--ink); color: var(--text-inv); padding-top: clamp(72px, 9vw, 120px); }
.visualizer-section .section-head h2 { color: #fff; }
.visualizer-section .section-head p { color: var(--text-inv-soft); }
.visualizer-section .eyebrow { color: var(--ember); }
.viz-stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #1a1d23; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.viz-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s var(--ease); }
.viz-stage img.fading { opacity: 0; }
.viz-label { position: absolute; left: 20px; top: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(12, 14, 18, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 600 15px/1 var(--body); color: #fff; }
.chip { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35), inset 0 -6px 10px rgba(0, 0, 0, 0.25); flex: none; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 18px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 6px 12px; border-radius: 12px; border: 1.5px solid var(--line-dark); background: rgba(255, 255, 255, 0.03); color: var(--text-inv-soft); cursor: pointer; font: 500 13px/1.2 var(--body); text-align: center; transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s var(--ease); }
.swatch .chip { width: 36px; height: 36px; }
.swatch:hover { border-color: rgba(255, 255, 255, 0.35); color: #fff; transform: translateY(-2px); }
.swatch.active { border-color: var(--ember); background: rgba(229, 192, 149, 0.1); color: #fff; }
.viz-note { margin: 18px 0 0; font-size: 13.5px; color: var(--text-inv-soft); }

/* Insurance */
.insure { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg); background: linear-gradient(135deg, #1b1e24 0%, #111317 100%); color: var(--text-inv); position: relative; overflow: hidden; isolation: isolate; }
.insure::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(166, 42, 36, 0.28), transparent 70%); z-index: -1; }
.insure h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.insure p { color: var(--text-inv-soft); max-width: 44em; }
.insure .insure-ask { color: #fff; font-weight: 600; margin: 0; }
.insure-law { display: flex; flex-direction: column; gap: 8px; padding: 28px 30px; border: 1px solid var(--line-dark); border-radius: 12px; text-align: center; min-width: 220px; }
.insure-law .mono { color: var(--text-inv-soft); }
.insure-law strong { font: 800 clamp(2.2rem, 4vw, 3.2rem)/1 var(--display); color: var(--ember); letter-spacing: -0.02em; }

/* Guide profiles */
.profile { margin: 0; display: flex; flex-direction: column; }
.profile-art { padding: 34px 28px 20px; background: #1a1d23; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.profile figcaption { flex: 1; }
.profile figcaption { padding: 22px 28px 26px; background: var(--paper); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); color: var(--text-soft); }
.profile figcaption strong { display: block; font: 800 1.3rem/1.2 var(--display); color: var(--ink); margin-bottom: 4px; }

@media (max-width: 960px) {
  .photo-hero::before { background: linear-gradient(0deg, rgba(9, 11, 16, 0.9) 0%, rgba(9, 11, 16, 0.55) 55%, rgba(9, 11, 16, 0.25) 100%); }
  .photo-hero.home .container { min-height: 88vh; padding-bottom: 120px; }
  .duo { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(4, 1fr); }
  .case { grid-template-columns: 1fr; }
  .steps.six { grid-template-columns: repeat(2, 1fr); }
  .points.rules { grid-template-columns: 1fr; }
  .insure { grid-template-columns: 1fr; }
  .insure-law { align-self: start; }
  .wide-photo img { aspect-ratio: 4 / 3; }
}
@media (max-width: 620px) {
  .photo-hero .container { min-height: 78vh; padding-bottom: 48px; }
  .photo-hero-img img { object-position: var(--pos-m, 68% 50%); }
  .viz-stage { aspect-ratio: 4 / 3; }
  .viz-label { left: 12px; top: 12px; font-size: 13.5px; }
  .swatch { padding: 10px 4px; font-size: 11.5px; }
  .swatch .chip { width: 30px; height: 30px; }
}

/* Project photo gallery + lightbox */
.hero-real img { object-position: 50% 40%; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); aspect-ratio: 16 / 7; }
.g-tile { position: relative; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; background: #1a1d23; }
.g-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g-tile:hover img { transform: scale(1.05); }
.g-big { grid-column: span 2; grid-row: span 2; }
.g-cap { position: absolute; left: 12px; bottom: 12px; padding: 7px 10px; border-radius: 6px; background: rgba(12, 14, 18, 0.72); color: #fff; font-size: 11px; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1280px, 94vw); }
.lightbox::backdrop { background: rgba(8, 9, 12, 0.9); }
.lightbox img { width: 100%; height: auto; border-radius: 10px; }
.lb-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(12, 14, 18, 0.8); color: #fff; font-size: 26px; cursor: pointer; }
@media (max-width: 960px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; aspect-ratio: auto; }
  .g-big { grid-column: 1 / -1; grid-row: auto; }
  .g-tile { aspect-ratio: 16 / 9; }
}
.ep-grid { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(10px, 1.4vw, 16px); aspect-ratio: 16 / 7.5; }
.ep-big { grid-row: span 2; }
@media (max-width: 960px) { .ep-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; aspect-ratio: auto; } .ep-grid .g-tile { aspect-ratio: 16 / 9; } .ep-big { grid-column: 1 / -1; grid-row: auto; } }

/* ==========================================================================
   v3: brand, slideshow, project write-ups, specs, inspection rules
   ========================================================================== */
.brand { gap: 14px; }
.brand-name { font-stretch: 112%; }
.site-footer .brand-mark { --logo-bg: var(--ink); }

/* Hero slideshow (real jobs) */
.slides .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.slides .slide.on { opacity: 1; }
.slides .slide img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; transform: scale(1.06); transition: transform 9s linear; }
.slides .slide.on img { transform: scale(1); }
.slide-cap { position: absolute; right: var(--gutter); bottom: 120px; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 9px 14px; border-radius: 999px; background: rgba(12, 10, 10, 0.62); color: #fff; font-size: 11.5px; }
.slide-cap .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(229, 192, 149, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(229, 192, 149, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 192, 149, 0); } }

/* Project write-ups */
.projects { display: grid; gap: clamp(64px, 8vw, 112px); }
.case { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.case-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.08; margin-bottom: 18px; }
.facts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 22px; border-top: 1px solid var(--line); }
.facts-list div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.facts-list dt { font: 500 11px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin-bottom: 3px; }
.facts-list dd { margin: 0; font-weight: 600; color: var(--ink); }
.story { margin: 6px 0 0; padding: 20px 22px; border-left: 4px solid var(--copper); background: var(--bone); border-radius: 0 var(--radius) var(--radius) 0; }
.bone .story, .sand .story { background: #fff; }
.story h3, .story h4 { font: 700 1.05rem/1.2 var(--display); margin: 0 0 6px; color: var(--ink); }
.story p { margin: 0; font-size: 15.5px; color: var(--text-soft); }
.case .ep-grid { aspect-ratio: 4 / 3; }

/* Spec rows on system cards */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 4px 0 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs div { padding: 10px 12px; border-left: 1px solid var(--line); background: #fff; }
.specs div:first-child { border-left: 0; }
.specs dt { font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.specs dd { margin: 2px 0 0; font: 700 14.5px/1.3 var(--display); color: var(--ink); }
.fine-center { text-align: center; font-size: 14px; color: var(--text-soft); margin: 22px auto 0; max-width: 46em; }

/* Project cards */
.proj-card { display: block; text-decoration: none; color: inherit; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.proj-card:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -34px rgba(27, 25, 24, 0.45); }
.proj-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pc-body { display: block; padding: 18px 20px 20px; }
.pc-body .mono { display: block; color: var(--copper); margin-bottom: 6px; }
.pc-body strong { font: 700 1.15rem/1.25 var(--display); color: var(--ink); }

/* Inspection rules row */
.points.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.points.rules.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) { .points.rules.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .points.rules.four { grid-template-columns: 1fr; } }

/* Six-step list */
.steps.six { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
.steps.six .step:nth-child(3)::after { display: none; }

/* Contact */
.contact-side { display: grid; gap: 30px; }
.next ol { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 12px; }
.next li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 15.5px; }
.next li::before { content: counter(n); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 500 13px/1 var(--mono); color: #fff; background: var(--copper); }
.form-title { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.form-intro { color: var(--text-soft); margin-bottom: 26px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%231b1918' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }

/* Visualizer: 12 colors */
.swatch-name { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.swatch-name small { font: 500 9.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); }

@media (max-width: 960px) {
  .slide-cap { bottom: 84px; right: auto; left: var(--gutter); }
  .facts-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .steps.six { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .specs { grid-template-columns: 1fr 1fr 1fr; }
  .specs div { padding: 9px 8px; }
  .specs dd { font-size: 13px; }
  .slide-cap { display: none; }
}
@media (max-width: 960px) {
  .points.rules { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .steps.six { grid-template-columns: repeat(2, 1fr); }
  .steps.six .step:nth-child(2n)::after { display: none; }
}
@media (max-width: 620px) {
  .steps.six { grid-template-columns: 1fr; }
}

/* ---------- v4: review fixes ---------- */
.choose { padding-top: clamp(40px, 5vw, 64px); }
.viz-cta { display: flex; justify-content: center; margin-top: 22px; }
.btn-block + .btn-block { margin-top: 10px; }
.commercial-only { display: grid; gap: 18px; }
.commercial-only[hidden] { display: none; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-soft); line-height: 1.7; }
.prose a, .footer-bottom a, .form-fine a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 961px) and (max-width: 1180px) { .slide-cap { bottom: 28px; } }

/* Before / after strip: one real job, start to finish (shingle-to-metal page) */
.ba-strip { list-style: none; margin: 0 0 clamp(40px, 5vw, 64px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 16px); }
.ba-step .g-tile { display: block; width: 100%; aspect-ratio: 4 / 3; }
.ba-label { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; margin: 14px 0 0; }
.ba-num { grid-row: span 2; align-self: start; padding: 4px 4px 4px 6px; border: 1px solid currentColor; border-radius: 4px; font: 500 12px/1 var(--mono); letter-spacing: 0.14em; color: var(--copper); }
.ba-label strong { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.ba-label span:last-child { color: var(--text-soft); font-size: 15px; }
.ba-step:last-child .ba-num { color: #fff; background: var(--copper); border-color: var(--copper); }
@media (max-width: 960px) { .ba-strip { grid-template-columns: 1fr 1fr; row-gap: 22px; } .ba-label { grid-template-columns: 1fr; margin-top: 10px; } .ba-num { grid-row: auto; justify-self: start; margin-bottom: 6px; } .ba-label span:last-child { font-size: 14px; } }
