/* =========================================================================
   Ari's Auto Alignment & Brakes — Precision instrument
   Black field. Hairlines. Crosshairs. Single laser-red accent.
   ========================================================================= */

:root {
  --bg:        #0a0b0d;
  --bg-2:      #101216;
  --bg-3:      #16191f;
  --rule:      #2a2e36;
  --rule-2:    #3a3f49;
  --ink:       #f4f5f7;
  --ink-soft:  #b6bac3;
  --ink-mute:  #74798a;
  --ink-deep:  #565a66;

  --laser:     #ff2d2d;
  --laser-deep:#c61818;
  --laser-soft:#3a0e0e;

  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;

  --pad-x: clamp(1.1rem, 4vw, 4rem);
  --pad-y: clamp(3rem, 7vw, 6rem);

  --max-w: 1280px;
  --hair: 1px solid var(--rule);
  --hair-2: 1px solid var(--rule-2);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--laser); color: #fff; }

/* Background grid — extremely faint instrument grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* =========================================================================
   MONO UTILS
   ========================================================================= */

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1, "zero" 1; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tag-laser { color: var(--laser); }

/* corner crosshair marks — pseudo-element friendly building block */
.frame {
  position: relative;
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--rule-2);
  pointer-events: none;
}
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* =========================================================================
   NAV
   ========================================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem var(--pad-x);
  background: rgba(10,11,13,0.86);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: var(--hair);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.brand-mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--bg);
  background: var(--ink);
  padding: 6px 8px;
  line-height: 1;
}
.brand-word {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-word .amp { color: var(--laser); }

.nav-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.status {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.status-dot {
  width: 7px; height: 7px;
  background: #2bd66a;
  box-shadow: 0 0 0 2px rgba(43,214,106,0.15);
  display: inline-block;
}
.status.closed .status-dot { background: var(--ink-deep); box-shadow: 0 0 0 2px rgba(255,255,255,0.05); }

.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--rule-2);
  padding: 0.55rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  min-height: 44px;
  transition: border-color .15s, color .15s, background .15s;
}
.nav-call::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--laser);
  display: inline-block;
}
.nav-call:hover { border-color: var(--laser); color: var(--laser); }
.nav-call .nav-call-num { font-weight: 600; }

@media (min-width: 720px) {
  .status { display: inline-flex; }
  .nav { padding: 0.85rem var(--pad-x); }
  .brand-word { font-size: 14px; }
}

/* =========================================================================
   HERO
   ========================================================================= */

.hero {
  position: relative;
  padding: calc(var(--pad-y) * 0.85) var(--pad-x) var(--pad-y);
  border-bottom: var(--hair);
  overflow: hidden;
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background: url("img/photo-01.jpg") center 35% / cover no-repeat;
  filter: grayscale(100%) contrast(1.1) brightness(0.42);
  z-index: -2;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 30% 30%, rgba(10,11,13,0.55) 0%, rgba(10,11,13,0.92) 70%, var(--bg) 100%),
    linear-gradient(180deg, rgba(10,11,13,0.55) 0%, rgba(10,11,13,0.95) 100%);
  z-index: -1;
}

/* alignment crosshair overlay across the hero */
.hero-cross {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-cross::before,
.hero-cross::after {
  content: "";
  position: absolute;
  background: var(--rule-2);
}
.hero-cross::before {
  /* horizontal line */
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--rule-2) 12%, var(--rule-2) 88%, transparent 100%);
}
.hero-cross::after {
  /* vertical line */
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--rule-2) 12%, var(--rule-2) 88%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-meta .reticle {
  color: var(--laser);
  letter-spacing: 0;
}

.hero-h {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.4rem, 9.5vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.hero-h .deg {
  font-family: var(--font-mono);
  color: var(--laser);
  font-weight: 400;
  font-size: 0.55em;
  vertical-align: 0.45em;
  letter-spacing: 0;
  margin-left: 0.05em;
}
.hero-h em {
  font-style: normal;
  color: var(--laser);
}
.hero-h .underline {
  position: relative;
  display: inline-block;
}
.hero-h .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.06em;
  height: 4px;
  background: var(--laser);
}

