@font-face {
  font-family: "Bungee";
  src: url("fonts/bungee.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cream: #f6efe0;
  --paper: #fffaf0;
  --ink: #17120d;
  --ink-soft: #4a4038;
  --yellow: #ffc400;
  --orange: #ff5a1f;
  --orange-ink: #b93a0a;
  --teal: #1f6f6f;
  --steel: #6b7480;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lift: 10px 10px 0 var(--ink);
  --radius: 14px;
  --font-display: "Bungee", "Arial Black", Impact, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --hazard: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 14px,
    var(--ink) 14px 28px
  );
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-color: var(--ink-soft) var(--cream);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin-bottom: 12px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

p {
  margin: 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* No italics anywhere: emphasis comes from weight and colour */
em,
i,
cite,
address,
dfn,
var {
  font-style: normal;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--ink);
  border: var(--line);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

/* Scroll progress (progressive enhancement, no JS) */
.progress {
  display: none;
}

@supports (animation-timeline: scroll()) {
  .progress {
    display: block;
    position: fixed;
    inset: 0 0 auto;
    height: 5px;
    z-index: 1100;
    background: var(--hazard);
    transform-origin: left;
    animation: grow linear both;
    animation-timeline: scroll(root);
  }
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--cream);
}

.container {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 1.35rem var(--font-display);
  color: var(--cream);
  text-decoration: none;
}

.logo-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--yellow) 0 4px,
    var(--ink) 5px 8px,
    var(--yellow) 9px
  );
  transition: transform 0.6s var(--ease);
}

.logo:hover .logo-badge {
  transform: rotate(360deg);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a {
  position: relative;
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
}

nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-block;
  padding: 8px 16px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  transition: transform 0.25s var(--bounce);
}

.nav-cta:hover {
  transform: rotate(-3deg) scale(1.05);
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-btn span {
  width: 26px;
  height: 3px;
  background: var(--cream);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Sections */
section {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
  padding: 88px 0;
  text-align: center;
}

.lead {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.15rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 44px;
}

.card {
  padding: 28px;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
  transition:
    transform 0.35s var(--bounce),
    box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translate(-4px, -4px) rotate(-1deg);
  box-shadow: var(--shadow-lift);
}

.grid > :nth-child(even).card:hover {
  transform: translate(-4px, -4px) rotate(1deg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--yellow);
  color: var(--ink);
  border: var(--line);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  font: 700 1rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
  box-shadow: 4px 4px 0 var(--orange);
}

.btn-ghost:hover {
  box-shadow: 6px 6px 0 var(--orange);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.95rem;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.8;
}

/* Hero */
.hero {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 40px;
  padding: 64px max(16px, (100% - 1200px) / 2) 72px;
  background: var(--ink);
  color: var(--cream);
  text-align: left;
}

.hero p {
  color: #d8cdb8;
  max-width: 480px;
  font-size: 1.15rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 20px;
}

.hl {
  display: inline-block;
  padding: 0 0.15em;
  background: var(--yellow);
  color: var(--ink);
  transform: rotate(-3deg);
  animation: stamp 0.6s var(--bounce) 0.9s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-text > * {
  animation: rise 0.8s var(--ease) both;
}

.hero-text > :nth-child(2) {
  animation-delay: 0.1s;
}
.hero-text > :nth-child(3) {
  animation-delay: 0.16s;
}
.hero-text > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid var(--cream);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--yellow);
}

.svg-display {
  font-family: var(--font-display);
}

/* SVG animation parts */
.spin {
  animation: spin 0.45s linear infinite paused;
}

.drive {
  animation: drive-in 1.8s var(--ease) 0.2s both;
}

.drive .spin {
  animation: spin 0.45s linear 4 0.2s;
}

.puffs circle {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: puff 2.4s ease-out 2.2s infinite;
}

.puffs circle:nth-child(2) {
  animation-delay: 3s;
}
.puffs circle:nth-child(3) {
  animation-delay: 3.8s;
}

.lamp {
  transform-origin: 320px 0;
  animation: swing 4s ease-in-out infinite alternate;
}

.beam {
  animation: flicker 6s steps(1) infinite;
}

.sign {
  transform-origin: 500px 0;
  animation: swing 5s ease-in-out infinite alternate-reverse;
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: var(--line);
  background: var(--yellow);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee span {
  padding: 12px 0;
  font: 1.1rem var(--font-display);
  white-space: nowrap;
  padding-right: 1ch;
}

/* Stats */
#stats {
  padding-bottom: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 0;
}

.stats > div {
  display: flex;
  flex-direction: column-reverse;
  padding: 20px;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats > div:nth-child(1) {
  rotate: -1.5deg;
}
.stats > div:nth-child(3) {
  rotate: 1.5deg;
}

.stats dd {
  margin: 0;
  font: clamp(2.2rem, 5vw, 3.2rem) / 1.1 var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--orange-ink);
  -webkit-text-stroke: 1.5px var(--ink);
}

.stats dt {
  margin-top: 6px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Services */
.icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--bounce);
}

