/* ============================================================
   Cartwright's Garage — Design System
   Style: light, calm, modern   Palette: Navy + warm beige
   Type:  Outfit (display) + Rubik (text)
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* brand — navy to match the logo */
  --brand:      #1B3358;
  --accent:     #2F5D8C;
  --brand-deep: #0F2240;
  --brand-glow: rgba(27,51,88,.22);

  /* surfaces (light-first: warm beige) */
  --bg:         #F6F2EA;
  --bg-2:       #EDE5D6;
  --surface:    #FFFFFF;
  --surface-2:  #FFFFFF;
  --line:       rgba(27,51,88,.11);
  --line-strong:rgba(27,51,88,.22);

  /* ink */
  --ink:        #14243D;
  --ink-2:      #3E4B61;
  --ink-mute:   #5E687A;
  --on-brand:   #FFFFFF;

  /* type scale — fluid */
  --f-xs:   .78rem;
  --f-sm:   .9rem;
  --f-base: 1rem;
  --f-lg:   clamp(1.06rem, .98rem + .35vw, 1.22rem);
  --f-xl:   clamp(1.35rem, 1.2rem + .7vw, 1.75rem);
  --f-2xl:  clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --f-3xl:  clamp(2.3rem, 1.7rem + 2.8vw, 4rem);
  --f-hero: clamp(2.7rem, 1.5rem + 4.9vw, 6.4rem);

  /* space */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1280px;

  /* shape */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* motion */
  --e-out:  cubic-bezier(.22,1,.36,1);
  --e-soft: cubic-bezier(.4,0,.2,1);
  --t-fast: 160ms;
  --t-mid:  280ms;
  --t-slow: 560ms;

  --shadow-1: 0 1px 2px rgba(20,36,61,.06), 0 10px 30px -12px rgba(20,36,61,.18);
  --shadow-brand: 0 10px 40px -12px var(--brand-glow);
  --nav-h: 76px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--f-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1,h2,h3,h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 700;
  text-wrap: pretty;
}
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

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

::selection { background: var(--brand); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #CFC4B0; border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 999;
  background: var(--brand); color: #fff; padding: 12px 20px; border-radius: var(--r-sm);
}
.skip-link:focus { left: 16px; }

/* ---------- 4. Texture / decorative ---------- */
.grid-lines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(27,51,88,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27,51,88,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
}
.glow {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(110px); opacity: .16;
}
.hatch {
  background-image: repeating-linear-gradient(
    -45deg, var(--brand) 0 8px, transparent 8px 18px);
}

/* ---------- 5. Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: var(--f-xs); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--brand); flex: none;
}
.h-display { font-size: var(--f-3xl); }
.h-section { font-size: var(--f-2xl); }
.lede { font-size: var(--f-lg); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-mute); }
.accent { color: var(--accent); }
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
}

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: var(--f-sm);
  letter-spacing: .01em;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--on-brand);
  overflow: hidden; isolation: isolate;
  transition: transform var(--t-fast) var(--e-soft), box-shadow var(--t-mid) var(--e-soft),
              background-color var(--t-mid) var(--e-soft), color var(--t-mid) var(--e-soft);
  box-shadow: var(--shadow-brand);
}
.btn::after {        /* wipe fill */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-mid) var(--e-out);
}
.btn:hover::after { transform: scaleX(1); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 44px -10px var(--brand-glow); }
.btn:active { transform: translateY(0) scale(.985); }

.btn--ghost {
  --btn-bg: transparent;
  border-color: var(--line-strong); color: var(--ink); box-shadow: none;
}
.btn--ghost::after { background: var(--brand); }
.btn--ghost:hover { color: #fff; box-shadow: none; }

.btn--lg { min-height: 60px; padding: 0 36px; font-size: var(--f-base); }
.btn--block { width: 100%; }

.btn .ico { width: 18px; height: 18px; flex: none; transition: transform var(--t-mid) var(--e-out); }
.btn:hover span + .ico { transform: translateX(4px); } /* arrows only, not leading icons */

/* text link with underline sweep */
.link-sweep {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif; font-weight: 600;
  color: var(--ink); padding-bottom: 3px;
}
.link-sweep::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--brand); transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-mid) var(--e-out);
}
.link-sweep:hover::after { transform: scaleX(1); transform-origin: left; }
.link-sweep:hover { color: var(--accent); }
.link-sweep .ico { width: 18px; height: 18px; flex: none;
  transition: transform var(--t-mid) var(--e-out); }
