/* =========================================================
   Glaz Pro Detailing — stylesheet

   Every size, colour and offset below was measured off the live
   site (www.glazprodetailing.com) in headless Chrome at a
   1440 x 900 viewport. The reference layout is 1440 wide with a
   1140 container, so the numbers are kept as literal px and the
   whole thing is scaled down for narrower screens.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --cyan:        #36f9cf;   /* headline accent            rgb(54,249,207) */
  --cyan-deep:   #24cab7;   /* products section           rgb(36,202,183) */
  --blue:        #006bc4;   /* stacked shine panel        rgb(0,107,196)  */
  --ink:         #000000;
  --ink-drive:   #050505;
  --ink-contact: #121212;
  --ink-footer:  #161319;   /* rgb(22,19,25) */
  --white:       #ffffff;

  --f-poppins:    "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-montserrat: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-prompt:     "Prompt", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-dmsans:     "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-inter:      "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-roboto:     "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1140px;
  --vh-ref: 900px;          /* reference height content offsets were measured against */
  --zoom: 1;                /* body scale below 1440; see the media query */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
/* Full-viewport sections write "calc(100vh / var(--zoom))" inline rather
   than through a shared custom property: --zoom is overridden on body by
   main.js, and a custom property that nests var(--zoom) inside another
   custom property freezes to whatever --zoom was at ITS OWN declaring
   element (here, :root's stale default) — it does not re-resolve at
   each consumer the way a plain property's var() does. Confirmed by
   measurement: a shared --vh token computed off html's zoom (0.764 at
   1100px) rather than body's actual override (0.753). */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-poppins);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p, figure, figcaption { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.cy { color: var(--cyan); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: #fff; color: #000; padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* =========================================================
   PRELOADER
   Measured off the live load: ground rgb(45,48,50), the shield in
   its header position, and three dots pulsing at (50%, 47%). The
   dots really are near-invisible on the original — rgb(49,52,55)
   at their brightest against that ground.
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgb(45, 48, 50);
  opacity: 1;
  transition: opacity .55s var(--ease);
}
.preloader.is-done { opacity: 0; pointer-events: none; }
.preloader.is-gone { display: none; }

.preloader-logo {
  position: absolute;
  left: 50%; top: 2px;
  width: 76px; height: 80px;
  margin-left: -38px;
  object-fit: contain;
}
.preloader-dots {
  position: absolute;
  left: 50%; top: 420px;
  display: flex;
  gap: 2px;
  transform: translateX(-50%);
}
.preloader-dots span {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgb(49, 52, 55);
  animation: dotPulse 1.4s ease-in-out infinite both;
}
.preloader-dots span:nth-child(2) { animation-delay: .16s; }
.preloader-dots span:nth-child(3) { animation-delay: .32s; }
@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(.25); opacity: .35; }
  40%           { transform: scale(1);   opacity: 1; }
}

.container { width: var(--container); margin: 0 auto; }

/* =========================================================
   HEADER — 74px tall, transparent, logo centred (76 x 80).
   It is NOT fixed on the original: it sits over the hero and
   scrolls away with the page.
   ========================================================= */
.site-header {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 74px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-header .brand { align-self: flex-start; margin-top: 2px; }
.brand img { width: 76px; height: 80px; object-fit: contain; }

/* The live site exposes no desktop menu trigger; this one is kept
   discreet so the off-canvas nav in the markup stays reachable. */
.nav-toggle {
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: none;               /* desktop matches the original: no trigger */
  align-content: center;
  gap: 5px;
  padding: 0 9px;
  opacity: .55;
  transition: opacity .25s var(--ease);
}
.nav-toggle:hover { opacity: 1; }
.nav-toggle:focus-visible { display: grid; opacity: 1; }  /* keyboard-reachable */
.nav-toggle span {
  display: block; height: 1.5px; width: 100%;
  background: #fff;
  transition: transform .35s var(--ease), opacity .2s linear;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================
   OFF-CANVAS MENU — Prompt 60/600, links from x=555
   ========================================================= */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: linear-gradient(#121212, #000);
  animation: fade .3s var(--ease) both;
}
.nav-overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.nav-overlay-inner {
  position: absolute;
  left: 555px;
  top: 168px;
  width: 330px;
}
.overlay-links a {
  display: block;
  font-family: var(--f-prompt);
  font-size: 60px;
  font-weight: 600;
  line-height: 99px;
  color: #fff;
  transition: color .25s var(--ease);
}
.overlay-links a:hover { color: var(--cyan); }

.overlay-social {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}
.overlay-social a {
  font-family: var(--f-prompt);
  font-size: 18px;
  font-weight: 400;
  line-height: 29.7px;
  color: #fff;
  transition: color .25s var(--ease);
}
.overlay-social a:hover { color: var(--cyan); }

/* =========================================================
   HERO — full viewport tall (confirmed against the live site at
   several window heights), photo cover, 784x784 lockup centred.
   Content offsets below are measured at the 900 reference and
   re-based to the section's actual centre so they still land
   correctly at any height.
   ========================================================= */
.hero {
  position: relative;
  height: calc(100vh / var(--zoom));
  overflow: hidden;
  background: #000;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
}
/* the live slide sits at ~39% brightness, a touch heavier at the foot */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, .605) 0%,
    rgba(0, 0, 0, .605) 58%,
    rgba(0, 0, 0, .67) 100%);
  pointer-events: none;
}
.hero-lockup, .hero-cue { z-index: 2; }
/* centred, but 36px above true centre — measured on the live site at
   three window heights, holds exactly at each */
