/* ============================================================
   DarianLamarStudio — "The cut sheet"
   Dark plotter-spec sheet. Precise, nocturnal, engineered.
   Tokens mirror body.darian in company-sites.css (this page
   does not load company-sites.css, so they live here too).
   ============================================================ */

body.darian {
  /* Palette taken from Darian's actual logo: black field, white wordmark,
     red "STUDIO" rule. So the ground is neutral near-black (matching the
     logo's field so the lockup sits on it seamlessly), type is white rather
     than cream, and the accent is his red — not the ember orange we'd been
     using, which was never his brand.
     bg -> panel keeps a ~13pt step so the section bands stay visible. */
  --bg: #0A0A0B;
  --ink: #F7F7F8;
  --muted: #9C9CA2;
  --line: rgba(255, 255, 255, .13);
  --panel: #17171A;
  --accent: #FF1C2D;
  --accent-dark: #CC0F1E;
  --soft: #2E0A10;
  --well: #050506; /* recessed surfaces: photo/stage wells, inputs */
  /* radius scale — the only three non-pill radii on the page */
  --r-s: 6px;
  --r-m: 8px;
  --r-l: 16px;
  /* ink-scrim family (photo overlays, nav glass, stage dim) */
  --scrim-1: rgba(10, 10, 11, .2);
  --scrim-2: rgba(10, 10, 11, .62);
  --scrim-3: rgba(10, 10, 11, .85);
  /* near-opaque: the sticky nav must not let section glow bleed through while scrolling */
  --scrim-nav: rgba(10, 10, 11, .94);
  /* derived tints — every alpha color traces to a token */
  --ink-08: rgba(255, 255, 255, .08);
  --ink-25: rgba(255, 255, 255, .25);
  --accent-tint: rgba(255, 28, 45, .22);
  --accent-dark-tint: rgba(204, 15, 30, .28);
  --muted-dim: rgba(156, 156, 162, .78); /* 4.7:1 on --panel — AA for small text */
  --sw-fallback: #333;
  /* the only two shadow recipes */
  --shadow-lift: 0 4px 16px rgba(0, 0, 0, .5);
  --shadow-pop: 0 18px 50px rgba(0, 0, 0, .6);
  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --body-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Selection picks up the brand red instead of the browser default blue. */
body.darian ::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Film grain. A page this dark reads flat and "digital" without it — a fixed
   noise layer at very low opacity gives the large graphite fields a printed,
   filmic texture. Sits under all content (main/nav/footer are lifted to z-1). */
.dl-grain {
  position: fixed;
  /* the drift only moves ±3%, so a small bleed is all that's needed — inset:-50%
     made this a 4x-viewport layer compositing nonstop, which costs battery on
     phones for a texture nobody consciously notices moving */
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Animate only where it's cheap: a fine pointer implies a desktop/laptop.
   Phones keep the texture, skip the continuous compositing. */
@media (pointer: fine) and (min-width: 900px) {
  .dl-grain {
    will-change: transform;
    animation: dl-grain 9s steps(10) infinite;
  }
}

@keyframes dl-grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

body.darian > main,
body.darian > .dl-footer { position: relative; z-index: 1; }

body.darian {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 900px) {
  body.darian { font-size: 17px; }
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.dl-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* skip link: hidden until keyboard focus, then drops in over the nav */
.dl-skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 60;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 0 0 var(--r-m) var(--r-m);
  text-decoration: none;
  transition: top .2s ease;
}

.dl-skip:focus,
.dl-skip:focus-visible { top: 0; outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- type ---------- */

.dl-mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.06;
  margin: 0 0 20px;
}

h1 { font-size: clamp(2.5rem, 10vw, 5.25rem); font-weight: 900; }

/* Small phones: keep the hero clearly above the 28px section H2s while
   fitting chip + photo + full headline + both CTAs in one ~800px viewport. */
@media (max-width: 479px) {
  h1 { font-size: clamp(2.125rem, 9vw, 2.5rem); }
}
h2 { font-size: clamp(1.75rem, 5.5vw, 3rem); }

p { margin: 0 0 16px; }

.dl-footnote {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 0;
}

.dl-footnote.dl-mono { font-size: 11px; }

/* ---------- layout primitives ---------- */

.dl-container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.dl-narrow {
  width: min(720px, 100% - 40px);
  margin-inline: auto;
}

.dl-section { padding: 72px 0 88px; }

@media (min-width: 900px) {
  .dl-section { padding: 96px 0 112px; }
}

/* full-width dashed cut-line with coordinate label */
.dl-cut {
  position: relative;
  border-top: 1px dashed var(--line);
}

.dl-cut > span {
  position: absolute;
  top: 0;
  right: 20px;
  transform: translateY(-50%);
  background: var(--bg);
  color: var(--muted);
  padding: 0 8px;
}

/* indexed eyebrow on a dashed rule with tick marks */
.dl-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.dl-eyebrow > span { color: var(--muted); }

.dl-rule {
  flex: 1;
  position: relative;
  border-top: 1px dashed var(--line);
}

.dl-rule::before,
.dl-rule::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 8px;
  background: var(--line);
}

.dl-rule::before { left: 0; }
.dl-rule::after { right: 0; }

/* ---------- buttons ---------- */

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-m);
  border: 1px solid transparent;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.dl-btn-solid {
  background: var(--accent);
  /* near-black, not white: on the true brand red #FF1C2D dark text is
     5.14:1 (passes AA) while white is only 3.85:1 (fails) */
  color: var(--bg);
}

