/* ============================================================
   UNIVERSAL EXPORTS — uxpo.co
   Agency site. Dark fork of the E.K Elite Motors design system
   (black / champagne gold / Inter / Archivo / Barlow Condensed),
   structured on the fawned.co.uk narrative anatomy.
   Tokens, easing, radius and motion language ported, not invented.
   ============================================================ */

:root {
  --bg: #000000;
  --panel: #0a0a0b;
  --panel-2: #111213;
  --ink: #f6f4f0;
  --ink-soft: #c9c6bf;
  --dim: #8e8e93;
  --gold: #c9a24b;
  --gold-soft: rgba(201, 162, 75, 0.16);
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-2: rgba(255, 255, 255, 0.18);
  --shadow-s: 0 1px 2px rgba(0,0,0,0.4), 0 4px 14px rgba(0,0,0,0.35);
  --shadow-m: 0 2px 8px rgba(0,0,0,0.45), 0 18px 44px rgba(0,0,0,0.55);
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Archivo, Inter, sans-serif;
  --font-num: "Barlow Condensed", Inter, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 18px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: #000; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip, NOT hidden: hidden makes body a scroll container and breaks the
     position:sticky pinned section further down the page */
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; transition: opacity 0.25s var(--ease), color 0.25s var(--ease); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
::selection { background: var(--gold); color: #0a0a0b; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* film grain, sits over the dark sections */
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0.16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); font-weight: 650; margin-bottom: 16px;
}
.standfirst { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.body-copy { color: var(--ink-soft); font-size: 1.06rem; line-height: 1.72; }
.body-copy p + p { margin-top: 1.15rem; }
.body-copy strong { color: var(--ink); font-weight: 600; }
.lede { color: var(--dim); font-size: 1.1rem; }
.centred { text-align: center; }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head.mid { margin-left: auto; margin-right: auto; text-align: center; }
.section__head.wide { max-width: 940px; }
.caption.mid { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 980px;
  font-weight: 650; letter-spacing: 0.01em; font-size: 0.95rem;
  font-family: var(--font-body); border: none; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.965); }
