/* ==========================================================================
   ClickOnMedia — landing page
   Design reference: Reference/ClickOnMedia.png (1440px frame, exported @1.5x)
   ========================================================================== */

@font-face {
  font-family: "Host Grotesk";
  src: url("../fonts/HostGrotesk-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Pixelify Sans";
  src: url("../fonts/PixelifySans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --navy: #0d0d1c;
  --navy-2: #13132a;
  --red: #dc4f35;
  --red-hover: #e8624a;
  --ink: #0d0d1c;
  --ink-2: #2c2c38;
  --grey: #525266;
  --rule: #d9d9d9;
  --white: #fff;

  --f-display: "Host Grotesk", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-pixel: "Pixelify Sans", "Host Grotesk", monospace;

  --gutter: clamp(20px, 4.1667vw, 60px);
  --container: 1320px;
  --nav-top: clamp(12px, 1.875vw, 27px);
  --nav-h: 58px;
  --ribbon-h: 41px;
  --ribbon-bottom: calc(clamp(10px, 2vh, 22px) + 1.2vw); /* + the tilt's drop at the left end */
  --ribbon-gap: clamp(18px, 3.4vh, 34px);

  --fs-xl: clamp(34px, 3.611vw, 60px);   /* 52px @1440 */
  --fs-lg: clamp(30px, 3.194vw, 54px);   /* 46px @1440 */
  --fs-md: clamp(26px, 2.361vw, 34px);   /* 34px @1440 */
  --fs-sm: clamp(21px, 1.806vw, 26px);   /* 26px @1440 */

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font: 400 16px/1.625 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

[tabindex="-1"]:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  font-weight: 500;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-lg);
  line-height: 1.25;
  letter-spacing: 0;
}
.display--xl { font-size: var(--fs-xl); line-height: 1.26; }
.px {
  font-family: var(--f-pixel);
  font-weight: 400;
  letter-spacing: .01em;
}
.dot { color: var(--red); }
.line { display: block; }
.line__in { display: block; }

.eyebrow {
  font: 400 14px/1.4 var(--f-body);
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 13px;
  border-radius: 6px;
  font: 500 16px/1 var(--f-body);
  white-space: nowrap;
  /* no transform transition: GSAP reveals animate these buttons' transforms */
  transition: background-color .25s, border-color .25s, color .25s, translate .25s var(--ease-out);
}
.btn:active { translate: 0 1px; }
.btn { position: relative; }
/* 44px-tall hit area regardless of the visual button height */
.btn::before { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 22px); bottom: calc(50% - 22px); }
.btn--sm { height: 39px; padding: 0 10.5px; font-size: 14px; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-hover); }
.btn--ghost {
  /* reference fill #383742: dark enough that bright scenery behind cannot wash out the label */
  background: rgba(56, 55, 66, .82);
  border: 1px solid rgba(255, 255, 255, .32);
  color: var(--white);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(78, 76, 90, .9); border-color: rgba(255, 255, 255, .5); }
.btn--light { background: var(--white); color: var(--ink); height: 43px; padding: 0 13px; }
.btn--light:hover { background: #f1ece9; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 14px/1 var(--f-body);
  color: var(--ink-2);
}
.link-arrow--light { color: var(--white); }
/* Animated underline for text links: draws in from the left on hover / keyboard focus,
   and retracts to the right on leave. */
.u-line {
  background: linear-gradient(currentColor, currentColor) right 100% / 0 1px no-repeat;
  background-origin: content-box; /* stays under the text even when the link has padding */
  transition: background-size .38s var(--ease-out);
}
a:hover .u-line,
a:focus-visible .u-line,
a.u-line:hover,
a.u-line:focus-visible { background-size: 100% 1px; background-position-x: left; }
.link-arrow,
.nav__logo,
.footer__logo { position: relative; }
.link-arrow::before,
.nav__logo::before,
.footer__logo::before { content: ""; position: absolute; inset: -12px -6px; }
.icon-circle {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--red);
  transition: transform .4s var(--ease-out), background-color .25s;
}
.icon-circle svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.link-arrow:hover .icon-circle { transform: rotate(45deg); background: var(--red-hover); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: var(--nav-top);
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 1101px);
  height: var(--nav-h);
  padding: 0 9px 0 16px;
  border-radius: 10px;
  background: rgba(9, 16, 38, .74);
  border: 1px solid rgba(124, 136, 168, .22);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, .6);
}
.nav__logo {
  justify-self: start;
  display: block;
  line-height: 0;
}
.nav__logo img { height: 42px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 31px;
  font: 400 14px/1 var(--f-body);
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  opacity: .96;
}
.nav__plus {
  position: relative;
  width: 10px; height: 10px;
}
.nav__plus::before,
.nav__plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 1.4px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .4s var(--ease-out);
}
.nav__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.nav__links a:hover .nav__plus::after { transform: translate(-50%, -50%) rotate(180deg); }
.nav__cta { justify-self: end; }

