/* AloXR — base styles
   Restraint is the point: white ground, one accent, media does the talking. */

:root {
  --ink: #111111;
  --ink-soft: #5a5a5a;
  --rule: #e6e6e6;
  --bg: #ffffff;
  --accent: #111111;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1440px;
  --nav-h: 72px;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* Browsers default <figure> to margin: 1em 40px — that 40px indents every
   media block away from the text. Zero it. */
figure { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; font-size: 15px;
}
.skip:focus { left: 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
}
.nav__logo img { height: 22px; width: auto; }
.nav__links { display: flex; gap: clamp(22px, 3vw, 44px); align-items: center; }
.nav__links a {
  font-size: 15px; letter-spacing: .01em; color: var(--ink-soft);
  padding: 6px 0; position: relative; transition: color .2s ease;
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
}

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 10px; margin-right: -10px;
}
.nav__toggle span {
  display: block; width: 22px; height: 1px; background: var(--ink); margin: 5px 0;
  transition: transform .25s ease, opacity .2s ease;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- home ---------- */
.splash { padding: clamp(28px, 5vw, 60px) 0 0; }
.splash__frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #f4f4f4; overflow: hidden;
}
.splash__frame video { width: 100%; height: 100%; object-fit: cover; }

.statement { padding: clamp(72px, 12vw, 160px) 0 clamp(56px, 9vw, 120px); }
.statement h1 {
  font-size: clamp(38px, 6.4vw, 84px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 clamp(28px, 4vw, 48px);
  max-width: 16ch;
}
.statement p {
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
}

/* ---------- logo carousel ---------- */
.clients { padding: clamp(56px, 8vw, 110px) 0 clamp(72px, 11vw, 150px); }
.clients__label {
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 clamp(28px, 4vw, 48px);
}
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item {
  flex: 0 0 auto; width: 210px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 clamp(18px, 2.6vw, 40px);
}
.marquee__item img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  opacity: .62; transition: opacity .25s ease;
}
.marquee__item img:hover { opacity: 1; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- showcase ---------- */
.showcase { padding: clamp(40px, 6vw, 84px) 0 clamp(72px, 10vw, 140px); }
.showcase__grid { display: grid; grid-template-columns: minmax(0, 1fr) 2fr; gap: clamp(36px, 6vw, 96px); }
.showcase__grid > * { min-width: 0; }

.submenu { position: sticky; top: calc(var(--nav-h) + 36px); align-self: start; }
.submenu__label {
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 22px;
}
.submenu ul { list-style: none; margin: 0; padding: 0; }
.submenu li + li { margin-top: 2px; }
.submenu a {
  display: block; padding: 9px 0;
  font-size: clamp(17px, 1.5vw, 20px); letter-spacing: -0.01em;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color .2s ease;
}
.submenu a:hover, .submenu a:focus-visible { color: var(--ink); }
.submenu a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Header, sub, media and copy share one measure so their left and right
   edges line up all the way down the page. */
.study { --measure: 68ch; }
.study > * + * { margin-top: clamp(20px, 2.6vw, 32px); }
.study h1 {
  font-size: clamp(32px, 4.4vw, 58px); line-height: 1.06;
  letter-spacing: -0.028em; font-weight: 600; margin: 0;
  max-width: min(24ch, var(--measure));
}
.study__sub {
  font-size: clamp(18px, 1.7vw, 24px); line-height: 1.45;
  color: var(--ink-soft); margin: 0;
  max-width: var(--measure);
  margin-top: clamp(20px, 2.6vw, 34px);
}
.study__media { margin-top: clamp(30px, 4vw, 52px); max-width: var(--measure); }
.study__media > * + * { margin-top: clamp(16px, 2vw, 26px); }
.study__copy { margin-top: clamp(32px, 4.5vw, 56px); max-width: var(--measure); }
.study__copy p { margin: 0 0 1.15em; }
.study__copy p:last-child { margin-bottom: 0; }

.media-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #f4f4f4; overflow: hidden;
}
.media-frame video, .media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* click-to-play poster */
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #f4f4f4; overflow: hidden; cursor: pointer; }
.player img, .player video { width: 100%; height: 100%; object-fit: cover; }
.player video { display: none; }
.player.is-playing img, .player.is-playing .player__btn { display: none; }
.player.is-playing video { display: block; }
.player__btn {
  position: absolute; inset: 0; margin: auto;
  width: 74px; height: 74px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  transition: transform .22s ease, background .22s ease;
}
.player:hover .player__btn { transform: scale(1.07); background: #fff; }
.player__btn svg { width: 22px; height: 24px; margin-left: 4px; fill: var(--ink); }

/* Stacked, like the Grab films — one full-width image per row. */
.study__gallery { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 26px); }
.study__gallery .media-frame { aspect-ratio: 16 / 9; }

/* ---------- contact ---------- */
.contact { padding: clamp(64px, 10vw, 140px) 0 clamp(72px, 11vw, 150px); }
.contact h1 {
  font-size: clamp(34px, 5.2vw, 66px); line-height: 1.05;
  letter-spacing: -0.03em; font-weight: 600; margin: 0 0 clamp(26px, 3.5vw, 40px);
  max-width: 16ch;
}
.contact__form { max-width: 680px; margin-top: clamp(30px, 4vw, 48px); }
.contact__placeholder {
  border: 1px dashed var(--rule); padding: 48px 32px; text-align: center;
  color: var(--ink-soft); font-size: 15px;
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); }
.foot__cta { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 3vw, 40px); }
.foot__cta p {
  font-size: clamp(24px, 3.2vw, 40px); line-height: 1.15;
  letter-spacing: -0.025em; font-weight: 600; margin: 0;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  padding: 16px 30px; border-radius: 999px;
  font-size: 16px; letter-spacing: -0.01em;
  transition: opacity .2s ease, transform .2s ease;
}
.btn:hover, .btn:focus-visible { opacity: .84; transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }

.foot__base {
  margin-top: clamp(44px, 6vw, 80px);
  display: flex; flex-wrap: wrap; gap: 14px 32px;
  justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--ink-soft);
}
.foot__base a:hover { color: var(--ink); }


/* Contact page: no CTA in the footer (it would link to the page you're on),
   so the rule sits closer and the copyright stands alone. */
.foot--bare { padding-top: clamp(28px, 4vw, 44px); }
.foot__base--bare { margin-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .showcase__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .submenu { position: static; }
  .submenu ul {
    display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .submenu ul::-webkit-scrollbar { display: none; }
  .submenu li + li { margin-top: 0; }
  .submenu a {
    white-space: nowrap; padding: 8px 16px; font-size: 15px;
    border: 1px solid var(--rule); border-radius: 999px;
  }
  .submenu a[aria-current="page"] { border-color: var(--ink); }
}

@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 24px;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 0; font-size: 19px; width: 100%; }
  .nav__links a[aria-current="page"]::after { display: none; }
  .marquee__item { width: 150px; height: 54px; }
  .player__btn { width: 60px; height: 60px; }
}

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

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