.link-sweep:hover .ico { transform: translateX(4px); }

/* ---------- 7. Header / nav ---------- */
.topbar {
  color: #fff;
  background: var(--brand-deep);
  font-size: var(--f-xs); letter-spacing: .04em;
}
.topbar__in {
  display: flex; align-items: center; justify-content: center; gap: var(--s-5);
  min-height: 38px; flex-wrap: wrap; text-align: center;
}
.topbar a { display: inline-flex; align-items: center; gap: 7px; padding: 4px 2px; }
.topbar a:hover { color: #C9D8EA; }
.topbar .ico { width: 14px; height: 14px; opacity: .85; }
.topbar__sep { opacity: .35; }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,242,234,.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background var(--t-mid) var(--e-soft), border-color var(--t-mid);
}
.nav.is-stuck { background: rgba(246,242,234,.95); border-color: var(--line-strong); }
.nav__in {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: var(--nav-h);
}
.nav__logo { flex: none; display: block; }
.nav__logo img { height: 48px; width: auto; }
.nav__menu {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.nav__link {
  position: relative; display: block;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-family: 'Outfit', sans-serif; font-weight: 500; font-size: var(--f-sm);
  color: var(--ink-2);
  transition: color var(--t-fast) var(--e-soft);
}
.nav__link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-mid) var(--e-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { margin-left: var(--s-3); }

.nav__burger {
  display: none; margin-left: auto;
  width: 48px; height: 48px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm);
  align-items: center; justify-content: center;
}
.nav__burger span {
  display: block; width: 20px; height: 2px; background: var(--ink); position: relative;
  transition: background var(--t-fast);
}
.nav__burger span::before, .nav__burger span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
  transition: transform var(--t-mid) var(--e-out), top var(--t-fast);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top: 6px; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: var(--bg);
  padding: var(--s-6) var(--gutter) var(--s-8);
  display: none; flex-direction: column; gap: var(--s-2);
  overflow-y: auto;
}
.drawer.is-open { display: flex; }
.drawer a.drawer__link {
  font-family: 'Outfit', sans-serif; font-size: var(--f-xl); font-weight: 600;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  transform: translateY(14px); opacity: 0;
  animation: drawerIn .42s var(--e-out) forwards;
}
.drawer a.drawer__link .num { font-size: var(--f-xs); color: var(--accent); }
@keyframes drawerIn { to { transform: none; opacity: 1; } }
.drawer__foot { margin-top: auto; padding-top: var(--s-6); display: grid; gap: var(--s-3); }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(94svh, 900px);
  display: flex; align-items: center;
  padding-block: clamp(56px, 9vw, 110px);
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(27,51,88,.20), transparent 55%),
    radial-gradient(90% 80% at 10% 95%, rgba(27,51,88,.10), transparent 60%),
    var(--bg);
}
.hero__in { position: relative; z-index: 2; width: 100%; }
.hero__grid {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
}
.hero h1 {
  font-size: var(--f-hero);
  font-weight: 800;
  letter-spacing: -.045em;
  margin-block: var(--s-4) var(--s-5);
}
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: block; }
.hero__lede { max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* animated wrench/gear art */
.hero__art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero__art svg { width: 100%; height: auto; overflow: visible; }
.spin-slow { transform-box: fill-box; transform-origin: center; animation: spin 34s linear infinite; }
.spin-rev  { transform-box: fill-box; transform-origin: center; animation: spin 26s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.dash-run { stroke-dasharray: 10 14; animation: dashRun 3.4s linear infinite; }
@keyframes dashRun { to { stroke-dashoffset: -48; } }
.pulse-ring { transform-box: fill-box; transform-origin: center; animation: pulseRing 3.2s var(--e-soft) infinite; }
@keyframes pulseRing {
  0%   { transform: scale(.82); opacity: .9; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* stat row under hero */
.hero__stats {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px; background: var(--line);
  border-block: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 76px);
}
.stat { background: var(--bg); padding: var(--s-5) var(--s-4); }
.stat__n {
  font-family: 'Outfit', sans-serif; font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); line-height: 1;
  color: var(--ink);
}
.stat__n em { font-style: normal; color: var(--accent); }
.stat__l {
  margin-top: 8px; font-size: var(--f-xs); letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mute);
}

/* ---------- 9. Marquee ---------- */
.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 18px;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__item {
  display: inline-flex; align-items: center; gap: 14px;
  padding-inline: 26px; flex: none;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: var(--f-lg);
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute);
  white-space: nowrap;
  transition: color var(--t-fast);
}
.marquee__item:hover { color: var(--ink); }
.marquee__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }

