/* A1 Roofing Indiana homepage, 2026-09-18 */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --photo-h: clamp(95vw, calc(var(--stage-h, 100svh) - 320px), 135vw);
  --ink: #0b3552;
  --ink-2: #16476b;
  --red: #b3230f;
  --paper: #ffffff;
  --mist: #eef3f7;
  --line: #dce4ea;
  --muted: #5a6b78;
  --chalk: #f7f5ef;
  --r-lg: 12px;
  --r-md: 10px;
  --pad: clamp(20px, 5vw, 72px);
  --font: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.55 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: clamp(28px, 3vw, 42px); max-width: 17em; }
p { margin: 0; }
figure { margin: 0; }
blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 500 15.5px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-glass { background: rgba(255,255,255,.72); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(11,53,82,.12); }
.btn-glass:hover { background: #fff; }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: fixed; inset: 12px 12px auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 10px 0 18px; border-radius: 999px;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 rgba(11,53,82,.06), 0 8px 30px rgba(11,53,82,.08);
}
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 18px; margin-left: 12px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; text-decoration: none; font-variant-numeric: tabular-nums; }

/* 1. Day time-lapse: the photo is the whole first screen; words sit on the lawn, the roof stays clear */
.day { height: 149vh; height: 149svh; position: relative; }
.day-stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.day-view { position: absolute; inset: 0; overflow: hidden; background: #cfdbe4; }
.day-frames, .frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame { object-fit: cover; object-position: 50% 30%; opacity: 0; will-change: opacity; backface-visibility: hidden; }
.frame.is-on { opacity: 1; }
.day-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(7,24,38,.78) 0%, rgba(7,24,38,.5) 22%, rgba(7,24,38,0) 44%);
}
.day-head {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 118px;
  display: flex; align-items: end; justify-content: space-between; gap: 48px; color: #fff;
}
.day-head h1 { font-size: clamp(32px, 3.2vw, 46px); letter-spacing: -0.032em; max-width: 13.5em; text-shadow: 0 1px 24px rgba(0,0,0,.25); }
.day-sub { display: grid; justify-items: start; gap: 16px; max-width: 340px; }
.day-sub p { font-size: 16.5px; color: rgba(255,255,255,.82); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); }

.day-review {
  position: absolute; right: var(--pad); top: 104px; max-width: 330px;
  padding: 20px 22px; border-radius: var(--r-md);
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s;
}
.day-review.is-on { opacity: 1; transform: none; }
.day-review p { font-size: 18px; line-height: 1.4; }
.day-review cite, .quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--muted); }

.rail {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 30px;
  display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none;
}
.rail button {
  display: grid; gap: 2px; width: 100%; padding: 22px 0 0; border: 0; background: none; cursor: pointer;
  text-align: left; color: rgba(255,255,255,.62); font: inherit; transition: color .3s;
}
.rail time { font-size: 13px; font-variant-numeric: tabular-nums; }
.rail button span { font-size: 15px; font-weight: 500; opacity: 0; transition: opacity .3s; }
.rail li.is-on button span { opacity: 1; }
.rail li.is-on button, .rail button:hover { color: #fff; }
.rail-track { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.28); border-radius: 2px; }
.rail-sun {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #ffd98a; box-shadow: 0 0 0 5px rgba(255,217,138,.28), 0 0 24px 6px rgba(255,200,110,.55);
}

/* Shared section rhythm */
section:not(.day) { position: relative; }
.quote { padding-left: 18px; border-left: 2px solid var(--line); }
.quote p { font-size: 17px; line-height: 1.5; }

