/* Xtreme Edge Auto Salon: concept page. White ground, black fascia band, blue stripe, one signal red. */

:root {
  --fascia: #0e0f11;
  --white: #ffffff;
  --bay: #eef0f2;
  --ink: #14161a;
  --steel: #5b616b;
  --mist: #a9afb8;
  --red: #d92b26;
  --red-dark: #b3211d;
  --stripe: #2747c7;
  --glass-grey: #9aa0a8;
  --radius: 3px;
  --display: "Michroma", system-ui, sans-serif;
  --text: "Barlow", system-ui, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
}
img { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(1.5rem, 6.2vw, 3rem); line-height: 1.15; overflow-wrap: break-word; }
h2 { font-size: clamp(1.25rem, 4.5vw, 2rem); line-height: 1.2; overflow-wrap: break-word; }
a { color: inherit; cursor: pointer; }
button, label { cursor: pointer; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--stripe); outline-offset: 3px; }
.band :focus-visible,
.tintpanel :focus-visible,
.foot :focus-visible,
.skip:focus-visible { outline-color: var(--white); }

.wrap { max-width: 76rem; margin-inline: auto; padding-inline: 16px; }

#main, #top, #work, #tint, #bay, #dropoff { scroll-margin-top: 72px; }

/* Skip link */
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 30;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
  background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none;
  border-radius: var(--radius);
}
.skip:focus { top: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font: 600 1rem/1 var(--text); text-decoration: none; text-align: center;
  border: 1.5px solid transparent;
  transition: background-color 120ms, color 120ms, border-color 120ms;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-red:active { background: #8f1a17; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-line:active { background: #000; color: var(--white); }
.btn-big { min-height: 52px; }

/* Fascia band: sticky, black, with the blue stripe under it */
.band { position: sticky; top: 0; z-index: 20; background: var(--fascia); color: var(--white); }
.band::after {
  content: ""; display: block; height: 4px; background: var(--stripe);
  transform-origin: left center;
  animation: stripe-draw 500ms ease-out backwards;
}
@keyframes stripe-draw { from { transform: scaleX(0); } }
.band-in { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 400 0.9375rem/1 var(--display); letter-spacing: 0.02em; white-space: nowrap; }
.sq { display: block; width: 14px; height: 14px; background: var(--red); flex: none; }
.btn-band { min-height: 44px; min-width: 64px; padding: 0 18px; }
.btn-band .long { display: none; font-variant-numeric: tabular-nums; }

/* Hero */
.hero { padding: 28px 0 40px; }
.hero-in { display: block; }
.hero-text h1 { margin-bottom: 20px; }
.xpel { margin: 0 0 6px; font-weight: 600; }
.tagline { margin: 0 0 24px; color: var(--steel); font-size: 1.1875rem; }
.tagline em { color: var(--ink); }
.tagline span { font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-left: 6px; white-space: nowrap; }
.actions { display: grid; gap: 12px; }
.hero-photo { margin-top: 28px; max-width: 560px; }
.hero-photo img { width: 100%; border-radius: var(--radius); }
.hero-photo figcaption, .shots figcaption { margin-top: 8px; color: var(--steel); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }

/* The work */
.work { padding: 40px 0 8px; }
.work h2 { padding-bottom: 20px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { border-top: 1px solid var(--ink); padding: 20px 0 22px; display: grid; gap: 8px; }
.row h3 { font-size: 0.9375rem; line-height: 1.4; overflow-wrap: break-word; }
.row .line { margin: 0; max-width: 34rem; }
.rphoto { width: 100%; max-width: 360px; border-radius: var(--radius); margin-top: 10px; }
.rlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--stripe); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.rlink:hover { text-decoration-color: var(--ink); }
.rows .row:last-child { border-bottom: 1px solid var(--ink); }
.teslas { margin: 28px 0 0; padding: 0 0 40px; max-width: 40rem; font-size: 1.1875rem; }

/* Tint panel */
.tintpanel { position: relative; overflow: hidden; background: var(--fascia); box-shadow: 0 -12px 0 var(--fascia); /* the 12px between the 60px band and the 72px jump offset stays dark */ color: var(--white); padding: 72px 0 56px; }
.tintpanel .wrap { position: relative; z-index: 1; }
.tintpanel h2 { margin-bottom: 24px; }
/* The two LED frames, borrowed from the showroom ceiling. Nothing else is decorated. */
.tintpanel::before, .tintpanel::after {
  content: ""; position: absolute; pointer-events: none; border: 1.5px solid var(--white); border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55), inset 0 0 12px rgba(255, 255, 255, 0.25);
}
.tintpanel::before { top: -46px; right: -70px; width: 230px; height: 96px; }
.tintpanel::after { top: -18px; right: -44px; width: 150px; height: 58px; }

.tint { position: relative; max-width: 600px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.tint > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tint > label {
  display: flex; align-items: center; justify-content: center; min-width: 56px; min-height: 48px;
  border: 1px solid var(--mist); border-radius: var(--radius); color: var(--white);
  font: 600 1rem/1 var(--text); font-variant-numeric: tabular-nums;
  transition: background-color 120ms, color 120ms, border-color 120ms;
}
.tint > label:hover { border-color: var(--white); }
.tint > input:checked + label { background: var(--white); color: var(--ink); border-color: var(--white); }
.tint > input:focus-visible + label { outline: 3px solid var(--white); outline-offset: 3px; }

.glass {
  grid-column: 1 / -1; grid-row: 1; order: -1;
  position: relative; aspect-ratio: 3 / 2; width: 100%; max-width: 600px; margin-bottom: 24px;
  background: var(--glass-grey);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%, 0 32%);
  overflow: hidden;
}
.glass img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; }
.film { position: absolute; inset: 0; background: #000; opacity: 0.65; transition: opacity 200ms; }
#tint-70:checked ~ .glass .film { opacity: 0.30; }
#tint-50:checked ~ .glass .film { opacity: 0.50; }
#tint-35:checked ~ .glass .film { opacity: 0.65; }
#tint-15:checked ~ .glass .film { opacity: 0.85; }
#tint-5:checked ~ .glass .film { opacity: 0.95; }

.readouts { grid-column: 1 / -1; margin-top: 20px; min-height: 5.6rem; }
.r { display: none; margin: 0; font-size: 1.1875rem; line-height: 1.45; }
.r strong { display: block; margin-bottom: 2px; font: 600 2rem/1.15 var(--text); font-variant-numeric: tabular-nums; }
#tint-70:checked ~ .readouts .r70,
#tint-50:checked ~ .readouts .r50,
#tint-35:checked ~ .readouts .r35,
#tint-15:checked ~ .readouts .r15,
#tint-5:checked ~ .readouts .r5 { display: block; }

.tnote { grid-column: 1 / -1; margin: 0; color: var(--mist); max-width: 36rem; }
.tnote:nth-of-type(1) { margin-top: 12px; }
.tnote + .tnote { margin-top: 12px; color: var(--white); }
.tcall { grid-column: 1 / -1; margin-top: 24px; }
.tintpanel .btn-red:hover { background: #f03a35; }

/* In the bay */
.bay { position: relative; padding: 56px 0 56px; box-shadow: 0 -12px 0 var(--white); }
.bay h2 { padding-bottom: 24px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; align-items: start; }
.s-corvette { grid-row: span 2; }
.shots img { width: 100%; border-radius: var(--radius); }
.s-corvette img { max-width: 360px; }
.s-team img { max-width: 360px; }
.s-porsche img { max-width: 320px; }
.quotes { display: grid; gap: 28px; margin-top: 44px; }
.quote { border-top: 1px solid var(--ink); padding-top: 16px; }
.quote blockquote p { margin: 0 0 10px; font-size: 1.375rem; line-height: 1.4; font-weight: 500; max-width: 34rem; }
.quote figcaption { color: var(--steel); font-size: 0.9375rem; font-weight: 500; }
.rating { margin: 36px 0 0; padding-top: 16px; border-top: 1px solid var(--ink); font-size: 1.1875rem; }
.rating strong { font: 400 1.5rem/1 var(--display); margin-right: 4px; }

/* Drop it off */
.drop { position: relative; background: var(--bay); box-shadow: 0 -12px 0 var(--bay); padding: 56px 0 64px; }
.drop h2 { margin-bottom: 20px; }
.addr { font-size: 1.1875rem; font-weight: 500; margin-bottom: 28px; }
.label { margin: 0 0 8px; font: 600 0.875rem/1.2 var(--text); text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); }
.hours { width: 100%; max-width: 26rem; border-collapse: collapse; margin-bottom: 28px; font-weight: 500; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 9px 0; border-top: 1px solid var(--ink); text-align: left; font-weight: 500; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--ink); }
.hours td { text-align: right; }
.hours tr[aria-current="true"] th, .hours tr[aria-current="true"] td { font-weight: 700; }
.drop-a .actions { max-width: 26rem; }
.drop-b { margin-top: 36px; }
.small-photo { max-width: 360px; margin-bottom: 20px; }
.small-photo img { width: 100%; border-radius: var(--radius); }
.links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--stripe); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.links a:hover { text-decoration-color: var(--ink); }

