/* Sun View Auto Glass homepage: "Golden Hour" layer (2026-11-23, user: "looks very basic, enhance the homepage").
   Homepage only (loaded via $PAGE['css']). Same Circle Plan world; adds the hero's grot x serif collision to every
   section heading, a sun ticker that crosses the intro/why fold, outlined section numerals, membership-card "why"
   tiles with a sun spotlight, a night-drive process band with a glowing road, ambient glows + grain.
   Contrast (computed): sun-ink on paper 6.02, on white 6.38; sun-tint on cobalt 5.50, on night 12.76;
   muted #b8c2d9 on night 10.37; ink on sun 7.07; cobalt-d on sun 5.14. */

:root { --night: #0d1322; }

/* ---------- material: grain + ambient glows ---------- */
body.home::before { content: ""; position: fixed; inset: 0; z-index: 998; pointer-events: none; opacity: .45; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"); }
.home .why { background: radial-gradient(900px 620px at 104% -6%, rgba(255, 178, 46, .16), transparent 62%), radial-gradient(700px 520px at -10% 100%, rgba(23, 71, 184, .07), transparent 60%); }
.home .area { background: radial-gradient(820px 600px at 0% 0%, rgba(23, 71, 184, .08), transparent 60%), radial-gradient(760px 560px at 100% 100%, rgba(255, 178, 46, .12), transparent 62%); }
.home .cost { background: radial-gradient(760px 540px at 100% 10%, rgba(255, 178, 46, .13), transparent 62%); }

/* ---------- headings: the hero's collision, repeated as a system ---------- */
.h2 .ser { font: italic 500 1.04em/1 var(--f-ser); letter-spacing: -.012em; color: var(--sun-ink); }
.mob .h2 .ser { color: var(--sun-tint); }

/* ---------- outlined section numerals ---------- */
/* only where the top-right of the section is open (services, process, areas); the number is the section's place on the page */
.home .sec[data-n] { position: relative; isolation: isolate; }
.home .sec[data-n]::before { content: attr(data-n); position: absolute; z-index: -1; pointer-events: none;
  top: clamp(30px, 5vw, 64px); right: max(var(--gut), calc((100% - 1240px) / 2 + var(--gut)));
  font: 900 clamp(104px, 15vw, 228px)/.8 var(--f-disp); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(23, 71, 184, .14); }

/* ---------- sun ticker: crosses the intro -> why fold ---------- */
.tick-band { position: relative; z-index: 3; margin: -6px -3vw -10px; padding: 17px 0; background: var(--sun); border-block: 2px solid var(--ink); transform: rotate(-1.4deg); overflow: hidden; box-shadow: 0 18px 40px -26px rgba(156, 70, 0, .7); }
.tick-track { display: flex; width: max-content; animation: marq 46s linear infinite; }
.tick-band:hover .tick-track { animation-play-state: paused; }
.tick-set { display: flex; align-items: center; gap: 26px; padding-right: 26px; }
.tk-g { font: 800 clamp(21px, 2.5vw, 32px)/1.1 var(--f-disp); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.tk-s { font: italic 500 clamp(23px, 2.7vw, 35px)/1.1 var(--f-ser); color: var(--cobalt-d); white-space: nowrap; }
.tk-dot { flex: none; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--ink); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- hero: a soft sun follows the pointer (fine pointers only; JS writes --gx/--gy) ---------- */
.hero { position: relative; isolation: isolate; }
.hero-glow { position: absolute; left: 0; top: 0; width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 178, 46, .26), rgba(255, 178, 46, .08) 42%, transparent 68%); opacity: 0; translate: var(--gx, 50vw) var(--gy, 40%); transition: opacity .6s var(--ease); will-change: translate; }
.hero.glow-on .hero-glow { opacity: 1; }

/* ---------- why: membership-card tiles with a sun spotlight ---------- */
.home .why-list { border-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home .why-item { display: block; position: relative; isolation: isolate; overflow: hidden; padding: 26px 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 1px 0 rgba(20, 26, 38, .04); transition: transform .5s var(--ease), border-color .25s var(--ease), opacity 1s var(--ease); }
.home .why-item::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 178, 46, .3), transparent 72%); }
.home .why-item::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; opacity: 0; box-shadow: 0 34px 60px -30px rgba(13, 44, 122, .45); transition: opacity .5s var(--ease); }
.home .why-item .why-n { display: block; margin-bottom: 18px; font-size: 54px; }
.home .why-item:nth-child(2n) { transition-delay: .06s; }
@media (hover: hover) {
  .home .why-item:hover { transform: translateY(-6px); border-color: rgba(245, 138, 7, .55); }
  .home .why-item:hover::before, .home .why-item:hover::after { opacity: 1; }
}

