/* ===== Roofking tokens ===== */
:root {
  /* from the Roof King logo */
  --navy-900: #0B1640;
  --navy-800: #13225A;
  --navy: #1E4BAC;
  --royal: #3B6FD4;
  --roof: #3591E0;
  --steel: #739CAD;
  --lime: #8FDB5C;
  --lime-pale: #C3EEC5;
  --sky: #9FD3F5;
  --sky-pale: #EAF4FC;
  --ink: #0E1A3D;
  --ink-soft: #3C4A6B;
  --white: #FBFCFE;
  --wa: #25D366;
  /* the crown is the only gold */
  --gold: #F2B705;
  --storm: var(--navy-900);

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 5vw, 72px);
  --radius: 14px;
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--storm);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; line-height: .92; letter-spacing: .005em; text-transform: uppercase; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* ===== Buttons ===== */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { --h: 42px; padding: 0 16px; font-size: 14.5px; }
.btn-block { display: flex; width: 100%; }

.btn-lime { background: var(--lime); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(143,219,92,.75); }
.btn-lime:hover { background: #a8e87e; }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy svg { color: var(--lime); }
.btn-navy:hover { background: var(--navy-800); }
.btn-outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #06210f; box-shadow: 0 10px 30px -12px rgba(37,211,102,.8); }
.btn-wa:hover { background: #3be27a; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Header ===== */
.top {
  position: fixed; inset: 12px 12px auto 12px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(11,22,64,.86);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-logo { height: 46px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.25)); }
.top-actions { display: flex; gap: 8px; }

/* ===== Story (pinned scene) ===== */
.story {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--storm);
  color: #fff;
}
.scene, #rain, .flash { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene { overflow: hidden; }
.scene img[data-src], .scene img.pending { visibility: hidden; }

