/* ==========================================================================
   ELYRA AUTOMOTIVE - For Those Who Refuse Ordinary
   ========================================================================== */

:root {
  --bg: #060607;
  --bg-2: #0c0c0e;
  --fg: #ece9e4;
  --fg-dim: #9a968f;
  --fg-mute: #5e5b55;
  --line: rgba(236, 233, 228, 0.12);
  --line-2: rgba(236, 233, 228, 0.26);
  --accent: #d7263d;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.77, 0, 0.18, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* fallback for older iOS */
  overflow-x: clip;
}

/* film grain */
body::after {
  content: "";
  position: fixed; inset: -50%; z-index: 900; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
svg { display: block; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.skip { position: fixed; top: 12px; left: 12px; z-index: 2000; padding: 10px 16px; background: var(--fg); color: var(--bg); transform: translateY(-200%); transition: transform 0.3s; }
.skip:focus { transform: none; }

.display { font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -0.005em; }

/* split helpers (added by JS) */
.sw { display: inline-block; vertical-align: top; }
.swi, .sc { display: inline-block; }

/* ---------- button ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px;
  border: 1px solid var(--line-2);
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; line-height: 1;
  overflow: hidden; isolation: isolate;
  transition: color 0.6s var(--ease), border-color 0.6s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fg); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.btn::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 14px; height: 1px; margin-left: -7px;
  background: currentColor; opacity: 0.5; transition: width 0.6s var(--ease), margin 0.6s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--fg); }
.btn:hover::before { transform: scaleY(1); }
.btn:hover::after { width: 0; margin-left: 0; }
.btn__text { display: block; height: 1em; overflow: hidden; }
.btn__text > span { display: block; transition: transform 0.6s var(--ease); }
.btn__text > span::after { content: attr(data-text); display: block; }
.btn:hover .btn__text > span { transform: translateY(-50%); }
.btn--solid { width: 100%; padding: 20px 24px; background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid::before { background: var(--accent); }
.btn--solid:hover { color: #fff; border-color: var(--accent); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  padding: 18px var(--pad);
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header__socials { display: flex; gap: 12px; padding-top: 4px; transition: opacity 0.6s, transform 0.6s var(--ease); }
.header__socials a { opacity: 0.85; transition: opacity 0.3s; }
.header__socials a:hover { opacity: 1; }
.header__socials svg { width: 12px; height: 12px; }
.header:not(.is-full) .header__socials { opacity: 0; transform: translateY(-8px); pointer-events: none; }

.header__logo { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.header__logo svg { width: 26px; height: 16px; transition: transform 0.8s var(--ease); }
.header__logo:hover svg { transform: translateY(-2px); }
.header__logo span { font-size: 8.5px; font-weight: 600; letter-spacing: 0.42em; padding-left: 0.42em; line-height: 1; transition: opacity 0.5s, transform 0.6s var(--ease); }
.header:not(.is-full) .header__logo span { opacity: 0; transform: translateY(-4px); }

.header__menu { justify-self: end; display: flex; align-items: center; gap: 10px; font-size: 8.5px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; padding: 3px 0; }
.header__menu-label { display: block; height: 1.3em; line-height: 1.3em; overflow: hidden; }
.header__menu-label span { display: block; text-align: right; transition: transform 0.7s var(--ease); }
.menu-open .header__menu-label span { transform: translateY(-100%); }
.burger { position: relative; width: 11px; height: 8px; }
.burger i { position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform 0.6s var(--ease), top 0.6s var(--ease), opacity 0.3s; }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 3.5px; }
.burger i:nth-child(3) { top: 7px; }
.menu-open .burger i:nth-child(1) { top: 3.5px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { top: 3.5px; transform: rotate(-45deg); }

/* ==========================================================================
   MENU
   ========================================================================== */
.menu { position: fixed; inset: 0; z-index: 250; visibility: hidden; }
.menu.is-open { visibility: visible; }
.menu__panels { position: absolute; inset: 0; display: flex; }
.menu__panels span { flex: 1; background: var(--bg-2); transform: scaleY(0); transform-origin: top; border-right: 1px solid rgba(255,255,255,0.03); }
.menu__inner { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: var(--pad); align-items: center; padding: 100px var(--pad) 90px; }
.menu__media { position: relative; width: min(100%, 380px); aspect-ratio: 4 / 5; max-height: 60vh; overflow: hidden; }
.menu__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.18); transition: opacity 0.7s, transform 1.4s var(--ease-out); filter: brightness(0.8); }
.menu__media img.is-active { opacity: 1; transform: scale(1); }
.menu__links li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu__links a { display: flex; align-items: baseline; gap: 20px; padding: 6px 0 8px; font-family: var(--serif); font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: 1.02; transition: opacity 0.4s, transform 0.7s var(--ease); }
.menu__links:hover a { opacity: 0.3; }
.menu__links a:hover { opacity: 1; transform: translateX(16px); font-style: italic; }
.menu__num { font: 500 10px/1 var(--sans); letter-spacing: 0.2em; color: var(--accent); transform: translateY(-1.3em); }
.menu__foot { position: absolute; left: var(--pad); right: var(--pad); bottom: 30px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-dim); }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero__stage {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  background:
    radial-gradient(60% 30% at 50% 80%, rgba(255,255,255,0.07), transparent 70%),
    linear-gradient(to bottom, #050506 0%, #060607 55%, #121214 78%, #0a0a0b 100%);
}
.hero__title-wrap { max-width: 100vw; position: absolute; z-index: 4; top: clamp(78px, 12vh, 130px); left: 0; right: 0; text-align: center; padding: 0 var(--pad); }
.hero__title { font-size: min(5.4vw, 6rem); line-height: 1.02; white-space: nowrap; }

.hero__cars { position: absolute; inset: 0; z-index: 2; }
.hero__car { position: absolute; will-change: transform; }
.hero__car-in {
  position: relative; overflow: hidden; will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 50%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 50%, transparent 100%);
}
.hero__car img { width: 100%; object-fit: cover; }
.hero__car--l { left: -4vw; bottom: 14%; width: 40vw; }
.hero__car--r { right: -4vw; bottom: 14%; width: 40vw; }
.hero__car--c { left: 50%; bottom: 9%; width: 44vw; margin-left: -22vw; z-index: 2; }
.hero__car-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, #060607 0%, rgba(6,6,7,0.65) 30%, rgba(6,6,7,0) 55%); pointer-events: none; }
.hero__car--l img { aspect-ratio: 4 / 3; object-position: 42% 62%; transform: scale(1.12); transform-origin: 40% 62%; filter: grayscale(1) brightness(0.36) contrast(1.3); }
.hero__car--r img { aspect-ratio: 4 / 3; object-position: 50% 62%; transform: scale(1.08); transform-origin: 50% 66%; filter: grayscale(1) brightness(0.44) contrast(1.2); }
.hero__car--c img { aspect-ratio: 16 / 10; object-position: 50% 58%; transform: scale(1.32); transform-origin: 50% 62%; filter: contrast(1.12) brightness(0.92) saturate(1.1); }
.hero__car--c .hero__car-in {
  -webkit-mask-image: radial-gradient(ellipse 46% 44% at 50% 56%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 46% 44% at 50% 56%, #000 55%, transparent 100%);
}
.hero__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: 3; pointer-events: none; background: linear-gradient(to top, #070708 10%, rgba(7,7,8,0)); }
.hero__sub {
  position: absolute; z-index: 5; left: 0; right: 0; margin: 0 auto; bottom: clamp(28px, 7vh, 64px);
  width: min(240px, calc(100% - 2 * var(--pad)));
  text-align: center; font-size: 11px; line-height: 1.5; color: rgba(236,233,228,0.75);
}
.hero__fade { position: absolute; inset: 0; z-index: 8; background: var(--bg); opacity: 0; pointer-events: none; }

/* ==========================================================================
   2. STATEMENT + TRAIL
   ========================================================================== */
/* pulled up over the end of the hero so the screen never goes fully black */
.statement { position: relative; z-index: 2; margin-top: -50vh; margin-top: -50svh; height: 100vh; height: 100svh; min-height: 520px; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 0 var(--pad); }
.statement__title { position: relative; z-index: 2; font-size: clamp(2.2rem, 4.4vw, 4.8rem); line-height: 1.08; pointer-events: none; }
.trail { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.trail img {
  position: absolute; top: 0; left: 0;
  width: clamp(96px, 10.5vw, 170px); aspect-ratio: 4 / 5; object-fit: cover;
  opacity: 0; will-change: transform, opacity;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}

/* ==========================================================================
   3. APPROACH
   ========================================================================== */
.approach__stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.approach__media { position: absolute; inset: 0; will-change: clip-path; }
.approach__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; filter: brightness(0.7) contrast(1.05); }
.approach__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,6,7,0.55) 0%, rgba(6,6,7,0) 35%, rgba(6,6,7,0) 55%, rgba(6,6,7,0.8) 100%); }
.approach__title { position: absolute; z-index: 2; top: clamp(80px, 13vh, 140px); left: var(--pad); font-size: clamp(2.8rem, 5vw, 5.6rem); line-height: 1.05; }
.approach__bottom { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(36px, 9vh, 90px); display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.approach__brands { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(22px, 3.6vw, 56px); font-size: 11px; font-weight: 600; letter-spacing: 0.32em; color: rgba(236,233,228,0.78); }
.approach__aside { width: min(300px, 100%); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.approach__aside p { font-size: 12px; color: rgba(236,233,228,0.75); }

/* ==========================================================================
   4. PILLARS
   ========================================================================== */
.pillars__stage { --s: min(31vw, 62vh); position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #2a2725; }
.pillars__bg img { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(26px) brightness(0.5) saturate(0.8); opacity: 0; }
.pillars__bg img:first-child { opacity: 1; }
.pillars__frame { position: absolute; z-index: 2; left: 17vw; top: 50%; width: var(--s); height: var(--s); margin-top: calc(var(--s) / -2); overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,0.45); }
.pillars__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pillars__frame img:nth-child(2) { object-position: 50% 50%; }
.pillars__items { position: absolute; z-index: 2; left: 57vw; top: 0; bottom: 0; width: min(24vw, 340px); display: grid; align-items: center; }
.pillar { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.pillar + .pillar { opacity: 0; visibility: hidden; }
.pillar__count { font-family: var(--serif); font-size: 15px; color: rgba(236,233,228,0.8); }
.pillar__title { font-size: clamp(2.6rem, 4.2vw, 4.6rem); }
.pillar__text { font-size: 12px; color: rgba(236,233,228,0.72); }
.pillars__next { position: absolute; z-index: 2; left: 57vw; bottom: 7vh; font-family: var(--serif); font-size: 15px; color: rgba(236,233,228,0.7); }
.pillars__next b { font-weight: 400; color: var(--fg); }

/* ==========================================================================
   5. MANIFESTO
   ========================================================================== */
.manifesto {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center;
  gap: clamp(40px, 6vw, 100px);
  min-height: 100vh; padding: clamp(100px, 16vh, 180px) var(--pad);
}
.manifesto__text { font-size: clamp(2.1rem, 3.9vw, 4.2rem); line-height: 1.12; }
.manifesto__body { max-width: 440px; margin-top: 30px; font-size: 12px; color: var(--fg-dim); }
.manifesto__copy .btn { margin-top: 32px; }
.manifesto__media { justify-self: center; width: min(24vw, 340px); aspect-ratio: 3 / 4; overflow: hidden; }
.manifesto__media img { width: 100%; height: 100%; object-fit: cover; object-position: 41% 60%; filter: grayscale(0.35) brightness(0.75) contrast(1.1); }

/* ==========================================================================
   6. SERVICES
   ========================================================================== */
.service { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; }
.service__copy { align-self: center; display: flex; flex-direction: column; align-items: flex-start; padding: 80px var(--pad); max-width: 560px; }
.service__label { font-size: 8.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-mute); }
.service__title { margin: 14px 0 18px; font-size: clamp(2.8rem, 4.6vw, 5rem); }
.service__text { max-width: 360px; font-size: 12px; color: var(--fg-dim); }
.service__copy .btn { margin-top: 28px; }
.service__media { position: relative; overflow: hidden; }
.service__media img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; filter: brightness(0.82); will-change: transform; }
.service__media--low img { object-position: 50% 88%; }

/* ==========================================================================
   7. ORDINARY / ENDS HERE
   ========================================================================== */
.ordinary__stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #040405; }
.ordinary__word { position: absolute; z-index: 3; left: 0; right: 0; top: 54%; text-align: center; font-size: clamp(3rem, 5.6vw, 6.2rem); }
.ordinary__car {
  position: absolute; z-index: 2; left: 50%; top: 0; width: min(58vw, 820px); margin-left: calc(min(58vw, 820px) / -2);
  aspect-ratio: 4 / 3; will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse 44% 46% at 50% 58%, #000 50%, transparent 100%);
          mask-image: radial-gradient(ellipse 44% 46% at 50% 58%, #000 50%, transparent 100%);
}
.ordinary__car img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: brightness(0.8) contrast(1.15) saturate(0.85); }
.ordinary__side { position: absolute; z-index: 1; top: 0; width: 24vw; aspect-ratio: 2 / 3; overflow: hidden; will-change: transform; }
.ordinary__side img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.32) contrast(1.2); }
.ordinary__side--l { left: -9vw; -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent); }
.ordinary__side--r { right: -9vw; -webkit-mask-image: linear-gradient(-90deg, #000 40%, transparent); mask-image: linear-gradient(-90deg, #000 40%, transparent); }
.ordinary__ends { position: absolute; z-index: 3; left: 0; right: 0; top: 56%; text-align: center; padding: 0 var(--pad); }
.ordinary__title { font-size: clamp(3rem, 5.6vw, 6.2rem); }
.ordinary__ends p { max-width: 300px; margin: 16px auto 0; font-size: 11.5px; color: var(--fg-dim); }

/* ==========================================================================
   8–9. PANELS (Previous Builds / Available Stock)
   ========================================================================== */
.panel { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg); }
.panel--builds { z-index: 2; }
.panel--stock { z-index: 3; }
.panel__media { position: absolute; inset: 0; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.panel--builds .panel__media img { object-position: 50% 76%; filter: brightness(0.62) contrast(1.2) saturate(1.15); }
.panel--stock .panel__media img { object-position: 50% 60%; filter: brightness(0.8); }
.panel__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,6,7,0.35) 0%, rgba(6,6,7,0) 30%, rgba(6,6,7,0.2) 55%, rgba(6,6,7,0.9) 100%); }
.panel__content { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(48px, 13vh, 130px); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--pad); }
.panel__title { font-size: clamp(3rem, 5.2vw, 5.8rem); }
.panel__content p { max-width: 320px; margin: 14px 0 26px; font-size: 11.5px; color: rgba(236,233,228,0.75); }
.panel__shade { position: absolute; inset: 0; z-index: 5; background: #000; opacity: 0; pointer-events: none; }

/* ==========================================================================
   10. FINALE
   ========================================================================== */
.finale { position: relative; z-index: 4; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: radial-gradient(70% 40% at 50% 85%, #141416, #050506 70%); }
.finale__cars { position: absolute; inset: 0; z-index: 1; }
.finale__car { position: absolute; overflow: hidden; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 48%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 48%, transparent 100%); }
.finale__car img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.finale__car--l { left: -2vw; bottom: 14%; width: 34vw; }
.finale__car--r { right: -2vw; bottom: 14%; width: 34vw; }
.finale__car--c { left: 50%; bottom: 10%; width: 34vw; margin-left: -17vw; z-index: 2; }
.finale__car--l img { transform: scale(1.45); transform-origin: 56% 64%; filter: grayscale(1) brightness(0.36) contrast(1.2); }
.finale__car--r img { transform: scale(1.6); transform-origin: 55% 68%; filter: grayscale(1) brightness(0.42) contrast(1.2); }
.finale__car--c img { object-position: 50% 55%; filter: brightness(0.82) contrast(1.1); }
.finale__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 2; background: linear-gradient(to top, #060607 15%, rgba(6,6,7,0)); }
.finale__content { position: absolute; z-index: 3; left: 0; right: 0; top: clamp(80px, 13vh, 130px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.finale__eyebrow { font-size: 8.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-dim); }
.finale__title { margin: 16px 0 26px; font-size: min(5.4vw, 6rem); line-height: 1.02; white-space: nowrap; }
.finale__top { position: absolute; z-index: 3; left: 50%; bottom: clamp(44px, 8vh, 80px); transform: translateX(-50%); font-size: 8.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.finale__top::after { content: ""; display: block; height: 1px; margin-top: 6px; background: currentColor; transform: scaleX(0); transition: transform 0.6s var(--ease); }
.finale__top:hover::after { transform: scaleX(1); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; z-index: 5; background: #050506; border-top: 1px solid var(--line); padding: clamp(70px, 10vh, 110px) var(--pad) 22px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.9fr)) minmax(0, 1.3fr); gap: 40px; }
.footer__logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer__logo svg { width: 34px; height: 21px; }
.footer__logo span { font-size: 11px; font-weight: 600; letter-spacing: 0.46em; }
.footer__brand p, .footer__news > p { max-width: 300px; font-size: 12.5px; color: var(--fg-dim); }
.footer__socials { display: flex; gap: 10px; margin-top: 26px; }
.footer__socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.footer__socials a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.footer__socials svg { width: 13px; height: 13px; }
.footer__label { display: block; margin-bottom: 10px; font-size: 8.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-mute); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 13px; }
.footer__col p { color: var(--fg); line-height: 1.5; }
.footer__col .footer__muted { color: var(--fg-dim); font-size: 12px; }
.footer__col a { position: relative; transition: color 0.3s; word-break: break-word; }
.footer__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease); }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__input { display: flex; align-items: center; margin-top: 18px; border-bottom: 1px solid var(--line-2); transition: border-color 0.4s; }
.footer__input:focus-within { border-color: var(--fg); }
.footer__input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--fg); font: inherit; font-size: 16px; padding: 12px 0; }
.footer__input input::placeholder { color: var(--fg-mute); }
.footer__input button { padding: 10px 2px 10px 12px; }
.footer__input svg { width: 15px; height: 15px; transition: transform 0.5s var(--ease); }
.footer__input button:hover svg { transform: translateX(4px); }
.footer__news-note { min-height: 1.4em; margin-top: 10px; font-size: 12px; color: var(--fg-dim); }

.footer__word {
  margin-top: clamp(50px, 8vh, 90px);
  font-size: 27.5vw; line-height: 0.78; text-align: center; letter-spacing: -0.02em; white-space: nowrap;
  user-select: none; pointer-events: none;
  color: transparent;
  background: linear-gradient(180deg, rgba(236,233,228,0.9) 0%, rgba(236,233,228,0.05) 88%);
  -webkit-background-clip: text; background-clip: text;
}
.footer__word[data-split] { background: none; }
.footer__word .sw { overflow: hidden; padding-bottom: 0.06em; }
.footer__word .sc {
  background: linear-gradient(180deg, rgba(236,233,228,0.9) 0%, rgba(236,233,228,0.05) 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}

.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 11px; color: var(--fg-mute); }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a, .footer__up { transition: color 0.3s; }
.footer__legal a:hover, .footer__up:hover { color: var(--fg); }
.footer__up { font-size: 8.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-dim); }

