/* Leverett Media — charcoal, white and electric blue. Mobile first. */

:root {
  --bg: #0B0D10;
  --bg-section: #12151A;
  --bg-card: #1A1E24;
  --hair: rgba(255, 255, 255, 0.09);
  --line: rgba(31, 139, 255, 0.32);
  --accent: #1F8BFF;
  --accent-hover: #5BA0FF;
  --accent-fill: #1E6FEA;
  --accent-fill-hover: #1864D9;
  --glow: rgba(31, 139, 255, 0.45);
  --text: #FFFFFF;
  --muted: #C9CED6;
  --dim: #9AA1AB;

  /* spacing scale */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6rem;
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --header-h: 4.5rem;
  --wrap: 72rem;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color var(--ease); }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--bg); }

.skip-link {
  position: absolute; left: var(--s4); top: -4rem; z-index: 100;
  background: var(--accent-fill); color: var(--text);
  padding: var(--s3) var(--s4); font-weight: 600; text-decoration: none; border-radius: 6px;
}
.skip-link:focus { top: var(--s3); color: var(--text); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Scroll progress
   ========================================================================== */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent-fill), var(--accent), var(--accent-hover));
  box-shadow: 0 0 12px var(--glow);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.75), rgba(11, 13, 16, 0));
  border-bottom: 1px solid transparent;
  transition: height var(--ease), background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.site-header.is-scrolled {
  --header-h: 3.75rem;
  background: rgba(11, 13, 16, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--hair);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}
.header-inner {
  width: min(100% - 2rem, var(--wrap)); margin-inline: auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
}
.brand { display: flex; align-items: center; gap: var(--s3); color: var(--text); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--text); }
.logo-mark { flex: 0 0 auto; color: var(--accent); line-height: 0; transition: transform var(--ease), filter var(--ease); }
.brand:hover .logo-mark { transform: scale(1.08) rotate(-3deg); filter: drop-shadow(0 0 10px var(--glow)); }
.brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.1; color: var(--text); }
.brand-place { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.75rem; height: 2.75rem; padding: 0.65rem;
  border: 1px solid var(--line); border-radius: 8px;
  background: rgba(11, 13, 16, 0.5); cursor: pointer; color: var(--accent);
  transition: background var(--ease), transform 0.15s ease;
}
.nav-toggle:hover { background: rgba(31, 139, 255, 0.14); }
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
  background: rgba(18, 21, 26, 0.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: var(--s3) var(--s5) var(--s5);
}
body.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s1); }
.site-nav a {
  position: relative; display: block; color: var(--text); text-decoration: none;
  padding: var(--s3) var(--s3); font-weight: 600; letter-spacing: 0.01em; border-radius: 6px;
  transition: color var(--ease), background var(--ease);
}
.site-nav a:hover { color: var(--accent-hover); }
.site-nav a.is-active { color: var(--accent); }
.site-nav .nav-cta {
  margin-top: var(--s2); text-align: center; background: var(--accent-fill); color: var(--text);
  transition: background var(--ease), transform 0.15s ease, box-shadow var(--ease);
}
.site-nav .nav-cta:hover { background: var(--accent-fill-hover); color: var(--text); box-shadow: 0 6px 22px -6px var(--glow); }
.site-nav .nav-cta:active { transform: scale(0.97); }