.hero-lockup {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 784px; height: 784px;
  transform: translate(-50%, calc(-50% - 36px));
  object-fit: contain;
  pointer-events: none;
}
.hero-cue {
  position: absolute;
  left: 50%;
  top: calc(50% - var(--vh-ref) / 2 + 763px);   /* == 763px at the 900 reference */
  width: 38px; height: 38px;
  margin-left: -19px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  transition: background-color .3s var(--ease);
}
.hero-cue:hover { background: rgba(255, 255, 255, .18); }

/* =========================================================
   SERVICES — full viewport tall, cross-fading photo bed. Content is
   vertically centred as a group (confirmed on the live site: every
   element here shifts by exactly half of any height change), so
   offsets below are re-based off the section's centre rather than
   its top.
   ========================================================= */
.services {
  position: relative;
  margin-top: -39px;          /* live services top = 861, not 900 */
  height: calc(100vh / var(--zoom));
  overflow: hidden;
  background: #000;
}
.services-bg { position: absolute; inset: 0; }
/* the outgoing frame stays put while the incoming one fades in over it
   (0.5s) and settles out of its 1.1 zoom (1s), as on the original */
.services-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: transform 1s ease-in-out;
}
.services-bg img.is-prev { opacity: 1; }
.services-bg img.is-current {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  animation: bgIn .5s linear;
}
@keyframes bgIn { from { opacity: 0; transform: scale(1.1) } to { opacity: 1; transform: scale(1) } }
/* measured off the live render: 0.52x at the top-left easing to 0.85x right */
.services-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    rgba(0, 0, 0, .50) 0%,
    rgba(0, 0, 0, .29) 52%,
    rgba(0, 0, 0, .15) 100%);
}

.services-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  height: 100%;
  margin: 0 auto;
}

/* vertical dot rail — 600 tall, dots spread space-between so their
   centres land at y 74, 218, 362, 507, 651 from the section top.
   Idle dots are the same disc shrunk to 0.3, threaded on a hairline. */
.tab-dots {
  position: absolute;
  left: 0;
  top: calc(50% - var(--vh-ref) / 2 + 62px);   /* == 62px at the 900 reference */
  width: 30px;
  height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.tab-dots::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 1px;
  height: calc(100% - 20px);
  background: rgba(176, 183, 208, .3);
  transform: translate(-50%, -50%);
}
.tab-dot {
  position: relative;
  width: 23px; height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #b0b7d0;
  transform: scale(.3);
  transition: transform .3s ease-in-out;
}
.tab-dot span {
  font-family: var(--f-poppins);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  opacity: 0;
  transition: opacity .3s ease-in-out;
}
.tab-dot.is-active { transform: scale(1); }
.tab-dot.is-active span { opacity: 1; }

/* copy column — x 245 (95 into the container), width 511 */
.services-copy {
  position: absolute;
  left: 95px;
  top: calc(50% - var(--vh-ref) / 2 + 66px);   /* == 66px at the 900 reference */
  width: 511px;
}
/* The panels are a clipped vertical stack: the outgoing item slides
   out by its own height + 40px while the incoming slides in from the
   opposite side. Heading 0.8s, body 0.5s, box height 0.3s — all
   measured off the original. */
.svc-stack {
  position: relative;
  overflow: hidden;
  height: var(--h, auto);
  transition: height .3s ease-in-out;
}
.svc-heads  { --speed: .8s; }
.svc-bodies { --speed: .5s; margin-top: 19px; }

.svc-item {
  position: absolute;
  inset: 0 0 auto 0;
}
.svc-item > * { transform: translateY(calc(-10 * var(--height, 400px))); }
.svc-item.is-prev > *  { animation: svcPrev var(--speed) ease-in-out both; }
.svc-item.is-next > *  { animation: svcNext var(--speed) ease-in-out both; }
.svc-item.is-up > *    { animation: svcUp   var(--speed) ease-in-out both; }
.svc-item.is-down > *  { animation: svcDown var(--speed) ease-in-out both; }
.svc-item.is-current > * { transform: translateY(0); }

@keyframes svcPrev { from { transform: translateY(0) }
                     to   { transform: translateY(calc(-1 * var(--height))) } }
@keyframes svcNext { from { transform: translateY(0) }
                     to   { transform: translateY(var(--height)) } }
@keyframes svcUp   { from { transform: translateY(var(--height)) }
                     to   { transform: translateY(0) } }
