/* ============================================================
   Two-Speed IT — mobile mechanic, Serekunda
   Palette: desaturated 70s photo (faded print)
   ============================================================ */

:root {
  --bg:      #efe6d0;
  --bg-2:    #e6dabf;
  --paper:   #f6efdd;
  --ink:     #3a2f1a;
  --ink-soft:#6b5c3c;
  --rule:    #c9b98f;
  --a:       #a67c00;   /* mustard */
  --b:       #6b7a3a;   /* avocado */
  --c:       #c04e1a;   /* burnt sienna */
  --shadow:  0 1px 0 rgba(58,47,26,.10), 0 10px 30px -18px rgba(58,47,26,.45);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(1.25rem, 5vw, 3.5rem);
  --spine-w: 3.25rem;
  --maxw: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #1c1810;
    --bg-2:    #241f14;
    --paper:   #262017;
    --ink:     #f0e6cd;
    --ink-soft:#c3b48d;
    --rule:    #4a3f28;
    --a:       #d9a92c;
    --b:       #9aab5c;
    --c:       #e0703a;
    --shadow:  0 1px 0 rgba(0,0,0,.4), 0 14px 34px -20px rgba(0,0,0,.9);
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- grain overlay (background axis) --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}
@media (prefers-color-scheme: dark) {
  body::before { mix-blend-mode: screen; opacity: .05; }
}

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

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.9rem); font-variation-settings: "opsz" 96; letter-spacing: -.01em; }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ============================================================
   Scroll progress strip (motion axis) — a colored rule along
   the top edge, part of the frame rather than floating chrome.
   ============================================================ */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: color-mix(in srgb, var(--rule) 55%, transparent);
  z-index: 60;
}
.progress span {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--b), var(--a) 55%, var(--c));
}
@supports (animation-timeline: scroll()) {
  .progress span {
    animation: fill linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes fill { to { transform: scaleX(1); } }

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  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(--rule);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .7rem var(--pad) .7rem calc(var(--pad) + var(--spine-w));
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; font-weight: 800; letter-spacing: -.01em;
  font-size: 1.02rem;
}
.brand__mark {
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-mono); font-size: .78rem; font-weight: 600;
  border-radius: 3px;
}
.nav {
  margin-left: auto;
  display: flex; gap: 1.4rem;
  font-size: .9rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: .5rem 0;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--a); }

.callbtn {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px;
  padding: .55rem 1rem;
  background: var(--c);
  color: #fff8ec;
  text-decoration: none;
  font-weight: 600; font-size: .9rem;
  border-radius: 3px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, filter .18s ease;
}
.callbtn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.callbtn__dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: #fff8ec;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ============================================================
   Vertical spine headline (typography axis)
   ============================================================ */
.spine {
  position: fixed;
  left: .55rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "opsz" 144;
  font-size: clamp(.95rem, .7rem + .8vw, 1.35rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  z-index: 40;
  pointer-events: none;
  white-space: nowrap;
}
.spine__sep { color: var(--c); }

/* ============================================================
   Layout shell
   ============================================================ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) 0 calc(var(--pad) + var(--spine-w));
}

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.section-head { margin-bottom: 2.5rem; max-width: 46rem; }
.section-head__sub { color: var(--ink-soft); margin-top: .75rem; max-width: 40rem; }
.section-head__sub em { font-style: normal; color: var(--c); font-weight: 600; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: clamp(2rem, 5vw, 3.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--a);
  margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2.4rem, 1.4rem + 5vw, 4.6rem);
  font-weight: 900;
  font-variation-settings: "opsz" 144;
  letter-spacing: -.025em;
  margin-bottom: 1.25rem;
}
.hero__lede { color: var(--ink-soft); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }
.hero__note { font-size: .85rem; color: var(--ink-soft); font-family: var(--font-mono); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: .7rem 1.35rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { transform: translateY(-1px); }
.btn--ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--bg-2); }
.btn--sm { min-height: 44px; font-size: .88rem; padding: .55rem 1rem; }

.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(.82) contrast(1.03) sepia(.12);
  box-shadow: var(--shadow);
}
.hero__figure figcaption {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--ink-soft);
  margin-top: .7rem;
  letter-spacing: .02em;
}

/* --- audio-visualizer bars (signature axis) --- */
.viz {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}
.viz__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.viz__bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 42px;
}
.viz__bars i {
  flex: 1;
  height: var(--h);
  min-height: 3px;
  background: linear-gradient(180deg, var(--a), var(--c));
  border-radius: 1px;
  transform-origin: 50% 100%;
  animation: bar 1.5s ease-in-out infinite alternate;
  animation-delay: var(--d);
}
@keyframes bar {
  from { transform: scaleY(.35); opacity: .55; }
  to   { transform: scaleY(1);   opacity: 1; }
}

/* ============================================================
   Services — menu-first cards
   ============================================================ */
