/* Frontier Roofing v2: a roof year in Anchorage, lit in the dark */
@font-face { font-family: "Zodiak"; src: url("fonts/zodiak-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("fonts/zodiak-300i.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("fonts/zodiak-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --bg: #0B0F12;
  --surface: #14181C;
  --field: #11161B;
  --line: rgba(238, 242, 245, .12);
  --line-strong: rgba(238, 242, 245, .28);
  --ink: #EEF2F5;
  --soft: #BCC3C9;
  --dim: #8C959D;
  --accent: #C9A45A;
  --accent-hi: #DDBB73;
  --accent-ink: #0B0F12;
  --cta: #EEF2F5;
  --cta-hi: #FFFFFF;
  --cta-ink: #0B0F12;
  --paper: #EEF2F5;
  --paper-ink: #0B0F12;
  --paper-soft: #434A51;
  --paper-line: rgba(11, 15, 18, .14);

  --display: "Zodiak", "Iowan Old Style", Georgia, serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wm: clamp(104px, 13.5vw, 232px);
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1rem, 0.98rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
  --step-h3: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  --step-head: clamp(2.25rem, 1.4rem + 3vw, 4.25rem);

  --m: clamp(20px, 4vw, 48px);
  --gap-section: clamp(96px, 10vw, 150px);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --pill: 999px;
  --r: 20px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.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 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--pill); text-decoration: none; }
.skip:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- grid and rhythm ---------- */
.wrap { width: min(100% - 2 * var(--m), 1360px); margin-inline: auto; }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.sec { padding-block: var(--gap-section); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head h2 { grid-column: 1 / span 8; font: 300 var(--step-head)/1.02 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.sec-head .lede { grid-column: 9 / span 4; color: var(--soft); padding-bottom: .4em; }

/* photos: one grade for every picture, with grain so nothing looks like a render */
.ph { position: relative; overflow: hidden; background: #07090c; }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.06) brightness(.94); }
.ph::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 180px 180px; opacity: .55; mix-blend-mode: soft-light; pointer-events: none; }
.plate { position: absolute; left: 16px; bottom: 16px; z-index: 2; margin: 0; padding: 8px 16px; border-radius: var(--pill); background: rgba(11, 15, 18, .72); color: var(--soft); font: italic 300 1.0625rem/1.2 var(--display); }
.plate-top { bottom: auto; top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--pill); border: 0;
  font: 600 1rem/1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--cta); color: var(--cta-ink); }
.btn-line { background: rgba(238, 242, 245, .08); color: var(--ink); }
.btn-dark { background: var(--paper-ink); color: var(--paper); }
.btn-wide { width: 100%; }
.btn-text {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0;
  background: none; border: 0; color: var(--ink); font: 500 1rem/1.2 var(--text);
  text-decoration: underline; text-decoration-color: rgba(238, 242, 245, .35); text-underline-offset: 6px; cursor: pointer;
  transition: text-decoration-color 200ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: var(--cta-hi); }
  .btn-line:hover { background: rgba(238, 242, 245, .16); }
  .btn-dark:hover { background: #22282e; }
  .btn-text:hover { text-decoration-color: var(--ink); }
}

/* ---------- header ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--m) 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1rem/1 var(--text); min-height: 44px; }
.brand-mark { width: 30px; height: 20px; fill: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav a { font: 500 0.9375rem/1 var(--text); text-decoration: none; color: var(--ink); padding: 14px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: scaleX(1); } }
.nav .nav-cta { color: var(--accent); }
.menu-btn { display: none; }
.menu { position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 88px var(--m) 32px; display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 4px; }
.menu nav a { font: 300 2.25rem/1.2 var(--display); text-decoration: none; padding: 8px 0; }
.menu-close { align-self: flex-start; min-height: 48px; padding: 0 24px; border-radius: var(--pill); border: 0; background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; }
.menu.is-open nav a { animation: rise 420ms var(--ease) both; }
.menu.is-open nav a:nth-child(2) { animation-delay: 40ms; } .menu.is-open nav a:nth-child(3) { animation-delay: 80ms; }
.menu.is-open nav a:nth-child(4) { animation-delay: 120ms; } .menu.is-open nav a:nth-child(5) { animation-delay: 160ms; } .menu.is-open nav a:nth-child(6) { animation-delay: 200ms; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 96px 0 clamp(28px, 3.5vw, 48px); }
.hero-contour { position: absolute; inset: 18% 0 -18%; z-index: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.hero-contour path { fill: none; stroke: rgba(238, 242, 245, .26); stroke-width: 1.25; }
.hero-contour path + path { stroke: rgba(238, 242, 245, .14); }
.hero-contour .cm { transform-box: fill-box; transform-origin: 0 50%; animation: trace 2600ms var(--ease) 500ms both; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: 24px; align-items: end; }
.hero-photo { grid-column: 1 / span 5; grid-row: 1; z-index: 1; margin: 0; width: 100%; height: clamp(400px, calc(100svh - 144px - var(--wm) * .95), 760px); border-radius: var(--r); }
.hero-photo img { object-position: 50% 50%; animation: settle 2200ms var(--ease) both; }
.hero-photo::before { /* taste-skill-ignore: the plate fades into the ground where the wordmark crosses it */ content: ""; position: absolute; inset: auto 0 0; height: 48%; z-index: 1; background: linear-gradient(rgba(11, 15, 18, 0), rgba(11, 15, 18, .55) 55%, rgba(11, 15, 18, .9)); pointer-events: none; }
.hero-side { grid-column: 7 / span 6; grid-row: 1; align-self: center; display: grid; gap: 24px; padding-bottom: calc(var(--wm) * .2); }
.wordmark { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 2; margin-top: calc(var(--wm) * -.38); }
.wm-word { display: block; font: 300 var(--wm)/.82 var(--display); letter-spacing: -0.035em; color: var(--ink); margin-left: -.04em; }
.wm-sub { display: block; margin-top: 18px; font: 500 var(--step-body)/1.3 var(--text); color: var(--soft); }
.hero-line { font: 400 var(--step-lead)/1.3 var(--text); max-width: 26ch; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 2px; }
.hero-now { display: flex; gap: 12px; align-items: flex-start; font: 400 var(--step-body)/1.45 var(--text); color: var(--soft); max-width: 34ch; }
.hero-now b { font-weight: 500; color: var(--ink); }
.now-dot { flex: none; width: 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: var(--accent); animation: beat 2.4s var(--ease) 3; }
.now-a { color: var(--soft); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-strong); transition: color 200ms var(--ease); }
.now-a:hover { color: var(--ink); }