/* Buttons
   ========================================================================== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 3.25rem; padding: 0.75rem 1.7rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid transparent; border-radius: 8px; cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform 0.18s var(--ease-out), box-shadow var(--ease);
}
.btn::after { content: "→" / ""; display: inline-block; transition: transform var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }

.btn-accent { background: var(--accent-fill); color: var(--text); border-color: var(--accent-fill); box-shadow: 0 8px 24px -10px var(--glow); }
.btn-accent:hover { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); color: var(--text); box-shadow: 0 12px 32px -8px var(--glow), 0 0 0 4px rgba(31, 139, 255, 0.16); }

.btn-ghost { background: rgba(11, 13, 16, 0.35); color: var(--text); border-color: rgba(255, 255, 255, 0.35); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(31, 139, 255, 0.14); border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 4px rgba(31, 139, 255, 0.12); }

/* Type
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s3);
  margin: 0 0 var(--s4); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; flex: 0 0 2rem; width: 2rem; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--glow); }

.section-head { max-width: 44rem; margin-bottom: var(--s7); }
.section-head h2, .about-copy h2, .contact-copy h2 {
  margin: 0 0 var(--s4); font-weight: 700; color: var(--text);
  font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em;
}
.lede { margin: 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; }

section { position: relative; }

/* Reveal on scroll (only when JS is running)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
  will-change: opacity, transform;
}
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* once revealed, release the stagger delay so hover transitions are instant */
.js .service-card[data-reveal].is-in { transition-delay: 0s; }

@keyframes hero-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-in { animation: hero-in 0.9s var(--ease-out) both; animation-delay: calc(0.15s + var(--i, 0) * 0.12s); }

/* Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + var(--s8)) 0 var(--s9);
  color: var(--text); isolation: isolate; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 13, 16, 0.95) 0%, rgba(11, 13, 16, 0.75) 40%, rgba(11, 13, 16, 0.3) 75%, rgba(11, 13, 16, 0.45) 100%),
    linear-gradient(180deg, rgba(11, 13, 16, 0.5) 0%, rgba(11, 13, 16, 0.1) 35%, rgba(11, 13, 16, 0.95) 100%),
    url("assets/showroom-display.jpg") 62% center / cover no-repeat;
  transform-origin: 70% 50%;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }

.hero::after { /* blue floor glow */
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 100% at 25% 100%, rgba(31, 139, 255, 0.22), transparent 70%);
}
.hero-sweep {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; mix-blend-mode: screen;
}
.hero-sweep::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(91, 160, 255, 0.16), rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-18deg);
  animation: sweep 9s ease-in-out infinite;
}
@keyframes sweep { 0% { left: -40%; opacity: 0; } 15% { opacity: 1; } 55% { left: 120%; opacity: 1; } 100% { left: 120%; opacity: 0; } }

.hero-inner { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; max-width: 46rem; }
.hero h1 {
  margin: 0 0 var(--s5); font-weight: 700; color: var(--text);
  font-size: clamp(2.7rem, 8.2vw, 5.9rem); line-height: 0.98; letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero h1 .hl { color: var(--accent-hover); background: linear-gradient(100deg, #1F8BFF, #7DB4FF 60%, #FFFFFF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { margin: 0 0 var(--s6); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; color: var(--muted); max-width: 35rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

.scroll-cue {
  position: absolute; left: 50%; bottom: var(--s5); width: 1.6rem; height: 2.6rem; margin-left: -0.8rem;
  border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 1rem; display: none;
  transition: border-color var(--ease);
}
.scroll-cue:hover { border-color: var(--accent); }
.scroll-cue span { position: absolute; left: 50%; top: 0.5rem; width: 3px; height: 0.5rem; margin-left: -1.5px; background: var(--accent); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(0.9rem); opacity: 0; } 100% { opacity: 0; } }

/* Services
   ========================================================================== */
.services { background: var(--bg-section); padding: var(--section-y) 0; overflow: hidden; }
.services::before {
  content: ""; position: absolute; top: -10rem; right: -10rem; width: 34rem; height: 34rem; pointer-events: none;
  background: radial-gradient(circle, rgba(31, 139, 255, 0.14), transparent 65%);
}
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); align-items: stretch; position: relative; }

