/* =========================================================
   Johnny Hotdog Web Co. — homepage showpiece
   Loaded only on index.html, scoped to body.home
   ========================================================= */

.home {
  --hbg: #0d0d0c;
  --hcard: #171715;
  --hline: rgba(255,255,255,.09);
  --htext: #f3f1ec;
  --hmuted: #a29e94;
  background: var(--hbg);
  color: var(--htext);
}

/* ---------- Nav on dark ---------- */
.home .nav { background: rgba(13,13,12,.72); border-bottom-color: var(--hline); }
.home .brand__name { color: #fff; }
.home .brand__sub { color: var(--hmuted); border-color: rgba(255,255,255,.18); }
.home .nav__menu a:not(.btn) { color: var(--hmuted); }
.home .nav__menu a:not(.btn):hover { color: #fff; }
.home .nav__menu .btn { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.home .nav__toggle span { background: #fff; }
.home .progress { height: 2px; }
@media (max-width: 900px) {
  .home .nav__menu { background: var(--hbg); border-bottom-color: var(--hline); }
  .home .nav__menu a:not(.btn) { color: #fff; border-bottom-color: var(--hline); }
}

/* ---------- Shared bits ---------- */
.h-kicker {
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px;
}
.h-kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.h-h2 {
  font-size: clamp(38px, 5.6vw, 76px); font-weight: 800; letter-spacing: -0.045em; line-height: .98;
  color: #fff; margin: 0;
}
.h-head { max-width: 860px; margin-bottom: 56px; }
.h-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.h-link { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.h-link::after { content: "\2192"; color: var(--accent); transition: transform .25s; }
.h-link:hover::after { transform: translateX(5px); }
.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--line:hover { border-color: #fff; box-shadow: none; }
.btn--line-dark { background: transparent; color: var(--ink); border-color: rgba(17,17,16,.25); }
.btn--line-dark:hover { border-color: var(--ink); box-shadow: none; }
.home .section { padding: 120px 0; }

/* ---------- Hero ---------- */
.h-hero {
  position: relative; overflow: clip; isolation: isolate;
  min-height: calc(100svh - 68px); display: flex; align-items: center;
  padding: 72px 0 96px;
}
.h-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(700px 480px at 85% 20%, rgba(242,183,5,.16), transparent 65%),
    radial-gradient(600px 420px at 0% 100%, rgba(200,64,42,.12), transparent 65%);
}
.h-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(340px circle at var(--cx, 30%) var(--cy, 45%), #000, transparent 72%);
          mask-image: radial-gradient(340px circle at var(--cx, 30%) var(--cy, 45%), #000, transparent 72%);
}
.h-hero__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 64px; align-items: center; }
.h-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 30px;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hmuted);
  border: 1px solid var(--hline); border-radius: 999px; padding: 9px 14px 9px 12px; background: rgba(255,255,255,.03);
}
.h-title {
  font-size: clamp(54px, 8.4vw, 124px); font-weight: 900; letter-spacing: -0.06em; line-height: .9;
  color: #fff; margin: 0 0 30px;
}
.h-title .l { display: block; }
.h-title .l--rot { height: 1em; white-space: nowrap; }
.rot { position: relative; display: inline-block; color: var(--accent); }
.rot__w { display: inline-block; }
.rot__w.out { animation: rotOut .45s cubic-bezier(.6,0,.8,.4) forwards; }
.rot__w.in { animation: rotIn .7s cubic-bezier(.16,.84,.24,1) both; }
@keyframes rotOut { to { transform: translateY(-40%) rotate(-3deg); opacity: 0; filter: blur(6px); } }
@keyframes rotIn { from { transform: translateY(45%) rotate(3deg); opacity: 0; filter: blur(8px); } }
.h-sub { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: #cfcbc2; max-width: 34ch; margin: 0 0 36px; }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.h-cta--center { justify-content: center; }
.h-proof { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.h-proof img { width: 44px; height: 44px; object-fit: contain; }
.h-proof p { margin: 0; line-height: 1.35; }
.h-proof b { display: block; color: #fff; font-weight: 600; font-size: 15px; }
.h-proof span { color: var(--hmuted); font-size: 14px; }

/* Receipt */
.rcpt { perspective: 1200px; }
.rcpt__paper {
  position: relative; background: #f6f3ec; color: #1d1c19; transform: rotate(2.5deg);
  font: 500 13.5px/1.5 var(--mono); padding: 28px 26px 34px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 2px 0 rgba(255,255,255,.4) inset;
  -webkit-mask: radial-gradient(9px at 50% 100%, transparent 98%, #000) 50% 100% / 18px 100% repeat-x;
          mask: radial-gradient(9px at 50% 100%, transparent 98%, #000) 50% 100% / 18px 100% repeat-x;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.rcpt:hover .rcpt__paper { transform: rotate(0deg) translateY(-6px); }
.rcpt__head { text-align: center; margin: 0 0 14px; }
.rcpt__head b { display: block; font: 800 18px/1.2 var(--display); letter-spacing: -0.02em; text-transform: uppercase; }
.rcpt__head span { font-size: 11.5px; color: #6a665c; }
.rcpt__rule { border-top: 1.5px dashed #b9b3a5; margin: 12px 0; }
.rcpt__line { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; }
.rcpt__line span:last-child { white-space: nowrap; font-weight: 600; }
.rcpt__line--muted span:last-child { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; color: #6a665c; }
.rcpt__total { font: 800 22px/1.2 var(--display); letter-spacing: -0.02em; margin-top: 10px; }
.rcpt__save { color: #2f8f5b; font-weight: 600; }
.rcpt__fine { font-size: 10.5px; color: #8a857a; margin: 14px 0 0; line-height: 1.4; }
.rcpt__fine a { color: inherit; }
.rcpt__stamp {
  position: absolute; right: 16px; bottom: 74px;
  font: 800 13px/1.05 var(--display); letter-spacing: .06em; text-transform: uppercase; text-align: center;
  color: var(--red); border: 2.5px solid var(--red); border-radius: 8px; padding: 8px 10px;
  transform: rotate(-12deg); opacity: .9; mix-blend-mode: multiply;
}
/* receipt printing animation */
.motion-on .rcpt__paper > *:not(.rcpt__stamp) { opacity: 0; transform: translateY(6px); }
.motion-on .rcpt.is-printed .rcpt__paper > *:not(.rcpt__stamp) {
  opacity: 1; transform: none; transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--k, 0) * 90ms + 300ms);
}
.motion-on .rcpt__stamp { opacity: 0; transform: rotate(-12deg) scale(2.2); }
.motion-on .rcpt.is-printed .rcpt__stamp { animation: stamp .45s cubic-bezier(.3,1.6,.5,1) 1.9s forwards; }
@keyframes stamp { to { opacity: .9; transform: rotate(-12deg) scale(1); } }
.motion-on .rcpt__paper { animation: feed 1s cubic-bezier(.16,.84,.24,1) .15s both; }
@keyframes feed { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -10% 0); } }

/* ---------- Ticker ---------- */
.h-ticker {
  border-top: 1px solid var(--hline); border-bottom: 1px solid var(--hline);
  overflow: hidden; padding: 22px 0; background: var(--hbg);
}
.h-ticker__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 34s linear infinite; }
.h-ticker span {
  font: 900 clamp(44px, 7vw, 96px)/1 var(--display); letter-spacing: -0.04em; text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.4);
}
.h-ticker span.fill { color: var(--accent); -webkit-text-stroke: 0; }
.h-ticker i { width: 18px; height: 18px; border-radius: 50%; background: var(--red); flex: none; }
.h-ticker:hover .h-ticker__track { animation-play-state: paused; }

/* ---------- Work: horizontal gallery ---------- */
.h-work { position: relative; padding: 120px 0 80px; }
.h-work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.h-work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.h-work__viewport::-webkit-scrollbar { display: none; }
.h-work__track {
  display: flex; gap: 28px; width: max-content;
  padding: 4px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 8px;
}
.hcard {
  scroll-snap-align: center;
  flex: none; width: clamp(300px, 44vw, 640px); text-decoration: none; color: #fff;
  background: var(--hcard); border: 1px solid var(--hline); border-radius: 24px; overflow: hidden;
  transition: border-color .3s, transform .4s cubic-bezier(.2,.8,.2,1);
}
.hcard:hover { border-color: rgba(242,183,5,.5); transform: translateY(-6px); }
.hcard .project__shot { border-bottom: 1px solid var(--hline); background: linear-gradient(135deg, #222220, #1a1a18); }
.hcard .project__shot::before { color: var(--hmuted); }
.hcard .project__shot img { transition: opacity .5s ease, transform 1.6s cubic-bezier(.2,.8,.2,1); }
.hcard:hover .project__shot img { transform: scale(1.06); }
.hcard__info { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px 26px 28px; }
.hcard__n { font: 500 13px/1 var(--mono); color: var(--accent); padding-top: 4px; }
.hcard__type { font: 500 11.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hmuted); margin: 0 0 8px; }
.hcard h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 8px; color: #fff; }
.hcard p { color: var(--hmuted); font-size: 15px; margin: 0; }
.hcard--next {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 34px; min-height: 100%;
  background: radial-gradient(420px 300px at 100% 0%, rgba(242,183,5,.28), transparent 70%), var(--hcard);
}
.hcard--next h3 { font-size: clamp(36px, 4vw, 60px); font-weight: 900; letter-spacing: -0.05em; line-height: .95; }
.hcard--next .btn { align-self: flex-start; }
.h-work__bar { height: 2px; background: var(--hline); margin-top: 40px; border-radius: 2px; overflow: hidden; }
.h-work__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(.08); }

/* pinned mode (desktop, set by home.js) */
.h-work.is-pinned { padding: 0; }
.h-work.is-pinned .h-work__pin {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding: 80px 0 40px;
}
.h-work.is-pinned .h-work__viewport { overflow: visible; scroll-snap-type: none; }
.h-work.is-pinned .h-work__track { will-change: transform; }
.h-work.is-pinned .hcard { width: clamp(420px, 40vw, 600px); }
.h-work.is-pinned .project__shot { aspect-ratio: 16 / 9.4; }
@media (max-height: 820px) { .h-work.is-pinned .hcard { width: clamp(380px, 34vw, 520px); } }

/* ---------- Bento ---------- */
.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "map map book pay"
    "map map dash phone"
    "quote quote mail mail";
}
.bt {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 22px;
  background: var(--hcard); border: 1px solid var(--hline); border-radius: 24px; padding: 26px;
  min-height: 260px; transition: border-color .3s;
}
.bt:hover { border-color: rgba(255,255,255,.2); }
.bt__text h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; color: #fff; margin: 0 0 6px; }
.bt__text p { font-size: 15px; color: var(--hmuted); margin: 0; line-height: 1.45; }
.bt--map { grid-area: map; }
.bt--book { grid-area: book; }
.bt--pay { grid-area: pay; }
.bt--dash { grid-area: dash; }
.bt--phone { grid-area: phone; }
.bt--quote { grid-area: quote; }
.bt--mail { grid-area: mail; }
.bt__demo {
  position: absolute; right: 14px; top: 14px; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--hmuted); border: 1px solid var(--hline); border-radius: 999px; padding: 5px 8px;
}
.bt__demo--inline { position: static; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--sans); padding: 8px 12px; border-radius: 999px; }
.chip--ok { background: rgba(47,179,107,.16); color: #5fd394; }
.chip--ok::before { content: "\2713"; font-weight: 700; }

/* map */
.map { position: relative; flex: 1; min-height: 300px; border-radius: 16px; overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px,
    #121211;
  border: 1px solid var(--hline);
}
.map__search {
  position: absolute; left: 14px; right: 14px; top: 14px; z-index: 3;
  display: flex; align-items: center; gap: 10px; background: #fff; color: #333; border-radius: 999px;
  padding: 11px 16px; font-size: 14px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
}
.map__search svg { width: 16px; height: 16px; fill: none; stroke: #666; stroke-width: 2; stroke-linecap: round; flex: none; }
.map__q { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map__roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__roads path { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.bt--map.is-in .map__roads path { animation: road 1.8s ease forwards; }
.bt--map.is-in .map__roads path:nth-child(2) { animation-delay: .2s; }
.bt--map.is-in .map__roads path:nth-child(3) { animation-delay: .35s; }
.bt--map.is-in .map__roads path:nth-child(4) { animation-delay: .5s; }
.bt--map.is-in .map__roads path:nth-child(5) { animation-delay: .65s; }
@keyframes road { to { stroke-dashoffset: 0; } }
.pin {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(242,183,5,.2);
  opacity: 0; transform: translateY(-14px) scale(.5);
}
.pin b {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font: 600 11.5px/1 var(--sans); color: #fff; white-space: nowrap;
  background: rgba(13,13,12,.9); border: 1px solid var(--hline); padding: 6px 8px; border-radius: 8px;
}
.pin::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent);
  opacity: 0; animation: ping 2.6s ease-out infinite; animation-delay: calc(var(--d) * .35s + 1.5s);
}
.pin--main { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--red); box-shadow: 0 0 0 5px rgba(200,64,42,.25); }
.pin--main::after { border-color: var(--red); }
.pin--main b { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.bt--map.is-in .pin { animation: drop .6s cubic-bezier(.3,1.6,.5,1) forwards; animation-delay: calc(var(--d) * .18s + .5s); }
@keyframes drop { to { opacity: 1; transform: none; } }
@keyframes ping { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }

/* booking */
.cal { margin-top: auto; }
.cal__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font: 500 11px/1 var(--mono); color: var(--hmuted); margin-bottom: 8px; text-align: center; }
.cal__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.cal__grid i { height: 22px; border-radius: 6px; background: rgba(255,255,255,.08); }
.cal__grid i.off { background: transparent; border: 1px dashed rgba(255,255,255,.1); }
.cal__pick { position: relative; }
.bt--book.is-in .cal__pick { animation: pick 5s ease infinite 1s; }
@keyframes pick { 0%, 20% { background: rgba(255,255,255,.08); } 30%, 85% { background: var(--accent); box-shadow: 0 0 0 3px rgba(242,183,5,.25); } 100% { background: rgba(255,255,255,.08); } }
.bt--book .chip { opacity: 0; }
.bt--book.is-in .chip { animation: chipIn 5s ease infinite 1s; }
@keyframes chipIn { 0%, 30% { opacity: 0; transform: translateY(6px); } 38%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* payments */
.pay { margin-top: auto; background: #fff; color: var(--ink); border-radius: 16px; padding: 16px; position: relative; }
.pay__row { display: flex; justify-content: space-between; font-size: 14px; color: #555; margin-bottom: 12px; }
.pay__row b { font: 800 20px/1 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.pay__bar { height: 6px; border-radius: 6px; background: #eee; overflow: hidden; }
.pay__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), #2fb36b); transform-origin: 0 50%; transform: scaleX(0); }
.bt--pay.is-in .pay__bar span { animation: payfill 4.5s ease infinite .8s; }
@keyframes payfill { 0% { transform: scaleX(0); } 40%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.pay__ok { position: absolute; right: 14px; top: -14px; opacity: 0; background: #2fb36b; color: #fff; }
.pay__ok::before { content: "\2713"; }
.bt--pay.is-in .pay__ok { animation: chipIn2 4.5s ease infinite .8s; }
@keyframes chipIn2 { 0%, 38% { opacity: 0; transform: scale(.6); } 46%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* dashboard */
.dash { margin-top: auto; }
.dash__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 13px; color: var(--hmuted); }
.dash__n { font: 800 30px/1 var(--display); color: #fff; letter-spacing: -0.03em; }
.dash__bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.dash__bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: rgba(255,255,255,.14); transform-origin: bottom; transform: scaleY(0); }
.dash__bars i:last-child { background: var(--accent); }
.bt--dash.is-in .dash__bars i { animation: grow .9s cubic-bezier(.2,.8,.2,1) forwards; }
.bt--dash.is-in .dash__bars i:nth-child(2) { animation-delay: .08s; }
.bt--dash.is-in .dash__bars i:nth-child(3) { animation-delay: .16s; }
.bt--dash.is-in .dash__bars i:nth-child(4) { animation-delay: .24s; }
.bt--dash.is-in .dash__bars i:nth-child(5) { animation-delay: .32s; }
.bt--dash.is-in .dash__bars i:nth-child(6) { animation-delay: .4s; }
.bt--dash.is-in .dash__bars i:nth-child(7) { animation-delay: .48s; }
@keyframes grow { to { transform: scaleY(1); } }

/* phone */
.phone { margin-top: auto; align-self: center; width: 118px; height: 150px; border: 3px solid #3a3935; border-bottom: 0; border-radius: 22px 22px 0 0; padding: 12px 10px 0; position: relative; margin-bottom: -26px; }
.phone::before { content: ""; position: absolute; top: 5px; left: 50%; width: 28px; height: 4px; margin-left: -14px; border-radius: 4px; background: #3a3935; }
.phone__screen { display: grid; gap: 6px; }
.phone__screen i { display: block; border-radius: 4px; background: rgba(255,255,255,.08); opacity: 0; }
.ph-nav { height: 8px; width: 50%; }
.ph-hero { height: 34px; background: linear-gradient(135deg, rgba(242,183,5,.6), rgba(200,64,42,.5)) !important; }
.ph-line { height: 6px; }
.ph-line--s { width: 70%; }
.ph-btn { height: 12px; width: 46%; border-radius: 999px !important; background: var(--accent) !important; }
.ph-card { height: 22px; }
.bt--phone.is-in .phone__screen i { animation: load 4s ease infinite; }
.bt--phone.is-in .phone__screen i:nth-child(2) { animation-delay: .08s; }
.bt--phone.is-in .phone__screen i:nth-child(3) { animation-delay: .16s; }
.bt--phone.is-in .phone__screen i:nth-child(4) { animation-delay: .2s; }
.bt--phone.is-in .phone__screen i:nth-child(5) { animation-delay: .26s; }
.bt--phone.is-in .phone__screen i:nth-child(6) { animation-delay: .32s; }
.bt--phone.is-in .phone__screen i:nth-child(7) { animation-delay: .38s; }
@keyframes load { 0% { opacity: 0; transform: translateY(4px); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* quote calculator */
.bt--quote { flex-direction: row; align-items: stretch; gap: 28px; }
.bt--quote .bt__text { flex: 1; align-self: center; }
.qc { flex: 1.2; background: #fff; color: var(--ink); border-radius: 18px; padding: 20px; display: grid; gap: 16px; }
.qc__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qc__label { font: 600 13px/1 var(--sans); color: #555; }
.qc .bt__demo--inline { color: #7a7569; border-color: #e3dfd5; }
.qc__field { display: grid; gap: 10px; font-size: 14px; color: #555; }
.qc__field span { display: flex; justify-content: space-between; }
.qc__field b { color: var(--ink); font-weight: 600; }
.qc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 16%), #eee var(--p, 16%)); outline: none; cursor: pointer; }
.qc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.qc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.qc input[type="range"]:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 4px; }
.qc__freq { display: flex; gap: 6px; flex-wrap: wrap; }
.qc__freq label { cursor: pointer; }
.qc__freq input { position: absolute; opacity: 0; pointer-events: none; }
.qc__freq span { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 1px solid #e3dfd5; font-size: 13px; font-weight: 500; transition: all .15s; }
.qc__freq input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.qc__freq input:focus-visible + span { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.qc__out { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed #d9d4c8; padding-top: 14px; font-size: 14px; color: #555; }
.qc__out b { font: 900 38px/1 var(--display); letter-spacing: -0.04em; color: var(--ink); }

/* email */
.mail { margin-top: auto; display: grid; gap: 8px; }
.mail__n { display: grid; gap: 2px; background: rgba(255,255,255,.06); border: 1px solid var(--hline); border-radius: 12px; padding: 11px 14px; opacity: 0; transform: translateX(24px); }
.mail__n b { font-size: 14px; color: #fff; font-weight: 600; }
.mail__n span { font-size: 13px; color: var(--hmuted); }
.bt--mail.is-in .mail__n { animation: mailIn 6s cubic-bezier(.2,.8,.2,1) infinite; }
.bt--mail.is-in .mail__n:nth-child(2) { animation-delay: .5s; }
.bt--mail.is-in .mail__n:nth-child(3) { animation-delay: 1s; }
@keyframes mailIn { 0% { opacity: 0; transform: translateX(24px); } 10%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateX(-10px); } }

/* ---------- The math (light break) ---------- */
.h-math { background: #f6f3ec; color: var(--ink); padding: 130px 0 90px; border-radius: 40px 40px 0 0; position: relative; }
.h-math .h-h2 { color: var(--ink); }
.h-math .h-kicker { color: var(--red); }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; max-width: 1040px; margin: 0 auto 40px; }
.vs__side { text-align: center; padding: 40px 28px; border-radius: 28px; }
.vs__side--them { background: #ebe7dd; }
.vs__side--me { background: var(--ink); color: #fff; box-shadow: 0 40px 80px -40px rgba(17,17,16,.6); }
.vs__label { font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; color: #6a665c; }
.vs__side--me .vs__label { color: var(--accent); }
.vs__label sup a { color: inherit; text-decoration: none; }
.vs__num { font: 900 clamp(56px, 8vw, 116px)/.9 var(--display); letter-spacing: -0.06em; margin: 0 0 12px; }
.vs__side--them .vs__num { color: #8d887c; }
.vs__num s { text-decoration: none; position: relative; }
.vs__num s::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: .09em; background: var(--red);
  transform: rotate(-6deg) scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.6,.1,.2,1) .5s;
}
.vs.is-in .vs__num s::after, .no-js .vs__num s::after, .motion-off .vs__num s::after { transform: rotate(-6deg) scaleX(1); }
.vs__note { margin: 0; font-size: 15px; color: #6a665c; }
.vs__side--me .vs__note { color: var(--hmuted); }
.vs__vs { font: 900 22px/1 var(--display); color: #b3ad9f; text-transform: uppercase; }
.vs-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1040px; margin: 0 auto; }
.vsm { background: #fff; border: 1px solid rgba(17,17,16,.08); border-radius: 20px; padding: 22px 24px; }
.vsm__what { font-weight: 600; margin: 0 0 6px; }
.vsm__them { font-size: 14px; color: #7a7569; margin: 0 0 14px; text-decoration: line-through; text-decoration-color: rgba(200,64,42,.6); }
.vsm__them sup a { color: inherit; text-decoration: none; }
.vsm__me { font: 800 26px/1.1 var(--display); letter-spacing: -0.03em; margin: 0; }
.h-math__foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.h-math__src { max-width: 1040px; margin: 40px auto 0; padding-left: 18px; font-size: 12.5px; color: #8a857a; display: grid; gap: 4px; }
.h-math__src a { color: #5f5c55; }

/* ---------- Process: sticky stacking cards ---------- */
.h-process { background: #f6f3ec; padding: 40px 0 130px; color: var(--ink); }
.h-process .h-h2 { color: var(--ink); }
.h-process .h-kicker { color: var(--red); }
.h-process__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.h-process__head { position: sticky; top: 120px; }
.h-process__lede { font-size: 18px; color: #5f5c55; margin: 22px 0 30px; max-width: 34ch; }
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.pcard {
  position: sticky; top: calc(110px + var(--i) * 26px);
  min-height: 300px; padding: 38px 38px 34px; border-radius: 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 -20px 50px -30px rgba(17,17,16,.45);
}
.pcard__n { font: 900 84px/1 var(--display); letter-spacing: -0.06em; margin-bottom: auto; opacity: .9; }
.pcard h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; margin: 24px 0 10px; }
.pcard p { margin: 0; font-size: 17px; line-height: 1.5; max-width: 42ch; }
.pcard--1 { background: #fff; color: var(--ink); }
.pcard--1 .pcard__n { color: #e3dfd5; }
.pcard--2 { background: var(--accent); color: var(--ink); }
.pcard--2 .pcard__n { color: rgba(17,17,16,.22); }
.pcard--3 { background: var(--ink); color: #fff; }
.pcard--3 .pcard__n { color: #2e2d2a; }
.pcard--3 p { color: #cfcbc2; }
.pcard--4 { background: var(--red); color: #fff; }
.pcard--4 .pcard__n { color: rgba(255,255,255,.25); }

/* ---------- Final CTA ---------- */
.h-final { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 150px 0 140px; }
.h-final::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background:
    radial-gradient(closest-side at 40% 45%, rgba(242,183,5,.26), transparent),
    radial-gradient(closest-side at 62% 58%, rgba(200,64,42,.2), transparent);
  animation: drift 18s ease-in-out infinite alternate;
}
.h-final .h-kicker { justify-content: center; }
.h-final__title {
  font-size: clamp(64px, 12vw, 190px); font-weight: 900; letter-spacing: -0.065em; line-height: .86;
  color: #fff; margin: 0 0 44px;
}
.h-final__title span { color: var(--accent); }

/* ---------- Footer on dark + mega wordmark ---------- */
.home .footer { background: var(--hbg); border-top-color: var(--hline); color: var(--hmuted); padding-bottom: 0; overflow: hidden; }
.home .footer__brand strong { color: #fff; }
.home .footer__links a:hover { color: #fff; }
.home .footer__fine { border-top-color: var(--hline); }
.mega { margin-top: 40px; line-height: .78; text-align: center; overflow: hidden; user-select: none; }
.mega span {
  display: inline-block; white-space: nowrap;
  font: 900 clamp(64px, 15.5vw, 240px)/.8 var(--display); letter-spacing: -0.07em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.14);
  background: linear-gradient(90deg, var(--accent), var(--red)) no-repeat 0 0 / 0% 100%;
  -webkit-background-clip: text; background-clip: text;
  transition: background-size 1.1s cubic-bezier(.6,.1,.2,1);
  transform: translateY(18%);
}
.mega:hover span { background-size: 100% 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .h-hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .rcpt { max-width: 440px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: "map map" "map map" "book pay" "dash phone" "quote quote" "mail mail"; }
  .h-process__grid { grid-template-columns: 1fr; gap: 40px; }
  .h-process__head { position: static; }
}
@media (max-width: 760px) {
  .home .section { padding: 84px 0; }
  .h-hero { min-height: 0; padding: 48px 0 72px; }
  .h-title { font-size: clamp(48px, 14vw, 72px); }
  .h-work { padding: 84px 0 56px; }
  .hcard { width: 84vw; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "map" "book" "pay" "dash" "phone" "quote" "mail"; }
  .bt--quote { flex-direction: column; }
  .map { min-height: 280px; }
  .vs { grid-template-columns: 1fr; gap: 14px; }
  .vs__vs { justify-self: center; }
  .vs-mini { grid-template-columns: 1fr; }
  .h-math { padding: 96px 0 64px; border-radius: 28px 28px 0 0; }
  .pcard { min-height: 260px; padding: 28px; top: calc(84px + var(--i) * 18px); }
  .pcard__n { font-size: 64px; }
  .pcard h3 { font-size: 26px; }
  .h-final { padding: 110px 0 100px; }
  .rcpt__paper { transform: rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
  .h-ticker__track { animation: none; }
  .h-final::before { animation: none; }
  .pin { opacity: 1; transform: none; }
  .map__roads path { stroke-dashoffset: 0; }
  .dash__bars i, .pay__bar span { transform: none; }
  .mail__n, .phone__screen i, .bt--book .chip { opacity: 1; transform: none; }
}

/* ---------- Fixes after review ---------- */
.rcpt__stamp { right: 18px; bottom: auto; top: 44%; }
.dash__demo { font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--hmuted); border: 1px solid var(--hline); border-radius: 999px; padding: 3px 6px; margin-left: 6px; vertical-align: 1px; }
.pcard { justify-content: flex-start; min-height: 280px; }
.pcard__n { margin-bottom: 0; font-size: 22px; letter-spacing: 0; font-family: var(--mono); font-weight: 500; opacity: 1; }
.pcard h3 { margin-top: 70px; }
.pcard--1 .pcard__n { color: var(--red); }
.pcard--2 .pcard__n { color: var(--ink); }
.pcard--3 .pcard__n { color: var(--accent); }
.pcard--4 .pcard__n { color: #fff; }
.stack { padding-bottom: 40px; }
.mega span { font-size: clamp(40px, 11.4vw, 190px); }
@media (max-width: 760px) { .pcard h3 { margin-top: 48px; } .pcard { min-height: 240px; } }

/* ---------- Outlined text: no overlapping letters ---------- */
.h-ticker span { letter-spacing: 0.01em; -webkit-text-stroke-width: 1.25px; }
.h-ticker span.fill { letter-spacing: 0.01em; }
.mega span { letter-spacing: 0.005em; font-size: clamp(36px, 10.2vw, 170px); -webkit-text-stroke-width: 1.25px; }

/* ---------- Audit fixes ---------- */
.rcpt__line--ref span:last-child { color: #6a665c; font-weight: 500; }
.vsm__note { margin: 0; font-size: 14.5px; color: #6a665c; line-height: 1.45; }
.vsm__note sup a { color: inherit; text-decoration: none; }
.vsm__what { font: 800 21px/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 8px; }

/* ---------- The Works spotlight ---------- */
.h-works { padding: 120px 0 140px; position: relative; overflow: clip; isolation: isolate; }
.h-works::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 500px at 80% 50%, rgba(242,183,5,.14), transparent 65%); }
.h-works__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.h-works .h-h2 span { color: var(--accent); }
.h-works__lede { font-size: 19px; color: #cfcbc2; margin: 24px 0 28px; max-width: 44ch; }
.h-works__deal { display: flex; gap: 14px; margin-bottom: 20px; }
.h-works__deal div { border: 1px solid var(--hline); border-radius: 16px; padding: 14px 18px; background: rgba(255,255,255,.03); }
.h-works__deal b { display: block; font: 900 32px/1 var(--display); letter-spacing: -0.04em; color: var(--accent); }
.h-works__deal span { font-size: 13.5px; color: var(--hmuted); }
.h-works__vs { font-size: 15px; color: var(--hmuted); max-width: 46ch; margin: 0 0 30px; }
.h-works__vs sup a { color: inherit; text-decoration: none; }
.h-works__visual { position: relative; }
.h-works__visual .ledger { transform: rotate(-2deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.h-works__visual:hover .ledger { transform: rotate(0) translateY(-6px); }
.h-works .ledger__chart i { transform-origin: bottom; transform: scaleY(0); }
.h-works .is-in .ledger__chart i { animation: grow .9s cubic-bezier(.2,.8,.2,1) forwards; }
.h-works .is-in .ledger__chart i:nth-child(n) { animation-delay: calc(var(--n, 0) * 1ms); }
@media (max-width: 1080px) { .h-works__grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 760px) { .h-works { padding: 84px 0 100px; } .h-works__deal { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .h-works .ledger__chart i { transform: none; } }

/* Outlined text showed the font's internal overlap lines (the stray strokes
   inside D, P, R). Solid, low-contrast fill instead: same look, no glitches. */
.h-ticker span { color: rgba(255,255,255,.22); -webkit-text-stroke: 0; }
.h-ticker span.fill { color: var(--accent); }
.mega span { color: rgba(255,255,255,.07); -webkit-text-stroke: 0; }
