/* UDC Cleveland, version 6: "Night drive"
   Deep blue-black like a car at night, lit by two glows:
   amber (light trails, the "after") and blue (instrument light, the "before").
   One chalk section gives the page a breath of daylight. */

:root {
  --night: #0D1015;
  --night-2: #141922;
  --steel: #1F2733;
  --steel-2: #283241;
  --text: #EEF0F2;
  --muted: #A3ABB6;
  --line: rgba(238, 240, 242, .1);
  --line-2: rgba(238, 240, 242, .18);
  --amber: #F2A65A;
  --amber-deep: #94490F;
  --blue: #82B4FF;
  --chalk: #ECEDEA;
  --ink: #12151A;
  --muted-light: #545A62;
  --line-light: #D3D5D1;
  --white: #FFFFFF;
  --error: #B3261E;
  --error-dark: #FF9B8F;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --r: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--night); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 700; font-variation-settings: "wdth" 108; letter-spacing: -.02em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.small-jobs :focus-visible, .quote-form :focus-visible { outline-color: var(--amber-deep); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: var(--night); padding: 12px 16px; }
.skip:focus { top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .3s var(--ease);
  touch-action: manipulation;
}
.btn-amber { background: var(--amber); color: var(--night); box-shadow: 0 8px 30px -8px rgba(242, 166, 90, .6); }
.btn-amber:hover { background: #FFBE7E; box-shadow: 0 10px 40px -6px rgba(242, 166, 90, .8); }
.btn-line { border-color: var(--line-2); color: var(--text); }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }
.btn-ink { background: var(--ink); color: var(--text); }
.btn-ink:hover { background: var(--amber); color: var(--night); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(13, 16, 21, .78); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand-mark {
  font-weight: 800; font-variation-settings: "wdth" 125; font-size: 1.625rem; letter-spacing: .02em; line-height: 1; padding-bottom: 5px;
  background: linear-gradient(90deg, var(--blue) 0 50%, var(--amber) 50% 100%) bottom left / 100% 2px no-repeat;
}
.brand-sub { font-size: .875rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-weight: 500; font-size: .9375rem; text-decoration: none; padding: 8px 0; color: var(--muted); transition: color .2s var(--ease); }
.site-nav a:hover { color: var(--text); }
.list-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 18px !important;
  border: 1.5px solid var(--line-2); border-radius: 999px; color: var(--text) !important; font-weight: 600 !important;
}
.list-count {
  min-width: 28px; height: 28px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px;
  background: var(--steel); font-size: .8125rem; font-variant-numeric: tabular-nums;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.list-count.has-items { background: var(--amber); color: var(--night); box-shadow: 0 0 16px rgba(242, 166, 90, .7); }
.nav-toggle {
  display: none; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line-2); border-radius: 999px;
  background: none; font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--night-2); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--text); }
  .list-link { margin-top: 16px; justify-content: space-between; padding: 0 8px 0 20px !important; }
}

/* Hero: the photo has no frame. It fills the right of the hero edge to edge
   and fades into the night background behind the headline. */
.hero {
  position: relative; overflow: hidden; background: var(--night);
  min-height: min(660px, calc(100svh - 68px));
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--night) 0%, rgba(13, 16, 21, .92) 32%, rgba(13, 16, 21, .5) 46%, transparent 60%);
}
.hero-grid { position: relative; z-index: 2; width: 100%; padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); }
.hero-copy { max-width: 540px; }
.hero-kicker { font-weight: 600; color: var(--amber); }
.hero h1 { margin-top: 16px; font-size: clamp(2.75rem, 5vw, 4.5rem); text-shadow: 0 2px 30px rgba(13, 16, 21, .6); }
.hero-lede { margin-top: 22px; font-size: 1.1875rem; color: var(--muted); max-width: 44ch; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9375rem; font-weight: 500; }
.hero-note svg { width: 22px; height: 22px; flex: none; color: var(--amber); }