/* Footer */
.foot { background: var(--fascia); color: var(--mist); padding: 36px 0 44px; font-size: 0.9375rem; }
.foot p { margin: 0 0 6px; }
.foot .concept { color: var(--white); font: 400 0.9375rem/1.4 var(--display); margin-bottom: 14px; }

@media (min-width: 768px) {
  .wrap { padding-inline: 24px; }
  h1 { font-size: clamp(1.5rem, 3.4vw, 3rem); }
  .band-in { height: 56px; }
  .btn-band .short { display: none; }
  .btn-band .long { display: inline; }
  .actions { grid-template-columns: repeat(2, max-content); }

  .hero { padding: 48px 0 56px; }
  .hero-in { display: grid; grid-template-columns: 55fr 45fr; gap: 40px; align-items: center; }
  .hero-photo { margin-top: 0; justify-self: end; width: 100%; }

  .row { grid-template-columns: 14rem 1fr 240px; gap: 24px; align-items: start; }
  .row .rphoto { grid-column: 3; grid-row: 1; margin-top: 0; }
  .rphoto { max-width: 240px; }

  /* Equal-height strip: each photo's width follows its own proportions, capped at 320px tall (the Porsche file is 639 wide). */
  .shots { display: flex; gap: 24px; max-width: 788px; align-items: flex-start; }
  .shots figure { min-width: 0; }
  .s-corvette { flex: 0.5625 1 0; }
  .s-team { flex: 0.75 1 0; }
  .s-porsche { flex: 1 1 0; }
  .shots img { max-width: none; }
  .quotes { grid-template-columns: 1fr 1fr; gap: 32px; }
  .drop-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .drop-b { margin-top: 0; padding-top: 8px; }
}