.dl-btn-solid:hover { background: var(--accent-dark); }

.dl-btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.dl-btn-ghost:hover { border-color: var(--muted); }

.dl-btn-wide { width: 100%; }

/* ---------- nav ---------- */

.dl-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: var(--scrim-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.dl-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Real logo. Alpha is baked into the PNG (derived from luminance) rather than
   using mix-blend-mode: the nav and footer both create stacking contexts, so a
   blend has no backdrop to work against and the black field showed as a box. */
.dl-nav-brand img {
  width: auto;
  height: 20px;
}

@media (min-width: 900px) {
  .dl-nav-brand img { height: 24px; }
}

.dl-nav-brand span { white-space: nowrap; }

.dl-nav-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.dl-nav-tabs::-webkit-scrollbar { display: none; }

.dl-nav-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* touch-target minimum */
  padding: 9px 13px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  transition: color .3s ease, background-color .3s ease;
}

.dl-nav-tabs a:hover { color: var(--ink); }

.dl-nav-tabs a.is-current {
  color: var(--ink);
  background: var(--ink-08);
}

/* anchor targets clear the sticky nav */
#render, #estimate, #proof, #commercial, #services, #info, #consult, #book {
  scroll-margin-top: 76px;
}

/* ---------- section rhythm ----------
   Nine sections at identical padding on one flat field read as an endless
   scroll. Two devices fix it: alternating surface bands so the eye gets a
   beat, and a deliberate padding scale instead of 96/112 nine times. */

.dl-section.dl-band {
  background: var(--panel);
  border-block: 1px solid var(--line);
}

/* major beats breathe; supporting sections tighten up */
.dl-section.dl-sec-lead { padding-top: 124px; padding-bottom: 124px; }
.dl-section.dl-sec-tight { padding-top: 72px; padding-bottom: 80px; }

@media (max-width: 899px) {
  .dl-section.dl-sec-lead { padding-top: 84px; padding-bottom: 84px; }
  .dl-section.dl-sec-tight { padding-top: 60px; padding-bottom: 64px; }
}

/* ---------- consultations: give it structure ----------
   It was a centred text block wedged between structured sections, which read
   as a wall of text. Split it so the copy and the checklist sit side by side. */

@media (min-width: 900px) {
  .dl-consult-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
  .dl-consult-grid > * { min-width: 0; }
}

.dl-consult-panel {
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 26px 28px;
}

.dl-consult-panel .dl-consult-list { margin-top: 0; }
.dl-consult-panel .dl-consult-list li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- direct contact (call / text / email the shop) ---------- */

.dl-direct {
  margin: 26px 0 10px;
  color: var(--muted);
}