/* The photo fades into the night on its left, bottom and top edges.
   The top fade also hides a small watermark in the source's top-right corner. */
.hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 70%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%), linear-gradient(0deg, transparent 0%, #000 20%), linear-gradient(180deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in, source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%), linear-gradient(0deg, transparent 0%, #000 20%), linear-gradient(180deg, transparent 0%, #000 22%);
  mask-composite: intersect;
}
/* Mirrored so the car's nose points into open space on the right,
   with its tail tucked into the fade behind the headline. */
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 18% 62%;
  transform: scaleX(-1);
}
.g figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 14px; border-radius: 999px;
  background: rgba(13, 16, 21, .72); backdrop-filter: blur(8px); color: var(--text); font-size: .875rem; font-weight: 500;
  border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column-reverse; align-items: stretch; min-height: 0; }
  .hero::before { display: none; }
  .hero-grid { padding-top: 8px; }
  .hero-photo {
    position: relative; width: 100%; height: 78vw; max-height: 480px;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 16%), linear-gradient(180deg, transparent 0%, transparent 8%, #000 32%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(0deg, transparent 0%, #000 16%), linear-gradient(180deg, transparent 0%, transparent 8%, #000 32%);
    mask-composite: intersect;
  }
  .hero-photo img { object-position: 55% 65%; }
}

/* Generations strip */
.gens { background: var(--night-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gens-inner { display: flex; align-items: center; gap: 12px 40px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.gens-title { font-size: 1rem; font-weight: 500; font-variation-settings: "wdth" 100; letter-spacing: 0; color: var(--muted); }
.gens-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.gens-list li { color: var(--muted); }
.gens-list strong { color: var(--text); font-weight: 700; margin-right: 6px; }

/* Then / Now */
.then-now {
  position: relative; padding: var(--section) 0;
  background:
    radial-gradient(50% 60% at 20% 70%, rgba(130, 180, 255, .14), transparent 70%),
    var(--night);
  transition: background-color .6s var(--ease);
}
.then-now::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(50% 60% at 20% 70%, rgba(242, 166, 90, .18), transparent 70%);
  transition: opacity .6s var(--ease);
}
.then-now[data-state="now"]::after { opacity: 1; }
.then-now > .wrap { position: relative; z-index: 1; }

.tn-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.tn-head h2 { font-size: clamp(2.5rem, 5vw, 4.25rem); max-width: 14ch; }
.tn-head p { margin-top: 18px; color: var(--muted); max-width: 46ch; font-size: 1.125rem; }

.switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; background: var(--steel); border-radius: 999px; min-width: 300px; border: 1px solid var(--line); }
.switch-btn {
  position: relative; z-index: 1; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: none;
  font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .3s var(--ease);
}
.switch-btn[aria-pressed="true"] { color: var(--night); }
.switch-thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px;
  background: var(--blue); box-shadow: 0 0 20px rgba(130, 180, 255, .5);
  transition: transform .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease);
}
.then-now[data-state="now"] .switch-thumb { transform: translateX(100%); background: var(--amber); box-shadow: 0 0 24px rgba(242, 166, 90, .6); }

.tn-body { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 6fr 5fr; gap: 40px 64px; align-items: start; }

/* State swapping, shared by every then/now pair */
.then-now .then, .then-now .now,
.dash-then, .dash-now { transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s; }
.then-now[data-state="then"] .now,
.then-now[data-state="now"] .then { opacity: 0; visibility: hidden; transform: translateY(8px); }
.then-now[data-state="then"] .dash-now,
.then-now[data-state="now"] .dash-then { opacity: 0; visibility: hidden; }

.dash-wrap { position: sticky; top: 100px; }
.tn-year { display: grid; font-weight: 300; font-variation-settings: "wdth" 125; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: -.03em; margin-bottom: 18px; }
.tn-year span { grid-area: 1 / 1; }
.tn-year .then { color: var(--blue); }
.tn-year .now { color: var(--amber); }
.dash-note { display: grid; margin-top: 14px; font-size: .9375rem; color: var(--muted); }
.dash-note span { grid-area: 1 / 1; }