.nav__toggle {
  display: none;
  justify-self: end;
  width: 44px; height: 44px;
  border-radius: 8px;
  place-items: center;
}
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 18px; height: 1.6px;
  background: #fff;
  border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .2s;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before,
.nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --nav-h: 54px; }
  .nav__logo img { height: 38px; }
  .nav__pill { grid-template-columns: 1fr auto auto; gap: 8px; padding-right: 7px; }
  .nav__toggle { display: grid; }
  .nav__cta { height: 36px; font-size: 13px; }
  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(9, 16, 38, .94);
    border: 1px solid rgba(124, 136, 168, .22);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s, transform .4s var(--ease-out), visibility 0s .4s;
  }
  .nav__links a { justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease-out); }
}
@media (max-width: 420px) {
  .nav__cta { display: none; }
}

/* ==========================================================================
   01–03 · CINEMATIC SEQUENCE
   Base styles = stacked, static layout (no-JS / reduced motion).
   html.is-cinematic switches to the pinned, scroll-driven stage.
   ========================================================================== */
.cinema { position: relative; background: var(--navy); }

.scene {
  --sw: 2160; --sh: 1400;
  position: relative;
  background: var(--navy);
}
.scene--forecourt  { --sh: 1400; --gx: 879; --gy: 199; --gw: 398; --gh: 708; }
.scene--supermarket{ --sh: 1501; --gx: 861; --gy: 320; --gw: 439; --gh: 833; }
.scene--cafe       { --sh: 1501; --gx: 798; --gy: 181; --gw: 560; --gh: 962; }

.scene__clip { position: relative; overflow: hidden; }
.scene__media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--sw) / var(--sh);
}
.scene__img { width: 100%; height: 100%; object-fit: cover; }
.scene__glass {
  position: absolute;
  left: calc(var(--gx) / var(--sw) * 100%);
  top: calc(var(--gy) / var(--sh) * 100%);
  width: calc(var(--gw) / var(--sw) * 100%);
  height: calc(var(--gh) / var(--sh) * 100%);
  overflow: hidden;
}
.scene__glass img { width: 100%; height: 100%; object-fit: cover; }

.scene__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(13, 13, 28, .96) 0%, rgba(13, 13, 28, .72) 16%, rgba(13, 13, 28, 0) 42%),
    linear-gradient(to bottom, rgba(13, 13, 28, .35) 0%, rgba(13, 13, 28, 0) 18%);
}
.scene__dim { position: absolute; inset: 0; background: var(--navy); opacity: 0; pointer-events: none; }
.scene__feather { display: none; }

.panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 428px);
  align-items: start;
  gap: 40px;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding-bottom: clamp(40px, 7vw, 88px);
}
.panel__main { min-width: 0; }
.panel__body {
  justify-self: end;
  max-width: 428px;
  text-align: right;
  font-size: 16px;
  line-height: 1.8;
  padding-top: 6px;
  color: rgba(255, 255, 255, .94);
}
.panel__actions .line__in { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 60px; }
.panel--hero .panel__body { padding-top: 10px; }
.panel--hero h1 .line__in { white-space: nowrap; }

/* Hero copy sits either side of the pylon, never over it. In the cinematic layout JS sets
   --copy-l / --copy-r from where the pylon actually renders, and --hero-fs if a line must shrink. */
@media (min-width: 1024px) {
  .panel--hero .panel__main { max-width: var(--copy-l, none); }
  .panel--hero .panel__body { max-width: min(428px, var(--copy-r, 428px)); }
  .panel--hero .display--xl { font-size: var(--hero-fs, var(--fs-xl)); }
  .panel--hero .pixel-dots--hero { width: min(430px, var(--copy-r, 430px)); }
}

/* Red pixel-dot accents (drawn by JS on canvas) */
.pixel-dots { position: absolute; pointer-events: none; }
.pixel-dots--hero  { right: -10px; bottom: clamp(22px, 5vw, 64px); width: 430px; height: 78px; }
.pixel-dots--scene { right: 0; bottom: clamp(10px, 3vw, 40px); width: 320px; height: 60px; }

