/* =========================================================
   TREC RENTALS · Austin luxury & exotic car rental
   Aesthetic: minimalist, elegant, light
   Palette:   paper white + deep navy ink + TREC royal-blue accent
   Type:      Fraunces (display) / Hanken Grotesk (UI)
   ========================================================= */

:root {
  --paper:      #ffffff;   /* primary background */
  --paper-2:    #f5f6fa;   /* soft band / inputs */
  --paper-3:    #eceef4;   /* hover / chips */
  --ink:        #101230;   /* primary text, deep navy */
  --ink-2:      #44496a;   /* secondary text */
  --muted:      #646985;   /* labels, captions (>=4.5:1 on white) */
  --faint:      #9ea3bd;   /* decorative detail / placeholders only */
  --error:      #b23b2e;
  --line:       rgba(16, 18, 48, 0.10);
  --line-strong:rgba(16, 18, 48, 0.20);

  --navy:       #0f1040;   /* TREC logo navy */
  --royal:      #2a2bd4;   /* TREC logo royal blue */
  --brand:      #2f2ed6;   /* accent */
  --brand-deep: #15166b;
  --brand-bright:#4744ff;
  --brand-soft: rgba(47, 46, 214, 0.08);
  --brand-grad: linear-gradient(100deg, #15166b 0%, #2f2ed6 55%, #4744ff 100%);
  --title-grad: linear-gradient(102deg, #101230 0%, #232290 46%, #4744ff 100%);

  --shadow-sm:  0 2px 12px -6px rgba(16, 18, 48, 0.16);
  --shadow-md:  0 22px 48px -26px rgba(16, 18, 48, 0.30);
  --shadow-lg:  0 36px 80px -34px rgba(21, 22, 107, 0.34);

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.9s;

  --f-display: "Fraunces", Georgia, serif;
  --f-ui: "Hanken Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--f-ui);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ---------- Shared typography ---------- */
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.7em;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--brand);
  display: inline-block;
}

.section { padding: clamp(72px, 11vw, 168px) var(--gutter); position: relative; z-index: 2; }
.section__title {
  font-family: var(--f-display); font-weight: 400; color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.1;
  letter-spacing: -0.015em; margin-top: 1rem; max-width: 16ch;
  /* Navy to royal-blue gradient so headings carry the brand accent.
     padding-bottom gives the clipped gradient room for descenders (g, y, p). */
  background: var(--title-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-bottom: 0.14em;
}
.section__note { color: var(--ink-2); max-width: 44ch; font-size: 1.02rem; }
.section__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2.5rem; flex-wrap: wrap; margin: 0 auto clamp(40px, 5vw, 72px);
  max-width: var(--maxw);
}

em { font-style: italic; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--f-ui); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.01em; padding: 0.95em 1.7em; border-radius: 100px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease),
              color 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn--solid:hover { background: var(--brand); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper-2); transform: translateY(-2px); }
.btn--text { padding: 0.6em 0; color: var(--ink); }
.btn--text svg { transition: transform 0.4s var(--ease); }
.btn--text:hover svg { transform: translateX(5px); }
.btn--text:hover { color: var(--brand); }
.btn--full { width: 100%; justify-content: center; }

/* ---------- Keyboard focus (deliberate, brand-consistent) ---------- */
a:focus-visible,
button:focus-visible,
.nav__burger:focus-visible,
.intro__cue:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px;
}
/* Pill buttons: a rectangular outline gets clipped by the 100px radius, so use
   a radius-following box-shadow ring instead. */
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft), 0 0 0 2px var(--brand); }
.btn--solid:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--brand), var(--shadow-sm); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease),
              box-shadow 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(16, 18, 48, 0.5);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
}
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 46px; width: auto; display: block; transition: transform 0.4s var(--ease); }
.brand:hover .brand__logo { transform: translateY(-1px); }
.footer .brand__logo { height: 42px; }

/* Over the full-bleed intro film (HOME page only), the brand plate and controls
   go light on dark footage until the nav sticks. Sub-pages use a solid bar. */