/* The drawn dashboard */
.dash {
  position: relative; aspect-ratio: 16 / 10; padding: 18px; border-radius: 22px;
  background: linear-gradient(165deg, #1E242D, #0A0D11 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.04), 0 30px 70px -30px rgba(0,0,0,.9), 0 0 80px -30px rgba(130,180,255,.5);
  transition: box-shadow .6s var(--ease);
}
.then-now[data-state="now"] .dash {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.04), 0 30px 70px -30px rgba(0,0,0,.9), 0 0 90px -25px rgba(242,166,90,.6);
}
.dash-then, .dash-now { position: absolute; inset: 18px; display: grid; place-items: center; }
.then-now[data-state="now"] .dash-then { transform: scale(.96); }
.then-now[data-state="then"] .dash-now { transform: scale(1.03); }

/* Then: CD head unit */
.hu {
  width: 92%; aspect-ratio: 180 / 50; display: flex; align-items: center; gap: 4%; padding: 0 4%;
  border-radius: 10px; background: linear-gradient(180deg, #4A5059, #2B3036 55%, #23272C);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 18px rgba(0,0,0,.6);
}
.hu-knob {
  flex: none; width: 13%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8A919B, #3A4048 60%, #1E2226);
  box-shadow: 0 2px 4px rgba(0,0,0,.6), inset 0 -2px 3px rgba(0,0,0,.4);
}
.hu-mid { flex: 1; display: grid; gap: 7%; align-content: center; height: 100%; padding: 6% 0; }
.hu-slot { display: block; height: 3px; border-radius: 2px; background: #0B0D10; box-shadow: 0 1px 0 rgba(255,255,255,.12); }
.hu-lcd {
  display: flex; justify-content: space-between; padding: 4% 6%; border-radius: 4px;
  background: #0E1A17; color: #79D3B5; text-shadow: 0 0 6px rgba(121,211,181,.6);
  font-family: "Courier New", monospace; font-weight: 700; font-size: clamp(.7rem, 1.5vw, 1.05rem); letter-spacing: .08em;
}
.hu-keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4%; }
.hu-keys i {
  font-style: normal; text-align: center; font-size: clamp(.55rem, 1vw, .75rem); color: #C5CAD1;
  padding: 3% 0; border-radius: 3px; background: linear-gradient(#3C424A, #2A2F35); box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

/* Now: touchscreen */
.scr {
  width: 100%; height: 100%; display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; padding: 10px;
  border-radius: 12px; background: #0B0F14;
  box-shadow: inset 0 0 0 1px rgba(130,180,255,.18), 0 0 30px rgba(130,180,255,.12);
}
.scr-map { position: relative; border-radius: 8px; overflow: hidden; }
.scr-map svg { width: 100%; height: 100%; display: block; }
.scr-eta {
  position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(11,15,20,.85); color: var(--text); font-size: clamp(.65rem, 1.2vw, .85rem); font-weight: 600;
}
.scr-side { display: grid; grid-template-rows: 1fr auto; gap: 10px; }
.scr-music { display: grid; grid-template-rows: 1fr auto; gap: 8px; padding: 10px; border-radius: 8px; background: #151B24; }
.scr-art { border-radius: 6px; background: linear-gradient(135deg, var(--amber), #C8566A 50%, var(--blue)); }
.scr-track { display: grid; gap: 5px; }
.scr-track b { font-size: clamp(.6rem, 1.1vw, .8rem); color: var(--text); font-weight: 600; }
.scr-track i { display: block; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--amber) 0 40%, #2C3542 40%); }
.scr-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.scr-apps span { aspect-ratio: 1; border-radius: 22%; display: grid; place-items: center; }
.scr-apps span:nth-child(1) { background: #3DBE7A; }
.scr-apps span:nth-child(2) { background: #E0566E; }
.scr-apps span:nth-child(3) { background: var(--blue); }
.scr-apps span:nth-child(4) { background: var(--amber); }
.scr-apps svg { width: 58%; height: 58%; fill: #fff; stroke: #fff; }

/* Then/now rows */
.tn-rows { margin: 0; border-top: 1px solid var(--line); }
.tn-row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 6px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tn-row dt { font-weight: 600; color: var(--muted); padding-top: 2px; }
.tn-row dd { margin: 0; display: grid; font-size: 1.0625rem; line-height: 1.5; }
.tn-row dd span { grid-area: 1 / 1; }
.tn-row dd .then { color: var(--muted); }
.tn-row dd .now { color: var(--text); padding-left: 14px; border-left: 2px solid var(--amber); }
.tn-row:nth-child(2) dd span { transition-delay: .04s; }
.tn-row:nth-child(3) dd span { transition-delay: .08s; }
.tn-row:nth-child(4) dd span { transition-delay: .12s; }
.tn-row:nth-child(5) dd span { transition-delay: .16s; }

@media (max-width: 980px) {
  .tn-body { grid-template-columns: 1fr; }
  .dash-wrap { position: static; }
  .switch { min-width: 0; width: 100%; }
}
@media (max-width: 560px) { .tn-row { grid-template-columns: 1fr; } .dash { padding: 12px; } .dash-then, .dash-now { inset: 12px; } }

/* Section heads */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 64px; align-items: end; }
.section-head h2, .how h2, .quote h2, .small-jobs h2 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
.section-head p { font-size: 1.125rem; color: var(--muted); max-width: 46ch; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* Services */
.services {
  padding: var(--section) 0;
  background: radial-gradient(70% 50% at 50% 100%, rgba(130,180,255,.08), transparent 70%), var(--night-2);
  border-top: 1px solid var(--line);
}
.cards { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  --glow: var(--amber);
  position: relative; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--steel), var(--night-2) 85%);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card-d { --glow: var(--blue); }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--glow) 45%, transparent); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--glow) 70%, transparent); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card-photo { position: relative; }
.card-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--steel)); }
.card-letter {
  position: absolute; z-index: 1; left: 20px; bottom: -18px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--night); color: var(--glow);
  border: 1.5px solid var(--glow); box-shadow: 0 0 22px color-mix(in srgb, var(--glow) 55%, transparent);
  font-weight: 800; font-variation-settings: "wdth" 125; font-size: 1.125rem;
}
.card-body { padding: 30px 22px 24px; }
.card-kicker { font-size: .9375rem; font-weight: 600; color: var(--glow); }
.card h3 { margin-top: 6px; font-size: 1.75rem; }
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: rgba(13,16,21,.4); color: var(--text);
  font: inherit; font-weight: 500; font-size: .9375rem; cursor: pointer; touch-action: manipulation;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.chip::before { content: "+"; font-weight: 600; color: var(--glow); width: 12px; text-align: center; }