/* ---------- Ribbons ---------- */
.ribbon {
  position: relative;
  overflow: hidden;
  height: var(--ribbon-h);
  display: flex;
  align-items: center;
  background: linear-gradient(90deg,
    rgba(13, 13, 28, 0) 0%, #3a1e2b 5%, #472c48 11%, #393b80 19%, #5a4071 28%,
    #7a4362 33%, #9b4853 39%, #bc4b44 44%, #dc5035 50%, #d1623a 55%, #c6743d 61%,
    #bb8641 66%, #9e8045 72%, #6c5c44 78%, #453f40 83%, #282738 89%, #16182c 95%, rgba(13, 13, 28, 0) 100%);
}
.ribbon__track {
  display: flex;
  flex: none;
  white-space: nowrap;
  will-change: transform;
}
.ribbon__track span {
  padding-inline: 28px;
  font: 400 19px/1 var(--f-pixel);
  color: #fff;
  letter-spacing: .005em;
}
.ribbon--angled {
  width: 104%;
  margin-left: -2%;
  transform: rotate(-1.33deg);
  transform-origin: 50% 50%;
}
/* The angled ribbon belongs to the hero: in flow under the copy (static), or along the bottom
   of the first screen (cinematic). */
.scene--forecourt > .ribbon--angled { margin-top: 24px; z-index: 4; }

/* Flyer (only meaningful in cinematic mode) */
.flyer { display: none; }

/* ---------- Static (fallback) layout tweaks ---------- */
html:not(.is-cinematic) .cinema { overflow-x: clip; }
html:not(.is-cinematic) .scene--supermarket { margin-top: 72px; }
/* Static hero: copy follows the photo (overlapping only its navy fade) so it never sits on the pylon */
html:not(.is-cinematic) .panel.panel--hero { position: relative; margin-top: 0; }

@media (max-width: 900px) {
  html:not(.is-cinematic) .panel {
    position: relative;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: -60px;
    padding-bottom: 56px;
  }
  html:not(.is-cinematic) .panel__body { justify-self: start; text-align: left; }
}

/* ---------- Cinematic stage ---------- */
html.is-cinematic .cinema__stage {
  position: relative;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  perspective: 1500px;
  perspective-origin: 50% 40%;
}
/* Flat stacking (z-index wins over depth sorting) with its own perspective,
   so a receding scene can never pop in front of the one rising over it. */
html.is-cinematic .cinema__world {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  perspective-origin: 50% 38%;
  transform-style: flat;
}
html.is-cinematic .scene {
  position: absolute;
  inset: 0;
  will-change: transform;
  backface-visibility: hidden;
}
html.is-cinematic .scene--forecourt { z-index: 1; }
html.is-cinematic .scene--supermarket { z-index: 2; }
html.is-cinematic .scene--cafe { z-index: 3; }
html.is-cinematic .scene__clip { position: absolute; inset: 0; background: var(--navy); }
html.is-cinematic .scene__media {
  position: absolute;
  left: 0; top: 0;
  aspect-ratio: auto;
  transform-origin: 50% 40%;
  will-change: transform;
}
/* When a scene is narrower than the viewport (set by JS via --fade), blend its side edges into navy */
html.is-cinematic .scene__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--navy) 0, rgba(13, 13, 28, 0) var(--fade-t, 0px)),
    linear-gradient(to top, var(--navy) 0, rgba(13, 13, 28, 0) var(--fade-b, 0px)),
    linear-gradient(90deg, var(--navy) 0, rgba(13, 13, 28, 0) var(--fade, 0px),
      rgba(13, 13, 28, 0) calc(100% - var(--fade, 0px)), var(--navy) 100%);
}
/* soft feathered top edge that travels with an incoming scene */
html.is-cinematic .scene__feather {
  display: block;
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  height: 18vh;
  background: linear-gradient(to top, var(--navy) 0%, rgba(13, 13, 28, .82) 30%, rgba(13, 13, 28, 0) 100%);
  pointer-events: none;
}
html.is-cinematic .scene--forecourt .scene__feather { display: none; }
html.is-cinematic .scene__glass img { visibility: hidden; }
html.is-cinematic .scene__shade {
  background:
    linear-gradient(to top, rgba(13, 13, 28, .97) 0%, rgba(13, 13, 28, .78) 15%, rgba(13, 13, 28, .2) 34%, rgba(13, 13, 28, 0) 46%),
    linear-gradient(to bottom, rgba(13, 13, 28, .45) 0%, rgba(13, 13, 28, 0) 22%);
}
html.is-cinematic .panel {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  padding-bottom: clamp(36px, 7.4vh, 76px);
}
html.is-cinematic .panel--hero .panel__actions .line__in { margin-top: clamp(28px, 5.2vh, 56px); }
html.is-cinematic .scene--forecourt > .ribbon--angled {
  position: absolute;
  left: 0;
  bottom: var(--ribbon-bottom);
  margin-top: 0;
}
/* Hero copy sits above the ribbon: its own height, its tilt (±1.2vw) and a gap */
html.is-cinematic .panel--hero {
  padding-bottom: calc(var(--ribbon-bottom) + var(--ribbon-h) + 1.3vw + var(--ribbon-gap));
}
/* Portrait screens stack the copy under the screen: give it a taller backing shade. */
@media (max-aspect-ratio: 9/10) {
  html.is-cinematic .scene__shade {
    background:
      linear-gradient(to top, rgba(13, 13, 28, .97) 0%, rgba(13, 13, 28, .9) 32%, rgba(13, 13, 28, .76) 46%, rgba(13, 13, 28, 0) 64%),
      linear-gradient(to bottom, rgba(13, 13, 28, .45) 0%, rgba(13, 13, 28, 0) 18%);
  }
}
html.is-cinematic .panel--hero h1 .line { overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }

/* Opening shot: hold the hero until the intro timeline takes over */
html.is-cinematic.is-intro .cinema__world,
html.is-cinematic.is-intro .panel--hero,
html.is-cinematic.is-intro .nav__pill { visibility: hidden; }

html.is-cinematic .flyer {
  display: block;
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  z-index: 10;
  transform-style: preserve-3d;
  will-change: transform, width, height;
  pointer-events: none;
  --glow: rgba(64, 132, 255, .55);
}
.flyer__body,
.flyer__intro,
.flyer__screen,
.flyer__layer {
  position: absolute;
  inset: 0;
}
.flyer__body,
.flyer__intro { transform-style: preserve-3d; will-change: transform; }
.flyer__screen {
  overflow: hidden;
  background: #07080d;
  border-radius: 1px;
}
.flyer__layer img { width: 100%; height: 100%; object-fit: cover; }
.flyer__scan {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 3px;
  transform: translateY(-100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, .2), #fff 30%, #fff 70%, rgba(255, 255, 255, .2));
  box-shadow: 0 0 18px 4px rgba(255, 255, 255, .55), 0 0 2px 1px #fff;
}
.flyer__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .22) 45%, rgba(255, 255, 255, 0) 60%);
  background-size: 260% 100%;
  background-position: 100% 0;
  opacity: 0;
}
.flyer__glow {
  position: absolute;
  inset: -34% -46%;
  background: radial-gradient(closest-side, var(--glow), rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transform: translateZ(-1px);
}

/* ==========================================================================
   OUR PRODUCTS & SERVICES
   ========================================================================== */
.products {
  position: relative;
  background: #fff;
  color: var(--ink);
}
.products__pin {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding: 98px 0 92px;
}
.products__head { text-align: center; }
.products__head .display { margin-top: 13px; color: #121421; }
.products__grid {
  display: grid;
  grid-template-columns: minmax(200px, 328fr) minmax(0, 664fr) minmax(258px, 328fr);
  align-items: stretch;
  margin-top: 34px;
}
.products__intro { padding-top: 0; }
.products__name {
  font: 400 var(--fs-md)/1.2 var(--f-display);
  color: var(--ink);
}
.products__intro .link-arrow { margin-top: 18px; }

.products__media {
  position: relative;
  height: var(--card-h, 674px);
  border-radius: 12px;
  overflow: hidden;
  background: #e9e9ec;
  touch-action: pan-y;
  isolation: isolate;
}
.products__track {
  display: flex;
  height: 100%;
  will-change: transform;
}
.products__slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}
.products__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: 50% 60%;
}

.products__list {
  --row: 36px;
  position: relative;
  align-self: end;
  padding-left: 28px;
  padding-bottom: 6px;
  font: 400 16px/var(--row) var(--f-body);
  color: var(--grey);
}
.products__list li {
  position: relative;
  white-space: nowrap;
  transition: color .45s, transform .55s var(--ease-out);
}
.products__list li.is-active { color: var(--ink); transform: translateX(16px); }
.products__list::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 0;
  width: 0; height: 0;
  border-left: 8px solid var(--red);
  border-top: 5.5px solid transparent;
  border-bottom: 5.5px solid transparent;
  transform: translateY(calc(var(--active, 0) * var(--row) + var(--row) / 2 - 5.5px));
  transition: transform .55s var(--ease-out);
}

