/* Tri-City Lighting
   Christmas in the 90s and early 2000s: a candlelit night, pine green and cranberry,
   classic coloured C9s glowing on every section. The light is the iridescent part
   (halos, bokeh, the shine on the glass); the type stays solid and warm. */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-full-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-full-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("fonts/libre-franklin-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* night and the two Christmas colours */
  --night: #140b07;
  --night-2: #1f120b;
  --pine: #11301f;
  --pine-2: #18402a;
  --cranberry: #9c1c22;
  --cranberry-deep: #6c1117;
  /* the light */
  --gold: #f6b843;
  --gold-hi: #ffd27a;
  --amber: #ea8a2b;
  --cream: #f8e8c9;
  --cream-2: #e8d2ad;
  --snow: #f3ece0;
  --on-gold: #2b1606;

  --display: "Fraunces", "Cooper Black", Georgia, serif;
  --text: "Libre Franklin", "Franklin Gothic Book", Arial, sans-serif;

  --step-small: clamp(0.875rem, 0.84rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.75rem);
  --step-sub: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  --step-display: clamp(3.75rem, 1rem + 9vw, 10.5rem);

  --m: 24px;
  --radius: 8px;
  --section: clamp(80px, 9vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--cream);
  font-family: var(--text); font-size: var(--step-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a, button, label, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--on-gold); }

/* Warm vintage serif, soft and a little wonky, like an old holiday card */
h1, h2, h3, .when, .signoff, .price {
  font-family: var(--display); font-weight: 650;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  letter-spacing: -0.015em; line-height: 1; text-wrap: balance;
}
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); line-height: 1.15; font-weight: 600; }