.btn-white { background: #fff; color: #0a0a0b !important; box-shadow: var(--shadow-s); }
.btn-white:hover { box-shadow: var(--shadow-m); }
.btn-gold { background: var(--gold); color: #141414 !important; box-shadow: var(--shadow-s); }
.btn-gold:hover { box-shadow: 0 6px 26px rgba(201,162,75,0.34); }
.btn-ghost {
  background: rgba(255,255,255,0.10); color: var(--ink) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--hairline-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-wa { background: #1da851; color: #fff !important; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.mid { justify-content: center; }

/* ---------- Floating nav ---------- */
.floatbar {
  position: fixed; top: 10px; left: 0; right: 0; z-index: 60;
  width: min(1120px, calc(100% - 24px)); margin: 0 auto;
  background: rgba(0,0,0,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 20px 48px rgba(0,0,0,0.45);
}
header.site .container { display: flex; align-items: center; justify-content: space-between; padding: 13px 24px; gap: 16px; }
.lockup img { height: 30px; width: auto; }
@media (max-width: 480px) { .lockup img { height: 25px; } }
nav.main { display: flex; gap: 28px; align-items: center; }
nav.main a { color: rgba(255,255,255,0.72); font-size: 0.9rem; font-weight: 500; padding: 4px 0; }
nav.main a:hover { color: #fff; }
nav.main .btn { padding: 9px 20px; font-size: 0.88rem; }
.navtoggle { display: none; background: none; border: none; color: #fff; padding: 6px 8px; font-size: 1.2rem; cursor: pointer; }
@media (max-width: 860px) {
  nav.main {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: rgba(0,0,0,0.94);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-radius: 18px; box-shadow: 0 14px 38px rgba(0,0,0,0.5);
    flex-direction: column; gap: 0; padding: 8px 0;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s;
  }
  nav.main.open { visibility: visible; opacity: 1; transform: none; }
  nav.main a { padding: 13px 24px; width: 100%; }
  nav.main .btn { margin: 6px 24px 8px; text-align: center; }
  .navtoggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: #000;
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: 150px 0 120px; text-align: center;
}
.hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero .hero-bg video, .hero .hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 58%;
}
.hero .hero-bg img.kb { animation: kburns 26s var(--ease) infinite alternate; transform-origin: 55% 60%; }
@keyframes kburns { from { transform: scale(1.02); } to { transform: scale(1.13) translateX(-2%); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.42) 34%, rgba(0,0,0,0.48) 62%, rgba(0,0,0,0.86) 86%, #000 100%);
}
.hero .container { position: relative; z-index: 4; }
.hero .hero-lockup {
  width: min(560px, 84vw); height: auto; margin: 0 auto 30px;
  filter: drop-shadow(0 6px 40px rgba(0,0,0,0.6));
}
.hero h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.5rem); font-weight: 700;
  color: #fff; margin-bottom: 18px; letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero p.sub { color: rgba(255,255,255,0.80); max-width: 620px; margin: 0 auto 34px; font-size: 1.1rem; line-height: 1.6; }
.hero .scrollhint {
  position: absolute; left: 0; right: 0; bottom: 30px; z-index: 4;
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.hero .scrollhint span { display: block; width: 1px; height: 34px; margin: 12px auto 0; background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent); }
@media (max-width: 700px) {
  .hero { padding: 130px 0 130px; }
  .hero h1 { font-size: 1.35rem; }
  .hero p.sub { font-size: 1rem; }
}

/* ---------- Sections ---------- */
section.block { position: relative; padding: 104px 0; }
section.block.tight { padding: 84px 0; }
.on-panel { background: var(--panel); }
.on-panel-2 { background: var(--panel-2); }
.hair-top { border-top: 1px solid var(--hairline); }
@media (max-width: 700px) { section.block { padding: 78px 0; } }

/* ---------- The google moment ---------- */
.moment { max-width: 780px; margin: 0 auto; }
.moment .standfirst { margin-bottom: 30px; }
.moment .body-copy { font-size: 1.12rem; }
.exhibit {
  margin-top: 46px; padding: 34px 32px;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0));
}
.exhibit blockquote {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.22; color: #fff;
}
.exhibit .by { margin-top: 14px; color: var(--gold); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
@media (max-width: 700px) { .exhibit { padding: 26px 22px; } }

/* ---------- Device frames ---------- */
.work-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 34px; align-items: center; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; gap: 40px; justify-items: center; } }

.device-desktop { width: 100%; }
.device-desktop .bezel {
  border-radius: 14px; overflow: hidden; background: #17171a;
  border: 1px solid var(--hairline-2); box-shadow: var(--shadow-m);
}
.device-desktop .chrome,
.cinema .chrome {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #17171a; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.device-desktop .dot,
.cinema .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); flex: 0 0 auto; }
.device-desktop .url,
.cinema .url {
  flex: 1 1 auto; min-width: 0; margin-left: 6px; background: rgba(255,255,255,0.07); border-radius: 980px;
  padding: 5px 14px; font-size: 0.72rem; color: rgba(255,255,255,0.55); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.device-desktop .screen { position: relative; aspect-ratio: 16 / 10; background: #000; }
.device-desktop .screen > img, .device-desktop .screen > video { width: 100%; height: 100%; object-fit: cover; }

.device-phone { width: min(300px, 78vw); position: relative; }
.device-phone .bezel {
  border-radius: 42px; padding: 9px; background: #151517;
  border: 1px solid var(--hairline-2);
  box-shadow: var(--shadow-m), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.device-phone .screen {
  position: relative; border-radius: 34px; overflow: hidden; background: #000;
  aspect-ratio: 390 / 844;
}
.device-phone .screen > img, .device-phone .screen > video { width: 100%; height: 100%; object-fit: cover; }
.device-phone .notch {
  position: absolute; top: 17px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 84px; height: 22px; border-radius: 980px; background: #0a0a0b;
}
.render-tag {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.62); background: rgba(0,0,0,0.42);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 4px 10px; border-radius: 980px;
}
.device-desktop .render-tag { top: auto; bottom: 12px; right: 12px; }
.device-phone .render-tag { top: 48px; }
.caption { margin-top: 16px; color: var(--dim); font-size: 0.88rem; }
.caption strong { color: var(--ink); font-weight: 600; }

.workstrip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 760px) { .workstrip { grid-template-columns: 1fr; } }
.workstrip figure { border-radius: 14px; overflow: hidden; border: 1px solid var(--hairline); background: #0f0f11; }
.workstrip img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: center top; }
.workstrip figcaption { padding: 14px 18px; color: var(--dim); font-size: 0.84rem; }

/* ---------- Build cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.card {
  position: relative; padding: 30px 28px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  border: 1px solid var(--hairline); border-radius: var(--radius);
  transition: transform 0.45s var(--ease-out), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease-out);
}
.card:hover { transform: translateY(-4px); border-color: rgba(201,162,75,0.42); box-shadow: var(--shadow-m); }
.card .ico { display: block; width: 26px; height: 26px; margin-bottom: 18px; }
.card .ico svg { width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 10px; color: #fff; letter-spacing: -0.01em; line-height: 1.25; }
.card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.62; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 8px; } }
.step { padding: 30px 0 32px; border-top: 1px solid var(--hairline-2); }
.step .mk {
  font-family: var(--font-num); font-size: 2.6rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.02em; line-height: 1; display: block; margin-bottom: 16px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 10px; color: #fff; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Proof ---------- */
.proof-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.proof-card {
  padding: 28px 26px; border: 1px solid var(--hairline); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  display: flex; flex-direction: column; gap: 10px;
}
.proof-card .tag {
  align-self: flex-start; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: #141414; background: var(--gold); border-radius: 980px; padding: 3px 12px;
}
.proof-card h3 { font-size: 1.16rem; color: #fff; }
.proof-card .where { color: var(--dim); font-size: 0.88rem; }
.proof-card p { color: var(--ink-soft); font-size: 0.95rem; }
.proof-card a.out { color: var(--gold); font-weight: 600; font-size: 0.92rem; margin-top: auto; }
.proof-card a.out .arr { display: inline-block; transition: transform 0.35s var(--ease); }
.proof-card a.out:hover .arr { transform: translateX(4px); }
.proof-card.empty { border-style: dashed; border-color: var(--hairline-2); background: none; justify-content: center; }
.proof-card.empty p { color: var(--dim); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 30px;
  width: 8px; height: 8px; border-right: 1.6px solid var(--gold); border-bottom: 1.6px solid var(--gold);
  transform: rotate(45deg); transition: transform 0.35s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { padding: 0 12px 24px 0; color: var(--ink-soft); font-size: 0.99rem; animation: faqin 0.45s var(--ease-out); }
@keyframes faqin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Enquire ---------- */
.enquire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .enquire-grid { grid-template-columns: 1fr; gap: 36px; } }
.form .field { margin-bottom: 16px; }
.form label { display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 8px; }
.form input {
  width: 100%; background: rgba(255,255,255,0.05); color: var(--ink);
  border: 1px solid var(--hairline-2); border-radius: 12px;
  padding: 14px 16px; font-size: 1rem; font-family: var(--font-body);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.form input::placeholder { color: rgba(255,255,255,0.28); }
.form input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.08); }
.form .field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form .field-2 { grid-template-columns: 1fr; gap: 0; } }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button { width: 100%; margin-top: 8px; padding: 16px 28px; font-size: 1rem; }
.form .msg { margin-top: 14px; font-size: 0.9rem; color: var(--gold); min-height: 1.2em; }
.form-sent { padding: 34px 30px; border: 1px solid rgba(201,162,75,0.4); border-radius: var(--radius); background: var(--gold-soft); }
.form-sent h3 { font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
.form-sent p { color: var(--ink-soft); }
.direct { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--hairline); }
.direct p { color: var(--dim); font-size: 0.92rem; margin-bottom: 14px; }

/* ---------- Footer (light, inverted lockup) ---------- */
footer.site { background: #fff; color: #6e6e73; padding: 54px 0 40px; font-size: 0.88rem; }
footer.site .row { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer.site img.lock { height: 34px; width: auto; margin-bottom: 14px; }
footer.site .blurb { color: #6e6e73; max-width: 340px; font-size: 0.86rem; }
footer.site a { color: #6e6e73; }
footer.site a:hover { color: #111213; }
footer.site .right { text-align: right; }
@media (max-width: 640px) { footer.site .right { text-align: left; } }
footer.site .legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.08); color: #8e8e93; font-size: 0.78rem; }

/* ---------- Sticky mobile enquire bar (sells the mechanism) ---------- */
.enquirebar { display: none; }
@media (max-width: 760px) {
  .enquirebar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 70; display: grid;
    background: rgba(0,0,0,0.80);
    -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
    border: 1px solid var(--hairline); border-radius: 22px; padding: 10px 10px 10px 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.65);
    transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none;
    transition: transform 0.45s var(--ease-out), opacity 0.45s var(--ease);
    will-change: transform;
  }
  .enquirebar.on { transform: none; opacity: 1; pointer-events: auto; }
  .eb-main, .eb-actions {
    grid-area: 1 / 1; display: flex; align-items: center; gap: 12px;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease-out);
  }
  .eb-actions { opacity: 0; transform: translateX(26px); pointer-events: none; }
  .enquirebar.expanded .eb-main { opacity: 0; transform: translateX(-26px); pointer-events: none; }
  .enquirebar.expanded .eb-actions { opacity: 1; transform: none; pointer-events: auto; }
  .enquirebar .meta { flex: 1; min-width: 0; }
  .enquirebar .meta .t { color: var(--ink); font-weight: 650; font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .enquirebar .meta .s { color: var(--dim); font-size: 0.74rem; }
  .enquirebar .enq {
    background: var(--gold); color: #141414; font-weight: 650; font-size: 0.92rem; font-family: inherit;
    padding: 12px 20px; border-radius: 980px; border: none; cursor: pointer; flex: 0 0 auto;
  }
  .enquirebar .enq:active { transform: scale(0.96); }
  .eb-actions .ec, .eb-actions .ew { flex: 1; text-align: center; padding: 13px 0; border-radius: 980px; font-weight: 650; font-size: 0.94rem; }
  .eb-actions .ec { background: var(--gold); color: #141414 !important; }
  .eb-actions .ew { background: #1da851; color: #fff !important; }
  .eb-actions .eb-back {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
    background: #17171a; color: var(--ink); border: none; cursor: pointer; font-size: 0.9rem;
  }
  body { padding-bottom: 84px; }
}

/* ---------- Inner pages (privacy / terms / 404) ---------- */
body.page { background: #000; }
.page-hero { padding: 168px 0 40px; border-bottom: 1px solid var(--hairline); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); color: #fff; }
.page-hero p { color: var(--dim); margin-top: 12px; }
.prose { max-width: 760px; padding: 54px 0 90px; }
.prose h2 { font-size: 1.2rem; color: #fff; margin: 38px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); font-size: 0.99rem; margin-bottom: 12px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.notfound { min-height: 78svh; display: flex; align-items: center; text-align: center; }
.notfound .big { font-family: var(--font-num); font-size: clamp(5rem, 18vw, 11rem); color: var(--gold); line-height: 0.9; font-weight: 600; }

/* anchors clear the floating nav */
section[id] { scroll-margin-top: 96px; }

/* fade-to-black page transition */
.page-fade { position: fixed; inset: 0; background: #000; z-index: 999; opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.page-fade.on { opacity: 1; pointer-events: all; }

/* framed URL: full path on a laptop, host only on a phone */
.device-desktop .url .u-short { display: none; }
@media (max-width: 700px) {
  .device-desktop .url .u-long { display: none; }
  .device-desktop .url .u-short { display: inline; }
}


/* ---------- Cinematic pinned view: the page scrolls, the frame doesn't ----------
   .pinwrap gives the scroll distance, .pinstage sticks in the middle of it, and
   the screenshot inside the screen is translated by the scroll progress. Bigger
   than the container on purpose. */
.pinwrap { position: relative; height: 300vh; }
.pinstage {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 92px 24px 24px;   /* clears the floating nav */
}
/* width is capped by the height available, so the frame and its caption always
   fit the viewport without the nav sitting on top of the browser chrome.
   100% not vw: vw includes the scrollbar, which knocks the frame off centre
   and clips its right edge. */
.cinema { width: min(1400px, 100%, calc((100svh - 210px) * 16 / 9)); }
.cinema .bezel {
  border-radius: 16px; overflow: hidden; background: #17171a;
  border: 1px solid var(--hairline-2); box-shadow: var(--shadow-m);
}
.cinema .screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
}
.cinema .screen img {
  position: absolute; top: 0; left: 0; width: 100%; height: auto;
  will-change: transform;
}
.cinema .caption { margin-top: 16px; }
@media (max-width: 900px) {
  .pinwrap { height: 220vh; }
  .cinema { width: min(100%, calc((100svh - 190px) * 4 / 3)); }
  .cinema .screen { aspect-ratio: 4 / 3; }
  .pinstage { padding: 80px 12px 20px; }
}
/* no scroll-jacking for anyone who has asked for less motion: show the whole page still */
@media (prefers-reduced-motion: reduce) {
  .pinwrap { height: auto; }
  .pinstage { position: static; height: auto; padding: 40px 12px 0; }
  .cinema .screen { aspect-ratio: auto; }
  .cinema .screen img { position: static; transform: none !important; }
}

/* ---------- Showroom section: the mockup follows the device you are on ----------
   Lives outside .container so the widescreen frame matches the pinned one. */
.showcase { display: flex; justify-content: center; width: 100%; padding: 0 24px; }
/* same width rule as the pinned frame so the two read as one system */
.showcase .device-desktop { width: min(1400px, 100%, calc((100svh - 210px) * 16 / 9)); }
.show-narrow { display: none; }
@media (max-width: 760px) {
  .show-wide { display: none; }
  .show-narrow { display: block; }
}

/* ---------- Pinned view on a phone: an iPhone-shaped mockup instead of the
   browser frame, tall enough to read and short enough to clear the nav ------ */
.cinema-phone { display: none; }
@media (max-width: 760px) {
  .cinema { display: none; }
  /* column: the phone gets the space that is left, the caption always sits
     under it in normal flow. The clipping happens inside .phone-window, so
     nothing overlaps the caption or the sticky enquire bar. */
  .cinema-phone { display: flex; flex-direction: column; width: 100%; height: 100%; }
  .phone-window { flex: 1 1 auto; min-height: 0; overflow: hidden; }
  .pinstage { padding: 76px 0 92px; justify-content: flex-start; }
  .cinema-phone .bezel {
    width: 90%; aspect-ratio: 390 / 844; height: auto; margin: 0 auto;
    border-radius: 44px; padding: 8px; background: #151517;
    border: 1px solid var(--hairline-2);
    box-shadow: var(--shadow-m), inset 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
    transform-origin: center top;          /* it grows downwards, top stays put */
    will-change: transform;
  }
  .cinema-phone .screen {
    position: absolute; inset: 8px; border-radius: 36px;
    overflow: hidden; background: #000;
  }
  .cinema-phone .screen img {
    position: absolute; top: 4.5%; left: 0; width: 100%; height: auto;
    will-change: transform;   /* the strip above is the status bar / island */
  }
  .cinema-phone .notch {
    position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 3;
    width: 84px; height: 22px; border-radius: 980px; background: #0a0a0b;
  }
  .cinema-phone .caption { flex: 0 0 auto; margin: 14px 0 0; padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cinema-phone .bezel { aspect-ratio: auto; transform: none !important; }
  .cinema-phone .screen { position: static; height: auto; }
  .cinema-phone .screen img { position: static; transform: none !important; }
  .phone-window { overflow: visible; }
}

/* ---------- The client's page furniture, composited over the film ----------
   A reproduction of the E.K Elite showroom page chrome so the frame reads as a
   website playing a film, not a video in a box. Everything is sized in cqw
   against a 1440px reference, so it scales with the frame. */
.showcase .device-desktop .screen { container-type: inline-size; }
.ek-ui {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  font-family: var(--font-body);
  color: #fff;
}
.ek-ui::after {                       /* their hero grade, so the type stays legible */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.66) 0%, rgba(0,0,0,0.10) 22%,
    rgba(0,0,0,0) 52%, rgba(0,0,0,0.72) 88%, rgba(0,0,0,0.92) 100%);
}
.ek-ui > * { position: relative; z-index: 2; }
.ek-bar {
  position: absolute; top: 0.7cqw; left: 0; right: 0; margin: 0 auto;
  width: min(77.8cqw, calc(100% - 1.7cqw));
  background: #000; border-radius: 1.5cqw;
  box-shadow: 0 0.6cqw 1.4cqw rgba(0,0,0,0.4);
}
.ek-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5cqw 1.7cqw; font-size: 0.94cqw;
  color: rgba(255,255,255,0.65); border-bottom: 1px solid rgba(255,255,255,0.10);
  white-space: nowrap;
}
.ek-top b { color: #fff; font-weight: 600; }
.ek-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.1cqw; padding: 0.97cqw 1.7cqw;
}
.ek-brand { display: flex; align-items: center; gap: 0.83cqw; }
.ek-brand img { height: 2.08cqw; width: auto; display: block; }
.ek-words { display: flex; flex-direction: column; line-height: 1.12; }
.ek-words .l1 {
  font-weight: 700; font-size: 1.31cqw; letter-spacing: 0.14em;
  color: var(--gold); white-space: nowrap;
}
.ek-words .l2 {
  font-size: 0.67cqw; letter-spacing: 0.42em; color: var(--gold);
  text-transform: uppercase; font-weight: 500;
}
.ek-links { display: flex; gap: 1.81cqw; }
.ek-links span { font-size: 1cqw; font-weight: 500; color: rgba(255,255,255,0.72); white-space: nowrap; }
.ek-links span.on { color: #fff; font-weight: 600; }
.ek-call {
  background: var(--gold); color: #141414; font-weight: 600;
  font-size: 0.97cqw; padding: 0.63cqw 1.39cqw; border-radius: 980px; white-space: nowrap;
}
.ek-titling {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: min(72.2cqw, calc(100% - 3.3cqw)); margin: 0 auto;
  padding-bottom: 2.1cqw;
  display: flex; flex-direction: column; gap: 1cqw;
}
.ek-h {
  font-family: var(--font-display); font-weight: 700;
  font-size: 3.75cqw; line-height: 1.06; letter-spacing: -0.02em;
  text-shadow: 0 0.14cqw 1.7cqw rgba(0,0,0,0.45);
}
.ek-meta { display: flex; align-items: center; gap: 0.97cqw; flex-wrap: wrap; }
.ek-plate {
  border: 0.1cqw solid rgba(255,255,255,0.9); border-radius: 0.42cqw;
  padding: 0.21cqw 0.83cqw; background: rgba(0,0,0,0.6);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700; font-size: 1.02cqw; letter-spacing: 0.14em; text-transform: uppercase;
}
.ek-stats {
  font-family: "Barlow Condensed", Inter, sans-serif;
  color: var(--gold); font-weight: 500; font-size: 1.22cqw; letter-spacing: 0.02em;
}
/* browsers without container query units: hide the replica rather than show it
   at the wrong size, the film alone still reads */
@supports not (width: 1cqw) { .ek-ui { display: none; } }

/* ---------- The same page furniture, phone proportions ----------
   Sized in cqw against a 390px reference, mirroring how their page actually
   lays out on a phone: logo and burger only, titling below the car. */
.showcase .device-phone .screen { container-type: inline-size; }
.ek-ui-m .ek-bar {
  top: 12cqw;   /* clears the dynamic island */ width: calc(100% - 6.2cqw); border-radius: 4.6cqw;
  box-shadow: 0 2cqw 5cqw rgba(0,0,0,0.4);
}
.ek-ui-m .ek-top { padding: 1.8cqw 4.1cqw; font-size: 2.95cqw; }
.ek-ui-m .ek-nav { padding: 3cqw 4.1cqw; gap: 3cqw; }
.ek-ui-m .ek-brand { gap: 2.6cqw; }
.ek-ui-m .ek-brand img { height: 7.7cqw; }
.ek-ui-m .ek-words .l1 { font-size: 4.85cqw; }
.ek-ui-m .ek-words .l2 { font-size: 2.46cqw; }
.ek-ui-m .ek-links, .ek-ui-m .ek-call { display: none; }
.ek-ui-m .ek-burger { color: var(--gold); font-size: 4.9cqw; line-height: 1; }
.ek-ui-m::after {
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.08) 20%,
    rgba(0,0,0,0) 44%, rgba(0,0,0,0.72) 74%, rgba(0,0,0,0.94) 100%);
}
.ek-ui-m .ek-titling {
  top: 72%; bottom: auto; width: calc(100% - 8.2cqw);
  padding-bottom: 0; gap: 3cqw;
}
.ek-ui-m .ek-h { font-size: 7.4cqw; }
.ek-ui-m .ek-meta { gap: 3cqw; }
.ek-ui-m .ek-plate { font-size: 3.77cqw; padding: 0.8cqw 3cqw; border-width: 0.4cqw; border-radius: 1.5cqw; }
.ek-ui-m .ek-stats { font-size: 4.5cqw; }
/* small, bottom-right inside the mockup, scaled with the frame */
.show-narrow .render-tag {
  top: auto; bottom: 3cqw; right: 3cqw;
  font-size: 2.8cqw; padding: 0.9cqw 2.2cqw; letter-spacing: 0.1em;
}