.products__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 22px; /* 34px visual gap: the 44px-tall dash row centres its 2px lines */
}
.arrow-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--rule);
  transition: background-color .25s, transform .3s var(--ease-out);
}
.arrow-btn svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arrow-btn--next,
.arrow-btn.is-ready { background: var(--red); }
.arrow-btn:hover { transform: scale(1.12); }
.arrow-btn::after { content: ""; position: absolute; inset: -12px; }
.arrow-btn { position: relative; }
.arrow-btn[disabled] { background: var(--rule); cursor: default; transform: none; }
/* 5 × 51px dashes as designed; the group shrinks instead of overflowing on narrow screens */
.dashes { display: flex; gap: 4px; flex: 0 1 271px; min-width: 0; }
.dashes button {
  position: relative;
  flex: 1 1 0;
  min-width: 18px;
  height: 44px;
  display: grid;
  align-items: center;
}
.dashes span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--rule);
  overflow: hidden;
  position: relative;
}
.dashes span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.dashes button[aria-current="true"] span::after { transform: scaleX(1); }

/* ==========================================================================
   INDUSTRIES
   One viewport tall. With motion, the section pins and scroll steps through the three
   industries; otherwise the progress segments are clickable tabs.
   ========================================================================== */
.industries {
  position: relative;
  overflow: hidden;
  background: #2a2c3a;
}
.industries__bg { position: absolute; inset: 0; }
.industries__bg img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  filter: brightness(1.02) saturate(.85);
  opacity: 0;
  transition: opacity .8s var(--ease-inout);
}
.industries__bg img.is-active { opacity: 1; }
.industries__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 45%, rgba(40, 42, 58, 0), rgba(30, 32, 46, .35)),
    linear-gradient(to bottom, rgba(42, 48, 62, .25), rgba(60, 50, 58, .1) 60%, rgba(46, 40, 52, .4));
}
.industries__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-block: 57px 104px;
}

/* Tabs: a progress segment with the industry name under it. The current industry is white,
   the others grey; each one is clickable. */
.industries__tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.industries__tab {
  position: relative;
  display: grid;
  align-content: start;
  gap: 27px;
  padding-top: 0;
  text-align: left;
  color: rgba(255, 255, 255, .42);
  transition: color .45s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.industries__tab:hover { color: rgba(255, 255, 255, .72); }
.industries__tab.is-active { color: #fff; }
.industries__tab:not(.is-active) .dot { color: inherit; }
.industries__tab:focus-visible { outline-offset: 4px; }
.industries__bar {
  position: relative;
  display: block;
  height: 3px;
  border-radius: 3px;
  background: #525266;
  overflow: hidden;
}
.industries__bar i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #d6aca4, #d88070 50%, #db553d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.industries__tab.is-done i,
.industries__tab.is-active i { transform: scaleX(1); }
.industries__name {
  font: 400 var(--fs-sm)/1.2 var(--f-display);
  text-wrap: balance;
}
.pixel-dots--small { left: 34px; top: -14px; width: 340px; height: 34px; }

.industries__stage { margin-top: 72px; }
.industries__card {
  position: relative;
  width: min(100%, 899px);
  aspect-ratio: 1349 / 849;
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0b10;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
}
.industries__slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: opacity .7s var(--ease-inout), visibility 0s .7s;
}
.industries__slide.is-active { visibility: visible; opacity: 1; transition: opacity .7s var(--ease-inout); }
.industries__slide > img { width: 100%; height: 100%; object-fit: cover; }
/* Pinned layout: the scroll timeline drives slides, names, backdrops and fills inline */
.industries--scrub .industries__slide { visibility: visible; opacity: 1; transition: none; will-change: clip-path, transform; }
.industries--scrub .industries__bg img,
.industries--scrub .industries__bar i { transition: none; }
.lightbox-ad {
  position: absolute;
  left: 0; top: 0;
  width: 398px; height: 708px;
  transform-origin: 0 0;
  opacity: 0;
  pointer-events: none;
}
.lightbox-ad img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-ad::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 40%);
}

