/* ============================================================
   Mobile Mechanic Service — faded-print 70s photo palette
   ============================================================ */

:root {
  --bg:      #efe6d0;
  --bg-2:    #e6dabf;
  --ink:     #3a2f1a;
  --ink-dim: #6b5c3c;
  --a:       #a67c00;   /* mustard */
  --b:       #6b7a3a;   /* avocado */
  --c:       #c04e1a;   /* burnt sienna */
  --line:    rgba(58, 47, 26, 0.22);
  --card:    rgba(255, 252, 243, 0.55);
  --shadow:  0 1px 0 rgba(58,47,26,.10), 0 12px 30px -18px rgba(58,47,26,.45);
  --grain-opacity: 0.055;
  --spine-w: 4.25rem;
  --wrap: 1180px;
}

html[data-theme="dark"] {
  --bg:      #1c1a14;
  --bg-2:    #24211a;
  --ink:     #efe6d0;
  --ink-dim: #b6a884;
  --a:       #d9a72c;
  --b:       #9aad5c;
  --c:       #e2703a;
  --line:    rgba(239, 230, 208, 0.22);
  --card:    rgba(255, 252, 243, 0.05);
  --shadow:  0 1px 0 rgba(0,0,0,.4), 0 14px 34px -20px rgba(0,0,0,.9);
  --grain-opacity: 0.075;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 96, "SOFT" 0, "WONK" 0;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); font-weight: 600; }

p { margin: 0 0 1rem; text-wrap: pretty; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- grain overlay ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
html[data-theme="dark"] body::after { mix-blend-mode: screen; }

/* ---------- focus ---------- */
:focus-visible {
  outline: 3px solid var(--c);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: .75rem 1.25rem; font-weight: 600; text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- scroll progress strip ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  z-index: 70;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
}
.progress__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--a), var(--c));
  transform-origin: 0 50%;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .progress__fill {
    animation: fill linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 2rem);
  min-height: 4.5rem;
  padding-block: .6rem;
  flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; margin-right: auto;
}
.brand__mark {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; flex: none;
  background: var(--ink); color: var(--bg);
  font-family: "JetBrains Mono", monospace;
  font-size: .85rem; font-weight: 500; letter-spacing: .04em;
  border-radius: 2px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong {
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: 1.02rem; letter-spacing: -.01em;
}
.brand__text em {
  font-style: normal; font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-dim);
}

.nav { display: flex; gap: clamp(.75rem, 1.6vw, 1.5rem); }
.nav a {
  text-decoration: none; font-size: .86rem; font-weight: 500;
  letter-spacing: .02em; padding: .55rem .1rem;
  border-bottom: 2px solid transparent;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { border-bottom-color: var(--c); }

.masthead__actions { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: .5rem .8rem;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: .78rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer;
}
.theme-toggle:hover { background: var(--card); }
.theme-toggle__icon {
  width: .8rem; height: .8rem; border-radius: 50%;
  background: var(--a);
  box-shadow: inset -3px -2px 0 0 var(--bg);
}
html[data-theme="dark"] .theme-toggle__icon {
  background: var(--bg); box-shadow: none;
}

.callbtn {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .5rem 1rem;
  background: var(--ink); color: var(--bg);
  text-decoration: none; border-radius: 999px;
  font-size: .88rem; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap;
}
.callbtn:hover { background: var(--c); color: #fff; }
.callbtn__dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--b); flex: none;
}
html[data-theme="dark"] .callbtn__dot { background: var(--a); }

/* ---------- vertical spine headline ---------- */
.spine {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  margin: 0;
  width: var(--spine-w);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.spine__inner {
  writing-mode: vertical-rl;
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
  padding-block: 1rem;
  border-block: 1px solid var(--line);
}

/* ---------- hero ---------- */
.hero {
  background: var(--bg);
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem);
  padding-left: var(--spine-w);
  position: relative;
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 1rem;
}
html[data-theme="dark"] .eyebrow { color: var(--a); }

.hero__title {
  font-size: clamp(2.6rem, 1.6rem + 5.4vw, 5.2rem);
  font-weight: 800;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  margin-bottom: 1.25rem;
}
.hero__lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 34ch; }
.hero__sub { color: var(--ink-dim); max-width: 40ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2.25rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .85rem 1.5rem;
  border-radius: 3px; text-decoration: none;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--c); color: #fff; }
