/* ==========================================================================
   APEX MOTORS — style.css
   High-performance used-car dealership. Dark, aggressive, "live and vibey".
   All classes prefixed .apex-. Fonts: Space Grotesk (display) + Atkinson Hyperlegible Next (body).
   ========================================================================== */

:root {
  /* locked DNA palette */
  --apex-charcoal: #14161a;
  --apex-ember: #ff5a1f;
  --apex-ember-2: #ffb08a;
  --apex-steel: #8a9199;
  --apex-off: #f0f2f5;
  --apex-deep: #0b0c0f;

  --apex-surface: #1b1e24;
  --apex-surface-2: #22262e;
  --apex-line: rgba(138, 145, 153, 0.18);
  --apex-line-strong: rgba(138, 145, 153, 0.34);
  --apex-ink: var(--apex-off);
  --apex-mut: #9aa1ab;

  --apex-display:var(--catalog-font-heading);
  --apex-body:var(--catalog-font-body);

  --apex-chamfer: 10px;
  --apex-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.85);
  --apex-shadow-ember: 0 20px 50px -22px rgba(255, 90, 31, 0.45);
  --apex-wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--apex-body);
  color: var(--apex-ink);
  background: var(--apex-deep);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
body.apex-locked { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--apex-display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: 0.01em; text-transform: uppercase; }

.apex-wrap { width: 100%; max-width: var(--apex-wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.4rem); }
.apex-narrow { max-width: 780px; }
.apex-section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.apex-section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.apex-section--alt { background: linear-gradient(180deg, var(--apex-deep), var(--apex-charcoal) 40%, var(--apex-deep)); }

/* ---------- kickers / headings ---------------------------------------- */
.apex-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--apex-display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--apex-ember);
  margin-bottom: 1rem;
}
.apex-eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--apex-ember); display: inline-block; }
.apex-h2 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); letter-spacing: 0.02em; }
.apex-lede { color: var(--apex-mut); font-size: 1.05rem; max-width: 60ch; }
.apex-secthead { max-width: 720px; margin-bottom: 2.6rem; }
.apex-secthead--center { margin-inline: auto; text-align: center; }

/* ---------- buttons: CUT-CORNER (chamfered) + ember sweep -------------- */
.apex-btn {
  --c: var(--apex-chamfer);
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--apex-display); font-weight: 700; font-size: 0.98rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.85rem 1.7rem; cursor: pointer; border: 0; overflow: hidden;
  color: var(--apex-deep); background: var(--apex-off);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
  z-index: 0;
}
.apex-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--apex-ember), var(--apex-ember-2));
  transform: translateX(-101%); transition: transform 0.34s cubic-bezier(.4,.9,.3,1);
}
.apex-btn:hover { transform: translateY(-3px); box-shadow: var(--apex-shadow-ember); color: var(--apex-deep); }
.apex-btn:hover::before { transform: translateX(0); }
.apex-btn svg { stroke: currentColor; }
.apex-btn--ghost { background: transparent; color: var(--apex-off); box-shadow: inset 0 0 0 1.5px var(--apex-line-strong); }
.apex-btn--ghost:hover { color: var(--apex-deep); box-shadow: inset 0 0 0 1.5px transparent, var(--apex-shadow-ember); }
.apex-btn--sm { padding: 0.6rem 1.15rem; font-size: 0.82rem; --c: 8px; }
.apex-btn--block { width: 100%; justify-content: center; }
.apex-btn:focus-visible { outline: 3px solid var(--apex-ember); outline-offset: 3px; }

/* ---------- header / nav ---------------------------------------------- */
.apex-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 12, 15, 0.55); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: background 0.3s ease, border-color 0.3s ease;
}
.apex-header.scrolled { background: rgba(11, 12, 15, 0.92); border-bottom-color: var(--apex-line); }
.apex-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }
.apex-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--apex-display); font-weight: 700; letter-spacing: 0.18em; }
.apex-brand__mark { width: 34px; height: 34px; }
.apex-brand__word { font-size: 1.35rem; text-transform: uppercase; }
.apex-brand__word b { color: var(--apex-ember); }
.apex-nav { display: flex; align-items: center; gap: 0.35rem; }
.apex-nav a {
  font-family: var(--apex-display); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--apex-off); padding: 0.5rem 0.7rem; position: relative;
}
.apex-nav a::after { content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.25rem; height: 2px; background: var(--apex-ember); transform: scaleX(0); transform-origin: left; transition: transform 0.24s ease; }
.apex-nav a:hover::after, .apex-nav a[aria-current="page"]::after { transform: scaleX(1); }
.apex-nav a[aria-current="page"] { color: var(--apex-ember); }
.apex-header__cta { display: flex; align-items: center; gap: 0.9rem; }
.apex-header__phone { font-family: var(--apex-display); font-weight: 700; letter-spacing: 0.06em; color: var(--apex-off); white-space: nowrap; }
.apex-navtoggle { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid var(--apex-line-strong); border-radius: 4px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.apex-navtoggle span { width: 20px; height: 2px; background: var(--apex-off); transition: 0.2s; }

/* ---------- hero ------------------------------------------------------- */
.apex-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--apex-line); }
.apex-hero__bg { position: absolute; inset: 0; z-index: 0; }
.apex-hero__bg .apex-svg { width: 100%; height: 100%; object-fit: cover; }
/* real photographic backdrop behind the animated road scene (degrades to solid deep) */
.apex-hero__photo { position: absolute; inset: 0; z-index: 0; background-color: var(--apex-deep); background-image: url("../img/hero-road.jpg"); background-size: cover; background-position: center 35%; opacity: 1; filter: saturate(0.85) contrast(1.05); }