/* ---------- proof strip ---------- */
.proof-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.proof-row > * { padding: 34px 0 36px; }
.proof-row > * + * { padding-left: 28px; }
.proof-score { grid-column: 1 / span 4; }
.stars { display: flex; gap: 3px; margin-bottom: 12px; color: var(--accent); }
.stars svg { width: 15px; height: 15px; }
.proof-score h2 { font: 300 var(--step-lead)/1.2 var(--display); letter-spacing: -0.01em; }
.proof-meta { margin-top: 8px; color: var(--soft); font-size: 1rem; max-width: 34ch; }
.proof-q { grid-column: span 4; display: grid; align-content: space-between; gap: 14px; }
.proof-q blockquote p { font: 300 var(--step-lead)/1.2 var(--display); letter-spacing: -0.01em; }
.proof-q figcaption { font-size: var(--step-small); color: var(--dim); }
.proof-q figcaption b { font-weight: 500; color: var(--soft); }

/* ---------- seasons ---------- */
.ruler { position: relative; margin-bottom: clamp(40px, 5vw, 64px); }
.ruler-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); background: var(--field); border-radius: 10px; padding: 4px; }
.ruler-months li { font: 500 var(--step-small)/1 var(--text); color: var(--dim); padding: 11px 8px; border-radius: 7px; }
.ruler-months li.is-now { color: var(--accent-ink); background: var(--accent); }
.ruler-spans { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 4px; margin-top: 10px; }
.ruler-spans li { grid-column: var(--from) / span var(--len); }
.ruler-spans a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px 0 14px;
  border-radius: 10px; background: var(--surface); color: var(--soft); text-decoration: none; font: 500 var(--step-small)/1.2 var(--text);
  transform-origin: 0 50%; transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 160ms var(--ease);
}
.ruler-spans a:active { transform: scale(.98); }
.ruler-spans li.is-now a { background: var(--accent); color: var(--accent-ink); }
.ruler-spans li.is-now a::after { content: "now"; color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .ruler-spans li:not(.is-now) a:hover { background: #1c2228; color: var(--ink); } }
.ruler-now { display: none; }

.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding: clamp(32px, 4vw, 56px) 0; }
.chapter-photo { grid-column: 1 / span 6; aspect-ratio: 4 / 5; max-height: min(78vh, 720px); border-radius: var(--r); }
.chapter-body { grid-column: 8 / span 5; display: grid; gap: 22px; align-content: center; }
.chapter:nth-of-type(even) .chapter-photo { grid-column: 7 / span 6; grid-row: 1; }
.chapter:nth-of-type(even) .chapter-body { grid-column: 1 / span 5; grid-row: 1; }
.chapter-name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font: italic 300 1.125rem/1.3 var(--display); color: var(--dim); }
.chapter-now { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.chapter-now[hidden] { display: none; }
.chapter-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: beat 2.4s var(--ease) 3; }
.chapter-title { font: 300 var(--step-head)/1.02 var(--display); letter-spacing: -0.02em; }
.chapter-title + .chapter-name { margin-top: -10px; }
.chapter-text { color: var(--soft); max-width: 40ch; }
.signs { display: grid; gap: 6px; }
.signs li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 4px 0; font-size: 1rem; line-height: 1.4; }
.signs li::before { content: ""; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--soft); }
.signs-k { font: 500 var(--step-small)/1 var(--text); color: var(--dim); margin-bottom: 12px; }
.chapter-link {
  justify-self: start; display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border-radius: var(--pill);
  background: rgba(238, 242, 245, .1); color: var(--ink); text-decoration: none; font: 600 0.9375rem/1 var(--text); white-space: nowrap;
  transition: transform 160ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease);
}
.chapter-link:active { transform: scale(.97); }
.chapter.is-now .chapter-link { background: var(--cta); color: var(--cta-ink); }
@media (hover: hover) and (pointer: fine) {
  .chapter-link:hover { background: rgba(238, 242, 245, .2); }
  .chapter.is-now .chapter-link:hover { background: var(--cta-hi); }
}