.btn--primary:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--wide { width: 100%; margin-top: .5rem; }

.hero__facts {
  list-style: none; margin: 0; padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}
.hero__facts strong {
  display: block;
  font-family: "Fraunces", serif; font-size: 1.5rem; font-weight: 600;
  letter-spacing: -.02em;
}
.hero__facts span { font-size: .82rem; color: var(--ink-dim); }

/* ---------- signature: cursor mask reveal ---------- */
.reveal {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.reveal__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.72) contrast(1.04) sepia(.16);
}
.reveal__veil {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  transition: opacity .4s ease;
  --cx: 50%;
  --cy: 50%;
  --r: 0px;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--cx) var(--cy), transparent 0, transparent calc(var(--r) - 1px), #000 var(--r));
  mask-image: radial-gradient(circle var(--r) at var(--cx) var(--cy), transparent 0, transparent calc(var(--r) - 1px), #000 var(--r));
}
.reveal__hint {
  font-family: "JetBrains Mono", monospace;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
  padding: 0 1.5rem;
  transition: opacity .3s ease;
}
.reveal.is-active .reveal__hint { opacity: 0; }
.reveal figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .9rem 1.1rem;
  font-size: .8rem;
  color: var(--bg);
  background: linear-gradient(to top, rgba(20,16,8,.82), rgba(20,16,8,0));
}