/* --- animated "video-style" hero: car on a moving night highway --- */
.apex-herofx { width: 100%; height: 100%; display: block; }
.apex-herofx .apx-dash, .apex-herofx .apx-post, .apex-herofx .apx-speed { transform-box: fill-box; }
.apex-herofx .apx-dash { transform-origin: 50% 0%; animation: apxDash 2.8s linear infinite; }
@keyframes apxDash {
  0%   { transform: translateY(0) scale(0.35); opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(520px) scale(3.6); opacity: 0; }
}
.apex-herofx .apx-post { transform-origin: 50% 50%; }
.apex-herofx .apx-post.pl { animation: apxPostL 2.4s linear infinite; }
.apex-herofx .apx-post.pr { animation: apxPostR 2.4s linear infinite; }
@keyframes apxPostL {
  0%   { transform: translate(0,0) scale(0.3); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translate(-455px,528px) scale(3); opacity: 0; }
}
@keyframes apxPostR {
  0%   { transform: translate(0,0) scale(0.3); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translate(475px,528px) scale(3); opacity: 0; }
}
.apex-herofx .apx-speed { animation: apxSpeed 1.9s linear infinite; }
.apex-herofx .apx-speed.s1 { animation-duration: 1.7s; animation-delay: -0.2s; }
.apex-herofx .apx-speed.s2 { animation-duration: 2.3s; animation-delay: -0.9s; }
.apex-herofx .apx-speed.s3 { animation-duration: 1.5s; animation-delay: -0.5s; }
.apex-herofx .apx-speed.s4 { animation-duration: 2.0s; animation-delay: -1.3s; }
@keyframes apxSpeed {
  0%   { transform: translateX(-280px); opacity: 0; }
  20%  { opacity: 0.9; }
  80%  { opacity: 0.9; }
  100% { transform: translateX(1520px); opacity: 0; }
}
.apex-herofx .apx-glow { transform-box: fill-box; transform-origin: 50% 50%; animation: apxGlowPulse 4.5s ease-in-out infinite; }
@keyframes apxGlowPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.05); }
}
.apex-herofx .apx-car { transform-box: fill-box; transform-origin: 50% 100%; animation: apxBob 3.2s ease-in-out infinite; }
@keyframes apxBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.apex-herofx .apx-tail { animation: apxTail 1.6s ease-in-out infinite alternate; }
@keyframes apxTail { from { opacity: 0.6; } to { opacity: 1; } }
.apex-hero__scrim { position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 90% at 70% 20%, rgba(11,12,15,0.15), rgba(11,12,15,0.82) 70%), linear-gradient(180deg, rgba(11,12,15,0.55), rgba(11,12,15,0.9)); }
.apex-hero__in { position: relative; z-index: 2; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.apex-hero__tag { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.9rem; border: 1px solid var(--apex-line-strong); border-radius: 999px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--apex-steel); margin-bottom: 1.5rem; }
.apex-hero__tag b { color: var(--apex-ember); }
.apex-hero__title { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: 0.01em; max-width: 16ch; }
.apex-hero__title em { color: var(--apex-ember); font-style: normal; }
.apex-hero__sub { margin: 1.4rem 0 2rem; color: var(--apex-mut); font-size: 1.12rem; max-width: 54ch; }
.apex-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.6rem; }

/* live inventory chip */
.apex-livechip { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--apex-display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--apex-steel); font-size: 0.92rem; }
.apex-livechip b { font-size: 2.4rem; color: var(--apex-off); line-height: 1; }
.apex-livedot { width: 9px; height: 9px; border-radius: 50%; background: var(--apex-ember); box-shadow: 0 0 0 0 rgba(255,90,31,0.6); animation: apex-pulse 1.8s infinite; }
@keyframes apex-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,0.55); } 70% { box-shadow: 0 0 0 12px rgba(255,90,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); } }

/* hero browse-by-type chips */
.apex-search__go { background: var(--apex-ember); color: var(--apex-deep); border: 0; cursor: pointer; padding: 0 1.2rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.apex-search__go:hover { background: var(--apex-ember-2); }
.apex-search__go svg { width: 22px; height: 22px; stroke: currentColor; }

/* ---------- stats band ------------------------------------------------- */
.apex-statsband { border-top: 1px solid var(--apex-line); border-bottom: 1px solid var(--apex-line); background: var(--apex-charcoal); }
.apex-statsband__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.apex-stat { padding: clamp(1.8rem, 4vw, 3rem) 1.5rem; text-align: center; border-right: 1px solid var(--apex-line); }
.apex-stat:last-child { border-right: 0; }
.apex-stat__num { font-family: var(--apex-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--apex-ember); line-height: 1; }
.apex-stat__label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-top: 0.7rem; font-family: var(--apex-display); font-weight: 600; }
.apex-stat__sub { color: var(--apex-mut); font-size: 0.82rem; margin-top: 0.3rem; }