.dl-direct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dl-direct-actions .dl-btn { flex: 1 1 auto; }

@media (max-width: 520px) {
  .dl-direct-actions .dl-btn { flex: 1 1 100%; }
}

/* ---------- consultations ---------- */

.dl-consult-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.dl-consult-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.dl-consult-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--accent);
  font-weight: 700;
}

.dl-consult-list + .dl-btn { margin-top: 26px; }

@media (max-width: 767px) {
  /* tabs drop to their own row and scroll sideways */
  .dl-nav { flex-wrap: wrap; padding-bottom: 0; }
  .dl-nav-tabs {
    flex-basis: 100%;
    order: 3;
    margin: 4px -12px 0;
    padding: 0 36px 8px 12px;
    /* right-edge fade: signals more tabs off-screen */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }
  #render, #estimate, #proof, #commercial, #services, #info, #event, #book {
    scroll-margin-top: 112px;
  }
  .dl-btn { font-size: 13px; }
  /* tighten the dead bands around section cuts on phones */
  .dl-section { padding: 52px 0 60px; }
}

@media (max-width: 479px) {
  .dl-nav { padding: 10px 12px 0; gap: 10px; }
  .dl-nav-brand { font-size: 11px; gap: 8px; letter-spacing: .04em; }
  .dl-nav-brand img { width: 30px; height: 30px; }
}

/* 320px-class phones: per the brief, logo + pill only */
@media (max-width: 359px) {
  .dl-nav-brand span { display: none; }
}

/* ---------- S1 hero ---------- */

.dl-hero { padding-top: 16px; }

.dl-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  margin: 0 0 14px;
}

.dl-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.dl-hero-media {
  position: relative;
  border-block: 1px solid var(--line);
}

.dl-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--scrim-2), transparent 26%),
    linear-gradient(to top, var(--scrim-3), transparent 42%);
}

.dl-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* side-profile hero: 50% keeps roofline-to-wheels in the wide desktop crop
     (40% clips the wheels, 60% clips the roof) */
  object-position: center 50%;
  filter: saturate(.9) contrast(1.05) brightness(.98);
}

.dl-hero-copy {
  position: relative;
  z-index: 2;
  margin-top: -56px;
}

.dl-hero-copy h1 {
  margin: 0 0 14px;
  max-width: 16ch;
  text-wrap: balance;
  text-shadow: 0 2px 24px var(--scrim-3);
}

.dl-hero-line {
  width: 180px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: dl-draw .6s cubic-bezier(.22, 1, .36, 1) .9s forwards;
  margin-bottom: 16px;
}

@keyframes dl-draw {
  to { transform: scaleX(1); }
}

.dl-hero-sub {
  max-width: 46ch;
  color: var(--muted);
  margin-bottom: 24px;
}

.dl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 64px;
}

@media (max-width: 479px) {
  .dl-hero { padding-top: 8px; }
  .dl-hero-copy { margin-top: -72px; }
  .dl-chip { margin-bottom: 10px; }
  .dl-hero-copy h1 { margin-bottom: 10px; }
  .dl-hero-line { margin-bottom: 12px; }
  .dl-hero-sub { font-size: 14px; margin-bottom: 14px; }
  /* both CTAs on one row, above the fold */
  .dl-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-bottom: 56px;
  }
  .dl-hero-actions .dl-btn { padding: 14px 10px; font-size: 13px; }
  /* short phones: keep the headline + CTAs above the fold */
  .dl-hero-media img { max-height: 58vh; }
}

@media (min-width: 900px) {
  .dl-hero-media img {
    aspect-ratio: 16 / 10;
    /* keep the full headline + primary CTA above an 800px-tall fold */
    height: min(64vh, calc(100vw * 10 / 16));
    width: 100%;
  }

  .dl-hero-copy { margin-top: -110px; }
  .dl-hero-actions { padding-bottom: 96px; }
  /* taller bottom fade so the photo's hard edge never cuts behind the headline */
  .dl-hero-media::after {
    background:
      linear-gradient(to bottom, var(--scrim-2), transparent 26%),
      linear-gradient(to top, var(--scrim-3), transparent 58%);
  }
}