.icon .fill {
  fill: var(--yellow);
}

.card:hover .icon {
  animation: wobble 0.6s var(--ease);
}

/* Cars */
.zoom {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
}

.car img,
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--ink-soft);
}

.car {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.car .zoom {
  margin-bottom: 18px;
  overflow: hidden;
  border: var(--line);
  border-radius: 10px;
}

.car img {
  aspect-ratio: 8 / 5;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.car:hover img {
  transform: scale(1.04);
}

.credit {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.credit a {
  color: inherit;
}

.price {
  position: absolute;
  top: -14px;
  right: 18px;
  padding: 6px 14px;
  background: var(--orange);
  color: var(--ink);
  border: var(--line);
  border-radius: 8px;
  font: 1.1rem var(--font-display);
  rotate: 4deg;
  transition: rotate 0.3s var(--bounce);
}

.car:hover .price {
  rotate: -4deg;
}

.specs {
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.car .btn {
  margin-top: auto;
}

/* Workshop */
/* static on purpose: no zoom, no hover scaling */
.gallery figure {
  margin: 0;
  text-align: left;
}

.gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery figcaption {
  margin-top: 14px;
  font: 1rem var(--font-display);
}

.gallery li:nth-child(odd) figure {
  rotate: -1deg;
}
.gallery li:nth-child(even) figure {
  rotate: 1deg;
}

/* Testimonials */
.quotes {
  margin-top: 44px;
}

.quotes figure {
  margin: 0;
}

.quotes blockquote {
  position: relative;
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
}

.quotes blockquote::before {
  content: "“";
  display: block;
  height: 0.6em;
  font: 3.4rem/1 var(--font-display);
  color: var(--orange-ink);
}

.quotes figcaption {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

/* About */
.hours {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 36px 0 0;
}

.hours > div {
  padding: 14px 22px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 10px;
}

.hours dt {
  font: 0.9rem var(--font-display);
  color: var(--yellow);
}

.hours dd {
  margin: 0;
  font-weight: 600;
}

/* Contact */
#contact {
  padding-bottom: 112px;
}

form {
  max-width: 600px;
  margin: 40px auto 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

label {
  margin-top: 16px;
  font-weight: 700;
}

label:first-child {
  margin-top: 0;
}

.required {
  color: var(--orange-ink);
}

input,
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  font: inherit;
  transition:
    box-shadow 0.2s var(--ease),
    background 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  background: #fff;
  box-shadow: 4px 4px 0 var(--yellow);
}

input:user-invalid,
textarea:user-invalid {
  border-color: #c2410c;
  box-shadow: 4px 4px 0 var(--orange);
}

textarea {
  resize: vertical;
}

.submit {
  margin-top: 28px;
}

.submit.loading {
  position: relative;
  color: transparent;
}

.submit.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  border: 3px solid var(--ink);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

#thankyouMessage {
  max-width: 600px;
  margin: 40px auto 0;
  padding: 32px;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  outline: none;
}

.thanks-car {
  width: 180px;
  margin-bottom: 12px;
  animation: drive-in 1.2s var(--ease) both;
}

.thanks-car .spin {
  animation: spin 0.45s linear 3;
}

/* Footer */
footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}

.footer-stripe {
  height: 14px;
  background: var(--hazard);
}

footer p {
  padding: 22px 16px;
  color: #d8cdb8;
  font-size: 0.95rem;
}

/* Lightbox */
#lightbox {
  width: min(92vw, 960px);
  max-width: none;
  padding: 0;
  background: none;
  border: 0;
  overflow: visible;
}

#lightbox::backdrop {
  background: rgb(23 18 13 / 0.9);
}