/* ---------- vehicle grid / cards (SIGNATURE) -------------------------- */
.apex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.6rem; }
.apex-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.6rem; }
.apex-rail.loading { min-height: 300px; }

.apex-tilt { perspective: 1100px; }
.apex-tilt__in {
  position: relative; background: var(--apex-surface); border: 1px solid var(--apex-line);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.12s ease;
  transform-style: preserve-3d; will-change: transform;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.apex-tilt--active .apex-tilt__in { box-shadow: var(--apex-shadow), var(--apex-shadow-ember); border-color: var(--apex-line-strong); }
.apex-vcard__gloss { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: radial-gradient(220px 220px at var(--gx,50%) var(--gy,50%), rgba(255,90,31,0.16), transparent 70%); }
.apex-tilt--active .apex-vcard__gloss { opacity: 1; }

.apex-vcard__media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.apex-vcard__media .apex-scene { position: absolute; inset: 0; }
/* real photo layer (LoremFlickr) with inline-SVG onerror fallback */
.apex-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--apex-deep); transition: transform 0.5s ease; }
.apex-tilt--active .apex-vcard__media .apex-photo { transform: scale(1.05); }
.apex-vcard.is-sold .apex-vcard__media .apex-photo, .apex-stage.is-sold .apex-photo { filter: grayscale(0.7) brightness(0.7); }
.apex-vcard__media .apex-svg { width: 100%; height: 100%; transition: transform 0.5s ease; }
.apex-tilt--active .apex-vcard__media .apex-svg { transform: scale(1.05); }
.apex-vcard__badge { position: absolute; top: 0.85rem; left: 0.85rem; z-index: 2; background: rgba(11,12,15,0.8); border: 1px solid var(--apex-line-strong); color: var(--apex-off); font-family: var(--apex-display); font-weight: 700; letter-spacing: 0.08em; padding: 0.28rem 0.7rem; font-size: 0.82rem; }
.apex-vcard__price { position: absolute; bottom: 0.85rem; right: 0.85rem; z-index: 2; background: var(--apex-ember); color: var(--apex-deep); font-family: var(--apex-display); font-weight: 700; font-size: 1.15rem; padding: 0.3rem 0.8rem; clip-path: polygon(8px 0,100% 0,100% 100%,0 100%,0 8px); }
.apex-vcard.is-sold .apex-vcard__media .apex-svg { filter: grayscale(0.7) brightness(0.7); }
.apex-vcard__sold { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; font-family: var(--apex-display); font-weight: 700; font-size: 2rem; letter-spacing: 0.35em; color: var(--apex-off); background: rgba(11,12,15,0.35); }
.apex-vcard__body { padding: 1.3rem 1.4rem 1.5rem; }
.apex-vcard__title { font-size: 1.35rem; }
.apex-vcard__title a:hover { color: var(--apex-ember); }
.apex-vcard__meta { color: var(--apex-mut); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0.4rem 0 1.1rem; }
.apex-vcard__foot { margin-top: 1.2rem; }

/* animated spec bars (SIGNATURE) */
.apex-bars { display: grid; gap: 0.75rem; }
.apex-bar__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.28rem; }
.apex-bar__label { font-family: var(--apex-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--apex-steel); }
.apex-bar__val { font-family: var(--apex-display); font-weight: 700; font-size: 0.92rem; color: var(--apex-off); }
.apex-bar__track { height: 7px; background: var(--apex-surface-2); overflow: hidden; position: relative; border: 1px solid var(--apex-line); }
.apex-bar__fill { display: block; height: 100%; width: var(--pct); background: linear-gradient(90deg, var(--apex-ember), var(--apex-ember-2)); box-shadow: 0 0 12px rgba(255,90,31,0.5); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.js .apex-bar__fill { width: 0; }
.js .apex-bar__fill.go { width: var(--pct); }

/* ---------- vehicle detail -------------------------------------------- */
.apex-crumbs { display: flex; gap: 0.5rem; align-items: center; color: var(--apex-mut); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 1.8rem; padding-bottom: 0.5rem; }
.apex-crumbs a:hover { color: var(--apex-ember); }
.apex-crumbs span { color: var(--apex-line-strong); }
.apex-detail { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding: 1.5rem 0 clamp(3rem, 6vw, 5rem); align-items: start; }
.apex-stage { position: relative; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--apex-line); clip-path: polygon(18px 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0 18px); }
.apex-stage .apex-scene, .apex-stage .apex-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.apex-stage__tag { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; background: rgba(11,12,15,0.8); border: 1px solid var(--apex-line-strong); padding: 0.35rem 0.8rem; font-family: var(--apex-display); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.apex-stage.is-sold .apex-svg { filter: grayscale(0.6) brightness(0.7); }
.apex-stage__sold { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 3; font-family: var(--apex-display); font-weight: 700; letter-spacing: 0.4em; font-size: 2.6rem; }
.apex-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 0.7rem; }
.apex-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; border: 1px solid var(--apex-line); background: var(--apex-surface); cursor: pointer; padding: 0; }
.apex-thumb .apex-scene, .apex-thumb .apex-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.apex-thumb.active { border-color: var(--apex-ember); box-shadow: 0 0 0 1px var(--apex-ember); }
.apex-detail__title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-top: 1.6rem; }
.apex-detail__loc { display: flex; align-items: center; gap: 0.4rem; color: var(--apex-mut); margin: 0.5rem 0 1.6rem; }
.apex-detail__loc svg { width: 17px; height: 17px; color: var(--apex-ember); }
.apex-detail__lede { color: var(--apex-mut); margin: 2rem 0; font-size: 1.05rem; }
.apex-sectlabel { font-size: 1.2rem; letter-spacing: 0.1em; color: var(--apex-off); margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--apex-line); }

