/* ══════════════════════════════════════════════════════════════
   M1 AUTOMOTIVE'S
   Layout & motion replicated 1:1 from the FRACTIONA reference frames.
   Accent swapped purple → BMW-M red, since the mark we inherited is
   the M-stripe logo. Change --accent alone to re-theme.
   ══════════════════════════════════════════════════════════════ */

:root{
  /* brand */
  --accent:        #e7222e;        /* M red — was FRACTIONA purple #7c5cfc */
  --accent-ink:    #ffffff;
  --accent-dim:    #b4121d;
  --m-blue:        #0066b1;
  --m-navy:        #16214d;

  /* ground */
  --black:         #0a0a0c;
  --ink-900:       #121317;
  --ink-800:       #17181d;
  --ink-700:       #232528;
  --white:         #ffffff;
  --paper:         #ffffff;
  --paper-2:       #f1f1f2;        /* the light-grey band in the frames */
  --line:          #d8d8db;
  --line-dark:     rgba(255,255,255,.16);
  --mute:          #6c7079;
  --mute-dark:     #9ba0ab;

  /* type */
  --display: 'Anton', 'Haettenschweiler', 'Arial Narrow', sans-serif;   /* condensed — headings */
  --marquee: 'Archivo Black', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* wide — giant marquees */
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* rhythm */
  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1600px;

  /* motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --slow: cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after{ box-sizing:border-box }
html{ -webkit-text-size-adjust:100% }
body{
  margin:0; background:var(--black); color:var(--white);
  font-family:var(--mono); font-size:16px; line-height:1.6;
  overflow-x:hidden; -webkit-font-smoothing:antialiased;
}
img{ display:block; max-width:100%; height:auto }
h1,h2,h3,p,ul,ol,figure,address{ margin:0 }
ul,ol{ list-style:none; padding:0 }
a{ color:inherit; text-decoration:none }
button{ font:inherit; color:inherit }
address{ font-style:normal }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px }

.skip{
  position:fixed; top:-100px; left:1rem; z-index:999; padding:.7rem 1rem;
  background:var(--accent); color:var(--accent-ink); font-size:12px; letter-spacing:.08em;
}
.skip:focus{ top:1rem }

/* ───────── shared type ───────── */
.display{
  font-family:var(--display); font-weight:400; text-transform:uppercase;
  font-size:clamp(2.1rem, 5.4vw, 4.6rem); line-height:.92; letter-spacing:-.005em;
  color:var(--ink-900);
}
.display--center{ text-align:center }
.eyebrow{
  font-size:13px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-900);
  display:flex; align-items:center; gap:.6rem;
}
.eyebrow::before{ content:''; width:6px; height:6px; background:currentColor; flex:none }
.eyebrow--center{ justify-content:center }

.pill{
  display:inline-block; padding:.45rem 1rem; font-size:12px; letter-spacing:.14em;
  text-transform:uppercase; border-radius:99px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
}

/* ───────── buttons ───────── */
.btn{
  display:inline-flex; align-items:center; gap:0;
  font-size:13px; letter-spacing:.12em; text-transform:uppercase;
  border-radius:99px; overflow:hidden; white-space:nowrap; flex:none;
  transition:transform .3s var(--ease), filter .3s var(--ease);
}
.btn span{ padding:.85rem 1.4rem }
.btn__arrow{
  display:grid; place-items:center; width:2.9rem; align-self:stretch;
  font-style:normal; font-size:14px;
  border-left:1px solid rgba(255,255,255,.22);
  transition:background .3s var(--ease);
}
.btn--primary{ background:var(--accent); color:var(--accent-ink) }
.btn--primary:hover{ transform:translateY(-2px); filter:brightness(1.08) }
.btn--primary:hover .btn__arrow{ background:rgba(0,0,0,.22) }
.btn--ghost{
  padding:0 .3rem;
  background:rgba(255,255,255,.08); color:var(--white);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
}
.btn--ghost:hover{ background:rgba(255,255,255,.16); transform:translateY(-2px) }
.btn--wa{
  width:2.9rem; height:2.9rem; padding:0; align-self:center; justify-content:center;
  background:rgba(255,255,255,.14);
}
.btn--wa svg{ width:1.25rem; height:1.25rem; display:block }
.btn--wa svg path:first-child{ fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round }
.btn--wa svg path:last-child{ fill:currentColor; stroke:none }
.btn--lg{ font-size:14px }
.btn--lg span{ padding:1.05rem 1.7rem }