@keyframes svcDown { from { transform: translateY(calc(-1 * var(--height))) }
                     to   { transform: translateY(0) } }

.svc-item h2 {
  font-family: var(--f-montserrat);
  font-size: 64px;
  font-weight: 600;
  line-height: 73.6px;
  color: #fff;
}
.svc-body p {
  font-family: var(--f-montserrat);
  font-size: 23px;
  font-weight: 400;
  line-height: 37.95px;
  color: #fff;
}
/* the original runs the paragraphs together — spacing is line-height only */
/* the shorter panels run a hair smaller on the original */
.svc-bodies .svc-item:not(:first-child) .svc-body p { font-size: 22px; line-height: 36.3px; }

/* project carousel — cards 248x320 (active 248x410), pitch 278 */
.work {
  position: absolute;
  left: 683px;                 /* container x 683 == page x 833 */
  top: 0;
  width: 757px;                /* runs off the right edge, as on the original */
  height: 100%;
  overflow: hidden;            /* cards to the left of the lead are clipped */
}
.work-rail {
  position: absolute;
  top: calc(50% - var(--vh-ref) / 2 + 211px);   /* == 211px at the 900 reference */
  left: 0;
  display: flex;
  gap: 30px;
  will-change: transform;
  cursor: grab;                /* the original is a grab-and-drag Swiper */
  touch-action: pan-y;
}
.work-rail.is-grabbing { cursor: grabbing; }
.work-rail.is-grabbing img { pointer-events: none; }
.work-card {
  position: relative;
  flex: 0 0 248px;
  width: 248px;
  height: 320px;
  margin-top: 45px;            /* short cards hang 45px lower */
  border-radius: 8px;
  overflow: hidden;
  transition: height .5s var(--ease), margin-top .5s var(--ease);
}
.work-card.is-lead { height: 410px; margin-top: 0; }
.work-card img { width: 100%; height: 100%; object-fit: cover; }
.work-card figcaption {
  position: absolute;
  left: 20px;
  bottom: 25px;
  right: 18px;
}
.work-name {
  display: block;
  font-family: var(--f-dmsans);
  font-size: 19px;
  font-weight: 500;
  line-height: 24.7px;
  color: #fff;
}
.work-nav {
  position: absolute;
  left: 0;
  top: calc(50% - var(--vh-ref) / 2 + 651px);   /* == 651px at the 900 reference */
  display: flex;
  gap: 17px;
}
.work-btn {
  width: 43px; height: 39px;
  display: grid; place-items: center;
  border-radius: 100px;
  background: rgba(189, 189, 189, .61);
  color: rgb(44, 43, 43);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.work-btn svg { width: 18px; height: 18px; }

/* =========================================================
   DRIVE CLEAN — full viewport tall, #050505, soft blobs. Content is
   centred as a group, same as SERVICES above — offsets re-based off
   the section's centre.
   ========================================================= */
.drive {
  position: relative;
  margin-top: -14px;          /* live drive top = 1747 */
  height: calc(100vh / var(--zoom));
  overflow: hidden;
  background: var(--ink-drive);
}
.blob {
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.blob-a { left: 173px;  top: calc(50% - var(--vh-ref) / 2 + 162px); background: rgba(124, 45, 190, .85); }
.blob-b { left: 1296px; top: calc(50% - var(--vh-ref) / 2 + 360px); background: rgba(196, 96, 24, .55); }
.blob-c { left: 576px;  top: calc(50% - var(--vh-ref) / 2 + 495px); background: rgba(150, 40, 120, .45); }

.drive-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  height: 100%;
  margin: 0 auto;
}
.drive-copy { position: absolute; left: 10px; top: calc(50% - var(--vh-ref) / 2 + 217px); width: 470px; }
.drive-title {
  font-family: var(--f-poppins);
  font-size: 100px;
  font-weight: 600;
  line-height: 90px;
  letter-spacing: -5px;
  color: #fff;
}
 /* Rotating word. The original stacks all four words on the same spot and
    cross-fades between them every 2s — each one unfolds from a skewed,
    vertically-collapsed state over 0.5s. It is not a typewriter. */
.changing-texts { position: relative; display: inline; }
.changing-texts b {
  position: absolute;
  top: 25px; left: 0;          /* the live site offsets the words 25px down */
  display: block;
  white-space: nowrap;
  font-weight: inherit;
  color: var(--cyan);
  opacity: 0;
  transform: scaleY(0) skewX(-30deg);   /* order matters: matches the live matrix */
  transition: opacity .5s ease-in-out, transform .5s ease-in-out;
}
.changing-texts b.is-showing { opacity: 1; transform: none; }

.drive-lead {
  margin-top: 36px;
  width: 460px;
  font-family: var(--f-poppins);
  font-size: 20px;
  font-weight: 400;
  line-height: 33px;
  color: #fff;
}

/* collage — 360x360 @ (830,270), 150x150 @ (841,185), 200x200 @ (928,487) */
.drive-collage { position: absolute; inset: 0; }
.drive-collage img {
  position: absolute;
  border-radius: 30px;
  object-fit: cover;
  will-change: transform;
}
.shot-a { left: 680px; top: calc(50% - var(--vh-ref) / 2 + 270px); width: 360px; height: 360px; z-index: 1; }
.shot-b { left: 841px; top: calc(50% - var(--vh-ref) / 2 + 185px); width: 150px; height: 150px; z-index: 2; }
.shot-c { left: 928px; top: calc(50% - var(--vh-ref) / 2 + 487px); width: 200px; height: 200px; z-index: 3; }

.scroll-down {
  position: absolute;
  left: 50%;
  top: calc(50% - var(--vh-ref) / 2 + 792px);   /* == 792px at the 900 reference */
  transform: translateX(-50%);
  z-index: 3;
  padding: 12px 24px;
  border-radius: 3px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: .04em;
  color: #fff;
  transition: background-color .3s var(--ease);
}


/* =========================================================
   PINNED HORIZONTAL SHOWCASE
   Track 5446 wide; main.js sizes the section to one viewport of pin
   plus the 4006 of travel (4906 tall at the 900 reference).
   ========================================================= */
/* The ground is never meant to be seen — the pinned viewport covers it —
   so it matches the pin rather than the original's blue: any rounding
   artefact at the seam then reads as nothing instead of a blue band. */
.showcase {
  position: relative;
  background: #121212;
}
/* The pinned viewport is the window, as on the original — a fixed 900
   would leave the section's ground showing along the foot on any taller
   screen. Under the sub-1440 body zoom, viewport units still resolve
   against the unscaled window, so divide it back out. */
.showcase-pin {
  position: sticky;
  top: 0;
  height: calc(100vh / var(--zoom));
  overflow: hidden;
  background: #121212;         /* what the panels actually sit on */
}
/* 2px pure-yellow bar along the foot of the pinned viewport,
   filling across the section's horizontal travel */
.showcase-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  height: 2px;
  pointer-events: none;
}
.showcase-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #ffff00;
}