/* ==========================================================================
   CONTACT PANEL
   ========================================================================== */
.contact { position: fixed; inset: 0; z-index: 500; visibility: hidden; }
.contact__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; }
.contact__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(540px, 100%);
  display: flex; flex-direction: column; gap: 18px;
  padding: 84px clamp(20px, 4vw, 48px) 40px;
  background: var(--bg-2); border-left: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%);
}
.contact__close { position: absolute; top: 24px; right: clamp(20px, 4vw, 48px); font-size: 9px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; }
.contact__eyebrow { font-size: 9px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.contact__title { font-size: clamp(2.6rem, 4vw, 3.8rem); }
.contact__lead { font-size: 12.5px; color: var(--fg-dim); }
.form { display: flex; flex-direction: column; gap: 20px; margin-top: 10px; }
.field { position: relative; padding-top: 20px; border-bottom: 1px solid var(--line-2); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field input, .field textarea { width: 100%; background: transparent; border: 0; outline: 0; resize: vertical; color: var(--fg); font: inherit; font-size: 16px; padding: 8px 0 10px; border-radius: 0; -webkit-appearance: none; appearance: none; }
.field label { position: absolute; left: 0; top: 28px; font-size: 13px; color: var(--fg-mute); pointer-events: none; transition: top 0.5s var(--ease), font-size 0.5s var(--ease), letter-spacing 0.5s, color 0.4s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 2px; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-dim); }
.field.is-invalid { border-color: var(--accent); }
.field.is-invalid label { color: var(--accent); }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 12px; font-size: 9px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg-dim); }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.chips label:hover span { border-color: var(--fg); }
.chips input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chips input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 3px; }
.form__note { min-height: 1.4em; font-size: 12.5px; color: var(--fg-dim); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 450; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 80px var(--pad) 50px; background: rgba(4,4,5,0.96); opacity: 0; visibility: hidden; }
.lightbox__head { position: absolute; top: 24px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 9px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; }
.lightbox__set { color: var(--accent); }
.lightbox__count { font-family: var(--serif); font-size: 15px; letter-spacing: 0; text-transform: none; }
.lightbox__fig { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.lightbox__fig img { max-width: 100%; max-height: 70vh; object-fit: contain; }
.lightbox__fig figcaption { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.lightbox__name { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.lightbox__tag { font-size: 9.5px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg-dim); }
.lightbox__nav { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: background 0.4s, color 0.4s; }
.lightbox__nav:hover { background: var(--fg); color: var(--bg); }
.lightbox__nav svg { width: 14px; height: 14px; }
.lightbox__nav--prev svg { transform: rotate(180deg); }

/* ==========================================================================
   PROGRESS
   ========================================================================== */
.progress { position: fixed; left: 0; right: 0; bottom: 0; z-index: 301; height: 1px; pointer-events: none; }
.progress span { display: block; height: 100%; background: rgba(236,233,228,0.75); transform: scaleX(0); transform-origin: left; }

/* ==========================================================================
   WATERMARK - delete this block (and the two elements in index.html) to remove
   ========================================================================== */
.watermark {
  position: fixed; inset: 0; z-index: 950; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='440' height='280'%3E%3Cg transform='rotate(-24 220 140)' fill='%23ffffff' text-anchor='middle'%3E%3Ctext x='220' y='136' font-family='Georgia,serif' font-size='26' letter-spacing='8'%3EELYRA%3C/text%3E%3Ctext x='220' y='160' font-family='Arial,sans-serif' font-size='9' letter-spacing='6'%3EAUTOMOTIVE%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-size: 440px 280px;
}
.wm-badge {
  position: fixed; z-index: 951; pointer-events: none; right: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 12px;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.78);
  border: 1px solid var(--line-2);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-family: var(--sans);
  font-size: 9.5px; font-weight: 500; line-height: 1; letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap;
  color: var(--fg-dim);
  animation: wm-in 0.8s var(--ease-out) 0.6s both;
}
.wm-badge b { font-family: var(--serif); font-size: 17px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--fg); margin-left: 4px; }
.wm-badge__icon { width: 20px; height: 20px; flex: none; color: var(--accent); }
@keyframes wm-in { from { opacity: 0; transform: translateY(16px); } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1023px) {
  .menu__inner { grid-template-columns: 1fr; align-content: center; }
  .menu__media { display: none; }

  .approach__bottom { flex-direction: column; align-items: flex-start; gap: 30px; }


  .manifesto { grid-template-columns: 1fr; min-height: 0; }
  .manifesto__media { justify-self: start; width: min(70vw, 340px); }

  .service { grid-template-columns: 1fr; min-height: 0; }
  .service__media { order: -1; height: 62vh; height: 62svh; }
  .service__copy { padding: 36px var(--pad) 84px; }
}