/* radial gauges */
.apex-gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.8rem 0 0.5rem; }
.apex-gauge { text-align: center; }
.apex-gauge__ring { --deg: 0deg; width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: conic-gradient(var(--apex-ember) var(--deg), var(--apex-surface-2) 0); position: relative; }
.apex-gauge__ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--apex-charcoal); border: 1px solid var(--apex-line); }
.apex-gauge__val { position: relative; z-index: 1; font-family: var(--apex-display); font-weight: 700; font-size: 0.95rem; color: var(--apex-off); }
.apex-gauge__label { display: block; margin-top: 0.6rem; font-family: var(--apex-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.74rem; color: var(--apex-steel); }

.apex-specsheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; }
.apex-spec { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--apex-line); }
.apex-spec dt { color: var(--apex-mut); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.82rem; }
.apex-spec dd { margin: 0; font-family: var(--apex-display); font-weight: 600; letter-spacing: 0.02em; text-align: right; }

.apex-detail__side { position: sticky; top: 96px; }
.apex-sidecard { background: var(--apex-surface); border: 1px solid var(--apex-line); padding: 1.6rem; clip-path: polygon(16px 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%,0 16px); }
.apex-sidecard__price { font-family: var(--apex-display); font-weight: 700; font-size: 2.4rem; color: var(--apex-ember); line-height: 1; }
.apex-sidecard__soldtag { font-size: 0.9rem; color: var(--apex-steel); letter-spacing: 0.2em; }
.apex-sidecard__sub { color: var(--apex-mut); font-size: 0.9rem; margin: 0.5rem 0 1.4rem; }
.apex-sidecard__actions { display: grid; gap: 0.7rem; }
.apex-sideagent { display: flex; gap: 0.8rem; align-items: center; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--apex-line); }
.apex-sideagent strong { display: block; font-family: var(--apex-display); letter-spacing: 0.02em; }
.apex-sideagent span { color: var(--apex-mut); font-size: 0.82rem; display: block; }
.apex-sideagent a { color: var(--apex-ember); font-size: 0.85rem; margin-top: 0.2rem; display: inline-block; }
.apex-sideagent a:hover { text-decoration: underline; }