/* ---- layered scene: every moving part is its own GPU layer ---- */
.sky, .sky-l { position: absolute; inset: 0; }
.world { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.world .abs { position: absolute; display: block; max-width: none; }
.layer, .pivot { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.clipx { overflow: hidden; }
.grow { transform-origin: 50% 100%; will-change: transform; }
.wheel { will-change: transform; }
#ground .gnd { left: 0; width: 100%; }
.lane { background: repeating-linear-gradient(90deg, var(--lane) 0 44px, transparent 44px 80px); }
.rays { border-radius: 50%; background: radial-gradient(closest-side, rgba(255,227,138,.9), rgba(255,227,138,0)); }
.sun-core { border-radius: 50%; background: #FFD23F; }
.lamp .glow { background: radial-gradient(closest-side, rgba(255,217,138,.95), rgba(255,217,138,0)); }
#crownGlint { background: radial-gradient(closest-side, rgba(255,227,138,.9), rgba(255,227,138,0)); }
.pin { transform: translate(-50%, -100%) scale(1.45); transform-origin: 50% 100%; padding-bottom: 7px; }
.pin-b { position: relative; background: #8FDB5C; color: #0B1640; font: 700 13px/1 var(--body); padding: 8px 14px; border-radius: 15px; white-space: nowrap; }
.pin-b::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 6px solid transparent; border-top: 8px solid #8FDB5C; border-bottom: 0; }
#rain { pointer-events: none; }
.flash { background: #E6EEFF; opacity: 0; pointer-events: none; mix-blend-mode: screen; }


.cloud.c1 { animation: drift 38s ease-in-out infinite alternate; }
.cloud.c2 { animation: drift 52s ease-in-out infinite alternate-reverse; }
.cloud.c3 { animation: drift 44s ease-in-out infinite alternate; }
.cloud.c4 { animation: drift 30s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-60px); } to { transform: translateX(80px); } }



/* leak inside the room */
.drip { animation: drip 1.1s cubic-bezier(.55,0,1,.45) infinite; }
.drip.d2 { animation-delay: .55s; }
@keyframes drip { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(76px); opacity: 0; } }
.ripple { transform-box: fill-box; transform-origin: center; animation: ripple 1.1s ease-out infinite; }
@keyframes ripple { 0% { transform: scale(.4); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .12s steps(2) infinite alternate; }
@keyframes flicker { from { transform: scale(1, 1); } to { transform: scale(.9, 1.12) skewX(-4deg); } }

/* captions */
.caps { position: absolute; inset: 0; pointer-events: none; }
.cap {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: min(600px, 42vw);
  pointer-events: auto;
}
.js .cap:not(.cap-hero) { opacity: 0; visibility: hidden; }

.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lime-pale); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(143,219,92,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(143,219,92,0); } 100% { box-shadow: 0 0 0 0 rgba(143,219,92,0); } }

.cap-hero h1 {
  font-size: clamp(54px, min(7.6vw, 12.5vh), 150px);
  color: #fff;
  text-shadow: 0 6px 40px rgba(0,0,0,.35);
}
.cap-hero h1 .w { display: inline-block; }
.lede { margin: clamp(12px, 2.4vh, 22px) 0 clamp(16px, 3vh, 28px); font-size: clamp(17px, 1.4vw, 20px); color: rgba(255,255,255,.86); max-width: 30em; }


.cap .label { color: var(--lime-pale); }
.cap h2 { font-size: clamp(34px, min(4.3vw, 7.4vh), 76px); }
.cap p:not(.label):not(.eyebrow):not(.year):not(.lede) { margin-top: 18px; font-size: 18px; max-width: 28em; color: rgba(255,255,255,.85); }
.cap-a h2 { color: #fff; }
.cap-b h2 { color: #fff; }
.cap-b h2::first-line { color: var(--lime); }

.cap-c, .cap-end { color: var(--ink); }
.cap-c .label { color: var(--ink); }
.year {
  font-family: var(--display); font-weight: 900; line-height: .8;
  font-size: clamp(96px, min(15vw, 24vh), 260px);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin: -6px 0 12px;
}
.year span { display: inline-block; background: linear-gradient(transparent 72%, var(--lime) 72%, var(--lime) 90%, transparent 90%); padding: 0 6px; }
.cap-c h2 { font-size: clamp(26px, min(3.4vw, 5.6vh), 50px); }
.end-title { font-size: clamp(40px, min(4.8vw, 8.5vh), 92px); margin-bottom: 28px; }


/* ===== Season ticker ===== */
.season { background: var(--lime); color: var(--ink); overflow: hidden; position: relative; z-index: 2; }
.ticker { overflow: hidden; border-bottom: 2px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: marquee 30s linear infinite; padding: 12px 0; }
.ticker-track span { font-family: var(--display); font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; padding: 0 22px; display: inline-flex; align-items: center; gap: 22px; }
.ticker-track span::after { content: ""; width: 18px; height: 12px; background: var(--ink); clip-path: polygon(0 100%, 0 30%, 25% 60%, 50% 0, 75% 60%, 100% 30%, 100% 100%); }
.season-text { padding: 16px var(--gutter); max-width: 1240px; margin: 0 auto; font-size: 17px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Quote ===== */
.quote {
  background:
    radial-gradient(1200px 500px at 80% 0%, #fff 0%, transparent 60%),
    linear-gradient(180deg, var(--sky) 0%, var(--sky-pale) 55%, var(--white) 100%);
  padding: clamp(72px, 10vw, 140px) 0;
}
.quote-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.quote h2 { font-size: clamp(48px, 6vw, 92px); margin-bottom: 24px; }
.quote-intro > p:not(.label) { font-size: 19px; color: var(--ink-soft); max-width: 32em; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: s; display: grid; gap: 14px; }
.steps li {
  counter-increment: s;
  display: flex; gap: 16px; align-items: center;
  padding: 14px 18px 14px 14px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(16,19,27,.08);
  border-radius: var(--radius);
  font-size: 16.5px;
}
.steps li::before {
  content: counter(s);
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--navy); color: var(--lime);
  font-family: var(--display); font-weight: 900; font-size: 30px;
}

.builder {
  background: #fff;
  border-radius: 22px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 40px 80px -40px rgba(16,19,27,.35), 0 0 0 1px rgba(16,19,27,.06);
  display: grid; gap: 18px;
  position: relative;
}
.builder::before {
  content: ""; position: absolute; top: -26px; right: 22px; width: 92px; height: 51px;
  background: url("assets/logo-roofking-240.webp") center / contain no-repeat;
  transform: rotate(6deg); filter: drop-shadow(0 6px 14px rgba(14,26,61,.25));
}
fieldset { border: 0; padding: 0; margin: 0; }
legend, .field > span { font-weight: 600; font-size: 15px; margin-bottom: 10px; display: block; }
.field em { font-style: normal; color: #7A8292; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 15px/1 var(--body);
  padding: 12px 16px; border-radius: 999px;
  border: 1.5px solid rgba(16,19,27,.18); background: #fff; color: var(--ink);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.field input {
  width: 100%; font: 16px var(--body); padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid rgba(16,19,27,.18); background: #fff; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(53,145,224,.3); }
.preview { background: #E7F8EE; border-radius: 14px 14px 14px 4px; padding: 14px 16px; font-size: 15px; }
.preview-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #2C7A4B; display: block; margin-bottom: 6px; }
#msgPreview { white-space: pre-line; color: #0E2A19; }

/* ===== Services ===== */
.services { background: var(--white); padding: clamp(72px, 10vw, 140px) 0; }
.section-title { font-size: clamp(44px, 6vw, 92px); margin-bottom: clamp(36px, 5vw, 64px); }
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc {
  display: grid; grid-template-columns: 1fr; gap: 0; align-items: stretch;
  border-radius: 22px; overflow: hidden;
  background: #fff; border: 1px solid rgba(16,19,27,.08);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(16,19,27,.4); }
.svc > div:last-child { padding: 22px 24px 26px; }
.svc h3 { font-size: 40px; margin-bottom: 8px; }
.svc-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-900); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.svc:hover .svc-img img { transform: scale(1.12); }
.svc p { color: var(--ink-soft); font-size: 16px; }
.svc-anim { aspect-ratio: 200 / 140; border-radius: 14px; background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); overflow: hidden; }
.svc-anim svg { width: 100%; height: 100%; }
.surface { fill: #5A606E; }

.anim-water .drop { fill: #7FB8E6; animation: wdrop 2.2s cubic-bezier(.55,0,1,.45) infinite; }
.anim-water .bead { fill: #7FB8E6; opacity: 0; }
.anim-water .b1 { animation: beadL 2.2s ease-out infinite; }
.anim-water .b2 { animation: beadR 2.2s ease-out infinite; }
.anim-water .surface { fill: var(--silver); }
@keyframes wdrop { 0% { transform: translateY(0); opacity: 1; } 40% { transform: translateY(70px); opacity: 1; } 41%, 100% { transform: translateY(70px); opacity: 0; } }
@keyframes beadL { 0%, 40% { opacity: 0; transform: translate(0,0); } 41% { opacity: 1; } 70% { transform: translate(-46px, -26px); } 100% { opacity: 0; transform: translate(-80px, 0); } }
@keyframes beadR { 0%, 40% { opacity: 0; transform: translate(0,0); } 41% { opacity: 1; } 70% { transform: translate(46px, -22px); } 100% { opacity: 0; transform: translate(80px, 0); } }

.anim-torch .mem { fill: #222; transform-origin: 16px 0; transform-box: view-box; animation: memroll 3s linear infinite; }
.anim-torch .tflame { animation: tmove 3s linear infinite; }
.anim-torch .tflame path { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .12s steps(2) infinite alternate; }
@keyframes memroll { 0% { transform: scaleX(0); } 85%, 100% { transform: scaleX(1); } }
@keyframes tmove { 0% { transform: translate(16px, 92px); } 85% { transform: translate(184px, 92px); opacity: 1; } 90%, 100% { transform: translate(184px, 92px); opacity: 0; } }

.anim-ceiling .beam { fill: #8C6A4A; }
.anim-ceiling .cornice { fill: var(--lime); }
.anim-ceiling .board { fill: var(--white); animation: board 3.6s cubic-bezier(.2,.8,.2,1) infinite; opacity: 0; }
.anim-ceiling .k2 { animation-delay: .3s; }
.anim-ceiling .k3 { animation-delay: .6s; }
@keyframes board { 0% { transform: translateY(60px); opacity: 0; } 20%, 80% { transform: translateY(0); opacity: 1; } 100% { opacity: 0; } }

.anim-paint .wall { fill: #6E6458; }
.anim-paint .fresh { fill: var(--sky); animation: fresh 3s cubic-bezier(.6,0,.4,1) infinite; }
.anim-paint .roller { animation: roll 3s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes fresh { 0% { width: 0; } 80%, 100% { width: 160px; } }
@keyframes roll { 0% { transform: translateX(20px); } 80% { transform: translateX(180px); opacity: 1; } 90%, 100% { transform: translateX(180px); opacity: 0; } }

/* ===== About ===== */
.about {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--royal) 0%, var(--navy) 55%, var(--navy-800) 100%);
  padding: clamp(72px, 10vw, 140px) 0;
}
/* the logo's swooshes, enlarged */
.about-swoosh {
  position: absolute; width: 1400px; height: 640px; right: -420px; bottom: -380px; border-radius: 50%;
  box-shadow: inset 0 0 0 26px rgba(159,211,245,.35), inset 0 0 0 40px rgba(143,219,92,.55), inset 0 0 0 64px rgba(53,145,224,.5);
  transform: rotate(-12deg); pointer-events: none;
}
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; position: relative; z-index: 1; }
.about .label { color: var(--lime-pale); }
.est { display: block; font-family: var(--mono); font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.since { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(150px, 22vw, 330px); line-height: .8; letter-spacing: -.01em; color: #fff; }
.since-sub { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-top: 18px; color: var(--sky); }
.about .section-title { margin-bottom: 24px; }
.about p:not(.label) { font-size: 19px; max-width: 34em; color: rgba(255,255,255,.88); }
.about p + p { margin-top: 14px; }

/* ===== Areas ===== */
.areas { background: var(--sky-pale); padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.areas .section-title { margin-bottom: 36px; }
.marquee { overflow: hidden; border-block: 2px solid var(--navy); background: #fff; color: var(--navy); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(44px, 6vw, 84px); line-height: 1; padding: 18px 28px;
  display: inline-flex; align-items: center; gap: 56px;
}
.marquee-track span::after { content: ""; width: 44px; height: 22px; background: var(--roof); clip-path: polygon(0 100%, 34% 0, 58% 55%, 74% 30%, 100% 100%, 88% 100%, 74% 58%, 62% 82%, 34% 24%, 12% 100%); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.areas-note { margin-top: 24px; font-size: 18px; color: var(--ink-soft); }

/* ===== Closing ===== */
.closing {
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(53,145,224,.35), transparent 60%),
    radial-gradient(700px 300px at 100% 100%, rgba(143,219,92,.14), transparent 60%),
    var(--navy-900);
  color: #fff;
  padding: clamp(80px, 11vw, 160px) 0;
}
.closing-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.closing-title { font-size: clamp(64px, 10vw, 160px); color: #fff; margin-bottom: 24px; }
.closing-title::first-line { color: var(--lime); }
.closing-lede { font-size: 20px; color: rgba(255,255,255,.85); max-width: 30em; margin-bottom: 32px; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.15); }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--lime-pale); padding-top: 4px; }
.facts dd { margin: 0; font-size: 17px; }
.facts a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }

/* ===== Footer ===== */
.foot { background: #060D29; color: rgba(255,255,255,.6); padding: 28px 0 calc(28px + var(--dock-h)); font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-logo { height: 54px; width: auto; }

/* ===== Mobile dock ===== */
.dock { display: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .quote-grid, .about-grid, .closing-grid { grid-template-columns: 1fr; }
  .svc-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --dock-h: 76px; }
  body { font-size: 16px; }
  .top { inset: 10px 10px auto 10px; padding: 6px 6px 6px 14px; }
  .top-actions .btn-ghost { display: none; }
  .top-actions .btn-lime span { display: none; }
  .top-actions .btn-lime { width: 42px; padding: 0; }
  .brand-logo { height: 40px; }

  .dock {
    display: grid; grid-template-columns: 1fr 2fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: rgba(6,13,41,.9);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .dock-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 54px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 16px;
  }
  .dock-btn svg { width: 20px; height: 20px; }
  .dock-call { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.25); }
  .dock-wa { background: var(--lime); color: var(--ink); }

  .svc { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 100px 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .closing-title { font-size: clamp(60px, 18vw, 100px); }
}

/* portrait scene: captions at top, house sits at the bottom */
@media (orientation: portrait) {
  .cap { top: calc(84px + 2vh); transform: none; left: var(--gutter); right: var(--gutter); width: auto; }
  .cap-hero h1 { font-size: clamp(64px, 19vw, 140px); }
  .cap-hero .lede { margin: 16px 0 20px; }
  .cap h2 { font-size: clamp(38px, 10.5vw, 72px); }
  .cap p:not(.label):not(.eyebrow):not(.year):not(.lede) { font-size: 16px; margin-top: 12px; }
  .cap-c h2 { font-size: clamp(28px, 7.4vw, 48px); }
  .year { font-size: clamp(96px, 30vw, 200px); }
  .end-title { font-size: clamp(44px, 12vw, 84px); margin-bottom: 20px; }
}
@media (orientation: portrait) and (max-width: 720px) {
  .cap-hero .cta-row { display: none; } /* dock carries the CTAs on phones */
  .cap-end .cta-row { display: none; }
}

/* ===== Reduced motion: no pin, static story ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.rm .story { height: auto; overflow: visible; }
.rm .scene { position: relative; height: 70vh; }
.rm .caps { position: relative; inset: auto; background: var(--sky-pale); padding: 48px 0; }
.rm .cap { position: relative; top: auto; transform: none !important; opacity: 1 !important; visibility: visible !important; margin: 0 auto 48px; color: var(--ink); width: auto; max-width: 720px; padding: 0 var(--gutter); }
.rm .cap h1, .rm .cap h2, .rm .cap p { color: var(--ink) !important; text-shadow: none; }
.rm .cap .btn-light { color: var(--ink); border-color: var(--ink); }
.rm .guide { display: none; }

/* scroll reveals (JS adds .rv) */
.js .rv { opacity: 0; transform: translateY(36px); }
.rm .rv { opacity: 1; transform: none; }

/* ===== Lately (What we've been up to) ===== */
.lately { background: var(--white); padding: 0 0 clamp(72px, 10vw, 140px); overflow: hidden; }
.lately[hidden] { display: none; }
.lately-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.lately-nav { display: flex; gap: 10px; margin-bottom: clamp(36px, 5vw, 64px); }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.round-btn:hover { background: var(--navy); color: #fff; }
.round-btn svg { width: 22px; height: 22px; }
.round-btn.flip svg { transform: scaleX(-1); }
.lately-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 380px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 4px max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))) 24px;
  scrollbar-width: none;
}
.lately-rail::-webkit-scrollbar { display: none; }
.log-card {
  scroll-snap-align: start; background: #fff; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(14,26,61,.08); display: flex; flex-direction: column;
  transition: box-shadow .35s;
}
.log-card:hover { box-shadow: 0 34px 60px -36px rgba(14,26,61,.45); }
.log-card.featured { grid-column: span 1; border: 2px solid var(--lime); }
.log-open { all: unset; cursor: pointer; display: flex; flex-direction: column; height: 100%; }
.log-open:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; border-radius: 20px; }
.log-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); overflow: hidden; }
.log-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.log-card:hover .log-media img { transform: scale(1.06); }
.log-media .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.log-media .ph img { width: 62%; height: auto; object-fit: contain; transform: none !important; }
.log-badge { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.log-badge span { font: 600 12px/1 var(--body); padding: 7px 10px; border-radius: 999px; background: rgba(6,13,41,.78); color: #fff; backdrop-filter: blur(6px); display: inline-flex; gap: 6px; align-items: center; }
.log-badge span.ba { background: var(--lime); color: var(--ink); }
.log-badge svg { width: 12px; height: 12px; }
.log-body { padding: 18px 20px 22px; display: grid; gap: 8px; }
.log-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.log-body h3 { font-size: 30px; color: var(--ink); }
.log-body p { color: var(--ink-soft); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.log-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.log-tags span { font-size: 12.5px; font-weight: 600; color: var(--navy); background: var(--sky-pale); padding: 5px 10px; border-radius: 999px; }
.log-cta { scroll-snap-align: start; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 100%; text-decoration: none; }
.log-cta h3 { font-size: 40px; }
.log-cta p { font-size: 15.5px; }
.log-cta.wa { background: var(--navy); color: #fff; }
.log-cta.wa h3 { color: var(--lime); }
.log-cta.fb { background: var(--sky-pale); color: var(--navy); border: 2px dashed rgba(30,75,172,.35); }
.log-cta .go { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }

/* viewer */
.viewer { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 22px; overflow: auto; background: #fff; color: var(--ink); }
.viewer::backdrop { background: rgba(6,13,41,.78); backdrop-filter: blur(6px); }
.viewer-close { position: absolute; right: 12px; top: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(6,13,41,.75); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.viewer-media { background: var(--navy-900); position: relative; }
.viewer-media img, .viewer-media video, .viewer-media iframe { display: block; width: 100%; max-height: 68vh; object-fit: contain; background: #000; border: 0; }
.viewer-media iframe { aspect-ratio: 16 / 9; height: auto; }
.viewer-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: var(--navy-900); }
.viewer-thumbs button { all: unset; cursor: pointer; width: 72px; height: 54px; border-radius: 8px; overflow: hidden; opacity: .55; flex: none; }
.viewer-thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--lime); }
.viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.viewer-body { padding: 24px clamp(20px, 4vw, 36px) 32px; display: grid; gap: 12px; justify-items: start; }
.viewer-body h3 { font-size: clamp(34px, 4vw, 52px); }
.viewer-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
#viewerStory { font-size: 17px; color: var(--ink-soft); white-space: pre-line; max-width: 46em; }

/* before / after slider */
.ba { position: relative; overflow: hidden; user-select: none; touch-action: pan-y; background: #000; }
.ba img { display: block; width: 100%; max-height: 68vh; object-fit: contain; }
.ba .ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split, 50%)); }
.ba .ba-after img { height: 100%; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba-handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-label { position: absolute; top: 12px; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(6,13,41,.75); color: #fff; }
.ba-label.l { left: 12px; } .ba-label.r { right: 64px; background: var(--lime); color: var(--ink); }

/* scene extras */
.bird { animation: flap .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.bird.b2 { animation-duration: .42s; } .bird.b3 { animation-duration: .58s; }
@keyframes flap { to { transform: scaleY(.4); } }
.rays { animation: breathe 5s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.12); } }

@media (max-width: 720px) {
  .lately-head { align-items: start; flex-direction: column; gap: 0; }
  .lately-nav { display: none; }
  .lately-rail { grid-auto-columns: 82%; }
}

/* day captions sit over the bushveld: lift them off it */
.cap-c h2, .cap-c .label, .end-title { text-shadow: 0 2px 22px rgba(255,255,255,.85), 0 0 2px rgba(255,255,255,.6); }
.cap-end .btn-outline { background: rgba(255,255,255,.88); }
.cap-end .btn-outline:hover { background: var(--ink); }


/* =====================================================================
   v3 — polish pass: one rhythm, one type scale, living backgrounds
   ===================================================================== */
:root { --section-y: clamp(88px, 11vw, 168px); }
.quote, .services, .about, .areas, .closing { padding-block: var(--section-y); }
.lately { padding: 0 0 var(--section-y); }
.wrap { position: relative; z-index: 1; }

.section-title, .quote h2.section-title { font-size: clamp(46px, 6.2vw, 96px); line-height: .9; margin-bottom: 24px; }
.section-lede { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; color: var(--ink-soft); max-width: 34em; }
.services .section-title { margin-bottom: clamp(40px, 5vw, 72px); }

/* film grain over everything: the expensive-print feel */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* flowing WebGL colour fields */
.flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }

/* ---------- quote ---------- */
.quote { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky) 0%, var(--sky-pale) 60%, var(--white) 100%); }
.quote::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, var(--white)); z-index: 0; pointer-events: none; }
.quote-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(40px, 6vw, 104px); align-items: start; }
.quote-intro .section-lede { margin-bottom: 8px; }
.steps { margin-top: 32px; }
.steps li { background: rgba(255,255,255,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: rgba(255,255,255,.8); }

.builder {
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px; padding: clamp(20px, 2.6vw, 32px); gap: 20px;
  box-shadow: 0 50px 100px -50px rgba(14,26,61,.45), 0 0 0 1px rgba(14,26,61,.04);
}
.builder::before { content: none; }
.builder-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid rgba(14,26,61,.08); }
.builder-head img { height: 46px; width: auto; flex: none; }
.builder-kicker { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 26px; line-height: 1; color: var(--ink); }
.builder-sub { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.group { border: 0; margin: 0; padding: 0; min-width: 0; }
.group legend, .field > span {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  color: var(--steel); margin-bottom: 10px; padding: 0; display: block;
}
.builder .chips { gap: 7px; }
.builder .chip { padding: 10px 14px; font-size: 14.5px; }
.chip[aria-pressed="true"]::before { content: "✓\00a0"; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input, .field textarea {
  width: 100%; font: 16px var(--body); padding: 13px 15px; border-radius: 12px;
  border: 1.5px solid rgba(14,26,61,.14); background: rgba(255,255,255,.9); color: var(--ink); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(53,145,224,.22); }

.more { border-radius: 14px; background: rgba(234,244,252,.7); border: 1px solid rgba(30,75,172,.12); }
.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 600; color: var(--navy); }
.more summary::-webkit-details-marker { display: none; }
.more summary em { font-style: normal; font-weight: 400; color: var(--steel); }
.plus { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); position: relative; flex: none; transition: transform .3s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: #fff; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.more[open] .plus { transform: rotate(180deg); }
.more[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.more-body { display: grid; gap: 18px; padding: 4px 16px 18px; }
.check { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check span { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(14,26,61,.3); background: #fff; display: grid; place-items: center; flex: none; }
.check input:checked + span { background: var(--navy); border-color: var(--navy); }
.check input:checked + span::after { content: "✓"; color: var(--lime); font-weight: 700; font-size: 14px; }
.check input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }

.preview { background: #EFE7DD; border-radius: 16px; padding: 14px; background-image: radial-gradient(rgba(14,26,61,.05) 1px, transparent 1px); background-size: 14px 14px; }
.preview-label { color: #6B5E4E; }
.bubble {
  position: relative; background: #D9FDD3; color: #111B21; border-radius: 4px 14px 14px 14px; padding: 10px 12px 8px;
  font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0,0,0,.08); max-width: 100%;
}
.bubble::before { content: ""; position: absolute; left: -7px; top: 0; border-width: 0 8px 10px 0; border-style: solid; border-color: transparent #D9FDD3 transparent transparent; }
.bubble strong { font-weight: 700; }
.bubble em { color: #54656F; font-style: italic; }
.builder-actions { display: grid; gap: 10px; }

/* ---------- lately ---------- */
.lately-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.lately-head .section-title { margin-bottom: 0; }
.lately-side { display: grid; justify-items: end; gap: 18px; max-width: 380px; text-align: right; }
.lately-nav { margin: 0; }
.lately-nav[hidden] { display: none; }
.lately-rail { grid-auto-columns: minmax(290px, 380px); align-items: stretch; gap: 20px; padding-bottom: 36px; }
.log-card { height: 100%; }
.log-open { width: 100%; }
.log-body { flex: 1; align-content: start; padding: 20px 22px 24px; }
.log-tags { margin-top: auto; padding-top: 6px; }
.log-cta.wa {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 100%;
  background: var(--navy);
}
.log-cta.wa .flow { z-index: -1; }
.log-cta.wa h3 { font-size: clamp(38px, 3.4vw, 48px); color: #fff; }
.log-cta.wa h3 span { color: var(--lime); }
.log-cta.wa p { color: rgba(255,255,255,.82); font-size: 16px; margin-top: 12px; }
.log-cta .cta-stack { display: grid; gap: 10px; }
.log-cta .btn { justify-content: center; }
.log-cta .fb-link { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); }
.log-cta .fb-link:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- about: slow camera move over golden-hour bushveld ---------- */
.about { background: var(--navy-900); isolation: isolate; }
.about-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.about-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 38s ease-in-out infinite alternate; transform-origin: 70% 60%; }
.about-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,22,64,.95) 0%, rgba(19,34,90,.88) 38%, rgba(30,75,172,.72) 70%, rgba(30,75,172,.55) 100%); }
@keyframes kenburns { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.18) translate(-2.5%, -2%); } }
.about-swoosh { z-index: -1; left: -520px; right: auto; bottom: -470px; width: 1180px; height: 600px; opacity: .9; }
.about-copy p:not(.label) { color: rgba(255,255,255,.9); }
.est { letter-spacing: .32em; }
.since { text-shadow: 0 30px 80px rgba(0,0,0,.35); }