.showcase-track {
  display: flex;
  height: 100%;
  width: 5446px;
  will-change: transform;
}
.hpanel { position: relative; height: 100%; flex: 0 0 auto; }

/* -- panel 1: Experience the Ultimate Shine (1655 wide) -- */
.hpanel-shine { width: 1655px; }
.shine-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.shine-scrim {
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 20% 50%, rgba(2, 1, 1, 0) 0%, rgb(18, 18, 18) 62%);
}
/* held off the foot of the viewport, as on the original: 60px below the
   row at the 900 reference, and the same on any taller window */
.shine-row {
  position: absolute;
  left: 50px;
  bottom: 60px;                /* page y 3190 − section y 2647 == top 543 */
  width: 1215px;
  display: flex;
  gap: 90px;
}
.shine-title {
  flex: 0 0 665px;             /* wraps as "Experience / the Ultimate / Shine" */
  width: 665px;
  font-family: var(--f-poppins);
  font-size: 110px;
  font-weight: 600;
  line-height: 99px;
  letter-spacing: -5.5px;
  color: #fff;
}
.shine-title strong { font-weight: 700; }
.shine-lead {
  align-self: flex-start;
  margin-top: 173px;
  width: 460px;
  font-family: var(--f-poppins);
  font-size: 15px;
  font-weight: 400;
  line-height: 24.75px;
  color: #fff;
}

.badge {
  position: absolute;
  left: 1402px;
  bottom: 40px;                /* == top 633 at the 900 reference */
  width: 227px; height: 227px;
  display: grid;
  place-items: center;
}
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.badge-ring text {
  font-family: var(--f-dmsans);
  font-size: 21px;
  fill: #fff;
}
.badge-dot {
  width: 180px; height: 180px;
  display: grid; place-items: center;
  border: 1px solid #ff6700;
  border-radius: 50%;
  color: #fff;
  transition: background-color .3s var(--ease);
}
.badge-dot svg { width: 46px; height: 46px; }


/* -- panel 2: Loved by Thousands (1336 wide) -- */
.hpanel-loved { width: 1336px; }
.hpanel-loved h2 {
  position: absolute;
  font-family: var(--f-poppins);
  font-size: 200px;
  font-weight: 600;
  line-height: 180px;
  letter-spacing: -10px;
  width: 1076px;
}
/* this panel is centred on the original rather than held to either edge,
   so every offset is written against the middle: `50% - 450px` is the
   top of the 900 reference frame */
.loved-fill { left: 130px; top: calc(50% - 180px); color: var(--cyan); z-index: 2; }
.loved-outline {
  left: 112px; top: calc(50% - 192px);
  width: 1110px !important;
  color: transparent;
  -webkit-text-stroke: 1px var(--cyan);
  z-index: 3;
}
.hpanel-loved img { position: absolute; border-radius: 20px; object-fit: cover; z-index: 4; }
.loved-a { left: 441px; top: calc(50% + 162px); width: 328px; height: 410px; }
.loved-b { left: 1002px; top: calc(50% + 288px); width: 160px; height: 200px; }
.loved-c { left: 1056px; top: calc(50% - 153px); width: 280px; height: 350px; }