.hero-sub {
  max-width: 44ch;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.2rem;
  min-height: 52px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid var(--rule-2);
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn-primary {
  background: var(--laser);
  border-color: var(--laser);
  color: #0a0b0d;
}
.btn-primary:hover { background: #ff4040; transform: translateY(-1px); }
.btn-primary .btn-num { font-weight: 700; }
.btn-primary::before {
  content: "►";
  font-size: 10px;
  margin-right: -0.2rem;
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.hero-readout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--rule);
  background: rgba(16,18,22,0.6);
  margin-top: 1rem;
  max-width: 460px;
}
.hero-readout > div {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--rule);
}
.hero-readout > div:last-child { border-right: 0; }
.hero-readout .lab {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 0.25rem;
}
.hero-readout .val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.hero-readout .val .unit {
  color: var(--ink-mute);
  font-weight: 400;
  font-size: 12px;
  margin-left: 0.25rem;
}

@media (min-width: 720px) {
  .hero-inner { gap: 2.5rem; }
}

/* =========================================================================
   STATS BAND — instrument readout
   ========================================================================= */

.band {
  border-bottom: var(--hair);
  background: var(--bg);
}
.band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.band-cell {
  padding: 1.6rem var(--pad-x);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.band-cell:nth-child(2n) { border-right: 0; }
.band-cell:nth-last-child(-n+2) { border-bottom: 0; }

.band-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  display: block;
  line-height: 1;
}
.band-num .star { color: var(--laser); margin-left: 0.1em; }
.band-num .small { font-size: 0.5em; color: var(--ink-mute); margin-left: 0.25em; vertical-align: 0.4em; }
.band-cap {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@media (min-width: 720px) {
  .band-inner { grid-template-columns: repeat(4, 1fr); }
  .band-cell { border-bottom: 0; }
  .band-cell:nth-child(2n) { border-right: 1px solid var(--rule); }
  .band-cell:last-child { border-right: 0; }
}

/* =========================================================================
   SECTION SHELL
   ========================================================================= */

.section {
  padding: var(--pad-y) var(--pad-x);
  border-bottom: var(--hair);
  position: relative;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed var(--rule);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--laser);
}

.section-h {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.015em;
  margin: 0;
  text-transform: uppercase;
  color: var(--ink);
}

.section-lede {
  max-width: 56ch;
  color: var(--ink-soft);
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

@media (min-width: 720px) {
  .section-head {
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: end;
  }
}

/* =========================================================================
   SERVICES
   ========================================================================= */

.svc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--rule);
}
.svc-row {
  padding: 1.5rem var(--pad-x);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  position: relative;
}
.svc-row:last-child { border-bottom: 0; }
.svc-row::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--laser);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s;
}
.svc-row:hover::before { transform: scaleY(1); }

.svc-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.svc-id .dot { color: var(--laser); }

.svc-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-transform: uppercase;
}

.svc-desc {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.55;
  max-width: 60ch;
}

@media (min-width: 720px) {
  .svc-row {
    grid-template-columns: 80px 1fr 2fr;
    gap: 2rem;
    align-items: baseline;
    padding: 1.6rem 2rem;
  }
}

/* =========================================================================
   ALIGNMENT BLOCK — the memorable design moment
   Big front-axle alignment diagram in pure CSS, with reviewers' words
   placed around it like calibration callouts.
   ========================================================================= */

.align {
  background: var(--bg-2);
  border-bottom: var(--hair);
  padding: var(--pad-y) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.align-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.align-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.align-copy h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}
.align-copy h3 .laser-text { color: var(--laser); }

.align-copy p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 0 1rem;
}

/* The diagram — two wheels at angle, alignment grid behind */
.diagram {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid var(--rule-2);
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,0.04) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,0.04) 23px 24px);
}
/* center reticle */
.diagram::before,
.diagram::after {
  content: "";
  position: absolute;
  background: var(--laser);
}
.diagram::before {
  left: 10%; right: 10%; top: 50%; height: 1px;
}
.diagram::after {
  top: 10%; bottom: 10%; left: 50%; width: 1px;
}

