/* ============================================================
   YUS MOBILE — Brikama mobile mechanic
   Composition: black/white + one colour per section · stacked
   headline · receipt/listing column · drag band · grain overlay
   ============================================================ */

:root {
  --bg-1: #0a0a0a;
  --bg-2: #e10600;
  --bg-3: #003c8a;
  --bg-4: #f4ff33;

  --ink: #ffffff;
  --ink-dim: rgba(255, 255, 255, 0.72);
  --ink-faint: rgba(255, 255, 255, 0.45);

  --on-red: #ffffff;
  --on-red-dim: rgba(255, 255, 255, 0.78);
  --on-blue: #ffffff;
  --on-blue-dim: rgba(255, 255, 255, 0.78);
  --on-yellow: #0a0a0a;
  --on-yellow-dim: rgba(10, 10, 10, 0.72);

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Bricolage Grotesque", "JetBrains Mono", system-ui, sans-serif;

  --col: 40ch;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.sr-only {
  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(--bg-4); color: #0a0a0a;
  padding: 0.6rem 1rem; z-index: 100; font-weight: 700;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- grain overlay ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  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='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.topbar-inner {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0.7rem var(--pad);
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mark { font-weight: 700; letter-spacing: 0.14em; }
.topbar-meta { color: var(--ink-faint); }
.topbar-call {
  margin-left: auto;
  text-decoration: none;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--bg-4);
  color: #0a0a0a;
  border-radius: 2px;
}
.topbar-call:hover { background: #fff; }

/* ---------- section shell ---------- */
.sec {
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  position: relative;
}
.sec--black  { background: var(--bg-1); color: var(--ink); }
.sec--red    { background: var(--bg-2); color: var(--on-red); }
.sec--blue   { background: var(--bg-3); color: var(--on-blue); }
.sec--yellow { background: var(--bg-4); color: var(--on-yellow); }

.sec--red  .tag, .sec--red  .lede, .sec--red  .fineprint, .sec--red  .step-d, .sec--red .receipt dt { color: var(--on-red-dim); }
.sec--blue .tag, .sec--blue .lede, .sec--blue .fineprint, .sec--blue .step-d, .sec--blue .receipt dt { color: var(--on-blue-dim); }
.sec--yellow .tag, .sec--yellow .lede, .sec--yellow .fineprint, .sec--yellow .step-d, .sec--yellow .receipt dt { color: var(--on-yellow-dim); }

.col {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- type ---------- */
.tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.25rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 9vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 4vw, 1.4rem); margin-top: 2.5rem; }

/* stacked headline breaking the baseline */
.stack { margin-bottom: 1.75rem; }
.stack span { display: block; }
.stack span:nth-child(2) { margin-left: 1.6em; }
.stack span:nth-child(3) { margin-left: -0.35em; }
.stack span:nth-child(4) { margin-left: 0.9em; }

.lede { margin: 0 0 1.15rem; }
.lede:last-child { margin-bottom: 0; }

.fineprint {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-faint);
  margin: 2rem 0 0;
  padding-left: 0.9rem;
  border-left: 2px solid currentColor;
}

/* ---------- dotted dividers ---------- */
.dots {
  border: 0;
  border-top: 1px dotted currentColor;
  opacity: 0.5;
  margin: 2.5rem 0;
}

/* ---------- hero ---------- */
.callblock {
  margin: 2.25rem 0 2.5rem;
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.callblock--alt { margin-top: 2.5rem; }
.callblock-label {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.callbtn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 8vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 4px solid currentColor;
}
.callbtn:hover { opacity: 0.75; }
.callblock-note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  opacity: 0.72;
}

.hero-fig { margin: 0 0 2rem; }
.hero-fig img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(1) contrast(1.08);
}
.hero-fig figcaption {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ---------- receipt list ---------- */
.receipt {
  margin: 0;
  font-size: 0.85rem;
}
.receipt > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted currentColor;
}
.receipt > div:last-child { border-bottom: 0; }
.receipt dt {
  color: var(--ink-faint);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
.receipt dd { margin: 0; text-align: right; font-weight: 500; }
.receipt .closed { text-decoration: line-through; opacity: 0.7; }

/* ---------- services ---------- */
.services {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}
.services li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px dotted currentColor;
}
.services li:first-child { border-top: 1px dotted currentColor; }
.svc-name { font-weight: 700; }
.svc-price {
  text-align: right;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0.9;
}
.svc-desc {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.78;
}

/* ---------- drag band ---------- */
.band {
  overflow: hidden;
  cursor: grab;
  margin-top: 2.5rem;
  padding: 0 var(--pad);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.band.is-dragging { cursor: grabbing; }
.band-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}
.card {
  margin: 0;
  width: min(74vw, 20rem);
  flex: 0 0 auto;
}
.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(1) contrast(1.08);
  pointer-events: none;
}
.card figcaption {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--on-blue-dim);
}
.card figcaption b { color: var(--on-blue); }
.band-hint { font-size: 0.8rem; opacity: 0.75; }

/* ---------- steps ---------- */
.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.2rem 0.9rem;
  padding: 1.2rem 0;
  border-bottom: 1px dotted currentColor;
}
.steps li:first-child { border-top: 1px dotted currentColor; }
.step-n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.55;
}
.step-t { font-weight: 700; }
.step-d {
  grid-column: 2;
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.8;
}

.quote {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  font-style: italic;
}
.quote-src {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* ---------- hours table ---------- */
.hours {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0 0;
  font-size: 0.88rem;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.6rem 0;
  border-bottom: 1px dotted currentColor;
  font-weight: 400;
}
.hours th { text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.1em; opacity: 0.7; }
.hours td { text-align: right; font-weight: 500; }
.hours .row-closed td { text-decoration: line-through; opacity: 0.65; }

.map-link { margin: 1.75rem 0 0; font-size: 0.85rem; }
.map-link a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.foot {
  background: var(--bg-1);
  color: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 4.5rem);
}
.foot-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
}
.foot-line { margin: 0 0 0.4rem; font-size: 0.82rem; }
.foot-line--muted { color: var(--ink-faint); font-size: 0.75rem; }

.claim-banner {
  display: inline-block;
  margin: 1.75rem 0 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
}
.claim-banner:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.attribution {
  margin: 1.25rem 0 0;
  font-size: 0.7rem;
  opacity: 0.5;
}
.attribution a { color: inherit; }

/* ---------- motion: gentle fade + rise on scroll enter ---------- */
@keyframes fadeRise {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec > .col,
    .band {
      animation: fadeRise 420ms cubic-bezier(.2, .7, .1, 1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
  }
}

/* ---------- responsive ---------- */
@media (max-width: 30rem) {
  .stack span:nth-child(2) { margin-left: 0.9em; }
  .stack span:nth-child(4) { margin-left: 0.4em; }
  .topbar-meta { display: none; }
  .topbar-call { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