/* ---------- bands ---------- */
.band { padding-block: clamp(3.5rem, 8vw, 7rem); }
.band--paper   { background: var(--bg); }
.band--avocado { background: var(--b); color: #f4f0e2; }
.band--sienna  { background: var(--c); color: #fdf3e8; }
.band--ochre   { background: var(--a); color: #241c08; }
.band--ink     { background: var(--ink); color: var(--bg); }

html[data-theme="dark"] .band--avocado { background: #3f4a22; color: #f0ead6; }
html[data-theme="dark"] .band--sienna  { background: #7a3110; color: #fbeade; }
html[data-theme="dark"] .band--ochre   { background: #6d5200; color: #f6efdc; }
html[data-theme="dark"] .band--ink     { background: #0f0e0a; color: #efe6d0; }

.band--avocado .eyebrow,
.band--sienna .eyebrow,
.band--ochre .eyebrow,
.band--ink .eyebrow { color: currentColor; opacity: .72; }

.band__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.band__intro { margin-top: 1.1rem; opacity: .88; }

/* ---------- menu (services) ---------- */
.menu {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
}
@media (min-width: 56rem) {
  .menu { grid-template-columns: 1fr 1fr; column-gap: clamp(2.5rem, 6vw, 5rem); }
}
.menu__group h3 {
  border-bottom: 2px solid var(--ink);
  padding-bottom: .6rem;
  margin-bottom: 1.25rem;
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .35rem 1.25rem;
  padding: .95rem 0;
  border-bottom: 1px dotted var(--line);
  align-items: baseline;
}
.item__name {
  margin: 0;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -.005em;
}
.item__desc {
  grid-column: 1 / -1;
  margin: .2rem 0 0;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 46ch;
}
.item__price {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: .84rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--c);
}
html[data-theme="dark"] .item__price { color: var(--a); }

.menu__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--c);
  background: var(--card);
  font-size: .92rem;
  max-width: 74ch;
}

/* ---------- steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  counter-reset: none;
}
.step {
  border-top: 2px solid currentColor;
  padding-top: 1.1rem;
}
.step__num {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: .78rem;
  letter-spacing: .2em;
  opacity: .7;
  margin-bottom: .6rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { font-size: .92rem; opacity: .92; margin: 0; }
.steps__foot {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.28);
  font-size: .9rem;
  max-width: 70ch;
  opacity: .92;
}

/* ---------- footer cards ---------- */
.cards {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 1rem; }
.card__note { font-size: .88rem; color: var(--ink-dim); margin-bottom: .85rem; }
.card__note:last-child { margin-bottom: 0; }
.card--call { border-color: var(--c); border-width: 2px; }
.card__big {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0 0 .85rem;
}
.card__big a { text-decoration: none; }
.card__big a:hover { color: var(--c); }

.hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hours th, .hours td { padding: .45rem 0; text-align: left; font-weight: 400; }
.hours th { color: var(--ink-dim); }
.hours td { text-align: right; font-family: "JetBrains Mono", monospace; font-size: .82rem; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px dotted var(--line); }

.addr {
  font-style: normal;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.link { color: var(--c); text-underline-offset: 3px; }
html[data-theme="dark"] .link { color: var(--a); }

/* ---------- service area ---------- */
.area__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .area__grid { grid-template-columns: 1.1fr .9fr; }
}
.area__copy h2 { margin-bottom: 1.25rem; }
.area__copy p { max-width: 52ch; opacity: .95; }
.chips {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.chips li {
  font-family: "JetBrains Mono", monospace;
  font-size: .74rem;
  letter-spacing: .06em;
  padding: .4rem .7rem;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
}
.area__fig { margin: 0; }
.area__fig img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.35);
  filter: saturate(.7) contrast(1.03) sepia(.14);
}
.area__fig figcaption { font-size: .8rem; margin-top: .7rem; opacity: .85; }

/* ---------- why us ---------- */
.cols {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}
.col h3 { margin-bottom: .85rem; }
.col p { font-size: .95rem; color: var(--ink-dim); max-width: 48ch; }

.quotes {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.quote {
  margin: 0;
  padding: 1.5rem 1.5rem 1.25rem;
  border-top: 3px solid var(--a);
  background: var(--card);
}
.quote blockquote {
  margin: 0 0 .9rem;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  line-height: 1.5;
}
.quote figcaption {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--ink-dim);
}

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.gallery figure { margin: 0; }
.gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(36,28,8,.35);
  filter: saturate(.75) contrast(1.04) sepia(.18);
}
.gallery figcaption {
  font-size: .82rem;
  line-height: 1.5;
  margin-top: .7rem;
  max-width: 40ch;
}

/* ---------- closing ---------- */
.closing { max-width: 60ch; }
.closing h2 { margin-bottom: 1.25rem; }
.closing__lede { font-size: 1.05rem; opacity: .9; }
.closing__phone {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 1.2rem + 4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -.03em;
  margin: 1.75rem 0 1.25rem;
}
.closing__phone a { text-decoration: none; }
.closing__phone a:hover { color: var(--a); }
.closing__meta {
  font-family: "JetBrains Mono", monospace;
  font-size: .74rem;
  letter-spacing: .06em;
  opacity: .7;
  margin: 0;
}

/* ---------- footer ---------- */
.sitefoot {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(2rem, 4vw, 3rem);
}
.sitefoot__inner { display: grid; gap: .6rem; justify-items: start; }
.sitefoot__line { margin: 0; font-size: .85rem; max-width: 68ch; }
.sitefoot__line--dim { color: var(--ink-dim); }
.sitefoot__line a { text-underline-offset: 3px; }

.claim-banner {
  display: inline-block;
  margin-top: .75rem;
  padding: .5rem .85rem;
  font-size: .78rem;
  text-decoration: none;
  color: var(--ink-dim);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.claim-banner:hover { color: var(--ink); border-color: var(--ink); }

.attribution {
  position: static;
  margin: .5rem 0 0;
  font-size: .72rem;
  opacity: .55;
  font-family: "JetBrains Mono", monospace;
}
.attribution a { color: inherit; }

.muted { color: var(--ink-dim); }

/* ---------- responsive ---------- */
@media (max-width: 60rem) {
  .nav { order: 3; width: 100%; flex-wrap: wrap; gap: 1rem; }
}
@media (max-width: 48rem) {
  :root { --spine-w: 0rem; }
  .spine { display: none; }
  .hero { padding-left: 0; }
  .brand__text em { display: none; }
  .theme-toggle__label { display: none; }
  .theme-toggle { padding: .5rem .7rem; }
  .item { grid-template-columns: 1fr; }
  .item__price { justify-self: start; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .progress__fill { transform: scaleX(1); }
  .reveal__veil { display: none; }
  .btn:hover { transform: none; }
}