body.page-home .nav .brand { border-radius: 12px; transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease); }
body.page-home .nav:not(.is-stuck) .brand { background: #fff; padding: 0.5rem 0.95rem; box-shadow: 0 12px 30px -12px rgba(5, 6, 15, 0.6); }
body.page-home .nav:not(.is-stuck) .nav__link,
body.page-home .nav:not(.is-stuck) .nav__grouptop { color: rgba(255, 255, 255, 0.88); }
body.page-home .nav:not(.is-stuck) .nav__link:hover,
body.page-home .nav:not(.is-stuck) .nav__grouptop:hover { color: #fff; }
body.page-home .nav:not(.is-stuck) .nav__loc { color: rgba(255, 255, 255, 0.82); }
body.page-home .nav:not(.is-stuck) .nav__account { color: rgba(255, 255, 255, 0.88); }
body.page-home .nav:not(.is-stuck) .nav__account:hover { color: #fff; }
body.page-home .nav:not(.is-stuck) .nav__cta { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
body.page-home .nav:not(.is-stuck) .nav__cta:hover { border-color: #fff; background: rgba(255, 255, 255, 0.14); }
body.page-home .nav:not(.is-stuck) .nav__burger span { background: #fff; }

/* Sub-pages: solid white nav from the top, dark ink controls */
body.page-sub .nav { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(16, 18, 48, 0.5); }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link, .nav__grouptop {
  font-size: 0.9rem; color: var(--ink-2); position: relative; font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.35em; cursor: pointer;
  background: none; border: none; font-family: inherit; transition: color 0.3s var(--ease);
}
.nav__link::after, .nav__grouptop::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px;
  width: 0; background: var(--brand); transition: width 0.4s var(--ease);
}
.nav__link:hover, .nav__grouptop:hover { color: var(--ink); }
.nav__link:hover::after, .nav__grouptop:hover::after,
.nav__link.is-current::after, .nav__grouptop.is-current::after { width: 100%; }
.nav__grouptop svg { transition: transform 0.3s var(--ease); }
.nav__group:hover .nav__grouptop svg, .nav__group.is-open .nav__grouptop svg { transform: rotate(180deg); }

/* Fleet dropdown menu */
.nav__group { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 214px; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 0.5rem; display: flex; flex-direction: column; gap: 0.1rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
/* Invisible bridge over the gap so the cursor keeps the hover on its way down. */
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav__group:hover .nav__menu, .nav__group:focus-within .nav__menu, .nav__group.is-open .nav__menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav__menu a {
  font-size: 0.88rem; color: var(--ink-2); padding: 0.6em 0.9em; border-radius: var(--r-sm);
  display: flex; align-items: baseline; gap: 0.5em; transition: background 0.2s, color 0.2s;
}
.nav__menu a:hover { background: var(--paper-2); color: var(--ink); }
.nav__menu a.is-soon em { font-style: normal; font-size: 0.62em; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-left: auto; }

/* Right cluster: location + reserve */
.nav__right { display: flex; align-items: center; gap: 1.3rem; }
.nav__loc { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.82rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.nav__loc svg { flex: none; }
.nav__cta { padding: 0.7em 1.4em; }
.nav__account { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.88rem; font-weight: 500; color: var(--ink-2); transition: color 0.3s var(--ease); }
.nav__account:hover { color: var(--ink); }
.nav__account svg { flex: none; }

.nav__burger { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav__burger span { position: absolute; left: 0; height: 1.5px; width: 100%; background: var(--ink); transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav__burger span:nth-child(1) { top: 4px; }
.nav__burger span:nth-child(2) { bottom: 4px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column; gap: 0.4rem;
  padding: 1rem var(--gutter) 2rem;
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a { padding: 0.7rem 0; color: var(--ink-2); font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.nav__mobile a.btn { border: 1px solid transparent; margin-top: 0.8rem; justify-content: center; color: var(--paper); }
.nav.is-open .nav__mobile { display: flex; }

/* ---------- SUB-PAGE HEADER (band under the fixed nav) ---------- */
.pagehead {
  padding: calc(clamp(96px, 12vh, 140px) + 2rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
}
.pagehead__inner { max-width: var(--maxw); margin: 0 auto; }
.pagehead .eyebrow { color: var(--muted); }
.pagehead__title {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.04; letter-spacing: -0.015em; margin-top: 1rem; max-width: 18ch;
  background: var(--title-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--ink); padding-bottom: 0.12em;
}
.pagehead__sub { color: var(--ink-2); max-width: 60ch; margin-top: 0.8rem; font-size: 1.05rem; }

/* ---------- HOME: browse-collections preview grid ---------- */
.browse { max-width: var(--maxw); margin: 0 auto; }
.browse__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.browse__card {
  position: relative; display: block; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 3 / 4; box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: #05060f;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.browse__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.browse__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.browse__card:hover img { transform: scale(1.06); }
.browse__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5, 6, 15, 0.85) 100%); }
.browse__soonbg { position: absolute; inset: 0; background: linear-gradient(150deg, #14153f, #05060f); }
.browse__meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.1rem; }
.browse__meta .t { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: #c8c7ff; font-weight: 700; }
.browse__meta h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; color: #fff; line-height: 1.1; margin-top: 0.15rem; }
.browse__badge { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2; background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; padding: 0.4em 0.7em; border-radius: 100px; backdrop-filter: blur(6px); }
.browse__card--all { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--brand-grad); }
.browse__card--all::after { display: none; }
.browse__card--all span { position: relative; z-index: 2; color: #fff; font-family: var(--f-display); font-size: 1.15rem; line-height: 1.2; padding: 1rem; display: inline-flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.browse__card--all span svg { transition: transform 0.4s var(--ease); }
.browse__card--all:hover span svg { transform: translateX(5px); }

/* ---------- HOME: closing call-to-action band ---------- */
.homecta { max-width: 900px; margin: 0 auto; text-align: center; }
.homecta .section__title { max-width: none; margin: 1rem auto 0; }
.homecta .section__note { max-width: 54ch; margin: 1rem auto 0; }
.homecta__actions { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- READY TO DRIVE (horizontal car showcase) ---------- */
.drive { max-width: var(--maxw); margin: 0 auto; }
.drive__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.drive__nav { display: flex; gap: 0.6rem; }
.drive__arrow {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.drive__arrow:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.drive__row {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 1rem; margin: 0 -4px; scrollbar-width: none;
}
.drive__row::-webkit-scrollbar { display: none; }
.dcard {
  flex: 0 0 clamp(270px, 30vw, 350px); scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); display: block;
}
.dcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dcard__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.dcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.dcard:hover .dcard__img img { transform: scale(1.05); }
.dcard__body { padding: 1rem 1.2rem 1.2rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.dcard__make { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.dcard__model { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; color: var(--ink); line-height: 1.15; margin-top: 0.2rem; }
.dcard__price { text-align: right; white-space: nowrap; }
.dcard__price strong { font-family: var(--f-display); font-size: 1.3rem; color: var(--brand); font-weight: 400; }
.dcard__price span { display: block; font-size: 0.76rem; color: var(--muted); }
.dcard__soon { color: var(--muted); font-weight: 600; font-size: 0.9rem; }

/* ---------- ACCOUNT AREA ---------- */
.account { max-width: var(--maxw); margin: 0 auto; }
.acct-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: clamp(1.6rem, 4vw, 2.6rem); }
.acct-narrow { max-width: 460px; margin: 0 auto; }
.acct-card h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--ink); margin-bottom: 0.4rem; }
.acct-tabs { display: flex; gap: 0.3rem; background: var(--paper-2); border-radius: 100px; padding: 0.3rem; margin-bottom: 1.6rem; }
.acct-tab { flex: 1; border: none; background: none; cursor: pointer; font-family: var(--f-ui); font-weight: 600; font-size: 0.92rem; color: var(--muted); padding: 0.7em 1em; border-radius: 100px; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.acct-tab.is-active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.acct-auth .field { margin-bottom: 1rem; }
.acct-auth .btn--full { margin-top: 0.4rem; }
.acct-msg { margin-top: 0.9rem; font-size: 0.92rem; color: var(--brand); text-align: center; }
.acct-msg.is-error { color: var(--error); }
.acct-verify { text-align: center; }
.acct-verify__icon { color: var(--brand); margin-bottom: 0.8rem; }
.acct-verify p { color: var(--ink-2); margin: 0.6rem 0 1.4rem; }
.acct-verify strong, .acct-notice strong { color: var(--ink); }
.acct-notice p { color: var(--ink-2); margin-top: 0.6rem; }
.acct-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.2rem, 3vw, 2rem); align-items: start; }
.acct-side { text-align: center; position: sticky; top: 100px; }
.acct-avatar { width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 50%; background: var(--paper-3); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.acct-name { color: var(--ink); font-weight: 500; word-break: break-word; margin-bottom: 1.2rem; }
.acct-main { display: flex; flex-direction: column; gap: clamp(1.2rem, 3vw, 1.8rem); }
.acct-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.acct-form .field { grid-column: 1 / -1; }
.acct-form .field--half { grid-column: span 1; }
.acct-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.6rem; color: var(--ink-2); font-size: 0.92rem; cursor: pointer; }
.acct-check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.acct-form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.4rem; }
.acct-form__foot .acct-msg { margin-top: 0; text-align: left; }
.acct-hint { color: var(--muted); font-size: 0.92rem; margin: 0.4rem 0 1.2rem; max-width: 60ch; }
.acct-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.acct-doc { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 1.4rem 1rem; text-align: center; color: var(--ink-2); font-size: 0.9rem; }
.acct-doc__plus { display: block; font-size: 1.4rem; color: var(--brand); margin-bottom: 0.3rem; }
.acct-doc em { display: block; font-style: normal; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }

/* ---------- INTRO (cinematic full-bleed video, loops, dissolves into the page) ---------- */
.intro {
  position: relative; height: 100vh; height: 100svh; background: #05060f;
  display: flex; align-items: center; justify-content: center;
  padding: 0; overflow: hidden;
}
.intro__frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.intro__frame video {
  width: 100%; height: 100%; object-fit: cover; background: #05060f; display: block;
}
/* Top scrim keeps the nav legible over the footage; the bottom fade dissolves the
   film smoothly into the white site as you scroll down. */
.intro::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,6,15,0.55) 0%, rgba(5,6,15,0) 20%),
    linear-gradient(180deg, rgba(255,255,255,0) 84%, var(--paper) 100%);
}
.intro__cue {
  position: absolute; bottom: clamp(22px, 4vh, 46px); left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  color: var(--ink-2); opacity: 1; transition: opacity 0.9s var(--ease);
}
/* Hidden until the film is rolling, but only when JS is confirmed running. */
html.js .intro__cue:not(.is-ready) { opacity: 0; }
.intro__cue-label { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; }
.intro__cue-line { display: block; width: 1px; height: 46px; background: linear-gradient(var(--line-strong), transparent); position: relative; overflow: hidden; }
.intro__cue-line::after { content: ""; position: absolute; top: -60%; left: 0; width: 100%; height: 60%; background: var(--brand); animation: scrolldot 2.2s var(--ease) infinite; }
@keyframes scrolldot { to { top: 110%; } }

/* ---------- HERO (the "first page" content, revealed on scroll) ---------- */
.hero {
  position: relative; background: var(--paper);
  min-height: 92vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: clamp(80px, 13vh, 150px) var(--gutter);
}
.hero__inner {
  position: relative; z-index: 2; width: 100%; max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.hero__title {
  font-family: var(--f-display); font-weight: 300; color: var(--ink);
  font-size: clamp(2.9rem, 8vw, 6.4rem); line-height: 1.02;
  letter-spacing: -0.02em; margin: 1.5rem 0 1.6rem;
}
.hero__title span { display: block; }
.hero__title em {
  font-weight: 400;
  background: linear-gradient(100deg, #15166b 0%, #2f2ed6 55%, #4744ff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  /* room for the descender in "every" so the gradient clip doesn't cut the y */
  padding-bottom: 0.1em;
}
.hero__sub { color: var(--ink-2); font-size: clamp(1rem, 1.4vw, 1.14rem); max-width: 52ch; }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 2.4rem; flex-wrap: wrap; }

.hero__stats {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 2.6rem; margin-top: 3.6rem;
}
.stat { border-left: 1px solid var(--line); padding-left: 1.2rem; text-align: left; }
.stat__num { font-family: var(--f-display); font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 400; color: var(--ink); display: block; line-height: 1; }
.stat__label { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.5rem 0; position: relative; z-index: 2; background: var(--paper); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee ul { display: flex; list-style: none; gap: 3.5rem; padding-right: 3.5rem; }
.marquee li { font-family: var(--f-display); font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--muted); white-space: nowrap; letter-spacing: 0.01em; transition: color 0.3s; }
.marquee li:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- FLEET / BENTO ---------- */
.fleet { max-width: var(--maxw); margin: 0 auto; }
.bento {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px; gap: 18px;
}
.car {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--paper-3);
  grid-column: span 1; outline: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.car--wide { grid-column: span 2; }
.car:hover, .car:focus-visible { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.car__img { position: absolute; inset: 0; }
.car__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.6s; filter: brightness(0.9) saturate(1); }
.car::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 22%, rgba(8, 9, 28, 0.55) 56%, rgba(8, 9, 28, 0.92) 100%); }
.car__meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.4rem; display: flex; flex-direction: column; gap: 0.3rem; transform: translateY(8px); transition: transform 0.6s var(--ease); }
.car__tag { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: #a9a8ff; font-weight: 700; }
.car__meta h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.32rem; line-height: 1.1; color: #fff; }
.car__eg { font-size: 0.82rem; color: rgba(255, 255, 255, 0.74); letter-spacing: 0.01em; }
.car__price { font-size: 0.95rem; color: rgba(255, 255, 255, 0.92); margin-top: 0.1rem; }
.car__price span { color: rgba(255, 255, 255, 0.6); }
.car:hover .car__img img, .car:focus-visible .car__img img { transform: scale(1.07); filter: brightness(1); }
.car:hover .car__meta, .car:focus-visible .car__meta { transform: translateY(0); }
.car:focus-visible { box-shadow: 0 0 0 2px var(--brand), var(--shadow-md); }
.fleet__all { margin-top: 2.5rem; }

/* ---------- COLLECTION SHOWCASE (coverflow: center card, side peeks, focus nav) ---------- */
.showcase { max-width: var(--maxw); margin: 0 auto; }
.showcase__viewport { position: relative; overflow: hidden; padding: 14px 0; }
.showcase__track {
  position: relative; height: clamp(450px, 68vh, 640px);
  /* Fade the peeking neighbours out into the page instead of a hard cut.
     The fade width stays inside the centre card's side margin at each breakpoint. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
/* Circular coverflow: every slide is absolutely placed by JS around the centre,
   so neighbours (wrapping around) always peek on both sides. */
.slide {
  position: absolute; top: 0; left: 50%; width: 66%; height: 100%;
  border-radius: var(--r-lg); overflow: hidden; background: #05060f;
  transform: translateX(-50%) scale(0.84); opacity: 0;
  transition: transform 0.75s var(--ease), opacity 0.75s var(--ease), box-shadow 0.75s var(--ease);
  box-shadow: var(--shadow-md);
}
.slide.is-active { box-shadow: var(--shadow-lg); }
/* No-JS fallback: a simple readable vertical stack */
html:not(.js) .showcase__track { height: auto; display: grid; gap: 18px; }
html:not(.js) .slide { position: relative; left: auto; width: 100%; height: auto; min-height: 420px; transform: none; opacity: 1; }
html:not(.js) .showcase__arrow, html:not(.js) .showcase__nav { display: none; }
.slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Darken top (for the title) and bottom (for the car row); leave the middle
   clear so the car photo reads as the hero. */
.slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,6,15,0.72) 0%, rgba(5,6,15,0.22) 20%, rgba(5,6,15,0.02) 42%, rgba(5,6,15,0.32) 62%, rgba(5,6,15,0.9) 100%);
}
.slide__count {
  position: absolute; top: 1.4rem; left: 1.7rem; z-index: 3;
  font-family: var(--f-display); color: rgba(255, 255, 255, 0.82); letter-spacing: 0.08em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.slide__body {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  text-align: center; padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.2rem);
}
.slide__head { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; max-width: 92%; }
.slide__tag { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: #c8c7ff; font-weight: 700; }
.slide__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 2.9vw, 2.6rem); line-height: 1.08; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.slide__foot { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; width: 100%; }
.slide__desc { color: rgba(255, 255, 255, 0.86); max-width: 46ch; }
.slide__availability { color: rgba(255, 255, 255, 0.86); font-weight: 600; letter-spacing: 0.02em; }
/* Cars of the collection laid out in a row, one beside the next */
.slide__cars { list-style: none; display: flex; justify-content: center; align-items: stretch; width: 100%; max-width: 540px; }
.slide__cars li {
  flex: 1 1 0; min-width: 0; padding: 0.1rem clamp(0.5rem, 1.1vw, 0.95rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.slide__cars li:first-child { border-left: none; }
.slide__car { color: #fff; font-weight: 500; font-size: 0.98rem; line-height: 1.2; }
.slide__meta { color: rgba(255, 255, 255, 0.74); font-size: 0.82rem; white-space: nowrap; }
.slide .btn--light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.slide .btn--light:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.slide .btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; background: transparent; }
.slide .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.14); }

/* Coming-soon slides: minimalist, just an elegant cursive line */
.slide__soonbg { position: absolute; inset: 0; background: linear-gradient(150deg, #14153f 0%, #05060f 100%); }
.slide--soon .slide__body { justify-content: flex-start; }
/* "COMING SOON" centered in the card, matching the nav label (display serif, all caps) */
.slide__soontext {
  position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%);
  font-family: var(--f-display); font-weight: 400; font-style: normal;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem); line-height: 1.1;
  letter-spacing: 0.34em; text-transform: uppercase; text-indent: 0.34em;
  color: rgba(255, 255, 255, 0.9); text-align: center;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
/* Single-car collection row: centre the one entry instead of stretching it */
.slide__cars--single { justify-content: center; }
.slide__cars--single li { flex: 0 0 auto; }

/* ---------- COLLECTION DETAIL MODAL (Falcon-style car chooser) ---------- */
.cmodal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem); }
.cmodal[hidden] { display: none; }
.cmodal__backdrop { position: absolute; inset: 0; background: rgba(5, 6, 15, 0.55); backdrop-filter: blur(6px); animation: cmodalFade 0.35s var(--ease); }
.cmodal__panel {
  position: relative; z-index: 1; width: 100%; max-width: 1080px; max-height: 88vh; overflow-y: auto;
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.6rem, 4vw, 3rem); animation: cmodalRise 0.4s var(--ease);
}
.cmodal__close {
  position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cmodal__close:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.cmodal__head { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); max-width: 48ch; padding-right: 3rem; }
.cmodal__eyebrow { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.cmodal__title {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  color: var(--ink); margin-top: 0.4rem; line-height: 1.06;
  background: var(--title-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; padding-bottom: 0.08em;
}
.cmodal__sub { color: var(--ink-2); margin-top: 0.6rem; }
.cmodal__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 1.4rem; }

.ccar { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.ccar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ccar__img { position: relative; aspect-ratio: 16 / 10; background: var(--paper-3); overflow: hidden; }
.ccar__img img { width: 100%; height: 100%; object-fit: cover; }
.ccar__img--soon { display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, #14153f, #05060f); color: rgba(255, 255, 255, 0.5); }
.ccar__img--soon svg { width: 60%; max-width: 210px; height: auto; }
.ccar__badge { position: absolute; top: 0.8rem; left: 0.8rem; background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; padding: 0.4em 0.8em; border-radius: 100px; backdrop-filter: blur(6px); }
.ccar__body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.ccar__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.ccar__make { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ccar__model { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; color: var(--ink); line-height: 1.12; margin-top: 0.15rem; }
.ccar__price { text-align: right; white-space: nowrap; }
.ccar__price strong { font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); font-weight: 400; }
.ccar__price span { display: block; font-size: 0.76rem; color: var(--muted); }
.ccar__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: auto; }
.ccar__miles { font-size: 0.85rem; color: var(--muted); }
.ccar--soon .ccar__miles { color: var(--brand); font-weight: 600; }
.ccar__cta { padding: 0.7em 1.4em; font-size: 0.85rem; }

@keyframes cmodalFade { from { opacity: 0; } }
@keyframes cmodalRise { from { opacity: 0; transform: translateY(16px); } }

/* Side arrows (overlaid on the peeks) */
.showcase__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(16, 18, 48, 0.1); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.showcase__arrow--prev { left: clamp(8px, 2vw, 26px); }
.showcase__arrow--next { right: clamp(8px, 2vw, 26px); }
.showcase__arrow:hover { background: var(--brand); color: #fff; box-shadow: var(--shadow-lg); }
.showcase__arrow:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft), 0 0 0 2px var(--brand); }

/* Focus + context category nav: circular like the coverflow, active centered
   and enlarged, three collections wrapping to each side. */
.showcase__nav { position: relative; height: 3.8rem; overflow: hidden; margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.showcase__navtrack { position: absolute; inset: 0; }
.navdot {
  position: absolute; top: 50%; left: 50%;
  font-family: var(--f-display); font-size: 1.2rem; color: var(--muted);
  background: none; border: none; cursor: pointer; white-space: nowrap; padding: 0;
  transform: translate(-50%, -50%) scale(0.8); opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease), color 0.7s var(--ease);
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.12em; line-height: 1.1;
}
.navdot.is-active { color: var(--brand); }
.navdot--soon em { font-style: normal; font-size: 0.46em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.navdot.is-active.navdot--soon em { color: var(--brand); }
.navdot:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }

/* ---------- RENTAL OPTIONS ---------- */
.rentals { max-width: var(--maxw); margin: 0 auto; }
.rentals__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.rental {
  position: relative; padding: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.rental:hover { border-color: rgba(47, 46, 214, 0.4); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rental--feature { background: linear-gradient(180deg, var(--brand-soft), var(--paper) 46%); border-color: rgba(47, 46, 214, 0.4); box-shadow: var(--shadow-lg); }
.rental__kicker { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.rental h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--ink); line-height: 1.06; }
.rental p { color: var(--ink-2); flex: 1; }
.rental__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.2rem; }
.rental__tags li { font-size: 0.78rem; color: var(--ink); background: var(--paper-3); border: 1px solid var(--line); padding: 0.4em 0.9em; border-radius: 100px; }
.rental .btn { margin-top: 0.6rem; align-self: flex-start; }

/* ---------- ABOUT / CORE VALUES ---------- */
.values { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.values__intro { position: sticky; top: 120px; }
.values__list { list-style: none; display: grid; gap: 0; }
.value { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem 2rem; align-items: start; padding: 2rem 0; border-top: 1px solid var(--line); }
.value:last-child { border-bottom: 1px solid var(--line); }
.value__letter {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 0.9; width: 1.4em; text-align: center;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.value h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; color: var(--ink); margin-bottom: 0.3rem; }
.value p { color: var(--ink-2); }

/* ---------- PARTNER (reuses .tiers / .tier) ---------- */
.partner { max-width: var(--maxw); margin: 0 auto; }
.partner .tiers { grid-template-columns: 1fr 1fr; max-width: 920px; margin: 0 auto; }
.partner .tier--feature { transform: none; }
.tier__price span { font-size: 0.9rem; color: var(--muted); font-family: var(--f-ui); letter-spacing: 0.02em; }

/* ---------- SERVICE PILLARS ---------- */
.service { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 0.95fr 1.25fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.service__intro { position: sticky; top: 120px; }
.pillars { list-style: none; display: grid; gap: 0; }
.pillar { padding: 2rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 1.4rem 2rem; align-items: baseline; }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar__n { font-family: var(--f-display); color: var(--brand); font-size: 1rem; }
.pillar h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; color: var(--ink); }
.pillar p { grid-column: 2; color: var(--ink-2); }

/* ---------- DRIVE AUSTIN ---------- */
.austin { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.austin__media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.austin__media img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.austin__routes { list-style: none; margin-top: 2.4rem; display: grid; gap: 0; }
.austin__routes li { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 1.3rem 0; border-top: 1px solid var(--line); align-items: center; }
.austin__routes li:last-child { border-bottom: 1px solid var(--line); }
.austin__routes span { font-family: var(--f-display); color: var(--brand); }
.austin__routes strong { display: block; font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.austin__routes em { color: var(--muted); font-style: normal; font-size: 0.9rem; }

/* ---------- MISSION & VISION ---------- */
.mv { max-width: var(--maxw); margin: 0 auto; }
.mv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.mv__item { padding-top: clamp(1.4rem, 3vw, 2.2rem); border-top: 2px solid var(--brand); }
.mv__item .eyebrow { color: var(--muted); }
.mv__body {
  font-family: var(--f-display); font-weight: 300; color: var(--ink);
  font-size: clamp(1.4rem, 2.6vw, 2.05rem); line-height: 1.3; letter-spacing: -0.01em; margin-top: 1.1rem;
}
.mv__body em { font-weight: 400; }

/* ---------- PROCESS ---------- */
.process { max-width: var(--maxw); margin: 0 auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.step { padding: 2.2rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-sm); transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.step:hover { border-color: rgba(47, 46, 214, 0.4); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__n { font-family: var(--f-display); font-size: 1.6rem; font-weight: 400; color: var(--ink); display: block; margin-bottom: 0.8rem; }
.step__n::before { counter-increment: s; content: "0" counter(s) " · "; color: var(--brand); font-size: 0.9rem; }
.step p { color: var(--ink-2); }

/* ---------- QUOTE ---------- */
.quote { background: var(--paper-2); text-align: center; }
.quote figure { max-width: 980px; margin: 0 auto; }
.quote blockquote { font-family: var(--f-display); font-weight: 300; color: var(--ink); font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.28; letter-spacing: -0.01em; }
.quote figcaption { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.2rem; }
.quote figcaption strong { font-weight: 600; color: var(--ink); }
.quote figcaption span { color: var(--muted); font-size: 0.9rem; }

/* ---------- TIERS (shared by Partner section) ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.tier { position: relative; padding: 2.4rem 2rem; border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 1.2rem; background: var(--paper); box-shadow: var(--shadow-sm); }
.tier--feature { background: linear-gradient(180deg, var(--brand-soft), var(--paper) 42%); border-color: rgba(47, 46, 214, 0.4); box-shadow: var(--shadow-lg); transform: translateY(-12px); }
.tier__flag { position: absolute; top: -12px; left: 2rem; background: var(--brand); color: #fff; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; padding: 0.4em 0.9em; border-radius: 100px; }
.tier h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; color: var(--ink); }
.tier__price { font-family: var(--f-display); font-size: 1.7rem; color: var(--ink); }
.tier__price span { font-size: 0.9rem; color: var(--muted); font-family: var(--f-ui); }
.tier ul { list-style: none; display: grid; gap: 0.7rem; flex: 1; }
.tier li { color: var(--ink-2); font-size: 0.95rem; padding-left: 1.5rem; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.tier .btn { margin-top: 0.5rem; justify-content: center; }

/* ---------- RESERVE ---------- */
.reserve { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.reserve__copy { position: sticky; top: 120px; }
.reserve__contact { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 2rem; }
.reserve__contact a { font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); transition: color 0.3s; }
.reserve__contact a:hover { color: var(--brand); }
.reserve__contact span { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }

.reserve__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; grid-column: 1 / -1; }
.field--half { grid-column: span 1; }
.field label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink); font-family: var(--f-ui); font-size: 1rem; padding: 0.9em 1em;
  transition: border-color 0.3s var(--ease), background 0.3s, box-shadow 0.3s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: var(--paper); box-shadow: 0 0 0 3px var(--brand-soft); }
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23767b95' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.6em;
}
.reserve__form .btn--full { grid-column: 1 / -1; margin-top: 0.4rem; }
.reserve__success { grid-column: 1 / -1; color: var(--brand); font-size: 0.95rem; text-align: center; }
.reserve__error { grid-column: 1 / -1; color: var(--error); font-size: 0.92rem; text-align: center; }
.req { color: var(--brand); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(178, 59, 46, 0.12); }

/* ---------- FOOTER ---------- */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) var(--gutter) 2.5rem; position: relative; z-index: 2; }
.footer__top { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer__line { color: var(--ink-2); font-family: var(--f-display); font-size: 1.2rem; font-style: italic; }
.footer__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 3rem 0; }
.footer__grid nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__grid h4 { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.5rem; font-weight: 700; }
.footer__grid a, .footer__grid span { color: var(--ink-2); font-size: 0.95rem; transition: color 0.3s; }
.footer__grid a:hover { color: var(--brand); }
.footer__base { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }

/* ---------- REVEAL (elegant, contextual motion) ---------- */
/* The hidden state is gated behind html.js so that, without JavaScript, all
   content stays visible. :not(.is-in) keeps the hidden rule from out-specifying
   .reveal.is-in once the observer adds the class. */
.reveal {
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}
html.js .reveal:not(.is-in) { opacity: 0; transform: translateY(30px); filter: blur(6px); }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }
.reveal[data-delay="5"] { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, html.js .reveal:not(.is-in) { opacity: 1; transform: none; filter: none; transition: none; }
  .marquee__track, .intro__cue-line::after { animation: none; }
  .intro__cue, html.js .intro__cue:not(.is-ready) { opacity: 1; transition: none; }
  .slide, .navdot { transition: opacity 0.3s var(--ease); }
  .cmodal__backdrop, .cmodal__panel { animation: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .service, .austin, .reserve, .values { grid-template-columns: 1fr; }
  .mv__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .service__intro, .reserve__copy, .values__intro { position: static; }
  .austin__media { order: 2; }
}
@media (max-width: 880px) {
  .nav__links, .nav__right { display: none; }
  .nav__burger { display: block; }
  .pagehead__title { font-size: clamp(2.2rem, 8vw, 3rem); }
  .browse__grid { grid-template-columns: repeat(2, 1fr); }
  .acct-grid { grid-template-columns: 1fr; }
  .acct-side { position: static; }
  .acct-docs { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .car--wide { grid-column: span 2; }
  .showcase__track {
    height: clamp(440px, 68vh, 560px);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  }
  .slide { width: 84%; }
  .showcase__arrow { width: 44px; height: 44px; }
  .rentals__grid { grid-template-columns: 1fr; }
  .steps, .tiers, .partner .tiers, .footer__grid { grid-template-columns: 1fr; }
  .tier--feature { transform: none; }
  .reserve__form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .car--wide { grid-column: span 1; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 1rem; width: 100%; max-width: 320px; }
  .hero__actions .btn { justify-content: center; }
  .hero__stats { gap: 1.2rem 1.8rem; }
  .value { grid-template-columns: auto 1fr; gap: 1rem 1.2rem; }
  .slide__cars { flex-direction: column; max-width: 320px; }
  .slide__cars li { flex-direction: row; justify-content: space-between; align-items: baseline; border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.16); padding: 0.5rem 0; }
  .slide__cars li:first-child { border-top: none; }
  .showcase__track {
    height: clamp(420px, 74vh, 520px);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  }
  .slide { width: 88%; }
  .footer__top, .footer__base { flex-direction: column; align-items: flex-start; }
}
/* Short / landscape viewports: the film stays full-bleed (object-fit: cover),
   but let the hero content size to itself rather than forcing tall sections. */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: auto; }
}