@media (min-width: 1024px) {
  .wrap { padding-inline: 32px; }
  h1 { font-size: clamp(1.5rem, 3vw, 3rem); }
  .tint { max-width: none; grid-template-columns: minmax(0, 644px) repeat(5, minmax(56px, 1fr)); column-gap: 4px; grid-template-rows: auto auto auto auto auto 1fr; }
  .glass { grid-column: 1; grid-row: 1 / -1; align-self: start; width: calc(100% - 44px); margin: 0; }
  .tint > label { grid-row: 1; }
  .readouts, .tnote, .tcall { grid-column: 2 / -1; }
  .readouts { grid-row: 2; margin-top: 24px; }
  .tnote:nth-of-type(1) { grid-row: 3; margin-top: 8px; }
  .tnote:nth-of-type(2) { grid-row: 4; }
  .tcall { grid-row: 5; justify-self: start; min-width: 14rem; }
  .tintpanel { padding: 88px 0 72px; }
  .tintpanel::before { top: -60px; right: -50px; width: 340px; height: 140px; }
  .tintpanel::after { top: -30px; right: -20px; width: 240px; height: 90px; }
  .rphoto { max-width: 240px; }
}

@media (min-width: 1280px) {
  h1 { font-size: 3rem; }
  .bay .wrap { display: grid; grid-template-columns: 788px 1fr; grid-template-areas: "h h" "shots rating" "quotes quotes"; column-gap: 48px; }
  .bay h2 { grid-area: h; }
  .shots { grid-area: shots; }
  .quotes { grid-area: quotes; }
  .rating { grid-area: rating; align-self: end; margin: 0; }
  .rating strong { display: block; margin: 0 0 10px; font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