.service-card {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; background: var(--bg-card);
  padding: var(--s6) var(--s5) var(--s6); border: 1px solid var(--hair); border-radius: 14px;
  transition: opacity 0.8s var(--ease-out), transform 0.35s var(--ease-out), border-color var(--ease), box-shadow var(--ease);
}
.service-card::before { /* top accent line that grows */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transform: scaleX(0.18); transform-origin: 0 50%; transition: transform 0.5s var(--ease-out);
}
.service-card::after { /* pointer-follow glow */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--ease);
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(31, 139, 255, 0.16), transparent 60%);
}
.service-card:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(31, 139, 255, 0.18), 0 18px 44px -22px var(--glow); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }
.card-num { position: absolute; top: var(--s5); right: var(--s5); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; color: var(--dim); }
.service-icon {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: var(--s5);
  color: var(--accent); background: rgba(31, 139, 255, 0.1); border: 1px solid var(--line); border-radius: 12px;
  transition: transform 0.4s var(--ease-out), background var(--ease), color var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-4deg); background: var(--accent-fill); color: var(--text); }
.service-card h3 { margin: 0 0 var(--s3); font-size: 1.4rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; color: var(--text); position: relative; }
.service-card p { margin: 0; color: var(--muted); font-size: 1rem; position: relative; }

/* About
   ========================================================================== */
.about { background: var(--bg); padding: var(--section-y) 0; overflow: hidden; }
.about-grid { display: grid; gap: var(--s7); align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo::before { /* offset hairline frame */
  content: ""; position: absolute; inset: var(--s4) calc(var(--s4) * -1) calc(var(--s4) * -1) var(--s4);
  border: 1px solid var(--line); border-radius: 16px; z-index: 0; transition: transform 0.5s var(--ease-out);
}
.about-photo:hover::before { transform: translate(6px, 6px); }
.about-photo-inner { position: relative; z-index: 1; overflow: hidden; border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.about-photo-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 13, 16, 0.55)); pointer-events: none; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.about-photo:hover img { transform: scale(1.07); }
.about-copy p { color: var(--muted); }
.honesty {
  margin: var(--s5) 0; padding: var(--s2) 0 var(--s2) var(--s5); border: 0; border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(31, 139, 255, 0.09), transparent 70%);
}
.honesty p { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.3; letter-spacing: -0.015em; color: var(--text); font-weight: 700; }

/* Band
   ========================================================================== */
.band { position: relative; min-height: 20rem; display: flex; align-items: center; isolation: isolate; color: var(--text); overflow: hidden; border-block: 1px solid var(--hair); }
.band-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.86), rgba(11, 13, 16, 0.78)),
    radial-gradient(70% 120% at 50% 120%, rgba(31, 139, 255, 0.28), transparent 70%),
    url("assets/forecourt-row.jpg") 20% 60% / cover no-repeat;
}
.band-inner { width: min(100% - 2.5rem, 56rem); margin-inline: auto; padding: var(--s8) 0; text-align: center; }
.band-quote {
  margin: 0; font-weight: 700; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -0.03em; color: var(--text);
  text-shadow: 0 2px 24px rgba(11, 13, 16, 0.9); text-wrap: balance;
}

/* Contact
   ========================================================================== */
.contact { background: var(--bg); padding: var(--section-y) 0; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; right: -10rem; bottom: -12rem; width: 36rem; height: 36rem; pointer-events: none;
  background: radial-gradient(circle, rgba(31, 139, 255, 0.15), transparent 65%);
}
.contact-grid { display: grid; gap: var(--s7); position: relative; }
.contact-cards { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: var(--s3); }
.contact-cards li {
  padding: var(--s4) var(--s5); border: 1px solid var(--hair); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--bg-section);
  transition: transform 0.3s var(--ease-out), border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.contact-cards li:hover { transform: translateX(6px); border-color: var(--line); border-left-color: var(--accent); background: var(--bg-card); box-shadow: 0 14px 30px -20px var(--glow); }