/* portrait phones + tablets: stack the pillars slider */
@media (max-width: 1023px) and (orientation: portrait) {
  .pillars__stage { --s: min(64vw, 44vh); }
  .pillars__frame { left: 50%; top: clamp(84px, 12vh, 130px); margin: 0 0 0 calc(var(--s) / -2); }
  .pillars__items { left: var(--pad); right: var(--pad); width: auto; top: calc(clamp(84px, 12vh, 130px) + var(--s) + 30px); bottom: 64px; align-items: start; }
  .pillar { gap: 12px; }
  .pillars__next { left: var(--pad); right: auto; bottom: 24px; }
}

/* tablet portrait: bigger hero + finale line-ups */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .hero__title-wrap { top: 15vh; }
  .hero__title { font-size: 8.4vw; }
  .hero__car--c { width: 74vw; margin-left: -37vw; bottom: 26%; }
  .hero__car--l { width: 58vw; left: -26vw; bottom: 33%; }
  .hero__car--r { width: 58vw; right: -26vw; bottom: 33%; }
  .hero__sub { bottom: 9vh; width: 320px; font-size: 13px; }
  .approach__title, .panel__title, .finale__title, .ordinary__word, .ordinary__title, .pillar__title { font-size: 8vw; }
  .statement__title { font-size: 6.4vw; }
  .manifesto__text { font-size: 5.6vw; }
  .finale__car--c { width: 64vw; margin-left: -32vw; bottom: 16%; }
  .finale__car--l { width: 50vw; left: -22vw; bottom: 22%; }
  .finale__car--r { width: 50vw; right: -22vw; bottom: 22%; }
}