/* -- panel 3: full-bleed photo (675 wide) -- */
.hpanel-photo { width: 675px; }
.hpanel-photo img { width: 100%; height: 100%; object-fit: cover; }

/* -- panel 4: Our Products (1782 wide) -- */
.hpanel-products { width: 1782px; }
.crystal {
  position: absolute;
  left: 638px;                  /* page 4302 − panel origin 3664 */
  top: 0;
  width: 1024px; height: 1024px;
  object-fit: contain;
  opacity: .38;            /* measured on the live element */
}
.hp-copy {
  position: absolute;
  left: 68px;
  top: 70px;
  width: 360px;
  z-index: 2;
}
.hp-copy h2 {
  font-family: var(--f-poppins);
  font-size: 100px;
  font-weight: 600;
  line-height: 90px;
  letter-spacing: -5px;
  color: #fff;
}
.hp-copy p {
  margin-top: 22px;
  font-family: var(--f-roboto);
  font-size: 18px;
  font-weight: 400;
  line-height: 24.75px;
  color: #fff;
}

.hp-cards { position: absolute; left: 560px; top: 39px; z-index: 2; }
.hp-row { display: flex; gap: 20px; padding: 10px; }
.hp-row-2 { margin-left: 125px; }
.hp-card {
  width: 230px;
  padding: 15px;
  border-radius: 20px;
  background: #2e2e2e;
  text-align: center;
  transition: background-color .3s var(--ease);
}
.hp-card:hover { background: #fff; }
.hp-card:hover h3 { color: #000; }
.hp-card img { width: 200px; height: 200px; border-radius: 20px; object-fit: cover; }
.hp-card h3 {
  margin-top: 14px;
  min-height: 28px;
  font-family: var(--f-inter);
  font-size: 15px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: -.75px;
  color: #fff;
  transition: color .3s var(--ease);
}

/* =========================================================
   PRODUCTS — BURYU / ZALANG on black, cyan-deep type
   ========================================================= */
.products-head {
  height: 164px;
  display: grid;
  place-items: center;
  background: #000;
}
.products-head h1 {
  font-family: var(--f-poppins);
  font-size: 70px;
  font-weight: 600;
  line-height: 98px;
  color: var(--cyan-deep);
}

/* bounceIn* travels 3000px sideways/up, so the section must clip */
.product { background: #000; overflow: hidden; }
.product-inner {
  position: relative;
  width: 1440px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
}
.product-buryu { height: 555px; }
.product-zalang { height: 729px; }

.product-media { flex: 0 0 auto; }
.product-buryu  .product-media { flex: 0 0 535px; padding: 20px 0 0 20px; }
.product-zalang .product-media { flex: 0 0 483px; padding: 133px 20px 0 0; }
.product-media img { width: 100%; height: auto; object-fit: contain; }

.product-copy { flex: 1 1 auto; position: relative; z-index: 2; }
.product-buryu  .product-copy { padding: 70px 91px 0 20px; }
.product-zalang .product-copy { flex: 0 0 957px; padding: 20px 20px 0 91px; }

/* the faint gold dragon behind the BURYU copy — 499x475 @ (941,7685), 27% */
.product-buryu .dragon {
  position: absolute;
  left: 941px;
  top: -31px;
  width: 499px; height: 475px;
  opacity: .27;
  z-index: 0;
  pointer-events: none;
}

.product-copy h1 {
  font-family: var(--f-poppins);
  font-size: 60px;
  font-weight: 600;
  line-height: 84px;
  text-align: center;
  color: var(--cyan-deep);
}
.product-copy h2 {
  display: grid;
  gap: 39px;
  margin-top: 20px;
  font-family: var(--f-poppins);
  font-size: 30px;
  font-weight: 400;
  line-height: 39px;
  color: var(--cyan-deep);
}

/* =========================================================
   GALLERY — 700 tall stage, centre photo with peeking sides
   ========================================================= */
.gallery {
  position: relative;
  margin-top: -14px;          /* live gallery top = 8987 */
  height: 700px;
  background: #000;
  overflow: hidden;
}
.gallery-stage {
  position: absolute;
  left: 10px; right: 10px; top: 10px; bottom: 10px;
  overflow: hidden;
}
/* grab-and-drag, as on the original: it reports cursor:grab at rest and
   grabbing while held, and snaps a whole slide per drag */
.gallery-track {
  display: flex;
  gap: 0;
  height: 100%;
  will-change: transform;
  transition: transform .75s var(--ease);
  cursor: grab;
  touch-action: pan-y;
}
.gallery-track.is-grabbing { cursor: grabbing; }
.gallery-track.is-grabbing img { pointer-events: none; }
.gal-item {
  flex: 0 0 auto;
  width: 800px;               /* every slide is 800 wide on the original */
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: #0b0b0b;
  opacity: .5;
  cursor: inherit;            /* let the track's grab cursor through */
  transition: opacity .75s var(--ease);
}
.gal-item.is-lead { opacity: 1; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; }
/* the leading photo creeps in over its dwell; it holds where it is while
   the pointer is over the gallery, in step with the progress bar */
.gal-item.is-lead img { animation: galZoom 9s linear both; }
.gallery:hover .gal-item.is-lead img { animation-play-state: paused; }
@keyframes galZoom { from { transform: scale(1) } to { transform: scale(1.06) } }

.gal-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.gal-btn svg { width: 20px; height: 20px; }
.gal-prev { left: 26px; }
.gal-next { right: 26px; }
.gal-btn:hover { background: #fff; color: #000; }

.gallery-bar {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 8px;
  z-index: 6;
  pointer-events: none;
}
/* A dwell timer, not a position indicator: it fills across the 9s the
   slide is held. The original draws it into a canvas along the top of
   the module at white 25% with no groove behind it — main.js drives the
   width frame by frame, so no transition here. */
.gallery-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: rgba(255, 255, 255, .25);
}

/* =========================================================
   CONTACT — full viewport tall, #121212, 150px cyan headline. Content
   is centred as a group, same as SERVICES/DRIVE above.
   ========================================================= */
.contact {
  position: relative;
  margin-top: -15px;          /* live contact top = 9672 */
  height: calc(100vh / var(--zoom));
  overflow: hidden;
  background: var(--ink-contact);
}
/* the live section's dominant glow sits right of centre, around (1080,288) */
.blob-d { left: 1005px; top: calc(50% - var(--vh-ref) / 2 + 213px); background: rgba(124, 45, 190, .60); }
.blob-e { left: 255px;  top: calc(50% - var(--vh-ref) / 2 + 325px); width: 220px; height: 220px; background: rgba(196, 96, 24, .38); }

.contact-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  height: 100%;
  margin: 0 auto;
}
.contact h2 {
  position: absolute;
  left: -2px;
  top: calc(50% - var(--vh-ref) / 2 + 313px);   /* == 313px at the 900 reference */
  width: 1144px;
  font-family: var(--f-poppins);
  font-size: 150px;
  font-weight: 600;
  line-height: 135px;
  letter-spacing: -7.5px;
  text-align: center;
  color: var(--cyan);
}
.contact-actions {
  position: absolute;
  left: 0; right: 0;
  top: calc(50% - var(--vh-ref) / 2 + 456px);   /* == 456px at the 900 reference */
  display: grid;
  justify-items: center;
  gap: 40px;
}
.pill {
  padding: 20px 30px;
  border: 1px solid #fff;
  border-radius: 50px;
  font-family: var(--f-poppins);
  font-size: 20px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -1px;
  color: #fff;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.pill:hover { background: #fff; color: #000; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: -43px;          /* live footer top = 10529 */
  background: var(--ink-footer);
  padding: 150px 0 0;
  overflow: hidden;
}
/* soft magenta bloom that sits behind and below the card */
.site-footer::before {
  content: "";
  position: absolute;
  left: 50%; top: 300px;
  width: 900px; height: 620px;
  margin-left: -450px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 122, 196, .22), transparent 75%);
  filter: blur(40px);
  pointer-events: none;
}