/* ---------- PHONE PRESENTATION FIXES ----------
   Presentation only at phone widths; every rule above, all JS behavior, and the
   desktop/tablet layout are untouched. */
@media (max-width: 520px) {
  /* Intro film: the closing wording is baked into the footage, so a cover-crop
     clips it on portrait phones. Show the complete frame instead; it letterboxes
     in WHITE so the hero blends into the site's white aesthetic. The dark top
     scrim exists for nav legibility over footage, so on the white band it goes,
     and the home burger (white over footage at desktop) flips to ink. Landscape
     phones are wider than 520px and keep the full-bleed rule above. */
  .intro { background: var(--paper); }
  .intro__frame video { object-fit: contain; background: var(--paper); }
  .intro::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 84%, var(--paper) 100%); }
  body.page-home .nav:not(.is-stuck) .nav__burger span { background: var(--ink); }

  /* Collection card cover: the admin crop zoom (inline transform:scale from
     home-collections.js) is tuned for the wide desktop card and over-magnifies
     a phone-width frame — !important is required to beat that inline style.
     The stored focal point still steers object-position. The photo also keeps
     to the upper card and fades out above the vehicle rows, so a landscape
     photo loses far less of its width to the portrait cover-crop. */
  .slide__img {
    transform: none !important;
    bottom: auto; height: 64%;
    /* --mob-x/--mob-y come from home-collections.js, which re-aims the approved
       desktop framing at the phone window so the vehicle sits near centre;
       !important beats the admin inline object-position, which is desktop-tuned. */
    object-position: var(--mob-x, 50%) var(--mob-y, 50%) !important;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }

  /* Card counter: at phone widths the absolute top-left counter can collide
     with the centered collection tag, so it shrinks and the body starts lower. */
  .slide__count { font-size: 0.85rem; top: 1.15rem; left: 1.3rem; }
  .slide__body { padding-top: 3rem; }

  /* Vehicle rows: when a long name and the price/mileage cannot share a line,
     the meta wraps onto its own line instead of colliding. */
  .slide__cars li {
    flex-wrap: wrap; column-gap: 0.75rem; row-gap: 0.15rem;
    padding: 0.55rem 0;
  }
  .slide__car { text-align: left; }
  .slide__meta { text-align: left; }

  /* Collection selector: a swipeable strip replaces the circular fan, whose
     JS-set inline transforms/opacity the !important rules below override
     (script.js sets no inline pointer-events on navdots, so all stay tappable).
     Edge padding keeps the first/last label clear of the viewport edges;
     scrollbars are hidden but touch scrolling remains. */
  .showcase__nav { height: auto; overflow: visible; }
  .showcase__navtrack {
    position: static;
    display: flex; align-items: flex-start; gap: 1.7rem;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 0.35rem 20px 0.8rem;
    scrollbar-width: none;
  }
  .showcase__navtrack::-webkit-scrollbar { display: none; height: 0; }
  .navdot {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    flex: 0 0 auto;
  }
}