/* ---------- services: the row being read wears a sun edge ---------- */
.home .svc-row.on { box-shadow: inset 3px 0 0 var(--sun); }
.home .svc-row.on .svc-body .h3 { color: var(--cobalt-d); }

/* ---------- process: the night drive ---------- */
.home .pro { --band: var(--night); background:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255, 255, 255, .55), transparent 60%), radial-gradient(1.2px 1.2px at 32% 68%, rgba(255, 255, 255, .4), transparent 60%),
    radial-gradient(1.6px 1.6px at 56% 14%, rgba(255, 255, 255, .5), transparent 60%), radial-gradient(1.2px 1.2px at 78% 40%, rgba(255, 255, 255, .45), transparent 60%),
    radial-gradient(1.4px 1.4px at 90% 80%, rgba(255, 255, 255, .4), transparent 60%), radial-gradient(1.2px 1.2px at 44% 90%, rgba(255, 255, 255, .35), transparent 60%),
    radial-gradient(900px 520px at 88% -10%, rgba(245, 138, 7, .2), transparent 60%), radial-gradient(800px 520px at -6% 110%, rgba(23, 71, 184, .45), transparent 60%), var(--night);
  color: #e9edf7; border-top: 0; }
.home .pro[data-n]::before { -webkit-text-stroke-color: rgba(255, 255, 255, .09); }
.home .pro .label { color: var(--sun-tint); }
.home .pro .h2, .home .pro .step .h3 { color: #fff; }
.home .pro .h2 .ser { color: var(--sun-tint); }
.home .pro .sec-lead, .home .pro .step p { color: #b8c2d9; }
.home .pro a { color: var(--sun-tint); }
.home .pro .step .stop { box-shadow: 0 0 0 8px var(--night), 0 0 0 9.5px rgba(255, 178, 46, .5), 0 0 36px 6px rgba(245, 138, 7, .3); }
.home .pro .route-line .rl-bg { stroke: rgba(255, 178, 46, .28); }
.home .pro .route-line .rl-fg { filter: drop-shadow(0 0 5px rgba(245, 138, 7, .85)); }
.home .pro .route-van { box-shadow: 0 0 0 4px var(--night), 0 0 0 6px var(--sun), 0 0 22px 4px rgba(255, 178, 46, .7); background: var(--sun-2); }
.home .pro + .ins { border-top: 0; }

/* ---------- trust logos: lift on hover ---------- */
.home .ins-logo { transition: transform .45s var(--ease), box-shadow .25s var(--ease); }
@media (hover: hover) { .home .ins-logo:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(245, 138, 7, .6), 0 22px 40px -24px rgba(13, 44, 122, .45); } }

/* ---------- narrow ---------- */
@media (max-width: 640px) {
  .home .why-list { grid-template-columns: minmax(0, 1fr); }
  .home .sec[data-n]::before { font-size: 96px; top: 26px; }
  .tick-band { transform: rotate(-2deg); padding: 13px 0; }
}

/* ---------- reduced motion: same page, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .tick-track { animation: none; }
  .hero-glow { display: none; }
  .home .why-item { transition: none; }
}