.menu { display: grid; gap: 2.75rem; }
.menu__group h3 {
  border-bottom: 1px solid var(--rule);
  padding-bottom: .6rem;
  margin-bottom: 1.1rem;
  font-variation-settings: "opsz" 48;
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: .85rem 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--rule) 70%, transparent);
}
.item:last-child { border-bottom: 0; }
.item__name {
  font-weight: 600;
  margin: 0 0 .2rem;
  font-size: 1.02rem;
}
.item__desc {
  margin: 0;
  font-size: .9rem;
  color: var(--ink-soft);
  max-width: 40rem;
}
.item__price {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .88rem;
  font-weight: 600;
  color: var(--c);
  white-space: nowrap;
  text-align: right;
}
.tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: .45rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--b);
  border: 1px solid color-mix(in srgb, var(--b) 55%, transparent);
  border-radius: 999px;
  padding: .1rem .45rem;
}
.fineprint {
  margin-top: 2.5rem;
  font-size: .82rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--a);
  padding-left: 1rem;
  max-width: 44rem;
}

/* ============================================================
   How a job runs
   ============================================================ */
.rates { border-top: 1px solid var(--rule); }
.rates__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.rate__num {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--a);
  margin: 0 0 .6rem;
}
.rate h3 { margin-bottom: .6rem; }
.rate p:last-child { color: var(--ink-soft); font-size: .94rem; }

/* ============================================================
   Footer cards — hours / location / booking
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--rule);
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin-bottom: 1.1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--rule);
  font-variation-settings: "opsz" 48;
}
.card__note { font-size: .87rem; color: var(--ink-soft); margin-top: 1rem; }
.card__note--quiet { font-style: italic; }
.card__lead { font-size: .94rem; color: var(--ink-soft); }

.hours { margin: 0; }
.hours__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: .38rem 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--rule) 65%, transparent);
  font-size: .92rem;
}
.hours__row:last-child { border-bottom: 0; }
.hours__row dt { color: var(--ink); }
.hours__row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ink-soft);
  text-align: right;
}
.hours__row--closed dt,
.hours__row--closed dd { color: var(--c); }

.addr {
  font-style: normal;
  line-height: 1.7;
  font-size: .96rem;
}

.phone {
  display: inline-block;
  margin: .5rem 0 .25rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "opsz" 96;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--c);
  border-bottom: 3px solid color-mix(in srgb, var(--c) 35%, transparent);
  padding-bottom: .1rem;
  min-height: 44px;
}
.phone:hover { border-bottom-color: var(--c); }

/* ============================================================
   Closing quote
   ============================================================ */
.quote { border-top: 1px solid var(--rule); }
.quote blockquote {
  margin: 0;
  max-width: 44rem;
}
.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 1rem + 1.6vw, 1.9rem);
  line-height: 1.4;
  font-variation-settings: "opsz" 96;
  margin-bottom: 1rem;
}
.quote footer {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================================
   Site footer
   ============================================================ */
.sitefoot {
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  margin-top: 2rem;
}
.sitefoot__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem var(--pad) 2rem calc(var(--pad) + var(--spine-w));
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.sitefoot__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "opsz" 96;
  font-size: 1.3rem;
  margin-bottom: .5rem;
}
.sitefoot__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--a);
  margin-bottom: .4rem;
}
.sitefoot__line { font-size: .9rem; color: var(--ink-soft); }
.sitefoot__line a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.sitefoot__line a:hover { border-bottom-color: var(--a); }

.claim-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) 0 calc(var(--pad) + var(--spine-w));
}
.claim-banner {
  display: inline-block;
  font-size: .78rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--rule) 30%, transparent);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: .5rem .8rem;
  text-decoration: none;
  margin-bottom: 1.25rem;
}
.claim-banner:hover { color: var(--ink); background: color-mix(in srgb, var(--rule) 50%, transparent); }

.attribution {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) 2.5rem calc(var(--pad) + var(--spine-w));
  font-size: .7rem;
  opacity: .55;
  font-family: var(--font-mono);
}
.attribution a { color: inherit; }

/* ============================================================
   Wider screens
   ============================================================ */
@media (min-width: 46rem) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
  .rates__grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .sitefoot__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 62rem) {
  .menu { grid-template-columns: 1fr 1fr; gap: 2.5rem 3.5rem; }
}

/* ============================================================
   Small screens — spine becomes a static label, nav condenses
   ============================================================ */
@media (max-width: 45.99rem) {
  :root { --spine-w: 0rem; }
  .spine {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    display: block;
    padding: 1.25rem var(--pad) 0;
    font-size: .8rem;
    letter-spacing: .12em;
    max-width: var(--maxw);
    margin: 0 auto;
  }
  .topbar__inner { padding-left: var(--pad); flex-wrap: wrap; gap: .75rem; }
  .nav { margin-left: 0; width: 100%; gap: 1.1rem; font-size: .84rem; overflow-x: auto; }
  .callbtn { margin-left: auto; }
  main { padding-left: var(--pad); }
  .sitefoot__inner,
  .claim-wrap,
  .attribution { padding-left: var(--pad); }
  .viz__bars { height: 32px; }
}

/* ============================================================
   Reduced motion — everything static, nothing hidden
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viz__bars i { animation: none; transform: scaleY(1); opacity: .85; }
  .callbtn__dot { animation: none; }
  .progress span { transform: scaleX(1); animation: none; }
  .btn, .callbtn { transition: none; }
}