.contact-label { margin: 0 0 2px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.contact-cards a, .contact-cards span { color: var(--text); font-weight: 700; text-decoration: none; font-size: 1.15rem; word-break: break-word; }
.contact-cards a:hover { color: var(--accent-hover); text-decoration: underline; }
.phone-placeholder { letter-spacing: 0.06em; }

.contact-form {
  position: relative; background: var(--bg-card); padding: var(--s6) var(--s5); border: 1px solid var(--hair); border-radius: 16px;
  display: grid; gap: var(--s4); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9);
  transition: border-color var(--ease), box-shadow var(--ease), opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.contact-form:focus-within { border-color: var(--line); box-shadow: 0 30px 70px -36px var(--glow); }
.field { display: grid; gap: var(--s2); }
.field label { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--hair);
  padding: 0.8rem 0.9rem; border-radius: 8px; transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.22); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 139, 255, 0.28); background: var(--bg-section); }
.field textarea { resize: vertical; min-height: 8rem; }
.contact-form .btn { justify-self: start; margin-top: var(--s1); }
.form-note { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* Footer
   ========================================================================== */
.site-footer { background: var(--bg); color: var(--muted); padding: var(--s7) 0 var(--s7); border-top: 1px solid var(--hair); position: relative; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.6; }
.footer-inner { display: grid; gap: var(--s5); }
.brand-footer .brand-place { text-transform: none; letter-spacing: 0.01em; font-size: 0.85rem; line-height: 1.35; color: var(--muted); font-weight: 500; }
.footer-meta p { margin: 0 0 var(--s2); font-size: 0.9rem; }
.photo-credit { color: var(--dim); font-size: 0.8rem !important; }
.photo-credit a { color: inherit; }
.photo-credit a:hover { color: var(--accent-hover); }

/* Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .hero { align-items: center; padding-bottom: var(--s9); }
  .scroll-cue { display: block; }
}
@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: transparent; backdrop-filter: none; border: 0; padding: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--s1); }
  .site-nav a { padding: 0.5rem 0.9rem; font-size: 0.97rem; }
  .site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.2rem; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--ease); }
  .site-nav a:not(.nav-cta):hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
  .site-nav .nav-cta { margin-top: 0; margin-left: var(--s3); padding-inline: 1.2rem; border-radius: 8px; }
  .about-grid, .contact-grid { grid-template-columns: 1.05fr 1fr; gap: var(--s8); align-items: center; }
  .contact-grid { align-items: start; }
  .footer-inner { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--s6); }
  .footer-meta { text-align: right; }
  .band { min-height: 24rem; }
  .band-bg { background-attachment: scroll, scroll, fixed; }
}
@media (min-width: 1100px) {
  .hero-inner { margin-left: max(calc((100% - var(--wrap)) / 2), 1.25rem); margin-right: auto; }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .service-card { padding: var(--s6) var(--s5); }
  .about-photo img { aspect-ratio: 4 / 3.3; }
}
@media (max-width: 879px) {
  body.nav-open { overflow: hidden; }
  .about-photo::before { inset: var(--s3) calc(var(--s3) * -1) calc(var(--s3) * -1) var(--s3); }
}
@media (hover: none) {
  .band-bg { background-attachment: scroll; }
}

/* Hero dial — holographic glass
   ========================================================================== */
.hero-inner { position: relative; z-index: 2; }
.hero-dial {
  --v: 0;
  position: absolute; z-index: 3; right: 0.75rem; top: calc(var(--header-h) + 0.55rem);
  width: clamp(148px, 32vw, 240px); aspect-ratio: 1;
  animation: dial-in 0.9s var(--ease-out) 0.15s both;
  cursor: pointer;
  transform-origin: 50% 50%;
  transition: filter 0.35s ease, transform 0.4s var(--ease-out);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 22px rgba(31, 139, 255, 0.3));
}
.hero-dial.is-rev {
  transform: scale(1.035);
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 42px rgba(155, 108, 255, 0.55)) drop-shadow(0 0 28px rgba(125, 240, 255, 0.55));
}
@keyframes dial-in { from { opacity: 0; transform: scale(0.9) translateY(12px); } to { opacity: 1; transform: none; } }