/* ───────── the thin design-grid overlay ───────── */
.grid-overlay{ position:absolute; inset:0; pointer-events:none; z-index:3 }
.grid-overlay i,
.grid-overlay b{ position:absolute; background:rgba(255,255,255,.14) }
.grid-overlay i{ left:var(--x); top:0; bottom:0; width:1px }
.grid-overlay b{ top:var(--y); left:0; right:0; height:1px }
.grid-overlay u{
  position:absolute; left:var(--x); top:var(--y); width:6px; height:6px;
  background:var(--white); transform:translate(-50%,-50%);
}
.grid-overlay--tight i,
.grid-overlay--tight b{ background:rgba(255,255,255,.1) }

/* ══════════════════════════════  NAV  ══════════════════════════════ */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; justify-content:center; padding:1rem var(--pad);
  transition:padding .4s var(--ease);
}
.nav.is-stuck{ padding-top:.5rem }
.nav__pill{
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:clamp(1rem,4vw,3.5rem);
  padding:.5rem .6rem .5rem 1rem; border-radius:99px;
  background:rgba(18,19,23,.55); border:1px solid rgba(255,255,255,.1);
  backdrop-filter:blur(18px) saturate(1.4); -webkit-backdrop-filter:blur(18px) saturate(1.4);
  transition:background .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-stuck .nav__pill{ background:rgba(10,10,12,.86); border-color:rgba(255,255,255,.16) }
.nav__menu{
  display:grid; gap:4px; width:34px; padding:9px 7px; background:none; border:0; cursor:pointer;
  border-radius:99px;
}
.nav__menu span{ height:1.5px; background:var(--white); transition:transform .35s var(--ease), opacity .2s }
.nav__menu[aria-expanded="true"] span:first-child{ transform:translateY(2.75px) rotate(45deg) }
.nav__menu[aria-expanded="true"] span:last-child{ transform:translateY(-2.75px) rotate(-45deg) }
.nav__logo{ justify-self:center; display:block }
.nav__logo img{ height:clamp(18px,2.4vw,24px); width:auto }
.nav__contact{
  padding:.65rem 1.15rem; font-size:12px; letter-spacing:.14em; border-radius:99px;
  background:rgba(255,255,255,.08); transition:background .3s var(--ease);
}
.nav__contact:hover{ background:var(--accent) }

/* menu overlay */
.menu{
  position:fixed; inset:0; z-index:99; background:rgba(10,10,12,.96);
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  display:grid; place-items:center;
  opacity:0; transition:opacity .4s var(--ease);
}
.menu[hidden]{ display:none }
.menu.is-open{ opacity:1 }
.menu__inner{ display:grid; gap:.4rem; padding:var(--pad) }
.menu__inner a{
  font-family:var(--display); text-transform:uppercase;
  font-size:clamp(1.9rem,7vw,3.6rem); line-height:1;
  display:flex; align-items:baseline; gap:1rem;
  opacity:0; transform:translateY(24px);
  transition:opacity .5s var(--ease), transform .5s var(--ease), color .25s;
}
.menu.is-open .menu__inner a{ opacity:1; transform:none }
.menu__inner a:nth-child(1){ transition-delay:.06s } .menu__inner a:nth-child(2){ transition-delay:.11s }
.menu__inner a:nth-child(3){ transition-delay:.16s } .menu__inner a:nth-child(4){ transition-delay:.21s }
.menu__inner a:nth-child(5){ transition-delay:.26s } .menu__inner a:nth-child(6){ transition-delay:.31s }
.menu__inner a:hover{ color:var(--accent) }
.menu__inner span{ font-family:var(--mono); font-size:13px; color:var(--mute-dark); letter-spacing:.1em }

/* ══════════════════════════════  HERO  ══════════════════════════════ */
.hero{
  position:relative; min-height:100svh; overflow:hidden;
  background:
    radial-gradient(115% 85% at 50% 30%, #5b5f6b 0%, #3a3d46 38%, #1f2126 72%, var(--black) 100%);
  display:grid;
}

/* locked studio plate — one car, one cyclorama, like the reference hero */
.hero__strip{ position:absolute; inset:0; z-index:1; overflow:hidden }
.hero__strip img{
  width:100%; height:100%; object-fit:cover; object-position:32% 72%;
}

/* giant clipped marquee across the hero floor */
.hero__marquee{
  position:absolute; left:0; right:0; bottom:0; z-index:4;
  overflow:hidden; pointer-events:none;
}
.hero__marqueeTrack{
  display:flex; width:max-content; will-change:transform;
  animation:marquee 26s linear infinite;
}
.hero__marqueeTrack span{
  display:block;
  font-family:var(--marquee); text-transform:uppercase; color:var(--white);
  font-size:clamp(3.4rem, 23vh, 15rem); line-height:.74; white-space:nowrap;
  letter-spacing:-.015em;
  margin-bottom:-.15em;              /* lets the glyph feet clip on the hero edge */
}
@keyframes marquee{ to{ transform:translate3d(-50%,0,0) } }

/* hero card */
.hero__card{
  position:relative; z-index:5; align-self:center; justify-self:end;
  width:min(28rem, 100%); margin:7.5rem var(--pad) clamp(7rem,16vw,12rem);
  display:grid; gap:1rem; justify-items:start;
}
.hero__title{
  font-family:var(--mono); font-weight:700; font-style:italic;
  font-size:clamp(1.45rem,2.6vw,1.95rem); line-height:1.18; letter-spacing:-.01em;
}
.hero__title span{ display:block }
.hero__copy{ color:#cbced6; font-size:16.5px; line-height:1.65; max-width:36ch }
.hero__cta{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:.4rem }

/* staggered load reveal */
.js .reveal-1,.js .reveal-2,.js .reveal-3,.js .reveal-4,.js .reveal-5{
  opacity:0; transform:translateY(18px);
  animation:riseIn .85s var(--slow) forwards;
}
.reveal-1{ animation-delay:.25s } .reveal-2{ animation-delay:.40s }
.reveal-3{ animation-delay:.50s } .reveal-4{ animation-delay:.62s }
.reveal-5{ animation-delay:.76s }
@keyframes riseIn{ to{ opacity:1; transform:none } }

/* ══════════════════  WHY — ascending stat bars  ══════════════════ */
.section--light{ background:var(--paper); color:var(--ink-900) }
.why{
  padding:clamp(4rem,9vw,8rem) var(--pad) clamp(3rem,7vw,6rem);
  display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,6vw,5rem); align-items:end;
  max-width:var(--maxw); margin-inline:auto;
}
.why__head{ display:grid; gap:1.6rem; justify-items:start; align-content:start }
.why .display{ margin-top:.3rem }

.bars{
  display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(.5rem,2vw,1.5rem);
  align-items:stretch; min-height:clamp(16rem,30vw,27rem);
}
/* each column fills the chart height so --h resolves against the chart, not the label */
.bar{ position:relative }
/* number + label ride the TOP of their own line, as in the reference */
.bar__cap{
  position:absolute; left:0; top:calc(100% - var(--h)); padding-left:.75rem;
  display:grid; gap:.45rem;
}
.bar__num{
  font-family:var(--display); font-size:clamp(1.5rem,3.4vw,2.9rem); line-height:.82;
  white-space:nowrap;
}
.bar__label{ font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--mute) }
/* the vertical rule that grows out of the baseline */
.bar__line{
  position:absolute; left:0; bottom:0; width:1px; background:var(--ink-900);
  height:0; transition:height 1.15s var(--slow);
}
.bar__line::after{
  content:''; position:absolute; left:-2.5px; bottom:-2.5px; width:6px; height:6px;
  background:var(--ink-900);
}
.js .bar__cap{ opacity:0; transform:translateY(14px);
  transition:opacity .7s var(--ease) .25s, transform .8s var(--slow) .25s }
.bars.is-in .bar__line{ height:var(--h) }
.js .bars.is-in .bar__cap{ opacity:1; transform:none }
.bars.is-in .bar:nth-child(2) .bar__line,
.js .bars.is-in .bar:nth-child(2) .bar__cap{ transition-delay:.1s,.35s }
.bars.is-in .bar:nth-child(3) .bar__line,
.js .bars.is-in .bar:nth-child(3) .bar__cap{ transition-delay:.2s,.45s }
.bars.is-in .bar:nth-child(4) .bar__line,
.js .bars.is-in .bar:nth-child(4) .bar__cap{ transition-delay:.3s,.55s }

/* ══════════════════  INSPECTION — 360 scrub  ══════════════════ */
.inspect{
  display:grid; grid-template-columns:1fr 1fr; align-items:stretch;
  background:var(--paper-2); color:var(--ink-900);
}
.inspect__text{
  display:grid; gap:1.4rem; justify-items:center; align-content:center; text-align:center;
  padding:clamp(3.5rem,8vw,7rem) clamp(1.25rem,4vw,4rem);
}
.inspect__copy{ color:var(--mute); font-size:16.5px; line-height:1.65; max-width:42ch }
.statbox{
  display:grid; grid-template-columns:repeat(3,1fr);
  background:var(--white); border-radius:1.2rem; padding:1.4rem .5rem;
  box-shadow:0 1px 0 rgba(0,0,0,.05); width:100%; max-width:34rem;
}
.statbox > div{ text-align:center; padding:0 .5rem }
.statbox > div + div{ border-left:1px solid var(--line) }
.statbox__num{ font-family:var(--display); font-size:clamp(1.4rem,3vw,2.15rem); line-height:1 }
.statbox__label{ font-size:12px; letter-spacing:.12em; color:var(--mute); margin-top:.4rem }

.inspect__stage{
  position:relative; overflow:hidden; min-height:clamp(22rem,54vw,46rem);
  background:var(--black);
  display:grid; place-items:center;
}
.inspect__frame{
  grid-area:1 / 1;
  width:min(84%, 40rem); height:auto; position:relative; z-index:2;
  transition:opacity .7s var(--ease), transform 1s var(--slow);
}
.inspect__frame--next{
  pointer-events:none;
  transition:transform 1s var(--slow);
}
.js .inspect__frame{ transform:scale(.94); opacity:0 }
.inspect__stage.is-in .inspect__frame{ opacity:1; transform:none }
.inspect__stage.is-in .inspect__frame--next{ opacity:0 }

/* callout tags with dashed leader lines */
.tag{
  position:absolute; z-index:4; padding:.42rem .8rem; border-radius:.45rem;
  font-size:12px; letter-spacing:.11em; text-transform:uppercase; color:var(--white);
  background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  transition:opacity .6s var(--ease), transform .6s var(--slow);
}
.js .tag{ opacity:0; transform:translateY(8px) scale(.96) }
.tag::before{
  content:''; position:absolute; top:50%; width:clamp(1.5rem,4vw,3.2rem); height:0;
  border-top:1px dashed rgba(255,255,255,.5);
}
.tag--a{ top:24%; right:6% } .tag--a::before{ right:100%; margin-right:.3rem }
.tag--b{ top:46%; left:5% }  .tag--b::before{ left:100%; margin-left:.3rem }
.tag--c{ bottom:24%; right:9% } .tag--c::before{ right:100%; margin-right:.3rem }
.inspect__stage.is-in .tag{ opacity:1; transform:none }
.inspect__stage.is-in .tag--a{ transition-delay:.45s }
.inspect__stage.is-in .tag--b{ transition-delay:.60s }
.inspect__stage.is-in .tag--c{ transition-delay:.75s }

/* ══════════════════  PILLARS — hover to colour  ══════════════════ */
.pillars{ padding:clamp(4rem,9vw,8rem) 0 0; display:grid; gap:1.1rem; justify-items:center }
.pillars .display{ margin-bottom:clamp(2rem,5vw,3.5rem) }
.cards{
  width:100%; display:grid; grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.card{
  position:relative; padding:clamp(1.25rem,2.6vw,2rem);
  display:grid; gap:.55rem; align-content:start;
  transition:background .4s var(--ease);
}
.card + .card{ border-left:1px solid var(--line) }
.card::before,.card::after{
  content:''; position:absolute; width:6px; height:6px; background:var(--ink-900); left:-3px;
}
.card::before{ top:-3px } .card::after{ bottom:-3px }
.card:last-child{ box-shadow:3px 0 0 -0px transparent }
.card__media{ overflow:hidden; margin-bottom:.6rem }
.card__media img{
  width:100%; aspect-ratio:4/3; object-fit:cover;
  filter:grayscale(1) contrast(1.08);
  transition:filter .6s var(--ease), transform .8s var(--slow);
}
.card:hover .card__media img{ filter:none; transform:scale(1.07) }
.card__kicker{ font-size:12px; letter-spacing:.14em; color:var(--mute) }
.card__title{
  font-family:var(--mono); font-weight:700; font-style:italic;
  font-size:clamp(1.05rem,2vw,1.3rem); letter-spacing:.02em;
  transition:color .3s var(--ease);
}
.card:hover .card__title{ color:var(--accent) }
.card__copy{ font-size:15.5px; line-height:1.6; color:var(--mute) }

/* ══════════════════  SERVICES — bundle, no prices  ══════════════════ */
.services{
  background:var(--paper-2); color:var(--ink-900);
  padding:clamp(4rem,9vw,8rem) var(--pad);
  display:grid; grid-template-columns:1fr 1.25fr; gap:clamp(2rem,6vw,5rem);
  max-width:var(--maxw); margin-inline:auto;
}
.services__head{ display:grid; gap:1.3rem; align-content:start; position:sticky; top:7rem; height:max-content }
.services__note{ font-size:16px; color:var(--mute); line-height:1.6; max-width:38ch }
.services__list{ display:grid; border-top:1px solid var(--line) }
.services__list li{ border-bottom:1px solid var(--line) }
.services__i{ font-size:12px; letter-spacing:.08em; color:var(--mute) }
.svc{
  width:100%; display:grid; grid-template-columns:auto 1fr auto; gap:.15rem 1.1rem; align-items:center;
  padding:1.05rem .4rem; border:0; background:none; color:inherit; text-align:left; cursor:pointer; font:inherit;
  transition:background .3s var(--ease);
}
.svc:hover{ background:rgba(0,0,0,.035) }
.svc__body{ display:grid; gap:.18rem; min-width:0 }
.svc__body h3{
  font-family:var(--mono); font-weight:700; font-style:italic; font-size:clamp(1rem,1.8vw,1.2rem);
}
.svc__body p{ font-size:15.5px; color:var(--mute); line-height:1.5 }
.svc__mark{
  font-size:11.5px; letter-spacing:.12em; padding:.45rem .75rem; border-radius:99px;
  border:1px solid var(--line); color:var(--mute);
}
.svc[aria-pressed="true"]{ background:rgba(231,34,46,.07) }
.svc[aria-pressed="true"] h3{ color:var(--accent) }
.svc[aria-pressed="true"] .svc__mark{ background:var(--ink-900); color:var(--white); border-color:var(--ink-900) }

.checkout{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  margin-top:.85rem; padding:.6rem .6rem .6rem 1.15rem;
  background:var(--ink-900); color:var(--white); border-radius:99px;
}
.checkout[hidden]{ display:none }
.checkout__body{ min-width:0 }
.checkout__kicker{ font-size:11.5px; letter-spacing:.14em; color:var(--mute-dark) }
.checkout__items{
  margin-top:.15rem; font-size:15.5px; line-height:1.35;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

/* ══════════════════  GALLERY — mixed marques  ══════════════════ */
.gallery{
  background:var(--black); color:var(--white);
  padding:clamp(4rem,9vw,8rem) var(--pad) clamp(3rem,6vw,5rem);
}
.gallery .display,.gallery .eyebrow{ color:var(--white) }
.gallery__head{
  display:grid; gap:.45rem; justify-items:start;
  max-width:var(--maxw); margin:0 auto clamp(1.6rem,3vw,2.6rem);
}
.gallery__grid{
  max-width:var(--maxw); margin-inline:auto;
  display:grid; grid-template-columns:repeat(3,1fr); gap:.55rem;
}
.gallery__item{ position:relative; margin:0; overflow:hidden; background:#141416; aspect-ratio:4/3 }
.gallery__item img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transition:transform .8s var(--slow);
}
.gallery__item:hover img{ transform:scale(1.04) }
.gallery__item figcaption{
  position:absolute; left:.7rem; bottom:.7rem; z-index:2;
  display:flex; align-items:center; gap:.55rem;
  padding:.4rem .7rem .4rem .55rem; border-radius:99px;
  background:rgba(10,10,12,.62); color:var(--white);
  font-size:12.5px; letter-spacing:.1em; text-transform:uppercase;
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
.gallery__item figcaption span{ color:var(--accent); font-size:11px; letter-spacing:.08em }

/* ══════════════════  REQUEST A SLOT  ══════════════════ */
.book{
  background:var(--paper); color:var(--ink-900);
  padding:clamp(4rem,9vw,8rem) var(--pad);
  display:grid; grid-template-columns:1fr 1.15fr; gap:clamp(2rem,6vw,5rem);
  max-width:var(--maxw); margin-inline:auto; align-items:start;
}
.book__head{ display:grid; gap:1.3rem; align-content:start }
.book__note{ font-size:16.5px; color:var(--mute); line-height:1.6; max-width:38ch }

.form{ display:grid; grid-template-columns:1fr 1fr; gap:1.1rem 1.2rem }
.field{ display:grid; gap:.45rem }
.field--full{ grid-column:1 / -1 }
.field label{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--mute) }
.field label em{ font-style:normal; text-transform:none; letter-spacing:0; opacity:.7 }
.field input,.field select,.field textarea{
  font-family:var(--mono); font-size:16px; color:var(--ink-900);
  padding:.85rem 1rem; border:1px solid var(--line); border-radius:.6rem;
  background:var(--white); width:100%; resize:vertical;
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder,.field textarea::placeholder{ color:#b3b6bd }
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(231,34,46,.14);
}
.field.is-bad input,.field.is-bad select,.field.is-bad .bundle{ border-color:var(--accent) }
.bundle{
  display:flex; flex-wrap:wrap; gap:.4rem; align-items:center;
  min-height:3rem; padding:.65rem .75rem;
  border:1px solid var(--line); border-radius:.6rem; background:var(--white);
}
.bundle.is-empty{ color:#b3b6bd; font-size:16px }
.chip{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.38rem .55rem .38rem .7rem; border:0; border-radius:99px; cursor:pointer;
  background:var(--ink-900); color:var(--white);
  font-family:var(--mono); font-size:12.5px; letter-spacing:.05em; text-transform:uppercase;
}
.chip i{ font-style:normal; opacity:.65; font-size:13px; line-height:1 }
.err{ font-size:13px; color:var(--accent-dim); min-height:0; letter-spacing:.02em }
.form__submit{ display:grid; gap:.8rem; justify-items:start; margin-top:.3rem }
.form__status{ font-size:15px; color:var(--mute) }
.form__status.is-ok{ color:#15803d }
.form__status.is-bad{ color:var(--accent-dim) }

/* ══════════════════════════════  FOOTER  ══════════════════════════════ */
.footer{
  position:relative; overflow:hidden; isolation:isolate;
  background:linear-gradient(180deg,#201a1b 0%, #151112 60%, var(--black) 100%);
  padding:clamp(3rem,7vw,5.5rem) var(--pad) 0;
  display:grid; grid-template-columns:1fr auto; gap:2rem;
  min-height:min(46rem, 110svh);
}
.footer__car{
  position:absolute; z-index:1; left:0; bottom:16%;
  width:min(105%,1500px); height:auto; opacity:.8;
  mask-image:linear-gradient(to bottom,#000 55%,transparent 100%);
  -webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent 100%);
}
.footer__menu{ position:relative; z-index:4; display:grid; gap:1rem; align-content:start }
.footer__h{ font-family:var(--display); text-transform:uppercase; font-size:1.15rem; letter-spacing:.02em }
.footer__menu ul{ display:grid; gap:.55rem }
.footer__menu a{
  display:flex; align-items:center; gap:.6rem;
  font-size:13px; letter-spacing:.12em; color:#cfd2d9; transition:color .25s, gap .25s var(--ease);
}
.footer__menu a::before{ content:''; width:5px; height:5px; background:currentColor; flex:none }
.footer__menu a:hover{ color:var(--white); gap:.9rem }

.footer__card{
  position:relative; z-index:4; width:min(24rem,100%); justify-self:end;
  display:grid; gap:.9rem; justify-items:start; align-content:start;
  padding:1.4rem; border-radius:1rem;
  background:rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.1);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
}
.footer__tabs{ display:flex; gap:.35rem; margin-bottom:.2rem }
.footer__tab{
  padding:.5rem .95rem; border-radius:99px; font-size:12px; letter-spacing:.12em;
  background:rgba(255,255,255,.1); transition:background .3s var(--ease);
}
.footer__tab:hover{ background:var(--accent) }
.footer__claim{
  font-family:var(--mono); font-weight:700; font-style:italic;
  font-size:clamp(1.1rem,2vw,1.45rem); line-height:1.25; letter-spacing:.01em;
}
.footer__mail{ font-size:15px; color:#cfd2d9; border-bottom:1px solid rgba(255,255,255,.25); padding-bottom:1px }
.footer__mail:hover{ color:var(--white); border-color:var(--white) }
.footer__addr,.footer__hours{ font-size:14.5px; line-height:1.65; color:var(--mute-dark) }
.footer__social{ display:flex; gap:.5rem; margin-top:.3rem }
.footer__social a{
  display:grid; place-items:center; width:2.4rem; height:2.4rem; border-radius:99px;
  background:rgba(255,255,255,.08); transition:background .3s var(--ease), transform .3s var(--ease);
}
.footer__social a:hover{ background:var(--accent); transform:translateY(-2px) }
.footer__social svg{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.5 }

.footer__marquee{
  grid-column:1 / -1; position:relative; z-index:3; align-self:end;
  overflow:hidden; pointer-events:none; margin:0 calc(var(--pad) * -1);
}
.footer__marqueeTrack{ display:flex; width:max-content; animation:marquee 30s linear infinite; will-change:transform }
.footer__marqueeTrack span{
  display:block;
  font-family:var(--marquee); text-transform:uppercase; color:var(--white);
  font-size:clamp(2.8rem,13vw,11rem); line-height:.76; white-space:nowrap;
  letter-spacing:-.015em; margin-bottom:-.14em;
}
.footer__legal{
  grid-column:1 / -1; position:relative; z-index:4;
  padding:1.2rem 0 1.5rem; border-top:1px solid rgba(255,255,255,.1);
  font-size:13px; letter-spacing:.08em; color:var(--mute-dark);
}

/* ══════════════════  mobile action bar  ══════════════════ */
.actionbar{ display:none }

/* ══════════════════  scroll reveal  ══════════════════ */
.js .reveal{ opacity:0; transform:translateY(26px) }
.reveal{ transition:opacity .8s var(--ease), transform .9s var(--slow) }
.js .reveal.is-in{ opacity:1; transform:none }
.reveal:nth-child(2){ transition-delay:.07s }
.reveal:nth-child(3){ transition-delay:.14s }
.cards .card:nth-child(2){ transition-delay:.1s }
.cards .card:nth-child(3){ transition-delay:.2s }
.services__list li:nth-child(n+2){ transition-delay:calc(.05s * var(--i,0)) }

/* ══════════════════════════════  RESPONSIVE  ══════════════════════════════ */
@media (max-width:1000px){
  .why{ grid-template-columns:1fr }
  .bars{ min-height:clamp(13rem,42vw,20rem) }
  .inspect{ grid-template-columns:1fr }
  .inspect__stage{ order:-1; min-height:clamp(18rem,78vw,30rem) }
  .cards{ grid-template-columns:1fr }
  .card + .card{ border-left:0; border-top:1px solid var(--line) }
  .services,.book{ grid-template-columns:1fr }
  .services__head{ position:static }
  .gallery__head{ justify-items:start }
  .gallery__grid{ grid-template-columns:1fr 1fr }
  .gallery__item img{ height:100% }
  .footer{ grid-template-columns:1fr; min-height:0; background:var(--black) }
  .footer__card{ justify-self:start; width:100%; order:2 }
  .footer__menu{ order:1 }
  /* car sits under the contact card; edges fade into the page black */
  .footer__car{
    position:relative; left:auto; bottom:auto; z-index:1;
    width:calc(100% + (var(--pad) * 2)); max-width:none; height:auto;
    margin:1rem calc(var(--pad) * -1) 0;
    grid-column:1 / -1; order:3;
    opacity:1;
    -webkit-mask-image:radial-gradient(ellipse 70% 68% at 50% 46%, #000 36%, transparent 76%);
    mask-image:radial-gradient(ellipse 70% 68% at 50% 46%, #000 36%, transparent 76%);
  }
  .footer__marquee{ order:4 }
  .footer__legal{ order:5 }
}

@media (max-width:720px){
  body{ font-size:16px }

  /* mobile-first hero: card first and high, photo fills the whole screen */
  .hero{
    min-height:100svh; grid-template-rows:auto 1fr;
    background:var(--black);
  }
  .hero__card{
    justify-self:stretch; width:auto; align-self:start;
    margin:5.5rem var(--pad) 0; gap:.85rem;
  }
  .hero__strip{ inset:0; top:0; height:auto }
  .hero__strip img{ object-position:26% 62% }
  .hero__cta{ margin-top:2.35rem }
  .hero__marquee{ bottom:3.5rem }   /* clear the fixed action bar */
  .hero__marqueeTrack span{ font-size:clamp(2.5rem, 12vw, 3.6rem) }
  .footer__marqueeTrack span{ font-size:clamp(2.2rem, 11vw, 3.2rem) }
  .hero__copy{ font-size:15.5px }

  .bars{ grid-template-columns:repeat(2,1fr); gap:1.4rem 1rem; min-height:0 }
  .bar{ min-height:clamp(5.5rem,22vw,8rem) }
  .bar__cap{ position:static; padding-left:.75rem }
  .bars.is-in .bar__line{ height:100% }

  .statbox{ border-radius:.9rem; padding:1.1rem .25rem }
  .form{ grid-template-columns:1fr }
  .tag--a{ right:4%; top:18% } .tag--b{ left:4% } .tag--c{ right:5%; bottom:18% }
  .tag{ font-size:11px; padding:.4rem .65rem }

  /* persistent quick-action bar */
  .actionbar{
    position:fixed; left:0; right:0; bottom:0; z-index:95;
    display:grid; grid-template-columns:1fr 1.3fr 1fr; gap:1px;
    background:rgba(255,255,255,.1);
    padding-bottom:env(safe-area-inset-bottom);
    backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  }
  .actionbar a{
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
    padding:.65rem .3rem; background:rgba(10,10,12,.92);
    font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  }
  .actionbar svg{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.6 }
  .actionbar__wa{ background:var(--accent) !important; color:var(--accent-ink) }
  .checkout{ border-radius:1.1rem; align-items:flex-start; flex-wrap:wrap }
  .gallery__grid{ gap:.4rem }
  .gallery__item figcaption{ left:.45rem; bottom:.4rem; font-size:11.5px; padding:.32rem .5rem .32rem .4rem }
  .footer__legal{ padding-bottom:4.8rem }
}

/* ══════════════════  reduced motion  ══════════════════ */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important; scroll-behavior:auto !important;
  }
  .reveal,.reveal-1,.reveal-2,.reveal-3,.reveal-4,.reveal-5{ opacity:1; transform:none }
  .inspect__frame{ opacity:1; transform:none }
  .tag{ opacity:1; transform:none }
}

html{ scroll-behavior:smooth; scroll-padding-top:6rem }