/* ---------- closing: night rain + moving light ---------- */
.closing { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-900); }
.closing-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.closing-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; animation: kenburns 46s ease-in-out infinite alternate-reverse; }
.closing .flow { z-index: -1; opacity: .75; mix-blend-mode: screen; }
.closing .label { color: var(--lime-pale); }
.closing-title { margin-bottom: 22px; }
.facts { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(6,13,41,.45); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 6px 24px; }
.facts > div:last-child { border-bottom: 0; }

/* ---------- footer ---------- */
.foot { background: #040A22; color: rgba(255,255,255,.66); padding: clamp(56px, 7vw, 88px) 0 calc(24px + var(--dock-h)); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr; gap: clamp(28px, 4vw, 56px); }
.foot-logo { height: 64px; width: auto; }
.foot-brand p { margin-top: 16px; max-width: 24em; line-height: 1.6; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col a { color: rgba(255,255,255,.88); text-decoration: none; }
.foot-col a:hover { color: var(--lime); }
.foot-h { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime-pale); margin-bottom: 4px; }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }
.admin-login { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.9); text-decoration: none; font-weight: 600; transition: border-color .2s, color .2s; }
.admin-login svg { width: 15px; height: 15px; }
.admin-login:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .quote-grid { grid-template-columns: 1fr; }
  .builder { max-width: 640px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .lately-head { flex-direction: column; align-items: start; }
  .lately-side { justify-items: start; text-align: left; max-width: none; }
  .about-swoosh { left: auto; right: -560px; bottom: auto; top: -330px; opacity: .55; }
  .about-bg::after { background: linear-gradient(180deg, rgba(11,22,64,.9) 0%, rgba(19,34,90,.88) 50%, rgba(30,75,172,.8) 100%); }
}
@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; }
  .lately-rail { grid-auto-columns: 84%; gap: 14px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-base { flex-direction: column; align-items: start; }
  .facts { padding: 4px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .about-bg img, .closing-bg img { animation: none; }
}

/* v3 audit fixes */
.quote h2.section-title { font-size: clamp(46px, 5.4vw, 84px); }
@media (max-width: 1100px) { .builder { max-width: none; } }
@media (max-width: 900px) { .about-swoosh { top: -470px; right: -600px; opacity: .45; } }
@media (max-width: 520px) {
  .more summary { flex-wrap: wrap; row-gap: 2px; }
  .more summary em { flex-basis: 100%; padding-left: 36px; font-size: 14px; }
}

@media (max-width: 720px) { html { scroll-padding-bottom: 96px; } }

/* =====================================================================
   performance: phones & tablets (html.lite) and everywhere
   ===================================================================== */
/* fixed bars over the moving scene: solid, no live blur */
.top { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11,22,64,.95); }
.dock { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6,13,41,.97); }
.flash { mix-blend-mode: normal; }
/* nothing in the story animates while it's off screen */
.story.is-off *, .story.is-off { animation-play-state: paused !important; }
.about-bg img, .closing-bg img { will-change: transform; }