.apex-avatar { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: linear-gradient(135deg, var(--apex-ember), #c73d10); color: var(--apex-deep); font-family: var(--apex-display); font-weight: 700; font-size: 1rem; flex: none; clip-path: polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px); }
.apex-avatar--sm { width: 32px; height: 32px; font-size: 0.8rem; }
.apex-avatar--lg { width: 64px; height: 64px; font-size: 1.5rem; }

/* ---------- inventory toolbar ----------------------------------------- */
.apex-invtop { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-end; margin-bottom: 1.6rem; }
.apex-field { display: flex; flex-direction: column; gap: 0.35rem; }
.apex-field label { font-family: var(--apex-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; color: var(--apex-steel); }
.apex-field select, .apex-field input { background: var(--apex-charcoal); border: 1px solid var(--apex-line); color: var(--apex-off); padding: 0.6rem 0.7rem; font-family: var(--apex-body); font-size: 0.9rem; }
.apex-field select:focus, .apex-field input:focus { outline: none; border-color: var(--apex-ember); }
.apex-field--check { flex-direction: row; align-items: center; gap: 0.5rem; }
.apex-field--check label { font-size: 0.8rem; color: var(--apex-off); }
.apex-count { font-family: var(--apex-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--apex-steel); }
.apex-count b { color: var(--apex-ember); }
.apex-empty { grid-column: 1/-1; text-align: center; color: var(--apex-mut); padding: 3rem 1rem; border: 1px dashed var(--apex-line); }
.apex-empty a { color: var(--apex-ember); }

/* ---------- schedule --------------------------------------------------- */
.apex-schedgrid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.apex-card { background: var(--apex-surface); border: 1px solid var(--apex-line); padding: clamp(1.3rem, 3vw, 2rem); clip-path: polygon(16px 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%,0 16px); }
.apex-schedprev { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; padding: 0.8rem; border: 1px solid var(--apex-line); background: var(--apex-charcoal); }
.apex-schedprev .apex-scene { width: 120px; height: 74px; flex: none; position: relative; overflow: hidden; }
.apex-schedprev .apex-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.apex-schedprev__title { font-family: var(--apex-display); font-weight: 700; font-size: 1.05rem; }
.apex-schedprev__price { color: var(--apex-ember); font-family: var(--apex-display); font-weight: 700; }
.apex-cal__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.apex-cal__top h3 { font-size: 1.25rem; letter-spacing: 0.08em; }
.apex-cal__nav { background: var(--apex-charcoal); border: 1px solid var(--apex-line); color: var(--apex-off); width: 38px; height: 38px; cursor: pointer; font-size: 1.2rem; }
.apex-cal__nav:hover { border-color: var(--apex-ember); color: var(--apex-ember); }
.apex-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.apex-cal__dow { text-align: center; font-family: var(--apex-display); font-weight: 600; color: var(--apex-steel); font-size: 0.75rem; padding: 0.3rem 0; }
.apex-cal__cell { aspect-ratio: 1; background: var(--apex-charcoal); border: 1px solid var(--apex-line); color: var(--apex-off); font-family: var(--apex-display); font-weight: 600; cursor: pointer; transition: 0.15s; }
.apex-cal__cell:hover:not(.disabled) { border-color: var(--apex-ember); color: var(--apex-ember); }
.apex-cal__cell.picked { background: var(--apex-ember); color: var(--apex-deep); border-color: var(--apex-ember); }
.apex-cal__cell.disabled { opacity: 0.28; cursor: not-allowed; }
.apex-slotlabel { font-family: var(--apex-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; color: var(--apex-steel); margin: 1.4rem 0 0.7rem; }
.apex-slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 0.5rem; }
.apex-slot { background: var(--apex-charcoal); border: 1px solid var(--apex-line); color: var(--apex-off); padding: 0.6rem; font-family: var(--apex-display); font-weight: 600; cursor: pointer; transition: 0.15s; }
.apex-slot:hover:not(.taken) { border-color: var(--apex-ember); color: var(--apex-ember); }
.apex-slot.picked { background: var(--apex-ember); color: var(--apex-deep); }
.apex-slot.taken { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }
.apex-muted { color: var(--apex-mut); }
.apex-form { display: grid; gap: 1rem; }
.apex-form label { font-family: var(--apex-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; color: var(--apex-steel); display: block; margin-bottom: 0.3rem; }
.apex-form input, .apex-form textarea, .apex-form select { width: 100%; background: var(--apex-charcoal); border: 1px solid var(--apex-line); color: var(--apex-off); padding: 0.75rem 0.85rem; font-family: var(--apex-body); font-size: 0.95rem; }
.apex-form input:focus, .apex-form textarea:focus, .apex-form select:focus { outline: none; border-color: var(--apex-ember); }
.apex-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.apex-error { color: #ff8a6a; font-size: 0.9rem; min-height: 1.2em; }

/* success */
.apex-success { text-align: center; padding: clamp(2rem, 5vw, 4rem) 1rem; }
.apex-success__mark { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; background: var(--apex-ember); color: var(--apex-deep); font-size: 2rem; border-radius: 50%; margin-bottom: 1.2rem; }
.apex-success__card { max-width: 440px; margin: 1.8rem auto 2rem; border: 1px solid var(--apex-line); background: var(--apex-surface); text-align: left; }
.apex-success__card p { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.2rem; margin: 0; border-bottom: 1px solid var(--apex-line); }
.apex-success__card p:last-child { border-bottom: 0; }
.apex-success__card span { color: var(--apex-mut); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; }
.apex-success__card strong { font-family: var(--apex-display); }

/* ---------- team ------------------------------------------------------- */
.apex-teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.apex-teamcard .apex-tilt__in { padding: 1.6rem; overflow: hidden; }
.apex-teamcard__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.apex-teamcard__num { font-family: var(--apex-display); font-weight: 700; font-size: 2.4rem; color: var(--apex-line-strong); line-height: 1; }
.apex-teamcard__name { font-size: 1.4rem; }
.apex-teamcard__role { color: var(--apex-ember); font-family: var(--apex-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; margin: 0.3rem 0 0.9rem; }
.apex-teamcard__bio { color: var(--apex-mut); font-size: 0.92rem; }
.apex-teamcard__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.1rem 0; }
.apex-teamcard__tags span { font-family: var(--apex-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem; color: var(--apex-steel); border: 1px solid var(--apex-line); padding: 0.25rem 0.6rem; }
.apex-teamcard__cta { color: var(--apex-off); font-family: var(--apex-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.apex-teamcard__cta:hover { color: var(--apex-ember); }

/* ---------- services --------------------------------------------------- */
.apex-svclist { display: grid; gap: 1.6rem; }
.apex-svc { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center; background: var(--apex-surface); border: 1px solid var(--apex-line); overflow: hidden; }
.apex-svc--flip { grid-template-columns: 1.2fr 1fr; }
.apex-svc--flip .apex-svc__media { order: 2; }
.apex-svc__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.apex-svc__media .apex-scene, .apex-svc__media .apex-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.apex-svc__idx { position: absolute; top: 0.8rem; left: 1rem; font-family: var(--apex-display); font-weight: 700; font-size: 2.2rem; color: var(--apex-ember); z-index: 2; text-shadow: 0 2px 12px rgba(0,0,0,0.7); }
.apex-svc__text { padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.4rem) 0; }
.apex-svc--flip .apex-svc__text { padding-left: clamp(1.4rem, 3vw, 2.4rem); padding-right: 0; }
.apex-svc__text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.apex-svc__lede { color: var(--apex-mut); margin: 0.8rem 0 1.2rem; }
.apex-svc__points { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.5rem; }
.apex-svc__points li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; }
.apex-svc__points svg { color: var(--apex-ember); flex: none; }

/* ---------- reviews ---------------------------------------------------- */
.apex-agg { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; margin-bottom: 2.6rem; text-align: center; }
.apex-agg__num { font-family: var(--apex-display); font-weight: 700; font-size: 4rem; color: var(--apex-ember); line-height: 1; }
.apex-agg__count { color: var(--apex-mut); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; }
.apex-stars { color: var(--apex-line-strong); font-size: 1.2rem; letter-spacing: 0.1em; }
.apex-star.on { color: var(--apex-ember); }
.apex-reviewsgrid { columns: 3 300px; column-gap: 1.6rem; }
.apex-review { break-inside: avoid; margin: 0 0 1.6rem; background: var(--apex-surface); border: 1px solid var(--apex-line); padding: 1.5rem; border-left: 3px solid var(--apex-ember); }
.apex-review blockquote { margin: 0.8rem 0; font-size: 1rem; color: var(--apex-off); }
.apex-review figcaption { display: flex; align-items: center; gap: 0.6rem; color: var(--apex-mut); font-size: 0.85rem; font-family: var(--apex-display); font-weight: 600; letter-spacing: 0.03em; }

/* ---------- faq -------------------------------------------------------- */
.apex-faqlist { max-width: 820px; margin: 0 auto; }
.apex-faq { border: 1px solid var(--apex-line); background: var(--apex-surface); margin-bottom: 0.8rem; }
.apex-faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--apex-display); font-weight: 600; font-size: 1.05rem; }
.apex-faq summary::-webkit-details-marker { display: none; }
.apex-faq__mark { position: relative; width: 18px; height: 18px; flex: none; }
.apex-faq__mark::before, .apex-faq__mark::after { content: ""; position: absolute; background: var(--apex-ember); transition: transform 0.25s; }
.apex-faq__mark::before { top: 8px; left: 0; width: 18px; height: 2px; }
.apex-faq__mark::after { top: 0; left: 8px; width: 2px; height: 18px; }
.apex-faq[open] .apex-faq__mark::after { transform: scaleY(0); }
.apex-faq__a { padding: 0 1.4rem 1.3rem; color: var(--apex-mut); }
.apex-faq__a p { margin: 0; }

/* ---------- generic split / about ------------------------------------- */
.apex-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.apex-media-frame { position: relative; aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--apex-line); clip-path: polygon(20px 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%,0 20px); }
.apex-media-frame .apex-scene, .apex-media-frame .apex-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.apex-prose p { color: var(--apex-mut); margin: 0 0 1.1rem; }
.apex-prose h2 { margin-bottom: 1.2rem; }
.apex-valuegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.apex-value { border: 1px solid var(--apex-line); background: var(--apex-surface); padding: 1.5rem; border-top: 3px solid var(--apex-ember); }
.apex-value h3 { font-size: 1.15rem; margin-bottom: 0.5rem; letter-spacing: 0.06em; }
.apex-value p { color: var(--apex-mut); font-size: 0.9rem; margin: 0; }

/* ---------- CTA strip -------------------------------------------------- */
.apex-ctastrip { position: relative; overflow: hidden; border-top: 1px solid var(--apex-line); border-bottom: 1px solid var(--apex-line); }
.apex-ctastrip__bg { position: absolute; inset: 0; z-index: 0; }
.apex-ctastrip__bg .apex-svg { width: 100%; height: 100%; }
.apex-ctastrip__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11,12,15,0.94), rgba(11,12,15,0.6)); }
.apex-ctastrip__in { position: relative; z-index: 2; padding: clamp(3rem, 7vw, 5rem) 0; }
.apex-ctastrip h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 20ch; }
.apex-ctastrip p { color: var(--apex-mut); margin: 1rem 0 1.8rem; max-width: 50ch; }
.apex-ctastrip__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* contact page split */
.apex-contactgrid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.apex-contactinfo li { list-style: none; display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.9rem 0; border-bottom: 1px solid var(--apex-line); }
.apex-contactinfo ul { padding: 0; margin: 1.5rem 0 0; }
.apex-contactinfo .apex-ci-ic { color: var(--apex-ember); flex: none; margin-top: 3px; }
.apex-contactinfo strong { display: block; font-family: var(--apex-display); }
.apex-contactinfo a:hover { color: var(--apex-ember); }
.apex-note { background: rgba(255,90,31,0.1); border: 1px solid rgba(255,90,31,0.3); padding: 0.9rem 1.1rem; margin-bottom: 1.2rem; font-size: 0.9rem; }
.apex-note strong { color: var(--apex-ember); }