/* 2. Storm: pinned, so the circles draw only while the whole roof is on screen */
.storm-pin { height: 230vh; height: 230svh; }
.storm {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: 96px var(--pad) 40px; max-width: 1440px; margin: 0 auto;
}
.hail { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; background: #3a3f44; }
.hail img { width: 100%; height: 100%; object-fit: cover; }
.chalk { position: absolute; inset: 0; width: 100%; height: 100%; }
.chalk path {
  fill: none; stroke: var(--chalk); stroke-width: .42; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 .15px rgba(255,255,255,.6)); opacity: .95;
}
.chalk-labels { position: absolute; inset: 0; pointer-events: none; }
.chalk-labels span {
  position: absolute; transform: translate(-50%, 0); white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(247,245,239,.94); color: var(--ink);
  opacity: 0; transition: opacity .4s;
}
.chalk-labels span.is-on { opacity: 1; }
.storm-copy { display: grid; gap: 22px; justify-items: start; max-width: 480px; }
.storm-copy > p { color: var(--muted); }

/* 3. Services */
.services { padding: 40px 0 0; }
.services-head { padding: 0 var(--pad); margin-bottom: 32px; max-width: none; }
.house { position: relative; }
.house-pic { position: relative; overflow: hidden; height: min(78vh, 56vw); background: var(--mist); }
.house-img { width: 100%; height: 100%; object-fit: cover; }
.pin {
  position: absolute; left: 0; top: 0; transform: translate(-15px, -50%);
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border: 0; border-radius: 999px;
  font: 500 14.5px/1 var(--font); color: var(--ink); cursor: pointer;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(11,53,82,.18); transition: background .2s, color .2s;
}
.pin::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgba(11,53,82,.15); }
.pin.is-on { background: var(--ink); color: #fff; }
.pin.is-on::before { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.part {
  position: absolute; left: var(--pad); bottom: 32px; width: min(430px, calc(100% - 40px));
  display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center;
  padding: 12px; border-radius: var(--r-md);
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(11,53,82,.16);
}
.part-img { width: 132px; height: 104px; object-fit: cover; border-radius: 9px; }
.part h3 { font-size: 18px; }
.part p { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.part.swap { animation: swap .35s ease; }
@keyframes swap { from { opacity: .3; transform: translateY(4px); } }

/* 4. Crew */
.crew {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: 110px var(--pad); background: var(--mist);
}
.crew-copy { display: grid; gap: 22px; max-width: 460px; }
.crew-copy > p { color: var(--muted); }
.crew-photos {
  display: grid; gap: 12px; height: min(640px, 72vh);
  grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr;
  grid-template-areas: "james a" "james b";
}
.ph { border-radius: var(--r-md); overflow: hidden; background: #d5dee5; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-james { grid-area: james; }
.ph-james img { object-position: 30% 40%; }
.ph-a { grid-area: a; }
.ph-b { grid-area: b; }

/* 5. Lawn and magnet */
.lawn-sec {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: 120px var(--pad); max-width: 1440px; margin: 0 auto;
}
.lawn {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10;
  background: #4f7a36; cursor: none; touch-action: pan-y; user-select: none;
}
.lawn img { width: 100%; height: 100%; object-fit: cover; }
.nails { position: absolute; inset: 0; }
.nail {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  background: url("assets/nail.svg") center / contain no-repeat;
  filter: drop-shadow(1px 2px 1px rgba(0,0,0,.35));
  will-change: transform, opacity;
}
.magnet {
  position: absolute; left: 0; top: 0; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  background: radial-gradient(circle, rgba(255,255,255,.18), rgba(255,255,255,.04) 70%);
  box-shadow: 0 0 0 6px rgba(255,255,255,.14);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.lawn.is-hover .magnet { opacity: 1; }
.lawn-hint, .lawn-done {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; pointer-events: none;
  background: rgba(255,255,255,.9); color: var(--ink); transition: opacity .4s;
}
.lawn-done { opacity: 0; }
.lawn.is-clear .lawn-hint { opacity: 0; }
.lawn.is-clear .lawn-done { opacity: 1; }
.lawn.is-hover .lawn-hint { opacity: 0; }
.lawn-copy { display: grid; gap: 20px; max-width: 440px; }
.lawn-copy > p { color: var(--muted); }
.checks { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.checks label { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.checks input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1.5px solid #b9c7d2; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.checks input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.checks input:checked { background: var(--ink); border-color: var(--ink); }
.checks input:checked::after { opacity: 1; }
.checks input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: #b9c7d2; }

/* 6. Service area map */
.area {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: 90px var(--pad); background: var(--mist);
}
.area-copy { display: grid; gap: 16px; }
.area-copy p { color: var(--muted); }
.map { width: 100%; height: auto; max-height: 78vh; }
.map .ring { fill: rgba(11,53,82,.045); stroke: rgba(11,53,82,.18); stroke-width: 1.5; stroke-dasharray: 3 7; }
.map .loop { fill: none; stroke: rgba(11,53,82,.28); stroke-width: 5; }
.map .loop-label { font: 500 14px var(--font); fill: rgba(11,53,82,.45); }
.map .town circle { fill: var(--ink); }
.map .town text { font: 500 17px var(--font); fill: var(--ink); }
.map .city text { font: 600 20px var(--font); fill: var(--ink); }
.map .city circle { fill: none; stroke: var(--ink); stroke-width: 2; }
.map .home circle { fill: var(--red); }
.map .home .pulse { fill: none; stroke: var(--red); stroke-width: 2; opacity: .5; }
.map .home text { font: 600 16px var(--font); fill: var(--red); }

/* 7. Estimate at dusk */
.estimate { overflow: hidden; color: #fff; background: #0e2436; }
.estimate-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.estimate::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(9,26,41,.88) 0%, rgba(9,26,41,.62) 42%, rgba(9,26,41,.08) 100%); }
.estimate-inner {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 460px; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: 110px var(--pad); max-width: 1440px; margin: 0 auto;
}
.estimate-copy { display: grid; gap: 26px; max-width: 540px; }
.facts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 17px; }
.facts li { display: flex; gap: 12px; align-items: baseline; }
.facts li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #ffd98a; transform: translateY(-2px); }
.call-line { color: rgba(255,255,255,.75); }
.call-line a { color: #fff; font-weight: 500; text-decoration: none; white-space: nowrap; }
.quote-dark { border-color: rgba(255,255,255,.25); }
.quote-dark cite { color: rgba(255,255,255,.62); }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 26px; border-radius: var(--r-lg);
  background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.field { grid-column: 1 / -1; display: grid; gap: 6px; }
.field.half { grid-column: span 1; }
.field label { font-size: 13.5px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfd;
  font: 400 16px/1.4 var(--font); color: var(--ink); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(11,53,82,.1); }
.field.is-bad input { border-color: var(--red); }
.form .btn-block { grid-column: 1 / -1; margin-top: 4px; height: 50px; }
.form-note { grid-column: 1 / -1; text-align: center; font-size: 14px; color: var(--muted); }
.badges { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.badges img { height: 34px; width: auto; object-fit: contain; }

/* Footer */
.foot { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: end; padding: 44px var(--pad) 32px; font-size: 14.5px; color: var(--muted); }
.foot-logo { height: 58px; width: auto; }
.foot-info { display: grid; gap: 4px; }
.foot-info a { text-decoration: none; }
.foot-social a { margin-right: 16px; }
.foot-info a:hover, .credit a:hover { color: var(--ink); }
.credit { font-size: 13px; }

/* Tablet and phone */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav { inset: 8px 8px auto; height: 56px; padding: 0 6px 0 12px; transition: transform .3s ease; }
  .nav.is-away { transform: translateY(-80px); }
  .nav-logo img { height: 38px; }
  .nav-phone { font-size: 0; gap: 0; width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--mist); }
  .nav-phone::after { content: ""; width: 18px; height: 18px; background: var(--ink); -webkit-mask: url("assets/phone.svg") center / contain no-repeat; mask: url("assets/phone.svg") center / contain no-repeat; }
  .nav-phone .live { display: none; }
  .nav-actions { gap: 8px; }
  .nav .btn { height: 44px; padding: 0 16px; font-size: 14.5px; }

  /* Phone hero: the photo sits at the top in a near-square frame so the whole front of the
     house shows, and fades into a dusk base that holds the words. The height is measured
     once in JS (--stage-h), so a browser toolbar sliding away never resizes the photo. */
  .day { height: calc(var(--stage-h, 100svh) * 1.455); }
  .day-stage { height: var(--stage-h, 100svh); }
  .day-view { background: #0c2131; }
  .day-frames { bottom: auto; height: var(--photo-h); }
  .frame { object-position: 50% 8%; }   /* keep the ridge and the roofers on it */
  .day-scrim { bottom: auto; height: calc(var(--photo-h) + 2px); background: linear-gradient(180deg, rgba(12,33,49,0) 55%, rgba(12,33,49,.75) 85%, #0c2131 100%); }
  .day-head { flex-direction: column; align-items: start; gap: 14px; left: 20px; right: 20px; bottom: 92px; }
  .day-head h1 { font-size: 29px; }
  .day-sub { gap: 16px; }
  .day-sub p { font-size: 15.5px; }
  .day-review { left: 20px; right: 20px; top: calc(var(--photo-h) - 64px); bottom: auto; max-width: none; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .day-review p { font-size: 14.5px; line-height: 1.35; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
  .day-review cite { margin-top: 2px; font-size: 12.5px; color: rgba(255,255,255,.75); }
  .rail { left: 16px; right: 16px; bottom: 16px; }
  .rail button { padding-top: 16px; }
  .rail time { font-size: 11.5px; }
  .rail button span { display: none; }
  .rail li.is-on button span { display: block; position: absolute; left: 0; top: -34px; font-size: 14px; color: #fff; white-space: nowrap; }
  .rail li { position: relative; }
  .rail li:nth-last-child(-n+3).is-on button span { left: auto; right: 0; }

  .storm, .crew, .lawn-sec, .area, .estimate-inner { grid-template-columns: 1fr; }
  .storm-pin { height: 210svh; }
  .storm { padding: 76px 20px 20px; gap: 20px; align-content: center; }
  .storm-copy { order: -1; }
  .hail { aspect-ratio: 4 / 3.4; }

  .services { padding: 20px 0 64px; }
  .services-head { padding: 0 20px; margin-bottom: 22px; }
  .house-pic { height: auto; aspect-ratio: 4 / 3.4; }
  .part { margin: 12px 20px 0; }
  .pin { height: 32px; font-size: 13.5px; padding: 0 12px 0 9px; }
  .part { position: static; width: auto; margin-top: 12px; grid-template-columns: 104px 1fr; box-shadow: none; border: 1px solid var(--line); }
  .part-img { width: 104px; height: 88px; }

  .crew { padding: 80px 20px; gap: 32px; }
  .crew-photos { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: 240px 150px; grid-template-areas: "james james" "a b"; gap: 8px; }

  .lawn-sec { padding: 80px 20px; gap: 28px; }
  .lawn { aspect-ratio: 3 / 3.4; }
  .lawn-copy { order: -1; }

  .area { padding: 72px 20px 56px; gap: 20px; }
  .map { max-height: none; margin: 0 -8px; width: calc(100% + 16px); }
  .map .town text { font-size: 27px; }
  .map .town circle { r: 7px; }
  .map .city text { font-size: 31px; }
  .map .home text { font-size: 28px; }
  .map .loop-label { display: none; }
  .chalk-labels span { font-size: 11.5px; padding: 3px 8px; }

  .estimate-inner { padding: 80px 20px; gap: 32px; }
  .estimate::before { background: linear-gradient(180deg, rgba(9,26,41,.72) 0%, rgba(9,26,41,.88) 100%); }
  .form { padding: 18px; border-radius: 18px; grid-template-columns: 1fr; }
  .field.half { grid-column: 1 / -1; }
  .badges img { height: 26px; }

  .foot { grid-template-columns: 1fr; gap: 18px; padding: 36px 20px 28px; }
  .foot-logo { height: 50px; }
  .credit { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .day-review, .chalk-labels span, .part.swap { transition: none; animation: none; }
}