/* ---------- shared photo treatment ---------- */

.dl-photo {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--well);
}

.dl-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.86) contrast(1.06) brightness(.94);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.dl-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, var(--scrim-3), transparent 55%);
}

.dl-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--scrim-1);
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1);
}

.dl-photo:hover::after { opacity: 0; }
.dl-photo:hover img { transform: scale(1.03); }

/* per-tile crops: keep hoods, not storefront signage, in the 4:3 frame */
.dl-photo img.dl-crop-70 { object-position: center 70%; }
.dl-photo img.dl-crop-78 { object-position: center 78%; }

.dl-photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  color: var(--ink);
}

/* ---------- S2 visualizer console ---------- */

.dl-console {
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 24px;
  display: grid;
  gap: 28px;
}

@media (min-width: 980px) {
  .dl-console {
    grid-template-columns: 5fr 7fr;
    padding: 32px;
    gap: 40px;
  }
}

.dl-field { display: block; }

.dl-field > .dl-mono {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

/* one control recipe: every input, select and date field on the page is 48px */
.dl-field input,
.dl-field select,
.dl-field textarea {
  width: 100%;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 13px 12px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

.dl-field input,
.dl-field select { height: 48px; }

.dl-field select { cursor: pointer; }

.dl-field input:focus,
.dl-field select:focus,
.dl-field textarea:focus {
  outline: none;
  border-color: var(--muted);
}

.dl-field input:focus-visible,
.dl-field select:focus-visible,
.dl-field textarea:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 1px;
}

.dl-field input::placeholder,
.dl-field textarea::placeholder { color: var(--muted-dim); }

.dl-field-row {
  display: grid;
  grid-template-columns: 76px 1fr 1fr;
  gap: 10px;
}

.dl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.dl-error {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--accent-dark);
  background: var(--soft);
  color: var(--ink);
}

.dl-viz-form {
  display: grid;
  gap: 16px;
  align-content: start;
}

.dl-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.dl-legend-note {
  color: var(--muted-dim);
  letter-spacing: .08em;
}

.dl-sms-quote { margin-top: 12px; }

/* financing line under the estimate */
.dl-finance {
  margin: 4px 0 14px;
  color: var(--accent);
}

/* ---------- good to know (materials + care + FAQ) ---------- */
.dl-info-grid {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}
@media (min-width: 900px) {
  .dl-info-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
}
.dl-info-grid > * { min-width: 0; }

.dl-info-label {
  color: var(--muted);
  margin: 0 0 14px;
}

.dl-info-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.dl-info-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.5;
}
.dl-info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.dl-faq-item {
  border-top: 1px dashed var(--line);
  padding: 4px 0;
}
.dl-faq-item:last-child { border-bottom: 1px dashed var(--line); }
.dl-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 28px 14px 0;
  position: relative;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 16px;
}
.dl-faq-item summary::-webkit-details-marker { display: none; }
.dl-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  color: var(--accent);
  font-size: 20px;
  transition: transform .2s ease;
}
.dl-faq-item[open] summary::after { content: "\2013"; }
.dl-faq-item p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 54ch;
}

/* social proof strip */
.dl-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.dl-proof-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.dl-proof-strip b { color: var(--ink); font-weight: 500; white-space: nowrap; }
.dl-proof-strip a { color: var(--accent); text-decoration: none; }

@media (max-width: 560px) {
  /* stack the meta rows left-aligned instead of letting fragments collide mid-wrap */
  .dl-proof-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dl-proof-strip span { flex-wrap: wrap; }
}

/* before / after slider */
.dl-ba { margin: 24px 0 0; }
.dl-ba-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  aspect-ratio: 3 / 2;
  background: var(--well);
  touch-action: pan-y;
}