@media (max-width: 767px) {
  body { font-size: 14px; }
  .header { padding: 16px var(--pad); }
  .header__socials { visibility: hidden; }

  .hero__title-wrap { top: clamp(92px, 14vh, 130px); }
  .hero__title { font-size: min(11.5vw, 3.6rem); }
  .hero__car--c { width: 100vw; margin-left: -50vw; bottom: 27%; }
  .hero__car--c img { transform: scale(1.12); }
  .hero__car--l { width: 72vw; left: -40vw; bottom: 36%; }
  .hero__car--r { width: 72vw; right: -40vw; bottom: 36%; }
  .hero__sub { bottom: 64px; }

  .statement__title { font-size: clamp(2rem, 9vw, 3rem); }
  .trail img { width: 30vw; }

  .approach__title { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .approach__brands { gap: 10px 20px; font-size: 9.5px; }
  .approach__bottom { bottom: 60px; }

  .pillar__title { font-size: clamp(2.4rem, 10vw, 3.2rem); }

  .ordinary__car { width: 120vw; margin-left: -60vw; }
  .ordinary__side { width: 40vw; }
  .ordinary__side--l { left: -22vw; }
  .ordinary__side--r { right: -22vw; }
  .ordinary__word, .ordinary__title { font-size: clamp(2.8rem, 13vw, 4rem); }

  .panel__title { font-size: clamp(2.8rem, 12vw, 3.8rem); }
  .panel--builds .panel__media img { object-position: 72% 58%; }
  .panel__content { bottom: 72px; }

  .finale__car--c { width: 80vw; margin-left: -40vw; bottom: 20%; }
  .finale__car--l { width: 60vw; left: -32vw; bottom: 26%; }
  .finale__car--r { width: 60vw; right: -32vw; bottom: 26%; }
  .finale__title { font-size: min(12vw, 3.8rem); }
  .finale__top { bottom: 58px; }

  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 70px 16px 74px; }
  .contact__panel { padding-bottom: 90px; }
  .menu__foot { bottom: 64px; }
  .lightbox__fig { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__nav--prev { grid-row: 2; justify-self: end; }
  .lightbox__nav--next { grid-row: 2; justify-self: start; }

  .wm-badge { right: 12px; bottom: 12px; gap: 8px; padding: 7px 14px 7px 9px; font-size: 8px; letter-spacing: 0.2em; }
  .wm-badge b { font-size: 14px; }
  .wm-badge__icon { width: 16px; height: 16px; }
  .watermark { background-size: 300px 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* footer - responsive */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand, .footer__news { grid-column: span 3; }
  .footer__news { max-width: 460px; }
}
@media (max-width: 767px) {
  .footer { padding-bottom: 56px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .footer__brand, .footer__news { grid-column: 1 / -1; }
  .footer__col:nth-child(4) { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* header backdrop while it sits over the footer */
.header::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(5,5,6,0.95) 40%, rgba(5,5,6,0)); opacity: 0; transition: opacity 0.5s; }
.header.is-over-footer::before { opacity: 1; }

/* short landscape screens (phones held sideways) */
@media (max-height: 520px) and (orientation: landscape) {
  .hero__stage, .statement, .approach__stage, .pillars__stage, .ordinary__stage, .panel, .finale { min-height: 0; }
  .header { padding: 10px var(--pad); }

  .hero__title-wrap { top: 56px; }
  .hero__title { font-size: 4.6vw; }
  .hero__car--c { width: 36vw; margin-left: -18vw; bottom: 8%; }
  .hero__car--l, .hero__car--r { width: 32vw; bottom: 12%; }
  .hero__sub { bottom: 14px; }

  .statement__title { font-size: 4.6vw; }

  .approach__title { top: 54px; font-size: 4.6vw; }
  .approach__bottom { flex-direction: row; align-items: flex-end; bottom: 58px; gap: 24px; }
  .approach__brands { max-width: 52%; gap: 8px 18px; font-size: 9px; }
  .approach__aside { gap: 12px; }
  .approach__aside p { font-size: 11px; }

  .pillars__stage { --s: min(30vw, 64vh); }
  .pillars__frame { left: 10vw; }
  .pillars__items { left: 50vw; width: 40vw; }
  .pillar { gap: 10px; }
  .pillar__title { font-size: 4.6vw; }
  .pillar__text { font-size: 11px; }
  .pillars__next { left: 50vw; bottom: 14px; }

  .service__media { height: 74vh; }

  .ordinary__word, .ordinary__title { font-size: 5vw; }
  .ordinary__car { width: 46vw; margin-left: -23vw; }

  .panel__content { bottom: 20px; }
  .panel__title { font-size: 5vw; }
  .panel__content p { margin: 8px 0 14px; }

  .finale__content { top: 48px; }
  .finale__title { font-size: 5vw; margin: 8px 0 14px; }
  .finale__top { bottom: 16px; }
  .finale__car--c, .finale__car--l, .finale__car--r { bottom: 2%; }

  .menu__inner { padding: 56px var(--pad) 44px; }
  .menu__links a { font-size: 1.7rem; padding: 2px 0 4px; }
  .menu__foot { bottom: 14px; }

  .lightbox { padding: 52px var(--pad) 24px; }
  .lightbox__fig img { max-height: 62vh; }
}