.industries__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-top: 74px;
}
.industries__aside {
  display: grid;
  justify-items: end;
  gap: 31px;
  text-align: right;
  padding-top: 2px;
  font-size: 16px;
  line-height: 1.6;
}

/* Fit the whole section in one viewport: the card is the flexible element, sized from the
   space left over (container query units), always keeping the photo's aspect ratio. */
@media (min-height: 500px) {
  .industries { height: 100vh; height: 100svh; }
  .industries__inner {
    height: 100%;
    padding-block: calc(var(--nav-top) + var(--nav-h) + clamp(14px, 2.4vh, 26px)) clamp(22px, 5vh, 56px);
  }
  .industries__tab { gap: clamp(16px, 3vh, 27px); }
  .industries__stage {
    flex: 1 1 0;
    min-height: 0;
    margin-block: clamp(14px, 3.4vh, 40px);
    container-type: size;
    display: grid;
    place-items: center;
  }
  .industries__card { width: min(100cqw, 899px, 100cqh * 1349 / 849); }
  .industries__foot { margin-top: 0; }
}
/* Tablets and phones (portrait): the card takes the full width and the free height, up to a
   gentle portrait crop; photos are cover-cropped around their screens (JS keeps the ads aligned). */
@media (min-height: 500px) and (max-width: 1023px) {
  .industries__card { width: 100%; height: min(100cqh, 115cqw); aspect-ratio: auto; }
  .industries__slide > img { object-position: 50% 50%; }
  .industries__foot { gap: 14px; }
  .industries__aside { gap: 12px; font-size: 15px; line-height: 1.5; }
}
@media (min-height: 500px) and (max-width: 640px) {
  .industries__foot .display { font-size: min(7vw, 32px); }
}
@media (max-width: 640px) {
  .industries__tabs { gap: 6px; }
  .industries__tab { gap: 12px; }
  .industries__name { font-size: clamp(13px, 3.9vw, 18px); line-height: 1.25; }
  .industries__tab { color: rgba(255, 255, 255, .5); }
  .industries__tab.is-active { color: #fff; }
  .pixel-dots--small { display: none; }
}

/* ==========================================================================
   SERVICES
   One viewport tall: heading at the top, the four services along the bottom.
   ========================================================================== */
.services {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
}
.services__led {
  position: absolute;
  left: 50%;
  top: 0;
  width: max(105.6%, 1100px);
  aspect-ratio: 1556 / 1011;
  transform: translateX(-50%);
  pointer-events: none;
}
.services__led img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
}
/* the wall switches instantly on hover — no crossfade */
.services__led img.is-active { opacity: 1; z-index: 2; }
.services__led::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(to bottom, rgba(13, 13, 28, .6) 0%, rgba(13, 13, 28, .56) 55%, rgba(13, 13, 28, .9) 78%, var(--navy) 92%),
    radial-gradient(70% 60% at 50% 40%, rgba(13, 13, 28, 0), rgba(13, 13, 28, .5));
}
.services__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding-top: max(98px, calc(var(--nav-top) + var(--nav-h) + 14px));
}
.services__sub {
  margin-top: 17px;
  font: 500 16px/1.5 var(--f-body);
  text-wrap: balance;
}
.services__sub span { color: var(--red); padding-inline: 2px; }
.services__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.service {
  position: relative;
  display: grid;
  align-content: start;
  gap: 9px;
  /* 343px tall with the title 190px down, as designed; both give way on shorter screens */
  min-height: min(343px, 46vh);
  padding: clamp(56px, calc(46vh - 153px), 190px) 28px 40px;
  text-align: left;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(110, 40, 38, 0) 0%, rgba(92, 34, 36, .55) 45%, rgba(122, 44, 40, .92) 100%);
  opacity: 0;
}
.service.is-active::before { opacity: 1; }
.service__title { font: 400 24px/1.25 var(--f-display); }
.service__desc { font-size: 16px; line-height: 1.625; color: rgba(255, 255, 255, .92); max-width: 288px; }
.service:focus-visible { outline-offset: -2px; border-radius: 0; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative;
  overflow-x: clip;
  padding: 255px 0 99px;
  background: var(--navy);
}
.cta__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #a2283a, #7a2448 40%, #8c2a3c 60%, #b8433a);
  -webkit-mask:
    radial-gradient(circle at 50% 50%, #000 2.3px, transparent 3.1px) 0 0 / 8.7px 8.7px,
    linear-gradient(#000, #000);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle at 50% 50%, #000 2.3px, transparent 3.1px) 0 0 / 8.7px 8.7px intersect,
    radial-gradient(120% 95% at 50% 60%, transparent 52%, #000 92%);
  opacity: .9;
}
@supports not (mask-composite: intersect) {
  .cta__dots { -webkit-mask: radial-gradient(circle at 50% 50%, #000 2.3px, transparent 3.1px) 0 0 / 8.7px 8.7px; opacity: .45; }
}
.cta__card {
  position: relative;
  min-height: 437px;
  border-radius: 16px;
}
.cta__wood {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: #8b3e22;
}
.cta__plate,
.cta__stage {
  position: absolute;
  right: 0; bottom: 0;
  height: 100%;
  aspect-ratio: 1980 / 656;
}
.cta__plate { background: url("../img/cta-wood.webp") right bottom / 100% 100% no-repeat; }
.cta__wood::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 60%;
  background: linear-gradient(90deg, rgba(122, 52, 28, .25), rgba(122, 52, 28, 0));
}
.cta__stage { pointer-events: none; }
.cta__kiosk {
  position: absolute;
  left: calc((1483 - 90) / 1980 * 100%);
  top: calc((9531 - 9776) / 656 * 100%);
  width: calc(476 / 1980 * 100%);
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35));
  will-change: transform;
}
.cta__content {
  position: relative;
  z-index: 2;
  /* stop short of the kiosk, which is anchored to the card's right edge */
  max-width: min(760px, calc(100% - 440px));
  padding: 47px 48px 47px;
}
.cta__content p { margin-top: 17px; max-width: 652px; }
.cta__sub {
  margin-top: 98px;
  font: 400 var(--fs-sm)/1.3 var(--f-display);
  text-wrap: balance;
}
.cta__content .btn { display: flex; width: max-content; margin-top: 15px; }

.ribbon--flat { margin: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--navy);
  padding: 76px 0 34px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}