/* the range input is invisible over the frame — surface keyboard focus here */
.dl-ba-frame:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.dl-ba-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.04) brightness(.98);
}
.dl-ba-before {
  /* revealed from the left up to the handle position (--ba, default 50%) */
  clip-path: inset(0 calc(100% - var(--ba, 50%)) 0 0);
}
.dl-ba-tag {
  position: absolute;
  top: 12px;
  z-index: 3;
  padding: 6px 10px;
  color: var(--ink);
  background: var(--scrim-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  pointer-events: none;
}
.dl-ba-tag-l { left: 12px; }
.dl-ba-tag-r { right: 12px; }
.dl-ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba, 50%);
  width: 2px;
  margin-left: -1px;
  z-index: 3;
  background: var(--accent);
  pointer-events: none;
}
.dl-ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--shadow-lift);
}
.dl-ba-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.dl-ba figcaption { margin-top: 10px; color: var(--muted); }

.dl-fieldset legend {
  padding: 0;
  color: var(--muted);
  margin-bottom: 10px;
}

.dl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dl-finish {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}

.dl-finish:hover { border-color: var(--muted); }

.dl-finish.is-active {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--ink);
}

/* ---------- upload your car ---------- */
.dl-upload { display: grid; gap: 10px; }
.dl-upload-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.dl-upload-preview img {
  width: 84px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
}
.dl-upload-meta { display: grid; gap: 4px; }
.dl-upload-meta > span { color: var(--accent); }
.dl-upload-remove {
  justify-self: start;
  padding: 0;
  background: none;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

.dl-finish:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- vehicle selects ----------
   (controls inherit the shared .dl-field recipe above) */
.dl-vehicle-row select:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- colored dropdown (color + base paint) ---------- */
.dl-select { position: relative; width: 100%; }

.dl-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px; /* matches the shared .dl-field control height */
  padding: 0 14px;
  color: var(--ink);
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  cursor: pointer;
  text-align: left;
}
.dl-select-btn:hover { border-color: var(--muted); }
.dl-select-btn > span[data-dd-label] { flex: 1; font-size: 13px; }
.dl-select-caret { color: var(--muted); transition: transform .2s ease; }
.dl-select-btn[aria-expanded="true"] .dl-select-caret { transform: rotate(180deg); }

.dl-select-sw {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--ink-25);
  background: var(--sw, var(--sw-fallback));
}
.dl-select-sw-auto {
  background:
    conic-gradient(from 0deg, #e0389c, #f2c81a, #3fae4a, #1f7ae0, #6a2fbf, #e0389c);
}

.dl-select-panel {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-pop);
}

.dl-select-group {
  padding: 10px 8px 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dl-select-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--r-s);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}
.dl-select-opt:hover,
.dl-select-opt.is-active { background: var(--ink-08); }
.dl-select-opt.is-active { color: var(--accent); }

.dl-viz-form > .dl-btn-wide { margin-top: 8px; }

.dl-viz-form .dl-footnote { margin: 0; text-align: center; }

/* stage */

.dl-stage { margin: 0; }

.dl-stage-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--well);
}

.dl-stage-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 62%;
  filter: saturate(.86) contrast(1.06) brightness(.94);
}

.dl-stage-dim {
  position: absolute;
  inset: 0;
  background: var(--scrim-2);
  opacity: 0;
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.dl-squeegee {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.dl-squeegee i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -3px;
  width: 2px;
  background: var(--accent);
}

.dl-squeegee i::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 2px;
  width: 42px;
  background: linear-gradient(to left, var(--accent-tint), transparent);
}

.dl-stage.is-rendering .dl-stage-dim { opacity: 1; }

.dl-stage.is-rendering .dl-squeegee {
  opacity: 1;
  animation: dl-sweep 2.5s cubic-bezier(.45, 0, .55, 1) infinite;
}

@keyframes dl-sweep {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

.dl-stage-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 2px 0;
  color: var(--muted);
}

.dl-stage-spec { color: var(--ink); text-align: right; }

.dl-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* ---------- S3 estimator ---------- */

.dl-split {
  display: grid;
  gap: 32px;
}

/* grid items must be allowed to shrink below their content width */
.dl-split > * { min-width: 0; }

@media (min-width: 980px) {
  .dl-split {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
  }

  /* working asymmetry: the 5-col drops 48px */
  .dl-split-copy { margin-top: 48px; }
}