.lite body::after { display: none; }
.lite .builder, .lite .steps li, .lite .facts, .lite .btn-light {
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.lite .builder { background: rgba(255,255,255,.96); }
.lite .steps li { background: rgba(255,255,255,.88); }
.lite .facts { background: rgba(6,13,41,.72); }
.lite .btn-light { background: rgba(255,255,255,.14); }
.lite .closing .flow { mix-blend-mode: normal; opacity: .4; }

/* =====================================================================
   intro loader: torch-on, silver coat, then the fleet pushes it away
   ===================================================================== */
.loader { display: none; }
html.loading { overflow: hidden; scrollbar-gutter: stable; }
.js.loading .loader, .js .loader.ld-out { display: block; position: fixed; inset: 0; z-index: 200; }
.loader.ld-out { pointer-events: none; }

.ld-curtain {
  position: absolute; inset: 0; will-change: transform;
  background: radial-gradient(120% 90% at 50% 38%, #18307A 0%, var(--navy-900) 58%, #060D29 100%);
}
.ld-stage {
  position: absolute; left: 50%; top: 41%; width: min(540px, 76vw);
  transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 22px;
  animation: ld-in .6s ease-out both;
}
.ld-logo { width: clamp(118px, 24vw, 184px); height: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); }

/* a flat-roofed house, drawn in light lines; the slab is what gets waterproofed */
.ld-house { width: 100%; padding-top: 74px; }
.ld-slab { position: relative; height: 12px; border-radius: 3px; background: #4C566A; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.ld-membrane, .ld-coat { position: absolute; left: -2px; right: -2px; border-radius: 3px; clip-path: inset(0 100% 0 0); }
.ld-membrane { top: -3px; height: 9px; background: repeating-linear-gradient(90deg, #191C23 0 9px, #262A33 9px 11px); }
.ld-coat { top: -4px; height: 10px; background: linear-gradient(180deg, #FFFFFF 0%, #DCE6F1 100%); box-shadow: 0 0 18px rgba(195,238,197,.25); overflow: hidden; }
.ld-coat::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(143,219,92,.7) 50%, transparent 65%) 150% 0 / 250% 100% no-repeat;
  animation: ld-shine 1.4s 3.45s ease-in-out infinite;
}
.ld-walls {
  height: clamp(48px, 9vw, 64px); margin: 0 7%;
  border: 2px solid rgba(255,255,255,.16); border-top: 0; border-radius: 0 0 4px 4px;
  display: flex; justify-content: space-evenly; align-items: center;
}
.ld-win { width: 20%; height: 42%; border: 2px solid rgba(255,255,255,.14); border-radius: 2px; }
.ld-door { width: 13%; height: 70%; align-self: flex-end; border: 2px solid rgba(255,255,255,.14); border-bottom: 0; border-radius: 2px 2px 0 0; }

/* tools ride along the slab: the wrapper spans the slab and slides 0 -> 100% of it */
.ld-tool { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.ld-tool svg { position: absolute; display: block; overflow: visible; }
.ld-torch svg { left: -109.5px; top: -71.6px; }
.ld-flame { transform-box: fill-box; transform-origin: 0% 50%; animation: ld-flame .09s ease-in-out infinite alternate; }
.ld-glow {
  position: absolute; left: -34px; top: -38px; width: 68px; height: 68px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,170,70,.75) 0%, rgba(255,110,30,.25) 45%, rgba(255,110,30,0) 70%);
  animation: ld-pulse .14s ease-in-out infinite alternate;
}
.ld-brush svg { left: -20px; top: -91px; transform-origin: 20px 87px; animation: ld-wiggle .3s ease-in-out infinite alternate; }

.ld-say {
  display: grid; margin: 0; min-height: 1em;
  font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--lime-pale);
}
.ld-say span { grid-area: 1 / 1; text-align: center; opacity: 0; }

/* the Ranger drives in, parks under the house, then drives off and the curtain wipes away behind it.
   --u is one vehicle unit: ~340 px wide on a phone, ~640 px on a desktop */
.loader { --u: clamp(1.15px, .0971vw + .78px, 2.2px); }
.ld-car {
  position: absolute; left: 0; bottom: 10svh; bottom: 10vh;
  display: flex; align-items: flex-end;
  transform: translateX(-110%); will-change: transform;
}
.ld-ranger { width: calc(var(--u) * 292); height: calc(var(--u) * 114); filter: drop-shadow(0 calc(var(--u) * 6) calc(var(--u) * 8) rgba(0,0,0,.4)); }
.ld-wheel { transform-box: fill-box; transform-origin: 50% 50%; }
.ld-lines { display: grid; gap: calc(var(--u) * 8); width: calc(var(--u) * 120); margin-right: calc(var(--u) * -6); align-self: center; opacity: 0; }
.ld-lines i { display: block; height: max(2px, calc(var(--u) * 1.6)); border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.6)); }
.ld-lines i:nth-child(2) { width: 70%; justify-self: end; }
.ld-lines i:nth-child(3) { width: 86%; justify-self: end; }