.wrap { padding-inline: max(var(--m), env(safe-area-inset-left)) max(var(--m), env(safe-area-inset-right)); max-width: 1500px; margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: 12px; z-index: 30; background: var(--gold); color: var(--on-gold); padding: 10px 16px; text-decoration: none; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { clip-path: none; width: auto; height: auto; }
section[id] { scroll-margin-top: 0; }

/* ---------- C9 bulbs ---------- */
.strand { display: block; width: 100%; overflow: visible; }
.strand .wire { fill: none; stroke: #1c2a1a; stroke-width: 3.2; stroke-linejoin: round; }
.bulb .halo { mix-blend-mode: screen; }
.strand .bulb .halo { animation: twinkle 3.4s ease-in-out infinite; }
.strand .bulb:nth-child(4n+2) .halo { animation-delay: -1.1s; animation-duration: 4.1s; }
.strand .bulb:nth-child(4n+3) .halo { animation-delay: -2.3s; animation-duration: 3s; }
.strand .bulb:nth-child(4n) .halo { animation-delay: -.6s; animation-duration: 4.6s; }
@keyframes twinkle { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

/* ---------- Buttons: glossy gold, a tinsel shine on hover ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 0 30px; border: 0; border-radius: var(--radius); cursor: pointer;
  font-family: var(--text); font-weight: 700; font-size: var(--step-body); text-decoration: none;
  transition: transform .18s var(--ease), background-color .2s var(--ease), box-shadow .3s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 48%, rgba(255,250,220,.15) 56%, transparent 70%); /* taste-skill-ignore: tinsel shine requested in the brief */
  transition: transform .7s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(120%); }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 0 0 0 rgba(246,184,67,0); } /* taste-skill-ignore: warm light from the brief */
.btn-gold:hover { background: var(--gold-hi); box-shadow: 0 0 34px 2px rgba(246,184,67,.45); } /* taste-skill-ignore: a lit button glows */
.btn-cream { background: var(--cream); color: var(--cranberry-deep); }
.btn-cream:hover { background: #fff6e2; box-shadow: 0 0 30px 2px rgba(255,236,200,.35); } /* taste-skill-ignore: a lit button glows */

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(100svh, 680px); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; background: var(--night); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -3; animation: settle 9s var(--ease) both; }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
/* warm scrim so the type reads; candlelight from the lower left */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(20,11,7,.92) 0%, rgba(20,11,7,.7) 38%, rgba(20,11,7,0) 70%), /* taste-skill-ignore: warm light from the brief */
    linear-gradient(180deg, rgba(20,11,7,.55) 0%, rgba(20,11,7,0) 22%); /* taste-skill-ignore: neutral scrim over the photo */
}
.bokeh { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bokeh i {
  position: absolute; border-radius: 50%; mix-blend-mode: screen; opacity: .55;
  background: radial-gradient(circle, var(--c, #f6b843) 0%, transparent 68%); /* taste-skill-ignore: out-of-focus light */
  animation: drift var(--t, 18s) ease-in-out infinite alternate;
}
.bokeh i:nth-child(1) { --c: #f6b843; width: 180px; height: 180px; left: 62%; top: 18%; --t: 16s; }
.bokeh i:nth-child(2) { --c: #e8352c; width: 120px; height: 120px; left: 78%; top: 52%; --t: 21s; }
.bokeh i:nth-child(3) { --c: #2fa654; width: 90px; height: 90px; left: 48%; top: 64%; --t: 19s; }
.bokeh i:nth-child(4) { --c: #f2892a; width: 220px; height: 220px; left: 86%; top: 8%; --t: 24s; opacity: .4; }
.bokeh i:nth-child(5) { --c: #3c7fe0; width: 70px; height: 70px; left: 70%; top: 76%; --t: 17s; }
.bokeh i:nth-child(6) { --c: #fff1cf; width: 60px; height: 60px; left: 56%; top: 34%; --t: 14s; }
.bokeh i:nth-child(7) { --c: #f6b843; width: 110px; height: 110px; left: 92%; top: 70%; --t: 20s; }
.bokeh i:nth-child(8) { --c: #e8352c; width: 54px; height: 54px; left: 38%; top: 22%; --t: 15s; opacity: .35; }
.bokeh i:nth-child(9) { --c: #f2892a; width: 140px; height: 140px; left: 30%; top: 82%; --t: 23s; opacity: .3; }
.bokeh i:nth-child(10) { --c: #fff1cf; width: 40px; height: 40px; left: 82%; top: 36%; --t: 13s; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-26px, 18px); } }

.hero-strand { position: absolute; top: 0; left: 0; right: 0; height: 120px; z-index: 1; }
.topbar {
  position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: max(96px, calc(env(safe-area-inset-top) + 88px)) max(var(--m), env(safe-area-inset-right)) 0 max(var(--m), env(safe-area-inset-left));
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; font-weight: 600; font-size: var(--step-lead); text-decoration: none; }
.wordmark img { width: 92px; height: auto; display: block; }
.toplinks { display: flex; gap: 28px; font-weight: 600; }
.toplinks a { padding: 6px 0; text-decoration: underline transparent; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-decoration-color .2s var(--ease); }
.toplinks a:hover, .toplinks a:focus-visible { text-decoration-color: var(--gold); }

.hero-copy { margin-top: auto; padding: 0 max(var(--m), env(safe-area-inset-right)) clamp(48px, 9vh, 96px) max(var(--m), env(safe-area-inset-left)); max-width: 1100px; display: grid; gap: 26px; justify-items: start; }
.hero h1.hero-logo { margin: 0; line-height: 0; font-size: 1rem; }
.hero-logo img { width: clamp(300px, 42vw, 620px); height: auto; filter: drop-shadow(0 2px 18px rgba(20, 11, 7, .7)) drop-shadow(0 0 40px rgba(246, 184, 67, .22)); } /* taste-skill-ignore: warm glow */
.hero-sub { font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; color: var(--cream); }

/* ---------- How it works: one strand runs down the season ---------- */
.how { position: relative; padding-block: var(--section); background: var(--night); }
.how-head { display: grid; gap: 18px; margin-bottom: clamp(48px, 6vw, 88px); }
.how-head h2 { max-width: 14ch; }
.how-head p { max-width: 44ch; color: var(--cream-2); font-size: var(--step-lead); line-height: 1.4; }
.steps { position: relative; display: grid; gap: clamp(40px, 5vw, 80px); }
.steps::before { /* the wire */
  content: ""; position: absolute; top: 20px; bottom: 40px; left: calc(max(var(--m), env(safe-area-inset-left)) + 59px); width: 4px; border-radius: 2px; background: #2a3a25;
}
.step { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 clamp(20px, 4vw, 64px); align-items: start; }
.step-bulb { width: 120px; height: 150px; overflow: visible; }
.step-bulb .bulb use { transition: opacity .6s var(--ease); opacity: .35; }
.step-bulb .halo { opacity: 0; transition: opacity .8s var(--ease); }
.step.lit .step-bulb .bulb use { opacity: 1; }
.step.lit .step-bulb .halo { opacity: 1; animation: twinkle 3.4s ease-in-out infinite; }
.step-text { display: grid; gap: 12px; padding-top: 30px; max-width: 46ch; }
.when { font-style: italic; font-weight: 500; font-size: var(--step-head); color: var(--gold); line-height: 1; }
.step h3 { font-size: var(--step-lead); color: var(--cream); }
.step-text p:not(.when):not(.dusk) { color: var(--cream-2); }
.dusk { margin-top: 6px; padding: 14px 18px; border-radius: var(--radius); background: var(--night-2); color: var(--gold-hi); font-weight: 600; font-variant-numeric: tabular-nums; }

/* steps alternate sides on wide screens, the strand stays put */
@media (min-width: 1025px) {
  .steps::before { left: 50%; transform: translateX(-2px); }
  .step { grid-template-columns: 1fr 160px 1fr; }
  .step-bulb { grid-column: 2; justify-self: center; }
  .step-text { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; }
  .step:nth-child(even) .step-text { grid-column: 3; justify-self: start; text-align: left; }
  .step-text .dusk { justify-self: end; }
  .step-photo { grid-column: 3; grid-row: 1; justify-self: start; }
  .step:nth-child(even) .step-photo { grid-column: 1; justify-self: end; }
}
.step-photo { width: min(100%, 440px); aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; margin-top: 18px; opacity: .55; filter: saturate(.7) brightness(.8); transition: opacity .8s var(--ease), filter .8s var(--ease); }
.step-photo img { width: 100%; height: 100%; object-fit: cover; }
.step.lit .step-photo { opacity: 1; filter: none; }

/* ---------- Big trees ---------- */
.trees { background: var(--pine); padding-block: var(--section); }
.trees-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 20px; align-items: stretch; }
.trees-text { grid-column: 1 / span 4; grid-row: 1 / span 2; align-self: center; display: grid; gap: 22px; justify-items: start; padding-right: 8px; }
.trees-text p { color: var(--cream-2); max-width: 40ch; }
.tree-big { grid-column: 5 / span 5; grid-row: 1 / span 2; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.tree-small { grid-column: 10 / span 3; border-radius: var(--radius); overflow: hidden; }
.tree-a { grid-row: 1; } .tree-b { grid-row: 2; }
.trees img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.trees figure:hover img { transform: scale(1.03); }

.facts { display: grid; gap: 10px; }
.facts li { position: relative; padding-left: 30px; }
.facts li::before {
  content: ""; position: absolute; left: 4px; top: .2em; width: 13px; height: 22px; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 34'%3E%3Cpath d='M10 0C4.5 4.5 2 11 4.6 17.2c.7 1.6 1.6 2.6 2.4 3.3h6c.8-.7 1.7-1.7 2.4-3.3C18 11 15.5 4.5 10 0zM6.4 20.3h7.2v6H6.4zM5.6 26.2h8.8V34H5.6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 34'%3E%3Cpath d='M10 0C4.5 4.5 2 11 4.6 17.2c.7 1.6 1.6 2.6 2.4 3.3h6c.8-.7 1.7-1.7 2.4-3.3C18 11 15.5 4.5 10 0zM6.4 20.3h7.2v6H6.4zM5.6 26.2h8.8V34H5.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.facts li:nth-child(4n+1)::before { background: #e8352c; }
.facts li:nth-child(4n+2)::before { background: #2fa654; }
.facts li:nth-child(4n+3)::before { background: var(--gold); }
.facts li:nth-child(4n)::before { background: #3c7fe0; }
.trees .facts li:nth-child(4n+2)::before { background: #4cc272; }

/* ---------- Rooflines ---------- */
.roof { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--night); }
.roof-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.roof-grid { position: relative; width: 100%; display: grid; grid-template-columns: repeat(12, 1fr); }
.roof-card {
  grid-column: 1 / span 4; background: var(--cranberry); border-radius: var(--radius);
  padding: 34px 30px 30px; display: grid; gap: 16px; justify-items: start; max-width: 460px;
}
.roof-card h2 { font-size: var(--step-sub); }
.roof-card p { color: var(--cream); }
.pick { font-weight: 700; color: var(--gold-hi) !important; }
.roof-card-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.roof-card .btn { width: 100%; }

/* ---------- Divider strand ---------- */
.divider { height: 110px; background: var(--night); }

/* ---------- Prices ---------- */
.prices { background: var(--night); padding-bottom: var(--section); }
.prices-head { padding-bottom: 36px; }
.plans { display: grid; grid-template-columns: 7fr 5fr; }
.plan { padding: clamp(32px, 4vw, 56px) max(clamp(24px, 4vw, 56px), env(safe-area-inset-right)) clamp(32px, 4vw, 56px) max(clamp(24px, 4vw, 56px), env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 20px; align-items: flex-start; min-height: 560px; }
.plan-lease { background: var(--pine); }
.plan-photo { border-radius: 0; overflow: hidden; min-height: 100%; }
.plan-photo img { width: 100%; height: 100%; object-fit: cover; }
.plan h3 { font-size: var(--step-sub); }
.plan .who { font-size: var(--step-lead); line-height: 1.4; max-width: 28ch; }
.plan .facts { margin-bottom: auto; padding-bottom: 12px; }
.price { font-size: var(--step-sub); color: var(--gold); }

/* ---------- Questions ---------- */
.faq { background: var(--pine); padding-block: var(--section); }
.faq-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: start; }
.faq-grid h2 { grid-column: 1 / span 4; position: sticky; top: 40px; }
.faq-list { grid-column: 5 / span 8; display: grid; gap: 10px; }
.qa { background: var(--pine-2); border-radius: var(--radius); padding: 26px 28px; display: grid; gap: 10px; }
.qa p { color: var(--cream-2); max-width: 60ch; }

/* ---------- Quote ticket ---------- */
.quote { background: var(--night); padding-block: var(--section); overflow: clip; }
.ticket {
  --notch: 28px; --cut: 40%;
  position: relative; margin-inline: auto; width: min(100%, 1240px);
  display: grid; grid-template-columns: 40% 60%;
  background: var(--cranberry); border-radius: var(--radius);
  box-shadow: 0 0 120px -20px rgba(234,138,43,.35); /* taste-skill-ignore: warm light behind the ticket */
}
.notch { position: absolute; width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); border-radius: 50%; background: var(--night); left: var(--cut); transform: translate(-50%, -50%); }
.notch-a { top: 0; } .notch-b { top: 100%; }
.ticket::before { content: ""; position: absolute; left: var(--cut); top: 44px; bottom: 44px; border-left: 6px dotted var(--night); transform: translateX(-3px); }
.stub { padding: 56px 48px; display: flex; flex-direction: column; gap: 20px; }
.stub h2 { max-width: 8ch; font-size: var(--step-head); }
.stub p { max-width: 32ch; }
.stub-phone { color: var(--gold-hi); font-weight: 700; white-space: nowrap; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.stub-phone:hover { color: var(--cream); }
.fields { padding: 48px 48px 48px 60px; display: grid; gap: 10px; align-content: start; }
.ticket textarea { width: 100%; min-height: 120px; padding: 14px 16px; border: 0; border-radius: 6px; background-color: var(--cream); color: var(--night); font-size: var(--step-body); resize: vertical; }
.ticket textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 0; }
.ticket input[type="text"], .ticket input[type="email"], .ticket input[type="tel"], .ticket select {
  width: 100%; height: 56px; padding: 0 16px; border: 0; border-radius: 6px;
  background-color: var(--cream); color: var(--night); font-size: var(--step-body);
}
.ticket select { appearance: none; cursor: pointer; }
.ticket ::placeholder { color: #6a5440; opacity: 1; }
.ticket input:focus-visible, .ticket select:focus-visible { outline: 3px solid var(--gold); outline-offset: 0; }
.choices { border: 0; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.choices legend { padding: 0; margin-bottom: 4px; font-weight: 700; }
.choices label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 40px; }
.choices input { width: 20px; height: 20px; accent-color: var(--gold); }
.submit { margin-top: 14px; width: 100%; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer: light spilling onto snow ---------- */
.foot { position: relative; background: var(--night); color: var(--night); padding-bottom: 28px; overflow: hidden; }
.foot-strand { position: relative; z-index: 2; height: 120px; }
.snow {
  position: absolute; left: 0; right: 0; top: 70px; bottom: 0; z-index: 0;
  background:
    radial-gradient(60px 40px at 7% 0%, rgba(232,53,44,.35), transparent 70%), /* taste-skill-ignore: warm light from the brief */
    radial-gradient(70px 44px at 22% 0%, rgba(246,184,67,.45), transparent 70%), /* taste-skill-ignore: warm light from the brief */
    radial-gradient(60px 40px at 38% 0%, rgba(47,166,84,.3), transparent 70%), /* taste-skill-ignore: warm light from the brief */
    radial-gradient(80px 48px at 55% 0%, rgba(242,137,42,.45), transparent 70%), /* taste-skill-ignore: warm light from the brief */
    radial-gradient(60px 40px at 71% 0%, rgba(60,127,224,.3), transparent 70%), /* taste-skill-ignore: warm light from the brief */
    radial-gradient(80px 48px at 88% 0%, rgba(246,184,67,.45), transparent 70%), /* taste-skill-ignore: warm light from the brief */
    var(--snow); /* taste-skill-ignore: coloured light falling on snow, from the brief */
  border-radius: 50% 50% 0 0 / 60px 60px 0 0;
}
.foot-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 48px; }
.foot-logo { display: block; margin-bottom: 18px; }
.foot-logo img { width: clamp(200px, 22vw, 300px); height: auto; }
.foot-grid p { max-width: 40ch; }
.addr { display: grid; gap: 10px; align-self: end; justify-self: end; font-size: var(--step-lead); line-height: 1.25; }
.addr a { text-decoration: none; font-weight: 600; }
.addr a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; color: var(--cranberry); }
.imprint { position: relative; z-index: 1; margin-top: 48px; font-size: var(--step-small); }

/* ---------- Motion ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo, .bokeh i, .strand .bulb .halo, .step.lit .step-bulb .halo { animation: none; }
  .js .rv { transform: none; transition: opacity .3s linear; }
  .trees figure:hover img { transform: none; }
  .btn::after { display: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .toplinks { gap: 18px; font-size: var(--step-small); }
  .trees-grid { grid-template-columns: repeat(6, 1fr); }
  .trees-text { grid-column: 1 / -1; grid-row: 1; margin-bottom: 20px; padding-right: 0; }
  .tree-big { grid-column: 1 / span 4; grid-row: 2 / span 2; }
  .tree-small { grid-column: 5 / span 2; }
  .tree-a { grid-row: 2; } .tree-b { grid-row: 3; }
  .roof-card { grid-column: 1 / span 7; }
  .plans { grid-template-columns: 1fr; }
  .plan-photo { aspect-ratio: 4 / 3; }
  .plan { min-height: 0; }
  .faq-grid h2 { grid-column: 1 / -1; position: static; }
  .step-photo { grid-column: 2; }
  .faq-list { grid-column: 1 / -1; }
  .ticket { grid-template-columns: 1fr; --cut: 50%; }
  .notch { top: var(--hcut, 34%) !important; }
  .notch-a { left: 0; } .notch-b { left: 100%; }
  .ticket::before { left: 40px; right: 40px; top: var(--hcut, 34%); bottom: auto; border-left: 0; border-top: 6px dotted var(--night); transform: translateY(-3px); }
  .stub { padding: 44px 40px 52px; }
  .fields { padding: 48px 40px 40px; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  :root { --m: 16px; }
  .toplinks { display: none; }
  .topbar { padding-top: max(86px, calc(env(safe-area-inset-top) + 80px)); }
  .hero-strand, .foot-strand { height: 84px; }
  .hero-logo img { width: 78vw; }
  .wordmark span { display: none; }
  .wordmark img { width: 84px; }
  .hero-copy { gap: 20px; }
  .hero-copy .btn { width: 100%; }
  .bokeh i:nth-child(n+6) { display: none; }
  .steps::before { left: calc(max(var(--m), env(safe-area-inset-left)) + 35px); }
  .step { grid-template-columns: 72px minmax(0, 1fr); gap: 0 14px; }
  .step-bulb { width: 72px; height: 96px; }
  .step-text { padding-top: 10px; }
  .step-photo { grid-column: 2; margin-top: 14px; }
  .when { font-size: 2rem; }
  .trees-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tree-big { grid-column: 1 / -1; grid-row: 2; }
  .tree-a { grid-column: 1; grid-row: 3; aspect-ratio: 1; } .tree-b { grid-column: 2; grid-row: 3; aspect-ratio: 1; }
  .roof { min-height: 0; flex-direction: column; align-items: stretch; }
  .roof-photo { position: relative; height: 62svh; }
  .roof-grid { display: block; padding-inline: 12px; margin-top: -72px; padding-bottom: 12px; }
  .roof-card { max-width: none; padding: 26px 20px 20px; }
  .plan { padding: 32px 20px; }
  .qa { padding: 20px; }
  .quote .wrap { padding-inline: 12px; }
  .stub { padding: 36px 20px 48px; }
  .fields { padding: 44px 20px 28px; }
  .ticket::before { left: 20px; right: 20px; }
  .foot-grid { grid-template-columns: 1fr; }
  .addr { justify-self: start; font-size: var(--step-body); }
}