/* ---------- 10. Section head ---------- */
.sec-head {
  display: grid; gap: var(--s-4);
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  margin-bottom: clamp(32px, 4.5vw, 64px);
}
.sec-head__t { max-width: 64ch; }
.sec-head__t h2 { max-width: 30ch; }
.sec-head p.lede { margin-top: var(--s-4); }

/* ---------- 11. Cards / bento ---------- */
.bento {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(6, 1fr);
}
.card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: clamp(22px, 2.6vw, 36px);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: border-color var(--t-mid) var(--e-soft), background-color var(--t-mid) var(--e-soft);
}
.card:hover { transform: translateY(-4px); border-color: rgba(47,93,140,.4); }
form.card:hover, .card--static:hover { transform: none; border-color: var(--line); }
.card__ico {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(27,51,88,.22), rgba(27,51,88,.06));
  border: 1px solid rgba(27,51,88,.3);
  color: var(--accent);
  transition: transform var(--t-mid) var(--e-out), background var(--t-mid);
}
.card__ico svg { width: 26px; height: 26px; }
.card:hover .card__ico { transform: rotate(-8deg) scale(1.06); }
.card h3 { font-size: var(--f-xl); }
.card p { color: var(--ink-2); font-size: var(--f-sm); }
.card__list { display: grid; gap: 8px; margin-top: auto; padding-top: var(--s-3); }
.card h3 + .card__list { margin-top: 0; } /* no description: keep the list under its heading */
.card__list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: var(--f-sm); color: var(--ink-2);
}
.card__list li::before {
  content: ''; flex: none; margin-top: 8px;
  width: 6px; height: 6px; background: var(--brand); transform: rotate(45deg);
}
.card__num {
  position: absolute; top: 18px; right: 22px;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.2px rgba(27,51,88,.12);
  pointer-events: none;
}

.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }

/* feature card with navy fill */
.card--feature {
  background: linear-gradient(155deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-color: transparent; color: #fff;
}
.card--feature p, .card--feature .card__list li { color: rgba(255,255,255,.88); }
.card--feature .card__ico { background: rgba(0,0,0,.22); border-color: rgba(255,255,255,.28); color: #fff; }
.card--feature .card__list li::before { background: #fff; }
.card--brand:hover { border-color: transparent; }
.card--feature .card__num { -webkit-text-stroke-color: rgba(255,255,255,.28); }
.card--feature .btn { --btn-bg: #fff; color: var(--brand); box-shadow: none; }
.card--feature .btn::after { background: var(--bg); }

/* ---------- 12. Split feature ---------- */
.split {
  display: grid; gap: clamp(32px, 5vw, 80px);
  grid-template-columns: repeat(2, minmax(0,1fr));
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 4/3;
  display: grid; place-items: center;
}
.split__media .plate {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(-45deg, rgba(27,51,88,.03) 0 14px, transparent 14px 28px),
    radial-gradient(80% 70% at 30% 20%, rgba(27,51,88,.16), transparent 70%);
}

/* timeline */
.timeline { display: grid; gap: 0; position: relative; }
.timeline__row {
  display: grid; grid-template-columns: 120px 1fr; gap: var(--s-5);
  padding-block: var(--s-5);
  border-top: 1px solid var(--line);
  transition: background var(--t-mid);
}
.timeline__row:hover { background: rgba(27,51,88,.03); }
.timeline__row:last-child { border-bottom: 1px solid var(--line); }
.timeline__yr {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: var(--f-xl);
  color: var(--accent); letter-spacing: -.02em;
}
.timeline__row h3 { font-size: var(--f-lg); margin-bottom: 6px; }
.timeline__row p { color: var(--ink-2); font-size: var(--f-sm); max-width: 60ch; }

/* ---------- 13. Process steps ---------- */
.steps { display: grid; gap: var(--s-4); grid-template-columns: repeat(4, minmax(0,1fr)); counter-reset: step; }
.step {
  position: relative; padding: var(--s-5) 0 0;
  border-top: 2px solid var(--line);
  transition: border-color var(--t-mid);
}
.step::after {
  content: ''; position: absolute; top: -2px; left: 0; height: 2px; width: 0;
  background: var(--brand);
  transition: width var(--t-slow) var(--e-out);
}
.step.is-in::after { width: 100%; }
.step__n {
  font-family: 'Outfit', sans-serif; font-size: var(--f-xs); font-weight: 700;
  letter-spacing: .2em; color: var(--accent); margin-bottom: var(--s-3); display: block;
}
.step h3 { font-size: var(--f-lg); margin-bottom: 8px; }
.step p { font-size: var(--f-sm); color: var(--ink-2); }

/* ---------- 14. Parts categories ---------- */
.cats { display: grid; gap: var(--s-3); grid-template-columns: repeat(4, minmax(0,1fr)); }
.cat {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  font-family: 'Outfit', sans-serif; font-weight: 500;
  transition: border-color var(--t-mid), color var(--t-mid);
}
.cat svg { width: 22px; height: 22px; color: var(--accent); flex: none; transition: color var(--t-mid); }
.cat::before {
  content: ''; position: absolute; inset: 0; background: var(--brand);
  transform: translateY(101%); transition: transform var(--t-mid) var(--e-out); z-index: -1;
}
.cat { isolation: isolate; }
.cat:hover { border-color: var(--brand); transform: translateY(-3px); color: #fff; }
.cat:hover::before { transform: translateY(0); }
.cat:hover svg { color: #fff; }
.cats--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

.brands {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--s-6) var(--s-7); margin-bottom: clamp(32px, 4.5vw, 64px);
}
.brands img { height: 48px; width: auto; max-width: 150px; object-fit: contain; }

/* product shots (oil drums, pails, fluids) under the parts cards */
.products {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s-5); margin-top: clamp(32px, 4.5vw, 64px);
}
.products img { width: 140px; height: auto; }

/* shop photos: a row of three */
.gallery { display: grid; gap: var(--s-4); grid-template-columns: repeat(3, minmax(0,1fr)); }
.gallery__item {
  overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
  aspect-ratio: 4/3; background: var(--surface);
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--e-out);
}
.gallery__item:hover img { transform: scale(1.03); }
.photo-band {
  margin-top: clamp(32px, 4.5vw, 64px);
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 21/9;
}
.photo-band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 15. Accordion (FAQ) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; cursor: pointer; text-align: left;
  background: none; border: 0; padding: var(--s-5) 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: var(--f-lg);
  transition: color var(--t-fast);
}
.acc__btn:hover { color: var(--accent); }
.acc__sign { position: relative; width: 18px; height: 18px; flex: none; }
.acc__sign::before, .acc__sign::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  background: var(--accent); border-radius: 2px;
  transition: transform var(--t-mid) var(--e-out);
}
.acc__sign::before { width: 18px; height: 2px; }
.acc__sign::after  { width: 2px; height: 18px; }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: rotate(90deg) scaleX(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-mid) var(--e-soft); }
.acc__panel > div { overflow: hidden; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel p { padding-bottom: var(--s-5); color: var(--ink-2); max-width: 70ch; }

/* ---------- 16. Contact / forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: var(--s-4); }
.field label {
  font-family: 'Outfit', sans-serif; font-size: var(--f-sm); font-weight: 500;
  color: var(--ink-2);
}
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--bg-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8A92A0; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27,51,88,.18);
  background: var(--surface);
}
.field .hint { font-size: var(--f-xs); color: var(--ink-mute); }
.field .err { font-size: var(--f-xs); color: #B42318; min-height: 1.65em; visibility: hidden; } /* space reserved so the message never shifts the form */
.field.is-invalid input, .field.is-invalid textarea { border-color: #B42318; }
.field.is-invalid .err { visibility: visible; }

.form-note {
  padding: var(--s-4); border-radius: var(--r-md);
  background: rgba(27,51,88,.08); border: 1px solid rgba(27,51,88,.28);
  font-size: var(--f-sm); color: var(--ink-2);
}
.form-status { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--r-md); font-size: var(--f-sm); font-weight: 600; }
.form-status.is-ok  { background: #ECFDF3; border: 1px solid #ABEFC6; color: #067647; }
.form-status.is-bad { background: #FEF3F2; border: 1px solid #FECDCA; color: #B42318; }

/* contact info rows */
.info-list { display: grid; gap: var(--s-3); }
.info {
  display: flex; gap: var(--s-4); align-items: flex-start;
  padding: var(--s-4); border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color var(--t-mid), transform var(--t-fast) var(--e-out);
}
.info:hover { border-color: rgba(27,51,88,.42); transform: translateX(3px); }
.info__ico {
  width: 42px; height: 42px; flex: none; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(27,51,88,.14); color: var(--accent);
}
.info__ico svg { width: 20px; height: 20px; }
.info dt { font-size: var(--f-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.info dd { margin: 3px 0 0; font-family: 'Outfit', sans-serif; font-size: var(--f-lg); font-weight: 600; }
.info dd a:hover { color: var(--accent); }

.hours { display: grid; gap: 0; }
.hours__row {
  display: flex; justify-content: space-between; gap: var(--s-4);
  padding: 13px 0; border-bottom: 1px dashed var(--line);
  font-size: var(--f-sm);
}
.hours__row:last-child { border-bottom: 0; }
.hours__row.is-today { color: var(--accent); font-weight: 600; }
.hours__row dt { color: var(--ink-2); }
.hours__row.is-today dt { color: inherit; }

/* ---------- 17. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-deep) 78%);
  padding: clamp(36px, 6vw, 84px);
  text-align: center;
  isolation: isolate;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: repeating-linear-gradient(-45deg, #000 0 10px, transparent 10px 22px);
}
.cta-band h2 { font-size: var(--f-3xl); color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); margin: var(--s-4) auto 0; max-width: 54ch; }
.cta-band .btn { background: #fff; color: var(--brand); box-shadow: 0 12px 40px -14px rgba(0,0,0,.5); }
.cta-band .btn::after { background: var(--bg); }
.cta-band .btn:hover { color: var(--brand-deep); }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.cta-band .btn--ghost::after { background: rgba(255,255,255,.14); }
.cta-band .btn--ghost:hover { color: #fff; }
.cta-band__actions { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; margin-top: var(--s-6); }

/* ---------- 18. Page hero (inner pages) ---------- */
.phero {
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px);
  background:
    radial-gradient(90% 120% at 88% 0%, rgba(27,51,88,.18), transparent 58%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.phero h1 { font-size: var(--f-3xl); margin-block: var(--s-4) var(--s-4); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: var(--f-xs); color: var(--ink-mute); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- 19. Footer ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 88px) var(--s-6);
  position: relative; overflow: hidden;
}
.footer__grid {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}
.footer__logo img { height: 46px; width: auto; margin-bottom: var(--s-4); }
.footer h4 {
  font-size: var(--f-xs); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: var(--s-4); font-weight: 600;
}
.footer__links { display: grid; gap: 11px; }
.footer__links a { color: var(--ink-2); font-size: var(--f-sm); transition: color var(--t-fast), padding-left var(--t-fast); }
.footer__links a:hover { color: var(--accent); padding-left: 5px; }
.footer__bottom {
  margin-top: clamp(36px, 5vw, 64px); padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  font-size: var(--f-xs); color: var(--ink-mute);
}
.social { display: flex; gap: 10px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-2);
  transition: all var(--t-mid) var(--e-soft);
}
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }

/* wordmark watermark in footer */
.footer__mark {
  position: absolute; left: 50%; bottom: -3.2vw; transform: translateX(-50%);
  font-family: 'Outfit', sans-serif; font-weight: 800; letter-spacing: -.05em;
  font-size: clamp(4rem, 15vw, 15rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(27,51,88,.07);
  pointer-events: none; user-select: none; white-space: nowrap; z-index: 0;
}
.footer > * { position: relative; z-index: 1; }

/* ---------- 20. Floating call button (mobile) ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: none; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px; border-radius: var(--r-pill);
  background: var(--brand); color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: var(--f-sm);
  box-shadow: 0 10px 30px -8px rgba(20,36,61,.45), 0 0 0 6px rgba(27,51,88,.10);
}
.fab svg { width: 18px; height: 18px; }
.fab:active { transform: scale(.97); }

/* ---------- 21. Scroll reveal (no-JS safe) ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); }
[data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .62s var(--e-out), transform .62s var(--e-out);
  transition-delay: var(--d, 0ms);
}
html.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- 21b. Hero initial state (JS-gated) ----------
   With JS on, the hero starts hidden so GSAP can animate it in without a flash.
   `.hero-ready` is added by main.js in BOTH branches (GSAP present or not),
   so the content can never get stuck invisible. */
html.js .hero .eyebrow,
html.js .hero__lede,
html.js .hero__actions > *,
html.js .hero__art,
html.js .hero__stats .stat { opacity: 0; }
html.js .hero h1 .ln > span { transform: translateY(108%); }

html.js.hero-ready .hero .eyebrow,
html.js.hero-ready .hero__lede,
html.js.hero-ready .hero__actions > *,
html.js.hero-ready .hero__art,
html.js.hero-ready .hero__stats .stat { opacity: 1; }
html.js.hero-ready .hero h1 .ln > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .hero .eyebrow,
  html.js .hero__lede,
  html.js .hero__actions > *,
  html.js .hero__art,
  html.js .hero__stats .stat { opacity: 1 !important; }
  html.js .hero h1 .ln > span { transform: none !important; }
}

/* scroll progress bar */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: left; z-index: 200;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* ---------- 22. Responsive ---------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cats  { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 380px; margin-inline: auto; order: -1; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .split, .split--reverse .split__media { grid-template-columns: 1fr; order: 0; }
  .span-3, .span-2, .span-4 { grid-column: span 6; }
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .fab { display: inline-flex; }
  /* clearance so the floating call button never covers the last content */
  .footer { padding-bottom: 96px; }
}
@media (max-width: 620px) {
  /* keep the top bar to one line; the address lives in the footer and on /contact */
  .topbar__in > a:nth-child(5) { display: none; }
  .cats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery { grid-template-columns: 1fr; }
  .photo-band { aspect-ratio: 4/3; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .timeline__row { grid-template-columns: 1fr; gap: 6px; }
  .topbar__sep { display: none; }
  .topbar__in { gap: var(--s-3); }
  .hero__actions .btn { width: 100%; }
}

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
  .progress { display: none; }
}

/* ---------- 24. Print ---------- */
@media print {
  .nav, .topbar, .fab, .progress, .footer__mark, .glow, .grid-lines { display: none !important; }
  body { background: #fff; color: #000; }
}