/* torch-on (0.4-1.9 s), silver coat (2.1-3.4 s), then a shimmer until the site is ready */
.ld-torch { animation: ld-show .3s .25s both, ld-travel 1.5s .4s cubic-bezier(.45,.05,.55,.95) both, ld-hide .25s 1.9s forwards; }
.ld-membrane { animation: ld-reveal 1.5s .4s cubic-bezier(.45,.05,.55,.95) both; }
.ld-brush { animation: ld-show .25s 1.9s both, ld-travel 1.3s 2.1s cubic-bezier(.45,.05,.55,.95) both, ld-hide .25s 3.4s forwards; }
.ld-coat { animation: ld-reveal 1.3s 2.1s cubic-bezier(.45,.05,.55,.95) both; }
.ld-say span:nth-child(1) { animation: ld-cap 1.75s .3s both; }
.ld-say span:nth-child(2) { animation: ld-cap 1.5s 2s both; }
.ld-say span:nth-child(3) { animation: ld-up .35s 3.5s both; }

/* exit, 2.7 s: drive in 0-1.2 s, parked 1.2-1.6 s, drive off + wipe 1.6-2.7 s */
.ld-out .ld-car { animation: ld-drive-in 1.2s cubic-bezier(.2,.65,.3,1) both, ld-drive-off 1.1s 1.6s cubic-bezier(.6,0,.8,.6) forwards; }
.ld-out .ld-wheel { animation: ld-roll-in 1.2s cubic-bezier(.2,.65,.3,1) both, ld-roll-off 1.1s 1.6s cubic-bezier(.6,0,.8,.6) forwards; }
.ld-out .ld-ranger { animation: ld-park .45s 1.15s ease-out both; }
.ld-out .ld-lines { animation: ld-lines 2.7s linear both; }
.ld-out .ld-curtain { animation: ld-wipe 1.1s 1.7s cubic-bezier(.6,0,.8,.6) forwards; }