.chip:hover { border-color: var(--glow); }
.chip[aria-pressed="true"] { background: var(--glow); border-color: var(--glow); color: var(--night); box-shadow: 0 0 18px color-mix(in srgb, var(--glow) 45%, transparent); }
.chip[aria-pressed="true"]::before { content: "\2713"; color: var(--night); }
/* Extras row: add-ons that aren't U, D or C */
.extras {
  --glow: var(--amber);
  margin-top: 20px; padding: 20px 24px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--steel), var(--night-2)); border: 1px solid var(--line);
}
.extras-title { font-size: 1.25rem; }
.extras-text p { margin-top: 4px; color: var(--muted); }
.extras .chips { margin: 0; }
@media (max-width: 1020px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* Small jobs: the daylight section */
.small-jobs { background: var(--chalk); color: var(--ink); padding: clamp(64px, 8vw, 104px) 0; }
.small-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 32px 72px; align-items: start; }
.small-grid > div > p { margin-top: 18px; color: var(--muted-light); font-size: 1.125rem; max-width: 40ch; }
.small-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.small-list li {
  padding: 20px 22px; border-radius: var(--r-sm); background: var(--white); color: var(--muted-light);
  border: 1px solid var(--line-light); box-shadow: 0 14px 30px -24px rgba(18,21,26,.5);
  background-image: linear-gradient(90deg, var(--amber), var(--blue)); background-size: 100% 3px; background-repeat: no-repeat;
}
.small-list strong { display: block; color: var(--ink); font-weight: 650; font-size: 1.125rem; }
@media (max-width: 860px) { .small-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .small-list { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { padding: var(--section) 0 0; background: var(--night); }
.gallery-grid {
  margin: clamp(40px, 5vw, 64px) auto 0; max-width: calc(var(--wrap) + 120px); padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.g { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 0 0 1px var(--line); }
.g-wide { grid-column: span 2; aspect-ratio: auto; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .8s var(--ease); filter: saturate(.92); }
@media (hover: hover) { .g:hover img { transform: scale(1.04); filter: saturate(1.1); } }
.g figcaption strong { font-weight: 700; margin-right: 6px; }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .g-wide { grid-column: auto; aspect-ratio: 4 / 3; }
}

/* How it works */
.how { padding: var(--section) 0; background: var(--night); }
.steps { list-style: none; counter-reset: s; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li {
  counter-increment: s; padding: 26px 24px; border-radius: var(--r);
  background: linear-gradient(180deg, var(--night-2), var(--night)); border: 1px solid var(--line);
}
.steps li::before {
  content: "0" counter(s); display: block; font-weight: 300; font-variation-settings: "wdth" 125; font-size: 3rem; line-height: 1; letter-spacing: -.03em;
  background: linear-gradient(90deg, var(--blue), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { margin-top: 18px; font-size: 1.375rem; }
.steps p { margin-top: 8px; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Quote */
.quote {
  padding: var(--section) 0;
  background:
    radial-gradient(60% 80% at 90% 20%, rgba(242,166,90,.16), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(130,180,255,.12), transparent 70%),
    var(--night-2);
  border-top: 1px solid var(--line);
}
.quote-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px clamp(32px, 6vw, 88px); }
.quote-intro > p { margin-top: 18px; color: var(--muted); font-size: 1.125rem; max-width: 38ch; }
.contact { margin: 36px 0 0; }
.contact div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; font-weight: 500; }
.contact a { text-decoration-color: var(--amber); text-underline-offset: 4px; }

.quote-form { background: var(--chalk); color: var(--ink); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); display: grid; gap: 20px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.your-list { background: var(--white); border: 1px solid var(--line-light); border-radius: var(--r-sm); padding: 16px 18px; }
.your-list-head { display: flex; justify-content: space-between; align-items: center; }
.your-list-title { font-weight: 700; font-size: 1.125rem; }
.clear { min-height: 36px; background: none; border: 0; font: inherit; color: var(--muted-light); text-decoration: underline; cursor: pointer; }
.your-list-items { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.your-list-items li { padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--text); font-size: .9375rem; }
.your-list-empty { margin-top: 6px; color: var(--muted-light); }
.your-list-empty a { font-weight: 600; color: var(--amber-deep); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-light); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .2s var(--ease);
}
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--muted-light); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 0; border-color: var(--amber-deep); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-help { font-size: .9375rem; color: var(--muted-light); }
.field-error { font-size: .9375rem; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
.quote-form .btn { justify-self: start; }
.form-status { font-weight: 600; color: var(--amber-deep); }
.form-status:empty { display: none; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #090B0F; color: var(--muted); padding: 56px 0 40px; font-size: .9375rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 64px; }
.site-footer .brand-mark { display: inline-block; color: var(--text); margin-bottom: 12px; font-size: 2rem; }
.footer-small { display: grid; gap: 14px; font-size: .875rem; }
.credits summary { cursor: pointer; font-weight: 600; color: var(--text); min-height: 32px; }
.credits ul { margin: 8px 0; padding-left: 18px; }
.credits a { color: var(--text); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
