/* Home page. Two fenced parts: the van hero (landing session) and the sections below it (content). */

/* ==== VAN HERO ==== */
/* The stage is always dark, in Day too. Without WebGL (or script) it's a one-screen hero: the still, the headline
   and the four services as links. With WebGL (html.van-3d) it becomes a tall scroll track with the stage pinned. */
.van {
  position: relative; background: #090a0d; color: #f2f2f2;
  --text: #f2f2f2; --soft: #d0d0d0; --muted: #a8a8a8; --red-text: #ff4a4a; --focus: #fff; --border: rgba(255, 255, 255, .14);
}
.van-stage { position: relative; min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.van-still { position: absolute; inset: 0; z-index: -3; }
.van-still img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
.van-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 95% at 58% 42%, rgba(9, 10, 13, 0) 45%, rgba(9, 10, 13, .78) 100%),
    linear-gradient(0deg, rgba(9, 10, 13, .92) 0%, rgba(9, 10, 13, 0) 34%),
    linear-gradient(90deg, rgba(9, 10, 13, .66) 0%, rgba(9, 10, 13, 0) 52%);
}
.van-intro { padding-top: 150px; padding-bottom: 20px; }
.van-intro h1 { max-width: 12ch; font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.van-intro .lede { color: var(--soft); max-width: 44ch; margin-bottom: 28px; }
.van-captions, .van-cue, .van-key, .van-out { display: none; }
.van .btn:not(.btn-red) { background: rgba(9, 10, 13, .45); color: #f2f2f2; border-color: rgba(255, 255, 255, .42); }
.van .btn:not(.btn-red):hover { border-color: #fff; }

/* The service menu: a row of links in the plain hero, the garage menu in the live one */
.van-menu { padding-top: 6px; padding-bottom: clamp(24px, 4vw, 44px); }
.van-menu-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-bottom: 12px; }
.van-menu-title { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 12px/1.2 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.van-menu-title::before { content: ""; width: 8px; height: 8px; background: var(--red); flex: none; }
.van-menu-detail { margin: 0; color: var(--soft); font-size: .95rem; min-height: 1.5em; }
.van-menu-detail b { color: var(--text); font-weight: 650; }
.van-menu-detail .link { white-space: nowrap; }
.van-svcs { list-style: none; margin-block: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.van-svc {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 12px; align-items: start; height: 100%;
  padding: 9px; background: rgba(16, 16, 20, .74); border: 1px solid rgba(255, 255, 255, .14); color: var(--text); text-decoration: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.van-svc .holo-chip { grid-row: 1 / 3; }
.van-svc-ex { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 9px; }
.van-svc-ex span { padding: 3px 6px; border: 1px solid rgba(255, 255, 255, .14); font: 600 10px/1.2 var(--mono); letter-spacing: .06em; color: var(--soft); }
.van-svc[aria-pressed="true"] .van-svc-ex span { border-color: rgba(255, 74, 74, .45); }

/* Holographic icons: line drawings stroked with a foil rainbow and a glint (gradients in the page's #holo-* defs,
   slid by home-van.js as the pointer moves and the page scrolls, like tilting the footer's seal) */
.holo-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.holo-chip {
  display: grid; place-items: center; width: 46px; aspect-ratio: 1; border-radius: 10px;
  background: radial-gradient(120% 120% at 30% 20%, #23252c 0%, #101115 60%, #0b0c0f 100%);
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 14px rgba(0, 0, 0, .35);
}
.holo-icon { width: 72%; height: 72%; overflow: visible; fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.holo-icon .hi-base { stroke: url(#holo-rainbow); filter: drop-shadow(0 0 2px rgba(140, 220, 255, .45)); }
.holo-icon .hi-glint { stroke: url(#holo-glint); stroke-width: 1.2; mix-blend-mode: screen; }
.holo-chip-lg { width: 64px; border-radius: 14px; margin-bottom: 22px; }
.van-svc-num { font: 700 11px/1 var(--mono); letter-spacing: .14em; color: var(--red-text); padding-top: 3px; }
.van-svc-name { font-weight: 650; font-size: .95rem; line-height: 1.25; margin-top: 6px; }
.van-svc:hover, .van-svc:focus-visible { border-color: rgba(255, 255, 255, .5); background: rgba(26, 26, 32, .88); }
.van-svc[aria-pressed="true"] { border-color: var(--red); background: rgba(44, 14, 14, .88); }

/* ---- Live: the scroll track and the pinned stage ---- */
.van-3d .van { height: 300svh; }
.van-3d.van-calm .van { height: auto; }
.van-3d .van-stage { position: sticky; top: 0; height: 100svh; min-height: 0; display: block; }
.van-canvas { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; }
.van.is-live .van-canvas { opacity: 1; }
.van.is-live .van-still { opacity: 0; transition: opacity .9s ease .2s; }
.van-3d .van-shade { background: radial-gradient(ellipse 125% 100% at 50% 45%, rgba(9, 10, 13, 0) 52%, rgba(9, 10, 13, .82) 100%), linear-gradient(90deg, rgba(9, 10, 13, .55) 0%, rgba(9, 10, 13, 0) 40%); }
.van-3d .van-intro { position: absolute; left: 0; right: 0; bottom: 11vh; padding-block: 0; margin-inline: auto; transition: opacity .5s ease, transform .5s ease, visibility 0s; }
.van-3d .van.intro-off .van-intro { opacity: 0; transform: translateY(-28px); visibility: hidden; transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s; }

.van-3d .van-captions { display: block; position: absolute; left: 0; right: 0; bottom: 13vh; margin: 0 auto; padding-block: 0; list-style: none; pointer-events: none; }
.van-captions li {
  position: absolute; left: var(--edge); bottom: 0; max-width: 16ch; opacity: 0; transform: translateY(14px);
  font-size: clamp(1.6rem, 3.2vw, 2.7rem); font-weight: 750; line-height: 1.08; letter-spacing: -.02em; transition: opacity .45s ease, transform .45s ease;
}
.van-captions li span { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 700 12px/1 var(--mono); letter-spacing: .18em; color: var(--red-text); }
.van-captions li span::after { content: ""; width: 48px; height: 1px; background: var(--red); }
.van-captions li.is-on { opacity: 1; transform: none; }

.van-3d .van-cue { display: flex; position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; flex-direction: column; align-items: center; gap: 8px; font: 600 10px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); transition: opacity .4s; }
.van-cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--red), rgba(232, 34, 34, 0)); }
.van.intro-off .van-cue, .van-calm .van-cue { opacity: 0; }
/* Reduced motion: one screen, headline at the top, the menu already up */
.van-3d.van-calm .van-intro { top: clamp(120px, 18vh, 200px); bottom: auto; }

.van-3d .van-menu {
  position: absolute; left: 0; right: 0; bottom: 0; padding-top: 30px;
  background: linear-gradient(0deg, rgba(9, 10, 13, .96) 0%, rgba(9, 10, 13, .9) 62%, rgba(9, 10, 13, 0) 100%);
  transform: translateY(105%); transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.van-3d .van-menu::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: linear-gradient(90deg, rgba(232, 34, 34, 0), var(--red) 30%, var(--red) 70%, rgba(232, 34, 34, 0)); opacity: .7; }
.van-3d .van.menu-up .van-menu { transform: none; }
.van-3d .van.in-seat .van-menu, .van-3d .van.in-seat .van-captions { transform: translateY(105%); opacity: 0; }

/* The easter egg: a key over the driver's door handle, and the way back out */
.van-3d .van-key:not([hidden]) {
  display: flex; align-items: center; gap: 8px; position: absolute; transform: translate(-14px, -50%);
  padding: 0 10px 0 0; height: 28px; border: 0; background: none; color: #fff; cursor: pointer;
  font: 700 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; opacity: .78;
}
.van-key::before { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--red); background: rgba(9, 10, 13, .55) radial-gradient(circle, #fff 0 3px, transparent 3.5px); box-sizing: border-box; }
.van-key span { opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s; }
.van-key:hover, .van-key:focus-visible { opacity: 1; }
.van-key:hover span, .van-key:focus-visible span { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .van-key::after { content: ""; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--red); animation: van-key 2.4s ease-out infinite; }
}
@keyframes van-key { from { transform: scale(1); opacity: .8; } to { transform: scale(2.2); opacity: 0; } }
.van-3d .van-out:not([hidden]) { display: inline-flex; position: absolute; left: var(--edge); bottom: 28px; background: rgba(9, 10, 13, .7); }

/* The masthead floats faintly over the van and nearly vanishes as you scroll; the slim bar returns after the van */
.van-3d .home-van .masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding-top: 16px; background: none; opacity: .66;
  --text: #f2f2f2; --border: rgba(255, 255, 255, .14);
  transition: opacity .5s ease, visibility 0s;
}
.van-3d .home-van .masthead-logo svg { width: clamp(150px, 19vw, 280px); }
.van-3d .home-van .masthead .glow-rule { margin-top: 12px; opacity: .55; }
.van-3d .home-van .masthead-nav + .glow-rule { margin-top: 0; }   /* the nav sits midway between the two rules */
.van-3d .home-van .masthead-nav a { color: #f2f2f2; }
.van-deep .home-van .masthead { opacity: .2; }
.van-3d .home-van .masthead:hover, .van-3d .home-van .masthead:focus-within { opacity: 1; }
.slim-shown .home-van .masthead, .van-leaving .home-van .masthead { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }

.van-debug { position: fixed; right: 12px; bottom: 12px; z-index: 60; max-width: 420px; padding: 8px 10px; background: rgba(0, 0, 0, .82); border: 1px solid #333; color: #fff; font: 11px/1.45 var(--mono); }
.van-debug pre { margin: 0 0 6px; white-space: pre-wrap; }

@media (max-width: 980px) {
  .van-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .van-intro { padding-top: 120px; }
  .van-still img { object-position: 88% 50%; }
  .van-svc { grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; padding: 7px; }
  .van-svc .holo-chip { width: 34px; border-radius: 8px; }
  .van-svc-ex { margin-top: 6px; gap: 3px; }
  .van-svc-ex span { padding: 2px 4px; font-size: 8.5px; letter-spacing: .02em; }
  .van-svc-name { font-size: .8rem; margin-top: 4px; }
  .van-svcs { gap: 6px; }
  .van-menu-detail { font-size: .85rem; }
  .van-3d .van-menu { padding-top: 26px; padding-bottom: 14px; }
  .van-3d .van-intro { bottom: 9vh; }
  .van-3d .van-cue { display: none; }
  /* reduced motion on a phone: the headline and the menu stack under the van instead of overlapping */
  .van-3d.van-calm .van-stage { height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .van-3d.van-calm .van-intro { position: static; padding-top: 44svh; padding-bottom: 18px; }
  .van-3d.van-calm .van-menu { position: relative; transform: none; }
  .van-3d .van-shade { background: radial-gradient(ellipse 140% 90% at 50% 30%, rgba(9, 10, 13, 0) 45%, rgba(9, 10, 13, .8) 100%), linear-gradient(0deg, rgba(9, 10, 13, .96) 0%, rgba(9, 10, 13, .82) 38%, rgba(9, 10, 13, 0) 62%); }
  .van-3d .van-intro .lede { font-size: 1rem; margin-bottom: 18px; }
  .van-captions li { max-width: 13ch; }
  .van-3d .home-van .masthead { padding-top: 10px; }
  .van-3d .home-van .masthead-logo svg { width: 150px; }
  .van-3d .home-van .masthead .glow-rule { margin-top: 8px; }
  .van-3d .home-van .masthead-nav ul { display: flex; flex-wrap: nowrap; justify-content: center; }
  .van-3d .home-van .masthead-nav li { border: 0; }
  .van-3d .home-van .masthead-nav li + li { border-left: 1px solid var(--red); }
  .van-3d .home-van .masthead-nav ul { padding-block: 6px; }
  .van-3d .home-van .masthead-nav li { flex: 1 1 auto; }
  .van-3d .home-van .masthead-nav a { padding: 8px 4px; font-size: 10px; letter-spacing: .1em; text-indent: .1em; }
}
/* ==== END VAN HERO ==== */

/* ==== BELOW THE VAN ==== */
/* Services, work, marketplace, academy, how we work, contact. Site classes first; extras use the hs- prefix. */
.home .hs-svc .num { margin-bottom: 12px; }
.home .hs-incl { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--border); }
.home .hs-incl li { position: relative; padding: 9px 0 9px 16px; border-bottom: 1px solid var(--border); color: var(--soft); font-size: .93rem; line-height: 1.45; }
.home .hs-incl li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 5px; height: 5px; background: var(--red); }
.home .hs-svc .foot .link { font-size: .93rem; }
.home .hs-host { font: 600 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.home .card p.hs-host { color: var(--muted); }
.home .hs-more { margin: 24px 0 0; }
.home .hs-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* five products and the kits: three over three */
.home a.hs-prod { color: inherit; text-decoration: none; }
.home .hs-academy { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.home .hs-academy .num { margin-bottom: 12px; }
.home .hs-hb { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.home .hs-hb a { display: flex; gap: 10px; align-items: baseline; height: 100%; padding: 12px 14px; background: var(--panel); color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background-color .15s; }
.home .hs-hb a:hover { background: var(--panel-2); }
.home .hs-hb a:hover, .home .hs-tools a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home .hs-hb span { font: 600 11px/1 var(--mono); letter-spacing: .12em; color: var(--red-text); }
.home .hs-tools li { padding-left: 16px; }
.home .hs-tools a { display: block; color: var(--text); font-weight: 600; text-decoration: none; }
@media (max-width: 980px) {
  .home .hs-academy { grid-template-columns: 1fr; }
  .home .hs-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .home .hs-hb { grid-template-columns: 1fr 1fr; }
  .home .hs-hb li:last-child { grid-column: 1 / -1; }
  .home .hs-shop { grid-template-columns: 1fr; }
}
/* ==== END BELOW THE VAN ==== */