.footer-shell { position: relative; width: 1140px; max-width: calc(100% - 40px); margin: 0 auto; }

/* the ZALANG bottle peeking out above the card's top-left corner */
.footer-bottle {
  position: absolute;
  left: 30px;
  top: -122px;
  width: 100px; height: auto;
  transform: rotate(-16deg);
  pointer-events: none;
}

.footer-card {
  position: relative;
  padding: 24px 26px 30px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 20px;
  background: rgba(255, 255, 255, .022);
}
.footer-card p {
  font-family: var(--f-poppins);
  font-size: 40px;
  font-weight: 400;
  line-height: 45px;
  color: #fff;
}
.footer-card .cy { color: var(--cyan); }

.footer-bar {
  position: relative;
  width: 1140px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 100px 0 120px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.footer-social { display: flex; gap: 28px; padding-left: 24px; }
.footer-social a { color: #fff; opacity: .9; transition: color .25s var(--ease); }
.footer-social svg { width: 17px; height: 17px; }
.footer-social a:hover { color: var(--cyan); }

.copyright {
  font-family: var(--f-poppins);
  font-size: 15px;
  color: rgba(255, 255, 255, .55);
  text-align: center;
}
.to-top {
  justify-self: end;
  margin-right: 14px;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: #fff;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { background: #fff; color: #000; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .92);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 86vw; max-height: 86vh; object-fit: contain; }
.lb-close {
  position: absolute; right: 28px; top: 20px;
  font-size: 38px; line-height: 1; color: #fff;
}
.lb-nav {
  position: absolute; top: 50%;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: #fff;
}
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { left: 28px; }
.lb-next { right: 28px; }
.lb-nav:hover, .lb-close:hover { color: var(--cyan); }

 /* =========================================================
   ENTRANCE ANIMATIONS
   The original is Elementor + animate.css: elements are held at
   visibility:hidden until they enter the viewport, then run one
   keyframe animation. Durations are Elementor's: 1.25s normally,
   2s with `animated-slow`.
   ========================================================= */
/* gated on the `js` flag set in <head>, so the copy is never
   stranded invisible if the script fails to run */
.js [data-anim] { visibility: hidden; }
.js [data-anim].is-animated { visibility: visible; }

.is-animated {
  animation-duration: 1.25s;
  animation-fill-mode: both;
}
[data-anim-slow].is-animated { animation-duration: 2s; }

.anim-fadeIn         { animation-name: fadeIn; }
.anim-bounceInLeft   { animation-name: bounceInLeft; }
.anim-bounceInRight  { animation-name: bounceInRight; }
.anim-bounceInDown   { animation-name: bounceInDown; }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

@keyframes bounceInLeft {
  from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(.215, .61, .355, 1); }
  0%   { opacity: 0; transform: translate3d(-3000px, 0, 0) scaleX(3); }
  60%  { opacity: 1; transform: translate3d(25px, 0, 0) scaleX(1); }
  75%  { transform: translate3d(-10px, 0, 0) scaleX(.98); }
  90%  { transform: translate3d(5px, 0, 0) scaleX(.995); }
  to   { transform: translate3d(0, 0, 0); }
}
@keyframes bounceInRight {
  from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(.215, .61, .355, 1); }
  from { opacity: 0; transform: translate3d(3000px, 0, 0) scaleX(3); }
  60%  { opacity: 1; transform: translate3d(-25px, 0, 0) scaleX(1); }
  75%  { transform: translate3d(10px, 0, 0) scaleX(.98); }
  90%  { transform: translate3d(-5px, 0, 0) scaleX(.995); }
  to   { transform: translate3d(0, 0, 0); }
}
@keyframes bounceInDown {
  from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(.215, .61, .355, 1); }
  0%   { opacity: 0; transform: translate3d(0, -3000px, 0) scaleY(3); }
  60%  { opacity: 1; transform: translate3d(0, 25px, 0) scaleY(.9); }
  75%  { transform: translate3d(0, -10px, 0) scaleY(.95); }
  90%  { transform: translate3d(0, 5px, 0) scaleY(.985); }
  to   { transform: translate3d(0, 0, 0); }
}