.footer__logo { display: inline-block; line-height: 0; }
.footer__logo img { height: 64px; width: auto; }
.footer__brand { max-width: 420px; }
.footer__brand p { margin-top: 30px; color: #b6b6bb; }
.social { display: flex; gap: 20px; margin-top: 24px; }
.social a {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  color: #6e6e7c;
  transition: color .25s, transform .3s var(--ease-out);
}
.social a:hover { color: #fff; transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.social .fill { fill: currentColor; stroke: none; }
.footer__cols { display: flex; gap: 0; }
.footer__cols > div { width: 212px; }
.footer__cols > div:last-child { width: auto; min-width: 78px; }
.footer__head {
  font: 600 17px/1 var(--f-pixel);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.footer__cols ul { margin-top: 20px; display: grid; gap: 16px; font-size: 14px; line-height: 1.25; color: #9e9ea4; }
.footer__cols a { transition: color .2s; }
.footer__cols a:hover,
.footer__bottom a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
  padding-top: 27px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 14px;
  color: #7a7a83; /* reference #6e6e77 lifted to 4.5:1 on navy */
}
.footer__bottom ul { display: flex; gap: 24px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 1024px) and (max-width: 1279px) {
  .panel { grid-template-columns: minmax(0, 1fr) minmax(0, 350px); }
  /* The right-anchored wood plate slides its bright slats under the copy on narrower cards */
  .cta__wood::after {
    width: 74%;
    background: linear-gradient(90deg, rgba(128, 54, 30, .72) 0%, rgba(128, 54, 30, .62) 58%, rgba(128, 54, 30, 0) 100%);
  }
}

@media (max-width: 1200px) {
  .products__grid { grid-template-columns: 220px minmax(0, 1fr) 272px; column-gap: 0; }
  .products__list { padding-left: 24px; }
  .products__list::before { left: 30px; }
  .service { padding-inline: 22px; }
}

@media (max-width: 1023px) {
  .panel { grid-template-columns: 1fr; gap: 18px; }
  .panel__body { justify-self: start; text-align: left; max-width: 520px; padding-top: 0; }
  .pixel-dots--hero, .pixel-dots--scene { display: none; }
  html.is-cinematic .panel--hero .panel__actions .line__in { margin-top: 24px; }

  .products__pin { padding: 88px 0 80px; }
  .products__grid { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
  .products__intro { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .products__intro .link-arrow { margin-top: 0; }
  .products__media { height: auto; aspect-ratio: 664 / 600; }
  .products__list {
    align-self: start;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    padding-left: 0;
    font-size: 15px;
    --row: 32px;
  }
  .products__list::before { display: none; }
  .products__list li { padding-left: 18px; }
  .products__list li::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    border-left: 8px solid var(--red);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transform: translateY(-50%) scale(0);
    transition: transform .4s var(--ease-out);
  }
  .products__list li.is-active { transform: none; }
  .products__list li.is-active::before { transform: translateY(-50%) scale(1); }

  .industries__foot { flex-direction: column; gap: 22px; }
  .industries__aside { justify-items: start; text-align: left; gap: 18px; }

  .services__led { width: 150%; top: 40px; }
  .services__list { grid-template-columns: 1fr 1fr; }
  .service { min-height: 0; padding: clamp(28px, 5vh, 72px) 22px clamp(22px, 3.4vh, 32px); }

  .cta { padding: 160px 0 72px; }
  .cta__content { max-width: 100%; padding: 40px 32px 0; }
  .cta__card { min-height: 0; padding-bottom: calc(300px * 1.373 + 56px); }
  .cta__plate, .cta__stage { height: 300px; }
  .cta__plate { -webkit-mask: linear-gradient(to bottom, transparent, #000 35%); mask: linear-gradient(to bottom, transparent, #000 35%); }
  .cta__sub { margin-top: 36px; }

  .footer__top { flex-direction: column; gap: 40px; }
  .footer__cols > div { width: 50%; }
}

@media (max-width: 640px) {
  :root { --fs-xl: min(6.7vw, 40px); --fs-lg: min(8.2vw, 38px); }
  .panel__actions .line__in { gap: 10px; }
  /* Phones: a tighter hero copy block leaves more height for the whole pylon above it */
  :root { --ribbon-h: 32px; --ribbon-bottom: calc(10px + 1.2vw); --ribbon-gap: 12px; }
  html.is-cinematic .panel--hero { gap: 12px; }
  html.is-cinematic .panel--hero .panel__actions .line__in { margin-top: 16px; }
  .panel--hero .panel__body { font-size: 15px; line-height: 1.6; }
  .products__list { grid-template-columns: 1fr; }
  .services__head .display { font-size: min(8.2vw, 34px); }
  .services__sub { margin-top: 10px; font-size: 15px; }
  .services__inner { gap: 24px; padding-top: calc(var(--nav-top) + var(--nav-h) + 16px); }
  .service { gap: 6px; padding: 16px 14px; }
  .service__title { font-size: 20px; }
  .service__desc { font-size: 14px; line-height: 1.5; }
  .cta__content { padding: 32px 22px 0; }
  .cta__card { padding-bottom: calc(240px * 1.373 + 48px); }
  .cta__plate, .cta__stage { height: 240px; }
  .footer__bottom { flex-direction: column; }
  .ribbon__track span { font-size: 15px; padding-inline: 18px; }
}

@media (max-width: 1023px) {
  /* Desktop-only line break in the industries copy */
  .br-desk { display: none; }
  /* Tall narrow layouts put the blurred canopy glow behind the label; keep the top dark enough to read */
  .industries__bg::after {
    background:
      linear-gradient(to bottom, rgba(22, 24, 36, .84) 0%, rgba(22, 24, 36, .6) 16%, rgba(30, 32, 46, .18) 34%, rgba(30, 32, 46, 0) 46%),
      radial-gradient(120% 80% at 50% 45%, rgba(40, 42, 58, 0), rgba(30, 32, 46, .35)),
      linear-gradient(to bottom, rgba(42, 48, 62, .25), rgba(60, 50, 58, .1) 60%, rgba(46, 40, 52, .4));
  }
}

/* Touch devices: 44px targets. Spacing grows only where expanded hit areas would otherwise overlap. */
@media (pointer: coarse) {
  .nav__links a { padding-block: 15px; }
  .social { gap: 24px; }
  .social a { position: relative; }
  .social a::after { content: ""; position: absolute; inset: -12px; }
  .footer__cols ul { gap: 2px; }
  .footer__cols a { display: inline-block; padding-block: 13px; }
  .footer__bottom a { display: inline-block; padding-block: 13px; margin-block: -13px; }
}

/* Reduced motion: keep the static layout, remove non-essential transitions */
/* Very short phones: tighter hero copy so the pylon keeps some size above it */
@media (max-width: 640px) and (max-height: 700px) {
  .panel--hero .panel__body { font-size: 14px; line-height: 1.5; }
  html.is-cinematic .panel--hero .panel__actions .line__in { margin-top: 12px; gap: 8px; }
  .panel--hero .btn { height: 36px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