.dial-aura {
  position: absolute; inset: -18%;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 40deg, rgba(125,240,255,0.18), rgba(31,139,255,0.08), rgba(155,108,255,0.2), rgba(224,86,200,0.12), rgba(31,139,255,0.08), rgba(125,240,255,0.18));
  filter: blur(16px);
  animation: holo-rot 16s linear infinite;
  opacity: 0.85;
}
.dial-rim {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  padding: 3.6%;
  isolation: isolate;
  background: #0B0D10;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.14),
    inset 0 0 0 1px rgba(255,255,255,0.18),
    0 8px 28px rgba(0,0,0,0.35);
}
.dial-rim::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: conic-gradient(from 0deg, #7DF0FF, #1F8BFF 70deg, #9B6CFF 140deg, #E056C8 205deg, #1F8BFF 290deg, #7DF0FF);
  animation: holo-rot 12s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px));
}
.dial-rim::before {
  content: "";
  position: absolute; inset: 3.4%;
  border-radius: 50%;
  z-index: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(8,12,20,0.2) 40%, rgba(8,12,20,0.35));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -8px 18px rgba(0,0,0,0.28);
  pointer-events: none;
}
.dial-glass {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 30% 18%, rgba(255,255,255,0.22), transparent 42%),
    radial-gradient(80% 80% at 70% 90%, rgba(155,108,255,0.12), transparent 50%),
    linear-gradient(160deg, rgba(18,28,46,0.28), rgba(8,10,18,0.42));
  backdrop-filter: blur(16px) saturate(1.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}
.dial-svg { width: 100%; height: 100%; overflow: visible; display: block; position: relative; z-index: 1; }

.dial-specular, .dial-sweep, .dial-chroma {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 2;
}
.dial-specular {
  background: linear-gradient(125deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.12) 18%, transparent 36%, transparent 68%, rgba(125,240,255,0.1) 100%);
  mix-blend-mode: screen;
}
.dial-sweep { overflow: hidden; }
.dial-sweep::before {
  content: "";
  position: absolute; top: -30%; bottom: -30%; left: -40%; width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), rgba(125,240,255,0.28), rgba(224,86,200,0.12), transparent);
  transform: skewX(-22deg);
  animation: dial-sweep 5.8s ease-in-out infinite;
}
@keyframes dial-sweep {
  0% { left: -45%; opacity: 0; }
  12% { opacity: 1; }
  55% { left: 115%; opacity: 1; }
  100% { left: 115%; opacity: 0; }
}
.dial-chroma {
  box-shadow:
    1.5px 0 0 rgba(125, 240, 255, 0.38),
    -1.5px 0 0 rgba(224, 86, 200, 0.32);
  mix-blend-mode: screen;
  animation: chroma 3.8s ease-in-out infinite alternate;
}
@keyframes chroma {
  from { box-shadow: 1.6px 0 0 rgba(125,240,255,0.4), -1.6px 0 0 rgba(224,86,200,0.3); }
  to   { box-shadow: -2px 1px 0 rgba(125,240,255,0.42), 2px -1px 0 rgba(155,108,255,0.36); }
}
@keyframes holo-shift { to { filter: hue-rotate(360deg); } }
@keyframes holo-rot { to { transform: rotate(360deg); } }