#lightbox[open] {
  animation: pop 0.35s var(--bounce);
}

#lb-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  background: var(--ink);
  border: 4px solid var(--cream);
  border-radius: var(--radius);
}

.lb-close,
.lb-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--yellow);
  color: var(--ink);
  border: var(--line);
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s var(--bounce);
}

.lb-close:hover,
.lb-nav:hover {
  transform: scale(1.1);
}

.lb-close {
  top: -60px;
  right: 0;
}

.lb-nav {
  top: 50%;
  translate: 0 -50%;
}

.lb-prev {
  left: 12px;
}

.lb-next {
  right: 12px;
}

.lb-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Keyframes */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: rotate(-12deg) scale(1.8);
  }
}

@keyframes drive-in {
  0% {
    transform: translateX(-420px);
  }
  80% {
    transform: translateX(6px);
  }
  100% {
    transform: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes swing {
  from {
    transform: rotate(-2.5deg);
  }
  to {
    transform: rotate(2.5deg);
  }
}

@keyframes puff {
  0% {
    opacity: 0.7;
    transform: translate(0, 0) scale(0.6);
  }
  100% {
    opacity: 0;
    transform: translate(-30px, -14px) scale(2.2);
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 0.1;
  }
  92% {
    opacity: 0.04;
  }
  94% {
    opacity: 0.1;
  }
}

@keyframes wobble {
  25% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(8deg);
  }
  75% {
    transform: rotate(-4deg);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes puff-fade {
  0% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
  }
}

@keyframes dim {
  50% {
    opacity: 0.4;
  }
}

/* Reduced motion: the same moments play as plain fades. No travel, zoom, spin or swing. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  header nav {
    transform: none;
  }

  .hero-text > *,
  .hl,
  .drive,
  .thanks-car,
  #lightbox[open] {
    animation-name: fade;
  }

  .puffs circle {
    animation-name: puff-fade;
  }

  .card:hover .icon {
    animation-name: dim;
  }

  /* Continuous movement has no fade version, so it holds still; the lamp keeps flickering */
  .spin,
  .drive .spin,
  .thanks-car .spin,
  .lamp,
  .sign,
  .marquee-track,
  .progress {
    animation: none;
  }

  .progress {
    display: none;
  }

  .card:hover,
  .grid > :nth-child(even).card:hover,
  .car:hover img,
  .nav-cta:hover,
  .logo:hover .logo-badge,
  .btn:hover,
  .btn:active,
  .lb-close:hover,
  .lb-nav:hover {
    transform: none;
  }

  .car:hover .price {
    rotate: 4deg;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 4px solid var(--yellow);
    visibility: hidden;
    transform: translateY(-8px);
    opacity: 0;
    transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease),
      visibility 0s 0.25s;
  }

  nav.open {
    visibility: visible;
    transform: none;
    opacity: 1;
    transition-delay: 0s;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
  }

  nav a {
    display: block;
    padding: 12px 0;
  }

  nav a:not(.nav-cta)::after {
    bottom: 6px;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  section {
    padding: 64px 0;
  }

  form,
  #thankyouMessage {
    padding: 22px;
  }

  .card {
    padding: 22px;
  }
}