/* ---------- services: the drawn roof ---------- */
.diagram-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.diagram { grid-column: 1 / span 7; margin: 0; padding: clamp(16px, 2.4vw, 36px); border-radius: var(--r); background: var(--field); position: sticky; top: 24px; }
.diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.diagram figcaption { margin-top: 14px; font: italic 300 1.0625rem/1.3 var(--display); color: var(--dim); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dg { stroke: var(--soft); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dg-faint { stroke: var(--dim); stroke-width: 1; fill: none; stroke-dasharray: 2 6; stroke-linecap: round; }
.dg-snow { stroke: rgba(238, 242, 245, .22); stroke-width: 9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dg-fill { fill: rgba(238, 242, 245, .07); stroke: var(--soft); stroke-width: 1.5; stroke-linejoin: round; }
.dg-hatch { fill: url(#hatch); stroke: var(--soft); stroke-width: 1.5; }
.part { transition: opacity 240ms var(--ease); }
.part .pm { stroke: var(--soft); transition: stroke 240ms var(--ease), fill 240ms var(--ease); }
.part .pf { fill: rgba(238, 242, 245, .07); transition: fill 240ms var(--ease); }
.part .pw { stroke: var(--dim); stroke-dasharray: 4 5; transition: stroke 240ms var(--ease); }
.part.is-on .pm { stroke: var(--accent); }
.part.is-on .pf { fill: rgba(201, 164, 90, .22); }
.part.is-on .pw { stroke: var(--accent); }
.tag { cursor: pointer; }
.tag circle { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.25; transition: fill 240ms var(--ease), stroke 240ms var(--ease); }
.tag text { fill: var(--ink); font: 600 13px var(--text); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.tag line { stroke: var(--line-strong); stroke-width: 1; }
.tag.is-on circle { fill: var(--accent); stroke: var(--accent); }
.tag.is-on text { fill: var(--accent-ink); }
.tag.is-on line { stroke: var(--accent); }
.js .dg-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .in .dg-draw { animation: draw 1800ms var(--ease) both; }
.js .in .dg-draw:nth-of-type(2) { animation-delay: 150ms; } .js .in .dg-draw:nth-of-type(3) { animation-delay: 300ms; }
.spots { grid-column: 8 / span 5; display: grid; gap: 6px; }
.spot { background: var(--field); border-radius: 14px; }
.spot-btn {
  width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 16px; text-align: left;
  min-height: 60px; padding: 12px 16px; background: none; border: 0; cursor: pointer; color: var(--soft);
  font: 500 var(--step-body)/1.3 var(--text); transition: color 200ms var(--ease);
}
.spot-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); font: 600 var(--step-small)/1 var(--text); color: var(--ink); transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.spot-btn .chev { transition: transform 260ms var(--ease); }
.spot.is-on .spot-btn { color: var(--ink); }
.spot.is-on .spot-n { background: var(--cta); color: var(--cta-ink); }
.spot.is-on .spot-btn .chev { transform: rotate(180deg); }
.spot-body { display: grid; gap: 12px; padding: 0 16px 20px 62px; }
.spot-body[hidden] { display: none; }
.spot.is-on .spot-body { animation: rise 320ms var(--ease) both; }
.spot-body p { color: var(--soft); font-size: 1rem; max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font: 500 var(--step-small)/1 var(--text); padding: 9px 13px; border-radius: var(--pill); background: var(--surface); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .spot-btn:hover { color: var(--ink); } }

.svc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; margin-top: clamp(72px, 9vw, 128px); }
.svc-intro { grid-column: 1 / span 3; }
.svc-intro h3 { font: 300 var(--step-h3)/1.1 var(--display); letter-spacing: -0.015em; max-width: 10ch; }
.svc-intro p { margin-top: 14px; color: var(--soft); font-size: 1rem; max-width: 26ch; }
.svc-col { grid-column: span 3; }
.svc-col h4 { font: 300 var(--step-lead)/1.2 var(--display); color: var(--ink); margin-bottom: 16px; }
.svc-col li { padding: 9px 0; }
.svc-col b { display: block; font-weight: 500; font-size: 1rem; line-height: 1.3; color: var(--ink); }
.svc-col small { display: block; margin-top: 2px; font-size: var(--step-small); line-height: 1.4; color: var(--dim); }

/* ---------- estimate ---------- */
.est-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.panel { border-radius: var(--r); background: var(--field); }
.est-form { grid-column: 1 / span 7; display: grid; gap: 0; padding: clamp(20px, 3vw, 40px); }
.step { border: 0; margin: 0; padding: 0 0 36px; min-width: 0; }
.step + .step { padding-top: 8px; }
.step:last-of-type { padding-bottom: 0; }
.step legend { display: flex; align-items: center; gap: 14px; padding: 0; margin-bottom: 18px; font: 600 var(--step-body)/1.3 var(--text); float: left; width: 100%; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); font: 400 1rem/1 var(--display); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; clear: both; }
.chip, .seg label { position: relative; }
.chip input, .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span, .seg span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: var(--pill);
  background: var(--surface); color: var(--ink); font-weight: 500; font-size: 1rem; user-select: none;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 160ms var(--ease);
}
.chip input:checked + span, .seg input:checked + span { background: var(--cta); color: var(--cta-ink); }
.chip input:active + span, .seg input:active + span { transform: scale(.97); }
.chip input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .chip input:not(:checked):hover + span, .seg input:not(:checked):hover + span { background: #1c2228; }
}
.seg { display: flex; flex-wrap: wrap; gap: 10px; clear: both; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; clear: both; }
.field label { display: block; margin-bottom: 8px; font-size: var(--step-small); font-weight: 500; color: var(--soft); }
.opt { font-weight: 400; color: var(--dim); }
.field input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: 10px 10px 0 0; background: var(--surface); color: var(--ink);
  font-size: 1rem; border-bottom: 2px solid var(--line-strong); transition: border-color 200ms var(--ease);
}
.field input::placeholder { color: #8C959D; }
.field input:focus { outline: none; border-bottom-color: var(--accent); }
.field input[aria-invalid="true"] { border-bottom-color: #FFB4A8; }
.err { margin-top: 8px; font-size: var(--step-small); color: #FFB4A8; clear: both; }
.urgent { margin-top: 14px; font-size: var(--step-small); color: var(--ink); clear: both; }
.urgent a { color: var(--accent); font-weight: 600; }
.peek { display: none; }

.phone { grid-column: 9 / span 4; position: sticky; top: 24px; display: grid; gap: 0; border-radius: 28px; background: var(--surface); overflow: hidden; }
.phone-top { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 16px 18px; background: rgba(238, 242, 245, .05); }
.phone-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 400 1.25rem/1 var(--display); }
.phone-top p { font-size: var(--step-small); line-height: 1.3; }
.phone-top p + p { color: var(--dim); }
.phone-body { display: grid; gap: 10px; padding: 18px 18px 6px; }
.phone-time { font-size: var(--step-small); color: var(--dim); text-align: center; }
.bubble {
  justify-self: end; max-width: 100%; padding: 14px 16px; border-radius: 20px 20px 6px 20px;
  background: var(--cta); color: var(--cta-ink); font-size: 1rem; line-height: 1.45; white-space: pre-line;
  transform-origin: 100% 100%;
}
.bubble.pop, .peek-bubble.pop { animation: pop 260ms var(--ease); }
.msg-actions { display: grid; gap: 10px; padding: 14px 18px 18px; }
.done { display: grid; gap: 10px; padding: 18px; background: var(--field); }
.done[hidden] { display: none; }
.done-h { font: 300 var(--step-lead)/1.2 var(--display); }
.done p:not(.done-h) { color: var(--soft); font-size: 1rem; }
.done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.copied { font-size: var(--step-small); color: var(--accent); min-height: 1.3em; }

/* ---------- how a job goes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
.steps { counter-reset: step; }
.steps li { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); font: 400 1rem/1 var(--display); color: var(--ink); }
.steps h3 { font: 500 var(--step-lead)/1.2 var(--text); letter-spacing: -0.01em; }
.steps p { color: var(--soft); font-size: 1rem; max-width: 30ch; }
.steps .ph { margin-top: 16px; aspect-ratio: 4 / 3; border-radius: 14px; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.faq-main { grid-column: 1 / span 6; }
.faq-main .sec-head { display: block; }
.faq-main .sec-head h2 { max-width: 12ch; margin-top: 20px; }
.facts { display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; }
.facts dt { color: var(--dim); font-size: 1rem; }
.facts dd { font-size: 1rem; }
.facts a { color: var(--accent); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
#open-now { display: block; color: var(--dim); font-size: var(--step-small); }
.faq-list { margin-top: 40px; display: grid; gap: 6px; }
.faq-list details { background: var(--field); border-radius: 14px; padding: 4px 16px; }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 48px; font: 500 var(--step-body)/1.35 var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.chev { position: relative; flex: none; width: 14px; height: 14px; transition: transform 260ms var(--ease); }
.chev::before, .chev::after { content: ""; position: absolute; top: 6px; width: 9px; height: 2px; background: var(--soft); }
.chev::before { left: 0; transform: rotate(45deg); } .chev::after { right: 0; transform: rotate(-45deg); }
details[open] .chev { transform: rotate(180deg); }
.faq-list details p { padding: 2px 40px 14px 0; color: var(--soft); font-size: 1rem; max-width: 52ch; }
.faq-list details[open] p { animation: rise 320ms var(--ease) both; }
.faq-list a { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .faq-list summary:hover .chev::before, .faq-list summary:hover .chev::after { background: var(--ink); } }
.faq-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.faq-media { grid-column: 8 / span 5; position: relative; align-self: start; margin-top: 8px; padding-bottom: 56px; padding-left: 40px; }
.faq-tall { aspect-ratio: 3 / 4; border-radius: var(--r); }
.faq-sq { position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 1; z-index: 2; border-radius: 14px; border: 6px solid var(--bg); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; align-items: stretch; }
.map { grid-column: 1 / span 7; position: relative; min-height: 460px; border-radius: var(--r); background: var(--field); overflow: hidden; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map path { fill: none; stroke: rgba(238, 242, 245, .16); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.map path:nth-child(odd) { stroke: rgba(238, 242, 245, .09); }
.pin { position: absolute; left: 56%; top: 48%; display: grid; gap: 8px; transform: translate(-10px, -10px); }
.pin i { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 5px solid var(--bg); outline: 1px solid var(--accent); }
.pin b { font: 500 var(--step-small)/1.4 var(--text); color: var(--ink); white-space: nowrap; }
.pin small { display: block; color: var(--dim); font-size: var(--step-small); font-weight: 400; }
.map-k { position: absolute; left: 24px; top: 22px; font: italic 300 1.0625rem/1 var(--display); color: var(--dim); }
.map-area { position: absolute; left: 24px; bottom: 22px; right: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.map-area span { font: 500 var(--step-small)/1 var(--text); padding: 9px 13px; border-radius: var(--pill); background: var(--surface); color: var(--soft); }
.card { grid-column: 8 / span 5; padding: clamp(28px, 3vw, 40px); border-radius: var(--r); background: var(--paper); color: var(--paper-ink); display: grid; gap: 18px; align-content: start; }
.card h2 { font: 300 var(--step-h3)/1.1 var(--display); letter-spacing: -0.015em; }
.card-addr a { color: var(--paper-ink); text-decoration: none; font-size: 1rem; line-height: 1.5; }
.card-addr a:hover { text-decoration: underline; }
.hours { border-collapse: collapse; width: 100%; font-size: 1rem; }
.hours th { text-align: left; font-weight: 400; color: var(--paper-soft); padding: 8px 0; border-top: 1px solid var(--paper-line); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; padding: 8px 0; border-top: 1px solid var(--paper-line); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--paper-line); }
.card-phone a { color: var(--paper-ink); font-weight: 600; text-underline-offset: 5px; display: inline-flex; min-height: 44px; align-items: center; }
.card-note { font-size: var(--step-small); color: var(--paper-soft); }

/* ---------- footer ---------- */
.foot { display: grid; grid-template-rows: auto auto auto; background: var(--paper); color: var(--paper-ink); padding: 48px var(--m) 24px; }
.foot-cols { width: min(100%, 1360px); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; font-size: 1rem; line-height: 1.6; }
.foot-cols > div { grid-column: span 3; color: var(--paper-soft); }
.fh { color: var(--paper-ink); font-weight: 600; margin-bottom: 4px; }
.foot a { color: var(--paper-soft); text-decoration: none; }
.foot a:hover { color: var(--paper-ink); text-decoration: underline; }
.foot-word { grid-row: 2; margin: clamp(80px, 10vw, 150px) 0 12px; line-height: .78; overflow: hidden; }
.foot-word span { display: inline-block; vertical-align: top; font: 300 27vw/.8 var(--display); letter-spacing: -0.045em; white-space: nowrap; transform-origin: 0 100%; }
.legal { grid-row: 3; font-size: var(--step-small); color: var(--paper-soft); max-width: 90ch; }

/* ---------- mobile bar ---------- */
.mbar { display: none; }

/* ---------- motion ---------- */
@keyframes trace { from { transform: scaleX(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes settle { from { transform: scale(1.06); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.97); } to { transform: none; } }
@keyframes beat { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .5; } }
@keyframes wm-shrink { to { transform: translateY(-6%); opacity: .4; } }
@keyframes wm-grow { from { transform: scale(.94); } to { transform: none; } }

/* entrances ride the scroll: nothing is hidden when there is no scroll timeline */
@supports (animation-timeline: view()) {
  [data-rise] { animation: rise-in linear both; animation-timeline: view(); animation-range: entry calc(var(--i, 0) * 5%) entry calc(38% + var(--i, 0) * 5%); }
  .chapter-photo img { animation: photo-in linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  .ruler-spans a { animation: span-in linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  .ruler-spans li:nth-child(2) a { animation-range: entry 10% entry 100%; } .ruler-spans li:nth-child(3) a { animation-range: entry 20% entry 110%; }
  .ruler-spans li:nth-child(4) a { animation-range: entry 30% entry 120%; } .ruler-spans li:nth-child(5) a { animation-range: entry 40% entry 130%; }
}
@keyframes rise-in { from { opacity: .3; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { transform: scale(1.06); } to { transform: none; } }
@keyframes span-in { from { opacity: .3; transform: scaleX(.5); } to { opacity: 1; transform: none; } }
.wordmark, .hero-side > * { animation: rise 800ms var(--ease) both; }
.hero-side > :nth-child(1) { animation-delay: 320ms; } .hero-side > :nth-child(2) { animation-delay: 160ms; } .hero-side > :nth-child(3) { animation-delay: 420ms; }

@supports (animation-timeline: view()) {
  .hero .wm-word { animation: wm-shrink linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  .foot-word span { animation: wm-grow linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  [data-rise], .chapter-photo img, .ruler-spans a { animation: none !important; opacity: 1; transform: none; }
  .js .dg-draw { stroke-dashoffset: 0; }
  .hero .wm-word, .foot-word span { animation: none !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .nav a:not(.nav-cta):nth-child(3) { display: none; }
  :root { --wm: clamp(104px, 17vw, 232px); }
  .hero { min-height: 0; padding-top: 112px; }
  .hero-photo { grid-column: 1 / span 6; height: clamp(360px, 60svh, 560px); }
  .hero-side { grid-column: 7 / span 6; align-self: start; padding: 28px 0 0; }
  .sec-head h2 { grid-column: 1 / span 12; }
  .sec-head .lede { grid-column: 1 / span 8; padding-bottom: 0; }
  .proof-score { grid-column: 1 / span 12; padding-bottom: 8px; }
  .proof-q { grid-column: span 6; }
  .proof-row > .proof-q:first-of-type { padding-left: 0; }
  .chapter-photo { grid-column: 1 / span 6; }
  .chapter-body { grid-column: 7 / span 6; }
  .chapter:nth-of-type(even) .chapter-photo { grid-column: 7 / span 6; }
  .chapter:nth-of-type(even) .chapter-body { grid-column: 1 / span 6; }
  .diagram { grid-column: 1 / span 12; position: static; }
  .spots { grid-column: 1 / span 12; }
  .svc-intro { grid-column: 1 / span 12; }
  .svc-col { grid-column: span 4; }
  .est-form { grid-column: 1 / span 7; }
  .fields { grid-template-columns: 1fr; }
  .phone { grid-column: 8 / span 5; }
  .ruler-spans a { padding: 0 10px; font-size: .8125rem; white-space: nowrap; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .faq-main { grid-column: 1 / span 7; }
  .faq-media { grid-column: 8 / span 5; padding-left: 24px; }
  .map { grid-column: 1 / span 12; min-height: 380px; }
  .card { grid-column: 1 / span 12; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --gap-section: 88px; }
  .top { padding: 18px 20px 0; }
  .nav { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--pill); border: 0;
    background: rgba(11, 15, 18, .55); color: var(--ink); font-weight: 600; cursor: pointer;
  }
  .menu-btn:active { transform: scale(.97); }

  :root { --wm: 24vw; }
  .hero { padding: 84px 0 24px; }
  .hero-contour { inset: -7% 0 7%; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .hero-photo { grid-column: 1; height: 48svh; min-height: 300px; max-height: 500px; }
  .hero-photo img { object-position: 50% 45%; }
  .wordmark { margin-top: calc(var(--wm) * -.36); }
  .wm-word { margin-left: -.03em; }
  .wm-sub { margin-top: 12px; font-size: 1rem; }
  .hero-side { grid-column: 1; grid-row: 3; align-self: start; gap: 14px; padding: 0; margin-top: 20px; }
  .hero-now { max-width: none; font-size: 1rem; }
  .hero-line { font-size: 1.1875rem; max-width: none; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 2px; }
  .hero-actions .btn-text { justify-content: center; }

  .proof-row { display: block; }
  .proof-row > * { padding: 24px 0; }
  .proof-row > * + * { padding-left: 0; padding-top: 8px; }
  .proof-q { display: grid; gap: 10px; }
  .proof-q blockquote p { font-size: 1.375rem; }

  .sec-head { display: block; margin-bottom: 40px; }
  .sec-head h2 { margin-top: 18px; }
  .sec-head .lede { margin-top: 14px; padding-bottom: 0; }

  .ruler-months li { font-size: .6875rem; padding-left: 5px; }
  .ruler-months li span { display: none; }
  .ruler-spans { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ruler-spans li { grid-column: auto; }
  .ruler-spans li:last-child { display: none; }
  .chapter { display: grid; grid-template-columns: 1fr; row-gap: 22px; padding: 44px 0; }
  .chapter-photo, .chapter:nth-of-type(even) .chapter-photo { grid-column: 1; grid-row: 1; width: 100%; max-height: 72svh; border-radius: 16px; }
  .chapter-photo .plate { display: none; }
  .chapter-body, .chapter:nth-of-type(even) .chapter-body { grid-column: 1; grid-row: 2; gap: 16px; }
  .chapter-title { font-size: 2.375rem; }
  .chapter-link { justify-self: stretch; justify-content: center; }

  .diagram { padding: 14px; border-radius: 16px; }
  .tag circle { r: 22px; }
  .tag text { font-size: 19px; }
  .spot-btn { min-height: 56px; }
  .spot-body { padding-left: 62px; }
  .svc-grid { display: block; margin-top: 56px; padding-top: 32px; }
  .svc-intro h3 { max-width: none; }
  .svc-intro p { max-width: none; }
  .svc-col { margin-top: 32px; }

  .est-grid { display: block; }
  .est-form { padding: 18px; }
  .fields { grid-template-columns: 1fr; }
  .phone { position: static; margin-top: 32px; }
  .peek { display: block; position: sticky; bottom: 12px; z-index: 5; pointer-events: none; margin: 8px -8px 0; padding: 10px 12px 12px; border-radius: 20px; background: var(--surface); transition: opacity 200ms var(--ease), transform 240ms var(--ease); }
  .peek.is-off { opacity: 0; transform: translateY(12px); }
  .peek-bubble { display: flex; flex-direction: column; justify-content: flex-end; max-height: 6.2em; overflow: hidden; padding: 12px 16px; border-radius: 18px 18px 6px 18px; background: var(--cta); color: var(--cta-ink); font-size: .9375rem; line-height: 1.4; white-space: pre-line; transform-origin: 100% 100%; }
  .peek-to { font-size: .8125rem; color: var(--soft); margin: 0 0 6px 4px; }

  .steps { grid-template-columns: 1fr; row-gap: 40px; }
  .steps p { max-width: none; }
  .steps .ph { aspect-ratio: 16 / 10; }

  .faq-grid { display: block; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .facts dt { font-size: var(--step-small); }
  .faq-media { margin-top: 44px; padding: 0 0 48px; }
  .faq-tall { border-radius: 16px; }
  .faq-sq { left: auto; right: 0; bottom: 0; width: 44%; }

  .contact-grid { display: flex; flex-direction: column-reverse; }
  .map { min-height: 340px; margin-top: 16px; border-radius: 16px; }
  .pin { left: 50%; top: 44%; }
  .card { padding: 24px; border-radius: 16px; }
  .card .btn { min-height: 56px; }

  .foot { padding: 48px 20px 104px; }
  .foot-cols > div { grid-column: span 6; }
  .foot-word { margin-top: 80px; }
  .foot-word span { font-size: 29vw; }

  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg);
    transform: translateY(110%); transition: transform 320ms var(--ease);
  }
  .mbar .btn { min-height: 50px; padding: 0 12px; }
  .mbar.show { transform: none; }
}