.wheel {
  position: absolute;
  width: 22%;
  height: 38%;
  border: 2px solid var(--ink);
  background: var(--bg-3);
}
.wheel.l {
  top: 31%;
  left: 12%;
  transform: rotate(-7deg);
}
.wheel.r {
  top: 31%;
  right: 12%;
  transform: rotate(7deg);
}
.wheel::before {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid var(--ink-mute);
  border-radius: 50%;
}
.wheel::after {
  content: "";
  position: absolute;
  inset: 38%;
  background: var(--ink-mute);
  border-radius: 50%;
}

.diagram-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.diagram-label.tl { top: 8px; left: 8px; }
.diagram-label.tr { top: 8px; right: 8px; color: var(--laser); }
.diagram-label.bl { bottom: 8px; left: 8px; }
.diagram-label.br { bottom: 8px; right: 8px; }
.diagram-axis {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink);
  background: var(--bg-2);
  padding: 4px 8px;
  border: 1px solid var(--rule-2);
}

@media (min-width: 900px) {
  .align-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

/* =========================================================================
   REVIEWS
   ========================================================================= */

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.review {
  background: var(--bg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}
.review-stars { color: var(--laser); letter-spacing: 0.1em; }
.review-quote {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.review-quote::before {
  content: "“";
  font-family: var(--font-mono);
  color: var(--laser);
  font-size: 1.4em;
  margin-right: 0.15em;
  vertical-align: -0.1em;
}
.review-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
}
.review-foot .author { color: var(--ink); font-weight: 500; }
.review-foot .when { color: var(--ink-mute); margin-left: auto; }

@media (min-width: 720px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================================
   VISIT
   ========================================================================= */

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--rule);
}
.visit-info {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.visit-block .lab {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.4rem;
}
.visit-block .val {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.5;
}
.visit-block a.val { color: var(--ink); transition: color .15s; }
.visit-block a.val:hover { color: var(--laser); }

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 13px;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dotted var(--rule);
  color: var(--ink-soft);
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { color: var(--ink-mute); letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.hours-list .closed { color: var(--ink-deep); }
.hours-list .today { color: var(--ink); }
.hours-list .today .day { color: var(--laser); }

.map-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  overflow: hidden;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(85%) invert(92%) hue-rotate(180deg) contrast(0.85);
}
.map-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255,45,45,0.35);
  outline: 1px dashed var(--rule-2);
  outline-offset: -10px;
}

@media (min-width: 900px) {
  .visit-grid { grid-template-columns: 1fr 1.2fr; }
  .visit-info { border-bottom: 0; border-right: 1px solid var(--rule); }
}

/* =========================================================================
   FOOT CTA
   ========================================================================= */

.footcta {
  padding: var(--pad-y) var(--pad-x);
  text-align: center;
  border-bottom: var(--hair);
  position: relative;
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(255,45,45,0.08) 0%, transparent 70%),
    var(--bg);
}
.footcta-inner { max-width: 720px; margin: 0 auto; }
.footcta .tag { display: inline-block; margin-bottom: 1.25rem; }
.footcta h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}
.footcta h3 em { color: var(--laser); font-style: normal; }
.footcta p {
  color: var(--ink-soft);
  margin: 0 0 2rem;
  font-size: 1rem;
}
.footcta .btn { font-size: 14px; }

/* =========================================================================
   FOOTER
   ========================================================================= */

.foot {
  padding: 2.5rem var(--pad-x);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.foot-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
.foot-brand {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.foot-meta a:hover { color: var(--laser); }
.foot-fine {
  color: var(--ink-deep);
  font-size: 10px;
  letter-spacing: 0.04em;
}

@media (min-width: 720px) {
  .foot-inner { grid-template-columns: 1fr 1fr 1fr; }
}

/* iframes always responsive width */
iframe { max-width: 100%; }