@keyframes ld-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); } }
@keyframes ld-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes ld-hide { to { opacity: 0; } }
@keyframes ld-travel { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes ld-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ld-flame { from { transform: scale(.84, .9); } to { transform: scale(1.08, 1.04); } }
@keyframes ld-pulse { from { opacity: .7; transform: scale(.92); } to { opacity: 1; transform: scale(1.08); } }
@keyframes ld-wiggle { from { transform: rotate(12deg); } to { transform: rotate(26deg); } }
@keyframes ld-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes ld-cap { 0% { opacity: 0; transform: translateY(6px); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes ld-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ld-drive-in { from { transform: translateX(-110%); } to { transform: translateX(calc(50vw - 50% - var(--u) * 50)); } }
@keyframes ld-drive-off { from { transform: translateX(calc(50vw - 50% - var(--u) * 50)); } to { transform: translateX(calc(100vw + 10%)); } }
@keyframes ld-roll-in { from { transform: rotate(-1080deg); } to { transform: rotate(0deg); } }
@keyframes ld-roll-off { from { transform: rotate(0deg); } to { transform: rotate(1440deg); } }
@keyframes ld-park { 0%, 100% { transform: none; } 35% { transform: translateY(calc(var(--u) * 2)) rotate(.6deg); } }
@keyframes ld-lines { 0%, 30% { opacity: .9; } 44%, 60% { opacity: 0; } 72%, 100% { opacity: .9; } }
@keyframes ld-wipe { to { transform: translateX(100%); } }
@keyframes ld-spin { to { transform: rotate(360deg); } }

/* reduced motion: a still, finished roof that simply fades */
@media (prefers-reduced-motion: reduce) {
  .ld-tool, .ld-car { display: none; }
  .ld-membrane, .ld-coat { clip-path: none; }
  .ld-say span:nth-child(3) { opacity: 1; }
  .loader.ld-out { opacity: 0; }
}

/* =====================================================================
   story guide: tells people to scroll, shows how far along they are,
   and moves the story on when tapped
   ===================================================================== */
.guide {
  position: absolute; z-index: 6; left: var(--gutter); bottom: clamp(18px, 3.5vh, 32px);
  display: flex; align-items: center; gap: 14px;
  width: min(390px, calc(100vw - 24px));
  padding: 10px 20px 10px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--navy-900); text-align: left;
  font: 700 17px/1.2 var(--body);
  box-shadow: 0 14px 40px rgba(0,0,0,.35), 0 0 0 4px rgba(143,219,92,.4);
  opacity: 0; visibility: hidden; translate: 0 24px;
  transition: opacity .5s, translate .6s cubic-bezier(.2,.8,.2,1), visibility 0s .5s;
}
.guide.is-on { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .5s, translate .6s cubic-bezier(.2,.8,.2,1); }
.guide-arrow { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.guide-arrow svg { width: 26px; height: 26px; fill: none; stroke: var(--navy-900); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: guide-bob 1.3s ease-in-out infinite; }
.guide-body { flex: 1; display: grid; gap: 8px; min-width: 0; }
.guide-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.guide-pct { flex: none; font: 500 13px/1 var(--mono); color: var(--navy); }
.guide-track { height: 7px; border-radius: 7px; background: #E2E9F4; overflow: hidden; }
.guide-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--roof), var(--lime)); transform-origin: left; transform: scaleX(0); }
.guide:hover .guide-arrow { background: #A3E676; }
.guide:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.guide.nudge { animation: guide-nudge 1.1s ease-in-out 2; }
@keyframes guide-bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@keyframes guide-nudge { 0%, 40%, 70%, 100% { transform: none; } 20% { transform: translateY(-12px); } 55% { transform: translateY(-5px); } }

/* phones and tablets: centred above the WhatsApp/Call bar */
@media (max-width: 1023px) {
  .guide { left: 50%; margin-left: calc(min(390px, 100vw - 24px) / -2); bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 12px); }
}
@media (max-width: 720px) {
  .guide { font-size: 16px; gap: 12px; padding: 8px 16px 8px 8px; }
  .guide-arrow { width: 44px; height: 44px; }
}

/* intro loading bar */
.ld-load { display: flex; align-items: center; gap: 12px; width: min(300px, 74%); margin-top: -6px; }
.ld-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); overflow: hidden; }
.ld-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--roof), var(--lime)); transform-origin: left; transform: scaleX(0); }
.ld-pct { min-width: 3.4em; text-align: right; font: 500 12px/1 var(--mono); color: var(--lime-pale); }