/* ---------- footer ----------------------------------------------------- */
.apex-footer { background: var(--apex-charcoal); border-top: 1px solid var(--apex-line); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.apex-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.apex-footer__brand .apex-brand__word { font-size: 1.5rem; }
.apex-footer__brand p { color: var(--apex-mut); margin: 1rem 0 1.2rem; max-width: 34ch; font-size: 0.92rem; }
.apex-footer h4 { font-size: 0.95rem; letter-spacing: 0.14em; color: var(--apex-steel); margin-bottom: 1rem; }
.apex-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.apex-footer ul a, .apex-footer ul li { color: var(--apex-mut); font-size: 0.9rem; }
.apex-footer ul a:hover { color: var(--apex-ember); }
.apex-social { display: flex; gap: 0.6rem; }
.apex-social a { width: 38px; height: 38px; border: 1px solid var(--apex-line); display: flex; align-items: center; justify-content: center; color: var(--apex-steel); transition: 0.2s; }
.apex-social a:hover { border-color: var(--apex-ember); color: var(--apex-ember); }
.apex-social svg { width: 18px; height: 18px; }
.apex-footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--apex-line); color: var(--apex-mut); font-size: 0.78rem; line-height: 1.7; }

/* ---------- reveal animation ------------------------------------------ */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.8,.2,1); }
.js [data-reveal].in-view { opacity: 1; transform: none; }