.dl-track { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 7; stroke-linecap: butt; }
.dl-redline { fill: none; stroke: url(#dlred); stroke-width: 7; stroke-linecap: butt; filter: drop-shadow(0 0 5px rgba(224, 86, 200, 0.8)); }
.dl-value, .dl-value-glow {
  fill: none; stroke: url(#dlarc); stroke-linecap: butt;
  stroke-dashoffset: calc(var(--L) * (1 - var(--v)));
}
.dl-value { stroke-width: 6; filter: url(#dlGlow); }
.dl-value-glow { stroke-width: 13; opacity: 0.34; }
.hero-dial.is-rev .dl-value { filter: url(#dlGlowHot); }
.hero-dial.is-rev .dl-value-glow { opacity: 0.62; }
.dl-major { stroke: #F4F8FF; stroke-width: 3.2; stroke-linecap: butt; filter: drop-shadow(0 0 2px rgba(125, 240, 255, 0.55)); }
.dl-minor { stroke: rgba(200, 230, 255, 0.62); stroke-width: 1.3; stroke-linecap: butt; }
.dl-redtick { stroke: #E8A8FF; filter: drop-shadow(0 0 3px rgba(224, 86, 200, 0.7)); }
.dl-major.dl-redtick { stroke: #F3D0FF; stroke-width: 3.4; }
.dl-num { fill: #F3F6FB; font: 700 22px var(--sans); }
.dl-num-red { fill: #E8B8FF; }
.dl-unit { fill: #7DF0FF; font: 700 13px var(--sans); letter-spacing: 0.28em; }
.dl-sub { fill: rgba(201, 206, 214, 0.9); font: 600 11px var(--sans); letter-spacing: 0.2em; }
.dl-needle {
  transform-box: view-box; transform-origin: 200px 200px;
  transform: rotate(calc(var(--v) * 270deg - 135deg));
  will-change: transform;
}
.dl-needle-shape { fill: #F7F9FB; }
.dl-needle-shine { fill: #7DF0FF; }
.dl-hub { fill: rgba(10, 14, 22, 0.88); stroke: rgba(255,255,255,0.28); stroke-width: 1; }
.dl-hub-core { fill: #1F8BFF; }
.dl-hub-pin { fill: #F7F9FB; }
.dl-glass { stroke: rgba(255, 255, 255, 0.35); stroke-width: 9; stroke-linecap: round; opacity: 0.7; }

@media (min-width: 1200px) {
  .hero-dial {
    top: 50%;
    right: clamp(1.25rem, 6vw, 7rem);
    width: clamp(340px, 30vw, 470px);
    margin-top: calc(clamp(340px, 30vw, 470px) / -2 + 1.1rem);
  }
}
@media (max-width: 639px) {
  .hero-dial {
    right: 0.55rem;
    top: calc(var(--header-h) + 0.35rem);
    width: 138px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-dial, .dial-aura, .dial-rim, .dial-rim::after, .dial-sweep::before, .dial-chroma { animation: none; }
}

/* Process flow diagram
   ========================================================================== */
.process { background: var(--bg); padding: var(--section-y) 0; overflow: clip; border-top: 1px solid var(--hair); }
.process::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 80%);
}
.pf { position: relative; display: flex; flex-direction: column; }
.pf-svg { width: 100%; height: auto; overflow: visible; }
.pf-mobile { display: block; max-width: 420px; margin-inline: auto; }
.pf-desktop { display: none; }

.pf-base { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 2; }
.pf-thin { stroke-width: 1.5; }
.pf-flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 11; opacity: 0.75; animation: pf-dash 1.2s linear infinite; }
.pf-thinflow { stroke-width: 1.5; opacity: 0.55; }
@keyframes pf-dash { to { stroke-dashoffset: -14; } }
.pf-pulse { fill: #9CC8FF; offset-rotate: 0deg; filter: drop-shadow(0 0 6px #1F8BFF) drop-shadow(0 0 12px rgba(31, 139, 255, 0.8)); animation: pf-run var(--t, 3s) linear var(--d, 0s) infinite; offset-distance: 0%; }
@keyframes pf-run { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

.pf-node { cursor: pointer; outline: none; }
.pf-pill, .pf-hub { transform-box: fill-box; transform-origin: center; transition: transform 0.35s var(--ease-out); }
.pf-bg { fill: var(--bg-card); stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.5; transition: fill var(--ease), stroke var(--ease), filter var(--ease); }
.pf-dot { fill: var(--dim); transition: fill var(--ease), filter var(--ease); }
.pf-label { fill: var(--text); font: 700 16px var(--sans); letter-spacing: -0.005em; }
.pf-halo { fill: rgba(31, 139, 255, 0); transition: fill 0.4s ease; }
.pf-ring { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 4 7; transform-box: fill-box; transform-origin: center; animation: pf-spin 18s linear infinite; opacity: 0.8; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
.pf-core { fill: var(--bg-section); stroke: var(--accent); stroke-width: 2; transition: fill var(--ease), filter var(--ease); }
.pf-num { fill: var(--accent); font: 700 20px var(--sans); letter-spacing: 0.04em; transition: fill var(--ease); }
.pf-stage { fill: var(--text); font: 700 20px var(--sans); letter-spacing: -0.01em; }

.pf-pill:hover, .pf-pill:focus-visible, .pf-pill.is-active { transform: scale(1.06); }
.pf-pill:hover .pf-bg, .pf-pill:focus-visible .pf-bg { stroke: var(--accent); fill: #1C2733; filter: drop-shadow(0 0 12px rgba(31, 139, 255, 0.55)); }
.pf-pill.is-active .pf-bg { stroke: var(--accent); fill: #1C2A3B; filter: drop-shadow(0 0 16px rgba(31, 139, 255, 0.7)); }
.pf-pill:hover .pf-dot, .pf-pill.is-active .pf-dot, .pf-pill:focus-visible .pf-dot { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.pf-pill:focus-visible .pf-bg { stroke: #fff; stroke-width: 2; }
.pf-pill.is-stage .pf-dot { fill: rgba(31, 139, 255, 0.7); }

.pf-hub:hover, .pf-hub:focus-visible, .pf-hub.is-active { transform: scale(1.1); }
.pf-hub:hover .pf-halo, .pf-hub.is-active .pf-halo, .pf-hub:focus-visible .pf-halo { fill: rgba(31, 139, 255, 0.16); }
.pf-hub:hover .pf-core, .pf-hub.is-active .pf-core, .pf-hub:focus-visible .pf-core { fill: var(--accent-fill); filter: drop-shadow(0 0 16px rgba(31, 139, 255, 0.85)); }
.pf-hub:hover .pf-num, .pf-hub.is-active .pf-num, .pf-hub:focus-visible .pf-num { fill: #fff; }
.pf-hub:focus-visible .pf-ring { stroke: #fff; }
.pf-spinedot { fill: var(--accent); filter: drop-shadow(0 0 5px var(--accent)); }

.pf-panel {
  margin: var(--s6) auto 0; max-width: 40rem; padding: var(--s5) var(--s6); text-align: left;
  background: linear-gradient(180deg, rgba(31, 139, 255, 0.1), rgba(26, 30, 36, 0.9)); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 50px -30px var(--glow); min-height: 9.5rem;
}
.pf-kicker { margin: 0 0 var(--s1); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.pf-title { margin: 0 0 var(--s2); font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
.pf-text { margin: 0; color: var(--muted); font-size: 1.05rem; }

@media (min-width: 900px) {
  .pf-desktop { display: block; }
  .pf-mobile { display: none; }
  .pf-panel { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-pulse { display: none; }
  .pf-flow { stroke-dasharray: none; opacity: 0.45; }
  .pf-ring { animation: none; }
}

/* Process panel: sticks under the header on small screens so taps show their text */
.pf-panel { order: -1; position: sticky; top: calc(3.75rem + 0.5rem); z-index: 6; margin: 0 0 var(--s5); min-height: 8.5rem; padding: var(--s4) var(--s5); background: linear-gradient(180deg, rgba(31, 139, 255, 0.14), rgba(18, 21, 26, 0.96)); backdrop-filter: blur(10px); width: 100%; }
@media (min-width: 900px) {
  .pf-panel { order: 1; position: static; margin: var(--s6) auto 0; padding: var(--s5) var(--s6); min-height: 9.5rem; backdrop-filter: none; }
}