.dl-split-copy p { color: var(--muted); max-width: 44ch; }

.dl-estimate-card {
  position: relative;
  z-index: 3;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 24px;
}

.dl-estimate-card form {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 980px) {
  .dl-estimate-card {
    padding: 32px;
    /* sanctioned overlap: card breaks 40px into the proof section */
    margin-bottom: -40px;
  }

  .dl-section-estimate { padding-bottom: 40px; }
  .dl-section-proof { padding-top: 136px; }
}

.dl-estimate-label { color: var(--muted); margin: 0; }

.dl-price {
  margin: 4px 0 6px;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  /* preferred size governs at phone widths so the range never wraps */
  font-size: clamp(1.75rem, 7.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.01em;
}

@media (min-width: 980px) {
  /* keep the full range on one line inside the 7-col card */
  .dl-price { font-size: clamp(2.75rem, 4.2vw, 3.6rem); }
}

/* 320px-class phones: the nowrap range must fit a ~232px card interior */
@media (max-width: 359px) {
  .dl-price { font-size: 1.375rem; }
}

.dl-price span {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--accent);
  white-space: nowrap;
}

.dl-estimate-summary { color: var(--muted); margin: 0 0 18px; }

.dl-estimate-card .dl-footnote { margin-top: 12px; }

/* ---------- S4 proof ---------- */

.dl-proof-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 900px) {
  .dl-proof-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  .dl-proof-grid .dl-photo { grid-column: span 2; }
}

.dl-proof-duo .dl-photo { grid-column: span 3; }

.dl-preview-showcase { margin-top: 30px; }
.dl-preview-label { color: var(--muted); margin: 0 0 14px; }
.dl-preview-grid { display: grid; gap: 14px; }
@media (min-width: 760px) {
  .dl-preview-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.dl-preview { position: relative; margin: 0; }
.dl-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.dl-preview-tag {
  position: absolute;
  top: 8px;
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(10, 10, 11, .74);
  padding: 3px 7px;
  border-radius: 5px;
}
.dl-preview-tag-l { left: 8px; }
.dl-preview-tag-r { right: 8px; }
.dl-preview figcaption { margin-top: 9px; color: var(--muted); }

.dl-ba-real {
  max-width: 440px;
  margin: 26px auto 0;
}
.dl-ba-real img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.dl-ba-real figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
}

/* action in reach right after the proof duo */
.dl-proof-cta { margin: 24px 0 0; }

/* ---------- S4b commercial & fleet ---------- */