/* ---------- responsive ------------------------------------------------- */
@media (max-width: 1000px) {
  .apex-nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; background: rgba(11,12,15,0.98); border-bottom: 1px solid var(--apex-line); padding: 1rem clamp(1rem,4vw,2.4rem); transform: translateY(-120%); transition: transform 0.3s ease; gap: 0; max-height: calc(100vh - 74px); overflow: auto; }
  .apex-nav.open { transform: translateY(0); }
  .apex-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--apex-line); }
  .apex-nav a::after { display: none; }
  .apex-navtoggle { display: flex; }
  .apex-header__phone { display: none; }
  .apex-detail { grid-template-columns: 1fr; }
  .apex-detail__side { position: static; }
  .apex-schedgrid { grid-template-columns: 1fr; }
  .apex-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .apex-statsband__grid { grid-template-columns: 1fr; }
  .apex-stat { border-right: 0; border-bottom: 1px solid var(--apex-line); }
  .apex-gauges { grid-template-columns: repeat(2, 1fr); }
  .apex-specsheet { grid-template-columns: 1fr; }
  .apex-svc, .apex-svc--flip { grid-template-columns: 1fr; }
  .apex-svc--flip .apex-svc__media { order: 0; }
  .apex-svc__text, .apex-svc--flip .apex-svc__text { padding: 0 1.4rem 1.6rem; }
  .apex-split, .apex-contactgrid { grid-template-columns: 1fr; }
  .apex-footer__top { grid-template-columns: 1fr; }
  .apex-form__row { grid-template-columns: 1fr; }
  .apex-reviewsgrid { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .apex-bar__fill { width: var(--pct); }
  /* hero: fall back to a still frame (no autoplay motion) */
  .apex-herofx .apx-dash, .apex-herofx .apx-post, .apex-herofx .apx-speed,
  .apex-herofx .apx-glow, .apex-herofx .apx-car, .apex-herofx .apx-tail { animation: none !important; opacity: 1; }
  .apex-herofx .apx-post.pr:nth-of-type(2) { transform: translate(240px,270px) scale(1.8); }
  .apex-herofx .apx-post.pl:nth-of-type(2) { transform: translate(-230px,270px) scale(1.8); }
}

/* ==========================================================================
   Static landing additions — chips, steps, gallery groups, subscribe band, legal
   ========================================================================== */