/* the two bottles drift a little under the pointer */
[data-mousetrack] { will-change: transform; }
[data-mousetrack] img { transition: transform .6s cubic-bezier(.22, 1, .36, 1); }

/* the polaroids in the Loved panel glide against the track as it moves */
.loved-a, .loved-b, .loved-c { will-change: transform; }

/* =========================================================
   SCALING
   The reference layout is a fixed 1440 grid. Below that the whole
   page is scaled down proportionally so the composition holds,
   then it re-flows into a stacked layout on small screens.
   ========================================================= */
@media (max-width: 1439px) and (min-width: 861px) {
  /* Scale the whole 1440 grid down so the composition is preserved.
     `zoom` is used rather than a transform because a transform would
     create a containing block and break the pinned showcase's sticky.
     main.js refines this to the exact client width (minus scrollbar). */
  :root { --zoom: calc(100vw / 1440px); }   /* length ÷ length -> number */
  body { zoom: 0.9; }                       /* fallback for old engines */
  body { zoom: var(--zoom); }
}

@media (max-width: 860px) {
  :root { --container: 100%; --vh-ref: auto; }

  .site-header { height: 64px; }
  .brand img { width: 58px; height: 61px; }
  .nav-toggle { display: grid; right: 16px; opacity: 1; }
  .nav-overlay-inner { left: 28px; right: 28px; top: 96px; width: auto; }
  .overlay-links a { font-size: 38px; line-height: 62px; }
  .overlay-social { flex-wrap: wrap; gap: 18px; margin-top: 28px; }

  .hero { height: 78vh; min-height: 460px; }
  .hero-lockup { width: 84vw; height: auto; top: 46%; }
  .hero-cue { top: auto; bottom: 40px; }

  .services { height: auto; padding: 92px 20px 64px; }
  .services-inner { width: 100%; }
  .tab-dots {
    position: relative;
    left: auto;
    top: auto;
    flex-direction: row;
    width: 200px;
    height: 30px;
    margin-bottom: 26px;
  }
  .tab-dots::before { width: calc(100% - 20px); height: 1px; }
  .services-copy { position: static; width: 100%; }
  .svc-item h2 { font-size: 34px; line-height: 40px; }
  .svc-body p,
  .svc-bodies .svc-item:not(:first-child) .svc-body p { font-size: 16px; line-height: 27px; }
  .work { position: static; width: 100%; height: auto; margin-top: 34px; overflow: hidden; }
  .work-rail { position: static; gap: 16px; }
  .work-card, .work-card.is-lead { flex-basis: 200px; width: 200px; height: 262px; margin-top: 0; }
  .work-nav { position: static; margin-top: 18px; }

  .drive { height: auto; padding: 74px 20px; }
  .drive-inner { width: 100%; height: auto; }
  .drive-copy { position: static; width: 100%; }
  .drive-title { font-size: 52px; line-height: 50px; letter-spacing: -2px; }
  .drive-lead { width: 100%; font-size: 16px; line-height: 27px; }
  .drive-collage { position: relative; height: 320px; margin-top: 34px; }
  .shot-a { left: 0;    top: 30px;  width: 210px; height: 210px; }
  .shot-b { left: 150px; top: 0;    width: 96px;  height: 96px;  }
  .shot-c { left: 190px; top: 150px; width: 130px; height: 130px; }
  .scroll-down { position: static; display: block; width: max-content; margin: 26px auto 0; transform: none; }

  /* the pin is desktop-only; the panels stack */
  .showcase { background: #000; }
  .showcase-pin { position: static; height: auto; overflow: visible; }
  .showcase-track { display: block; width: 100%; transform: none !important; }
  .hpanel { width: 100% !important; height: auto; }
  .hpanel-shine { padding: 74px 20px 90px; background: var(--ink); }
  .shine-bg, .shine-scrim { display: none; }
  .shine-row { position: static; width: 100%; display: block; }
  .shine-title { flex: 0 0 auto; width: 100%; font-size: 46px; line-height: 46px; letter-spacing: -2px; }
  .shine-lead { margin: 22px 0 0; width: 100%; font-size: 15px; }
  .badge { position: relative; inset: auto; margin: 34px auto 0; width: 150px; height: 150px; }
  .badge-dot { width: 120px; height: 120px; }
  .badge-ring text { font-size: 30px; letter-spacing: 6px; }

  .hpanel-loved { padding: 66px 20px; background: #000; }
  .hpanel-loved h2 { position: static; width: 100% !important; font-size: 54px; line-height: 52px; letter-spacing: -2px; }
  .loved-outline { display: none; }
  .hpanel-loved img { position: static; margin-top: 16px; width: 100%; height: 220px; }
  .hpanel-photo { height: 300px; }
  .hpanel-products { padding: 66px 20px; background: #000; }
  .crystal { position: absolute; left: 50%; top: 40px; width: 320px; height: 320px; margin-left: -160px; opacity: .35; }
  .hp-copy { position: static; width: 100%; }
  .hp-copy h2 { font-size: 46px; line-height: 46px; letter-spacing: -2px; }
  .hp-cards { position: static; margin-top: 30px; }
  .hp-row { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .hp-row-2 { margin-left: 0; margin-top: 14px; }
  .hp-card { width: calc(50% - 7px); }
  .hp-card img { width: 100%; height: 150px; }

  .products-head { height: auto; padding: 54px 20px; }
  .products-head h1 { font-size: 36px; line-height: 44px; text-align: center; }
  .product { padding: 0 20px 54px; }
  .product-buryu, .product-zalang { height: auto; }
  .product-inner { flex-direction: column; width: 100%; }
  .product-zalang .product-inner { flex-direction: column-reverse; }
  .product-media, .product-buryu .product-media, .product-zalang .product-media {
    width: 220px; margin: 0 auto; padding: 0;
  }
  .product-copy, .product-buryu .product-copy, .product-zalang .product-copy { padding: 24px 0 0; }
  .product-copy h1 { font-size: 34px; line-height: 44px; }
  .product-buryu .dragon { display: none; }
  .product-copy h2 { gap: 20px; font-size: 17px; line-height: 27px; }

  .gallery { height: 420px; }
  .gal-item { width: 190px; }
  .gal-item.is-lead { width: 300px; }
  .gal-prev { left: 12px; }
  .gal-next { right: 12px; }

  .contact { height: auto; padding: 74px 20px 90px; }
  .contact-inner { width: 100%; height: auto; }
  .contact h2 { position: static; width: 100%; font-size: 54px; line-height: 54px; letter-spacing: -2px; }
  .contact-actions { position: static; margin-top: 34px; gap: 18px; }
  .pill { font-size: 15px; padding: 16px 22px; text-align: center; }

  .site-footer { padding: 70px 0 0; }
  .site-footer::before { top: 120px; width: 420px; height: 320px; margin-left: -210px; }
  .footer-shell { max-width: calc(100% - 32px); }
  .footer-bottle { left: 14px; top: -62px; width: 54px; }
  .footer-card { padding: 20px 18px 24px; }
  .footer-card p { font-size: 21px; line-height: 30px; }
  .footer-bar {
    max-width: calc(100% - 32px);
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding: 44px 0 48px;
  }
  .footer-social { padding-left: 0; }
  .to-top { margin-right: 0; }
  .to-top { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .typewriter::after { animation: none; }
  .svc-panel { animation: none; }
  .services-bg img { transition: opacity .4s linear; transform: none; animation: none; }
  .services-bg img.is-current { transform: none; }
}