.dl-commercial-lead {
  max-width: 60ch;
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.dl-commercial-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

@media (min-width: 760px) {
  .dl-commercial-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

.dl-commercial-grid .dl-photo img {
  aspect-ratio: 16 / 9;
  filter: saturate(.96) contrast(1.04);
}

/* plain checklist rows — nothing here looks tappable */
.dl-commercial-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  max-width: 52ch;
}

.dl-commercial-list li {
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
}

.dl-commercial-list li:last-child { border-bottom: 1px dashed var(--line); }

.dl-commercial-list li::before {
  content: "+";
  color: var(--accent);
  margin-right: 12px;
}

@media (min-width: 760px) {
  /* fill the container: the checklist runs two columns instead of a narrow strip */
  .dl-commercial-list {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }
  .dl-commercial-list li:nth-last-child(-n+2) { border-bottom: 1px dashed var(--line); }
}

.dl-section-commercial .dl-btn { margin-top: 24px; }

/* ---------- S4c portfolio: archive strip + services ---------- */

.dl-archive-label {
  margin: 32px 0 0;
  color: var(--muted);
}

.dl-archive {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

@media (min-width: 700px) {
  .dl-archive { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (min-width: 980px) {
  .dl-archive { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.dl-archive .dl-photo img {
  aspect-ratio: 4 / 3;
  filter: saturate(.9) contrast(1.05) brightness(1.02);
}

.dl-archive .dl-photo figcaption { left: 10px; bottom: 8px; }

.dl-services {
  display: grid;
  gap: 32px;
}

.dl-services > * { min-width: 0; }

@media (min-width: 980px) {
  .dl-services {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
  }

  /* working asymmetry, same as the estimator split */
  .dl-services-copy { margin-top: 48px; }
}

.dl-services-blurb {
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 24px;
}

.dl-service {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px dashed var(--line);
}

.dl-service:last-child { border-bottom: 1px dashed var(--line); }

.dl-service i {
  font-style: normal;
  color: var(--accent);
}

.dl-service b {
  display: block;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 4px;
}

.dl-service span { color: var(--muted); }

.dl-service a { color: var(--ink); }

/* ---------- S5 event ---------- */

.dl-event {
  background:
    radial-gradient(circle at 82% 18%, var(--accent-dark-tint), transparent 58%),
    var(--soft);
  border-block: 1px solid var(--line);
  padding: 72px 0;
  overflow: hidden;
}

.dl-event-grid {
  display: grid;
  gap: 32px;
}

.dl-event-photo img {
  aspect-ratio: 1 / 1;
  /* crop in on the booth car so the bare-garage walls stay out of frame */
  transform: scale(1.45);
  transform-origin: 50% 72%;
}

.dl-event-photo:hover img { transform: scale(1.48); }

.dl-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dl-event-date { color: var(--muted); margin-bottom: 14px; }

.dl-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  color: var(--muted);
}

.dl-steps li { display: inline-flex; align-items: center; }

.dl-steps li + li::before {
  content: "→";
  margin: 0 8px;
  color: var(--muted);
}

@media (min-width: 980px) {
  .dl-event { padding: 96px 0; }

  .dl-event-grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 56px;
  }

  .dl-event-copy { order: -1; }

  /* image bleeds to the right viewport edge */
  .dl-event-photo {
    margin-right: calc((100vw - min(1160px, 100vw - 40px)) / -2);
    border-radius: var(--r-m) 0 0 var(--r-m);
    border-right: 0;
  }
}

/* ---------- S6 ticket ---------- */

.dl-ticket {
  position: relative;
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--r-l) var(--r-l);
  border-top: 2px dashed var(--line);
  padding: 24px;
}

/* perforation notches */
.dl-ticket::before,
.dl-ticket::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
}

.dl-ticket::before { left: -10px; }
.dl-ticket::after { right: -10px; }

.dl-ticket form {
  display: grid;
  gap: 14px;
}

.dl-ticket-stub {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.dl-ticket-stub-label { color: var(--muted); margin-bottom: 8px; }

#darianLead {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
  min-height: 3em;
  margin-bottom: 16px;
}

#darianLead:empty::before {
  content: "Awaiting first lead";
  color: var(--muted);
}

.dl-ticket-stub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 900px) {
  .dl-ticket { padding: 32px; }
}

/* ---------- footer ---------- */

.dl-footer { padding: 56px 0 0; text-align: center; }

/* Real lockup in the footer — transparent PNG, no blend needed. */
.dl-footer-logo {
  width: auto;
  height: 62px;
  flex: none;
}

@media (min-width: 900px) {
  .dl-footer-logo { height: 76px; }
}

.dl-footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 14px;
}

.dl-footer .dl-mono { color: var(--muted); padding-bottom: 40px; }

.dl-footer a { color: var(--accent); text-decoration: none; }

.dl-footer .dl-cut > span { right: auto; left: 20px; }

/* ---------- reveals ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .6s cubic-bezier(.22, 1, .36, 1),
    transform .6s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--rd, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* keep the texture, drop the drift */
  .dl-grain { animation: none; }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .dl-hero-line {
    animation: none;
    transform: scaleX(1);
  }

  .dl-photo img,
  .dl-photo::after,
  .dl-btn,
  .dl-finish,
  .dl-stage-dim { transition: none; }

  .dl-photo:hover img { transform: none; }

  /* the event photo's crop is composition, not motion — keep it */
  .dl-event-photo img,
  .dl-event-photo:hover img { transform: scale(1.45); }

  .dl-stage.is-rendering .dl-squeegee { animation: none; opacity: .6; }
}