.apex-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.apex-browse { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; max-width: 880px; }
.apex-browse--bar { max-width: none; background: var(--apex-surface); border: 1px solid var(--apex-line); padding: 0.9rem 1rem; margin-bottom: 2.4rem; }
.apex-browse__label { font-family: var(--apex-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--apex-steel); }
.apex-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.apex-chip { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.6rem 1rem; background: rgba(27,30,36,0.85); border: 1px solid var(--apex-line); color: var(--apex-off); font-family: var(--apex-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.92rem; clip-path: polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px); transition: border-color 0.2s, color 0.2s, background 0.2s; }
.apex-chip:hover, .apex-chip:focus-visible { border-color: var(--apex-ember); color: var(--apex-ember); }
.apex-chip__n { display: inline-flex; min-width: 1.6rem; height: 1.6rem; align-items: center; justify-content: center; background: var(--apex-ember); color: var(--apex-deep); font-size: 0.8rem; font-weight: 700; }
.apex-chip--all { background: var(--apex-ember); color: var(--apex-deep); border-color: var(--apex-ember); }
.apex-chip--all:hover, .apex-chip--all:focus-visible { background: var(--apex-ember-2); color: var(--apex-deep); }
.apex-step__n { display: block; font-family: var(--apex-display); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--apex-ember); margin-bottom: 0.7rem; }
.apex-invgroup { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); scroll-margin-top: 90px; }
.apex-invgroup:last-child { margin-bottom: 0; }
.apex-invgroup__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1.2rem; border-bottom: 1px solid var(--apex-line); padding-bottom: 0.8rem; margin-bottom: 1.4rem; }
.apex-invgroup__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: 0.04em; text-transform: uppercase; }
.apex-invgroup__blurb { color: var(--apex-mut); margin: 0; font-size: 0.95rem; }
.apex-vcard { scroll-margin-top: 90px; }
.apex-vcard__loc { display: flex; align-items: center; gap: 0.4rem; color: var(--apex-steel); font-size: 0.85rem; margin: -0.6rem 0 1rem; }
.apex-vcard__loc svg { width: 15px; height: 15px; flex: none; color: var(--apex-ember); }
.apex-optional { text-transform: none; letter-spacing: 0; color: var(--apex-mut); font-weight: 400; }
.apex-formnote { color: var(--apex-mut); font-size: 0.82rem; margin: 0; }
.apex-formnote a { color: var(--apex-ember); }
.apex-error[data-state="ok"] { color: #8fe0a6; }
.apex-error[data-state="pending"] { color: var(--apex-steel); }
.apex-subband { background: linear-gradient(90deg, rgba(255,90,31,0.12), rgba(255,90,31,0.02)), var(--apex-surface); border-top: 1px solid var(--apex-line); padding: clamp(2.4rem, 5vw, 3.4rem) 0; }
.apex-subband__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.6rem 3rem; align-items: center; }
.apex-subband__title { font-size: clamp(1.5rem, 3vw, 2.1rem); text-transform: uppercase; letter-spacing: 0.03em; margin: 0.4rem 0 0.4rem; }
.apex-subband__lede { color: var(--apex-mut); margin: 0; }
.apex-subform__row { display: flex; gap: 0.5rem; }
.apex-subform input { flex: 1; min-width: 0; background: var(--apex-charcoal); border: 1px solid var(--apex-line); color: var(--apex-off); padding: 0.85rem 0.95rem; font-family: var(--apex-body); font-size: 0.95rem; }
.apex-subform input:focus { outline: none; border-color: var(--apex-ember); }
.apex-subform input[aria-invalid="true"] { border-color: #ff8a6a; }
.apex-subform__status { min-height: 1.2em; margin: 0.5rem 0 0; font-size: 0.88rem; color: #ff8a6a; }
.apex-subform__status[data-state="ok"] { color: #8fe0a6; }
.apex-subform__status[data-state="pending"] { color: var(--apex-steel); }
.apex-footer .apex-social { flex-wrap: wrap; margin-top: 1rem; }
.apex-legal { max-width: 760px; }
.apex-legal__h { font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 2rem 0 0.6rem; }
.apex-legal a { color: var(--apex-ember); }
.apex-hero--404 .apex-hero__in { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.apex-hero--404 .apex-browse { margin-top: 1.6rem; }
@media (max-width: 720px) {
  .apex-subband__in { grid-template-columns: 1fr; }
  .apex-subform__row { flex-direction: column; }
}
.apex-vcard__media[style*="scene-"] { background-size: cover; background-position: center; }
.apex-vcard__img { color: transparent; font-size: 0; }
.apex-hero .apex-browse { margin-top: 1.4rem; }
.apex-vcard__media[style*="scene-"] .apex-photo { background: transparent; }

/* photo credits (privacy notice) */
.apex-legal .apex-credits{margin:0 0 1.2rem;padding-left:1.15rem;list-style:disc;}
.apex-legal .apex-credits li{margin:.35rem 0;font-size:.92rem;line-height:1.55;}
/* Catalogue typography identity — headings and reading text. */
:root{--catalog-font-heading:'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;--catalog-font-body:'Bitter', Georgia, 'Times New Roman', serif;--apex-display:var(--catalog-font-heading);--apex-body:var(--catalog-font-body)}
html body,input,select,textarea,button{font-family:var(--catalog-font-body)}
h1,h2,h3,h4,h5,h6,.display,.disp,.brand,.logo{font-family:var(--catalog-font-heading)}

/* aajwebz-mailto-nowrap — an address is one token, never split across lines */
a[href^="mailto:"] {
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
}
@media (max-width: 380px) {
  a[href^="mailto:"] { font-size: 0.88em; }
}
