/* =========================================================
   Qlam — Services site (barebones build)
   ========================================================= */

@font-face {
  font-family: 'Inter';
  src: url("../assets/fonts/inter-latin.woff2") format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Martian Mono';
  src: url("../assets/fonts/martian-mono-latin.woff2") format('woff2');
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, .5);
  --line: rgba(255, 255, 255, .16);
  --accent: #0047FF;
  --pad: clamp(14px, 1.25vw, 22px);
  --nav-h: 52px;
  --fs-ui: 12px;
  --sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Martian Mono', ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--fs-ui);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.label {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* underline-on-hover link */
.u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out); }
.u:hover { background-size: 100% 1px; }

/* =========================================================
   NAV — difference blend keeps it legible on black, white and photos
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-h);
  padding: 0 var(--pad);
  color: #fff;
  text-shadow: 0 0 16px rgba(0, 0, 0, .3);   /* invisible on black, keeps it legible over photos */
  pointer-events: none;
}
.nav a, .nav button { pointer-events: auto; }
.nav-logo { justify-self: start; font-weight: 700; font-size: 15px; letter-spacing: -0.035em; }
.nav-links { display: flex; gap: 8px; }
.nav-links a { opacity: .6; transition: opacity .25s; }
.nav-links a:hover, .nav-links a.is-on { opacity: 1; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); }
.nav-clock { font-variant-numeric: tabular-nums; opacity: .6; }
.nav-menu { display: none; }
.nav-cta { display: none; }   /* phones only */
.nav { transition: color .25s, background-color .25s; }
.nav.is-ink { color: #111; text-shadow: none; }   /* over the white works section */
.nav.is-solid { background: rgba(13, 13, 13, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav.is-solid.is-ink { background: rgba(255, 255, 255, .92); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: var(--pad) var(--pad) calc(var(--pad) * 3);
  background: #000;
}
.menu[hidden] { display: none; }
.menu a { font-size: clamp(40px, 13vw, 72px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; height: 330vh; }
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

/* motion layer (behind the doors) */
.hero-motion { position: absolute; inset: 0; overflow: hidden; background: #111; }
.hero-motion > img, .hero-motion > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--ms, 1.14));
  will-change: transform;
}
/* reel poster: "Play Reel" top-left + a cursor-following label, as on the first site */
.hero-motion.has-reel { background: #e2e1dd; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .hero-motion.has-reel { cursor: none; } }
.reel-play {
  position: absolute;
  left: var(--pad);
  top: calc(var(--nav-h) + 10px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #0a0a0a;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.01em;
  opacity: var(--cap, 0);
  cursor: pointer;
}
.reel-play[hidden] { display: none; }
.reel-play:hover { opacity: calc(var(--cap, 0) * .7); }
.reel-play .tri { border-left: 15px solid currentColor; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.reel-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0a0a0a;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s cubic-bezier(.25, 0, .1, 1);
  will-change: transform;
}
.reel-cursor.is-on { opacity: 1; }
.reel-cursor .tri { border-left: 10px solid currentColor; border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; }

/* doors — each holds a full-size copy of the panel, clipped to its half by JS */
.hero-door {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  will-change: transform;
}
.hero-door.is-right { visibility: hidden; }
.hero-panel { position: absolute; inset: 0; background: #000; overflow: hidden; }

.ring { position: absolute; inset: 0; z-index: 2; }   /* tiles pass over the wordmark, as in the reference */
.ring .card {
  position: absolute;
  left: 0;
  top: 0;
  width: 200px;
  height: 200px;
  transform-origin: 0 0;
  opacity: 0;
  will-change: transform, opacity;
}
.ring .card img { width: 100%; height: 100%; object-fit: cover; }

/* Mono-style crosshair that fades in as the panel shrinks */
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: var(--grid, 0); }
.hero-grid .g-v { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.hero-grid .g-h { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.hero-grid .g-dot {
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; background: var(--accent);
}
.hero-grid .g-dots { position: absolute; left: 0; right: 0; top: 30%; }
.hero-grid .g-dots i { position: absolute; top: 0; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #fff; }
.hero-grid .g-dots i:nth-child(1) { left: 12.5%; }
.hero-grid .g-dots i:nth-child(2) { left: 37.5%; }
.hero-grid .g-dots i:nth-child(3) { left: 62.5%; }
.hero-grid .g-dots i:nth-child(4) { left: 87.5%; }

.hero-title {
  position: absolute;
  right: calc(var(--pad) * 2);
  top: 46%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-word {
  font-size: min(18.5vw, 37vh);
  font-weight: 300;
  line-height: .78;
  letter-spacing: -0.055em;
  margin-right: -0.04em;
  white-space: nowrap;
}
.hero-word .ch { display: inline-block; }
/* runs from 30% across the wordmark to its right edge; inline-size containment stops the text
   from widening the title block (which would push the wordmark left) */
.hero-tag {
  contain: inline-size;
  margin: 3.4vh 0 0 30%;
  font-size: 12px;
  line-height: 1.3;
  text-wrap: balance;
  color: rgba(255, 255, 255, .78);
}

/* hero CTA: positioned by JS (--cta-x/--cta-y) under the line above; z-index keeps it over the photo ring */
.hero-cta {
  position: absolute;
  left: var(--cta-x, 50%);
  top: var(--cta-y, 70%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  transition: background-color .25s, color .25s, transform .25s var(--ease-out);
  animation: heroCtaIn 1s 1.1s var(--ease-out) both;
}
.hero-cta svg { width: 11px; height: 11px; transition: transform .25s var(--ease-out); }
.hero-cta:hover { background: var(--accent); color: #fff; }
.hero-cta:hover svg { transform: translate(2px, -2px); }
@keyframes heroCtaIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .hero-cta { animation: none; } }

.hero-foot {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(var(--pad) * .5 + 2.6vh + 12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-arrow { width: 11px; height: 11px; }
.hero-peek {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(var(--pad) * .5);
  height: 2.6vh;
  min-height: 12px;
  overflow: hidden;
}
.hero-peek img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: calc(var(--pad) * .5 + 2.6vh + 40px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 10px 7px;
  border-radius: 5px;
  background: rgba(40, 40, 40, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 11px;
  opacity: var(--pill, 1);
  pointer-events: none;
}
.hero-scroll i { display: block; width: 100%; height: 2px; background: rgba(255, 255, 255, .22); border-radius: 2px; overflow: hidden; }
.hero-scroll b { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }

/* =========================================================
   ABOUT / INFORMATION
   ========================================================= */
.info {
  position: relative;
  z-index: 0;            /* stacking context so sphere cards can sit above or below the text */
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 6vh) var(--pad) var(--pad);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: var(--pad);
  overflow: hidden;
  touch-action: pan-y;
}
.info.is-dragging, .info.is-dragging * { cursor: grabbing; user-select: none; }
.sphere { position: absolute; inset: 0; }      /* no z-index: children join .info's stacking context */
.sphere-hit { position: absolute; top: 0; bottom: 0; left: 58%; right: 0; z-index: 0; }   /* drag area: the photo side only */
.sphere-hit, .sphere .card { cursor: grab; }
.sphere .card { position: absolute; left: 0; top: 0; width: 200px; height: 200px; transform-origin: 0 0; will-change: transform, opacity; }
.sphere .card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.info-intro, .info-cols, .info-foot { position: relative; z-index: 50; text-shadow: 0 0 12px rgba(0, 0, 0, .55); }
.info-intro {
  grid-column: 1 / span 7;
  font-size: clamp(20px, 2.15vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.012em;
}
/* all the writing sits on the left, under the paragraph; the photo sphere has the right side */
.info-cols {
  grid-column: 1 / span 7;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: calc(var(--pad) * 2);
  padding: 8vh 0;
}
.info-col .label { margin-bottom: 12px; }
.info-col li { line-height: 1.4; }
.info-foot { grid-column: 1 / -1; align-self: end; }

/* =========================================================
   WORKS INDEX (light "app window")
   ========================================================= */
/* desktop: the full-bleed window pins to the top of the screen and the page scroll moves the grid
   inside it (no nested scroller to catch the wheel early). JS sets the section height = window + grid overflow. */
.works { position: relative; height: 100vh; height: 100svh; }

.works-win {
  --w-bg: #fff;
  --w-side: #f3f3f2;
  --w-fg: #111;
  --w-muted: #8c8c8c;
  --w-chip: #ececeb;
  --w-line: rgba(0, 0, 0, .08);
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(170px, 14%) 1fr;
  grid-template-rows: minmax(0, 1fr);
  height: 100vh;
  height: 100svh;
  padding: var(--nav-h) var(--pad) var(--pad);
  overflow: hidden;
  background: var(--w-bg);
  color: var(--w-fg);
  transition: background-color .3s, color .3s;
}
.works-win[data-theme="dark"] {
  --w-bg: #0d0d0d;
  --w-side: #161616;
  --w-fg: #f2f2f2;
  --w-muted: #7a7a7a;
  --w-chip: #262626;
  --w-line: rgba(255, 255, 255, .08);
}
@media (prefers-color-scheme: dark) {
  .works-win[data-theme="system"] {
    --w-bg: #0d0d0d;
    --w-side: #161616;
    --w-fg: #f2f2f2;
    --w-muted: #7a7a7a;
    --w-chip: #262626;
    --w-line: rgba(255, 255, 255, .08);
  }
}
.works-win ::selection { background: var(--accent); color: #fff; }

.ws {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 12px 8px 8px;
  background: var(--w-side);
  transition: background-color .3s;
}
.ws-top { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px; }
.ws-brand { font-weight: 500; }
.ws-search-btn { width: 16px; height: 16px; color: var(--w-muted); }
.ws-search-btn:hover { color: var(--w-fg); }
.ws-search {
  margin: -10px 0 0;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--w-line);
  border-radius: 4px;
  background: var(--w-bg);
  color: var(--w-fg);
  font: inherit;
}
.ws-search:focus { outline: none; border-color: var(--accent); }
.ws-nav, .ws-clients ul { display: flex; flex-direction: column; }
.ws-nav a, .ws-clients li > button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 4px 6px;
  border-radius: 4px;
  text-align: left;
  color: var(--w-muted);
  transition: background-color .2s, color .2s;
}
.ws-nav a.is-on { background: var(--w-chip); color: var(--w-fg); }
.ws-nav a:hover { color: var(--w-fg); }
.ws-head { display: block; padding: 0 6px 6px; color: var(--w-muted); }
.ws-clients { flex: 1; min-height: 0; overflow: auto; }
.ws-clients li > button { color: var(--w-fg); }
.ws-clients li > button:hover, .ws-clients li > button.is-hot { background: var(--w-chip); }
.ws-clients .new { font-size: 10px; color: var(--w-muted); }
.ws-theme { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding-top: 8px; border-top: 1px solid var(--w-line); }
.ws-theme button { height: 26px; display: grid; place-items: center; border-radius: 4px; color: var(--w-muted); }
.ws-theme button svg { width: 14px; height: 14px; }
.ws-theme button[aria-pressed="true"] { background: var(--w-chip); color: var(--w-fg); }

.wm { min-width: 0; min-height: 0; overflow: hidden; }
.wm-inner { position: relative; padding: 0 14px 14px; will-change: transform; }
.wm-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; }
.wm-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.wm-filters button { padding: 4px 10px; border-radius: 4px; color: var(--w-fg); transition: background-color .2s; }
.wm-filters button:hover { background: var(--w-chip); }
.wm-filters button.is-on { background: var(--w-chip); }

.wm-grid { columns: 3; column-gap: 14px; transition: opacity .25s; }
.wm-grid.is-fading { opacity: 0; }
.wcard { display: block; width: 100%; break-inside: avoid; margin: 0 0 18px; text-align: left; transition: opacity .3s; }
.wcard[hidden] { display: none; }
.wcard .wimg { overflow: hidden; background: var(--w-chip); }
.wcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.wcard:hover img { transform: scale(1.025); }
.wcard .wcap { display: flex; gap: 8px; padding-top: 7px; }
.wcard .wtype { color: var(--w-muted); }
.wm-grid.has-hot .wcard:not(.is-hot) { opacity: .25; }
.wcard.is-flash .wimg { outline: 2px solid var(--accent); outline-offset: 3px; }
.wm-empty { padding: 40px 0; color: var(--w-muted); }

/* =========================================================
   SHOWREEL LOOP (white): panel that opens out mid-screen (JS sets its clip-path) + link to Contact
   ========================================================= */
.approach { position: relative; background: #fff; color: #0a0a0a; padding: 16vh var(--pad) 20vh; }
.ap-media {
  width: 100%;              /* fixed width: on wide screens the height cap must crop, not narrow and left-shift the panel */
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  max-height: 100svh;
  overflow: hidden;
  background: #e9e8e4;
  will-change: clip-path;
}
.ap-video { width: 100%; height: 100%; object-fit: cover; }
.ap-link {
  display: table;
  margin: 18vh auto 0;
  font-size: clamp(26px, 2.6vw, 42px);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .14em;
  transition: color .25s;
}
.ap-link:hover { color: var(--accent); }

/* =========================================================
   CONTACT (white Mono-style card over a photo grid)
   ========================================================= */
/* the white card is the whole section, edge to edge */
.contact { position: relative; background: #fff; overflow: hidden; }
.ct-card {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto auto;
  padding: calc(var(--nav-h) + 5vh) 4.5vw 3vh;
  background: #fff;
  color: #0a0a0a;
}
.ct-v { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(0, 0, 0, .08); }
.ct-h { position: absolute; top: 44%; left: 0; right: 0; height: 1px; background: rgba(0, 0, 0, .08); }
.ct-dot { position: absolute; left: 50%; top: 44%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--accent); }
.ct-dots { position: absolute; left: 0; right: 0; top: 30%; }
.ct-dots i { position: absolute; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #0a0a0a; }
.ct-dots i:nth-child(1) { left: 12.5%; }
.ct-dots i:nth-child(2) { left: 37.5%; }
.ct-dots i:nth-child(3) { left: 62.5%; }
.ct-dots i:nth-child(4) { left: 87.5%; }

.ct-services { grid-column: 1; font-weight: 500; line-height: 1.5; }
.ct-pitch { grid-column: 2; justify-self: end; width: min(290px, 100%); font-weight: 500; }
.ct-pitch p { line-height: 1.3; }
.ct-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .45);
  transition: background-color .25s, transform .25s var(--ease-out);
}
.ct-btn:hover { background: var(--accent); transform: translateY(-1px); }
.ct-meta { grid-column: 2; grid-row: 3; justify-self: end; width: min(290px, 100%); display: flex; justify-content: space-between; gap: 12px; color: #6b6b6b; font-size: 11px; padding-bottom: 2vh; }
.ct-meta a:hover { color: #0a0a0a; }
.ct-word {
  grid-column: 1 / -1;
  grid-row: 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: min(12.5vw, 21vh);
  font-weight: 600;
  line-height: .8;
  letter-spacing: -0.055em;
}
.ct-word span:last-child { justify-self: end; margin-right: -0.04em; }
.ct-word { transition: color .3s; }   /* the wordmark books a call too */
.ct-word:hover { color: var(--accent); }

/* =========================================================
   LIGHTBOX + CURSOR LABEL
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: var(--pad);
  background: rgba(0, 0, 0, .96);
  opacity: 0;
  transition: opacity .3s;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-top { position: relative; z-index: 3; display: flex; justify-content: space-between; }
.lb-count { font-variant-numeric: tabular-nums; color: var(--muted); }
.lb-fig { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 10px; min-height: 0; pointer-events: none; }
.lb-fig img { max-height: calc(100vh - 140px); max-width: 100%; object-fit: contain; }
.lb-fig figcaption { justify-self: center; }
.lb-fig figcaption span { color: var(--muted); }
.lb-fig strong { font-weight: 500; }
.lb-hit { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; cursor: none; }
.lb-hit.is-prev { left: 0; }
.lb-hit.is-next { right: 0; }

/* full-screen reel player (look carried over from the first site's .ev-* player) */
.ev-fs {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 0;
  transition: opacity .35s cubic-bezier(.25, 0, .1, 1);
}
.ev-fs[hidden] { display: none; }
.ev-fs.is-open { opacity: 1; }
/* one <video>: plays muted inside the hero layer, then JS moves it into this player when clicked */
.ev-fs .ev-video { width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; transform: translateY(12px); opacity: 0; transition: opacity .5s cubic-bezier(.25, 0, .1, 1), transform .5s cubic-bezier(.25, 0, .1, 1); }
.ev-fs.is-open .ev-video { transform: none; opacity: 1; }
.hero-motion .ev-video { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }   /* fades in over the poster once playing */
.hero-motion.is-playing .ev-video { opacity: 1; }
.ev-close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: 12px;
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .35s cubic-bezier(.25, 0, .1, 1);
}
.ev-bar {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  z-index: 10;
  width: min(560px, calc(100% - 36px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(16, 16, 16, .42);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  transition: opacity .35s cubic-bezier(.25, 0, .1, 1), transform .35s cubic-bezier(.25, 0, .1, 1);
}
.ev-fs .ev-close, .ev-fs .ev-bar { opacity: 0; }
.ev-fs.is-open .ev-close, .ev-fs.is-open .ev-bar { opacity: 1; transition-delay: .18s; }
.ev-fs.is-open.ev-idle .ev-bar { opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition-delay: 0s; }
.ev-fs.is-open.ev-idle .ev-close { opacity: 0; pointer-events: none; transition-delay: 0s; }
.ev-fs.ev-idle, .ev-fs.ev-idle .ev-video { cursor: none; }
.ev-btn {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s cubic-bezier(.25, 0, .1, 1);
}
.ev-btn:hover { background: rgba(255, 255, 255, .14); }
.ev-btn:focus-visible, .ev-close:focus-visible { outline: 2px solid rgba(255, 255, 255, .85); outline-offset: 1px; }
.ev-range { -webkit-appearance: none; appearance: none; flex: 1 1 auto; min-width: 0; height: 24px; margin: 0 8px; padding: 0; background: transparent; cursor: pointer; --p: 0%; }
.ev-range:focus { outline: none; }
.ev-range::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(to right, #fff var(--p), rgba(255, 255, 255, .3) var(--p)); }
.ev-range::-moz-range-track { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.ev-range::-moz-range-progress { height: 2px; border-radius: 2px; background: #fff; }
.ev-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 10px; height: 10px; margin-top: -4px; border: none; border-radius: 50%; background: #fff; transform: scale(.6); transition: transform .2s cubic-bezier(.25, 0, .1, 1); }
.ev-range::-moz-range-thumb { width: 10px; height: 10px; border: none; border-radius: 50%; background: #fff; transform: scale(.6); transition: transform .2s cubic-bezier(.25, 0, .1, 1); }
.ev-range:hover::-webkit-slider-thumb, .ev-range:active::-webkit-slider-thumb, .ev-range:focus-visible::-webkit-slider-thumb { transform: scale(1.25); }
.ev-range:hover::-moz-range-thumb, .ev-range:active::-moz-range-thumb, .ev-range:focus-visible::-moz-range-thumb { transform: scale(1.25); }
@media (hover: none) {   /* touch: chrome always visible */
  .ev-fs.is-open.ev-idle .ev-bar { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
  .ev-fs.is-open.ev-idle .ev-close { opacity: 1; pointer-events: auto; }
  .ev-fs.ev-idle, .ev-fs.ev-idle .ev-video { cursor: auto; }
}

.cursor-label {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 300;
  padding: 3px 7px;
  border-radius: 3px;
  background: #fff;
  color: #000;
  font-size: 11px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
  will-change: transform;
}
.cursor-label.is-on { opacity: 1; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (hover: none) {
  .cursor-label { display: none; }
  .lb-hit { cursor: pointer; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .wm-grid { columns: 2; }
}

@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav-links, .nav-clock, .nav-talk { display: none; }
  .nav-menu { display: block; }
  .nav-cta { display: block; justify-self: center; font-size: 13px; font-style: italic; letter-spacing: -0.01em; }

  /* phones: wordmark, line and CTA centred as one block, with room for the CTA above "Based in Australia" */
  .hero-title { left: var(--pad); right: var(--pad); top: auto; bottom: calc(var(--pad) * .5 + 2.6vh + 116px); transform: none; text-align: center; }
  .hero-word { font-size: 30vw; margin-right: 0; padding-left: .04em; }   /* optical centring: the tight tracking pulls the last letter in */
  .hero-tag { max-width: 310px; margin: 18px auto 0; text-align: center; }
  .hero-scroll { display: none; }

  .info { display: flex; flex-direction: column; gap: 40px; padding-top: calc(var(--nav-h) + 24px); }
  .info-intro { font-size: 22px; }
  .info-cols { display: flex; flex-direction: column; align-self: stretch; gap: 28px; padding: 46vh 0 0; }
  .sphere-hit { left: 0; }

  .works { height: auto; }
  .works-win { position: relative; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; height: auto; overflow: visible; padding: var(--nav-h) 8px 8px; }   /* phones: normal page flow, not pinned */
  .ws { position: relative; gap: 12px; min-width: 0; }
  .wm { overflow: visible; }
  .ws-nav { display: none; }
  .ws-clients ul { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 2px; padding-bottom: 4px; }
  .ws-clients li > button { white-space: nowrap; gap: 6px; }
  .ws-theme { position: absolute; top: 8px; right: 34px; width: 90px; padding: 0; border: 0; }
  .ws-top { padding-right: 0; }
  .wm-inner { padding: 10px 8px; transform: none !important; }
  .wm-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wm-grid { column-gap: 8px; }
  .wcard .wcap { flex-wrap: wrap; column-gap: 6px; row-gap: 0; }

  .approach { padding: 10vh var(--pad) 14vh; }
  .ap-link { margin: 12vh auto 0; }

  /* phones: no crosshair / dots; one calm column — pitch + button, services, then the wordmark and footer line */
  .ct-v, .ct-h, .ct-dot, .ct-dots { display: none; }
  .ct-card { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto auto; padding: calc(var(--nav-h) + 36px) var(--pad) var(--pad); row-gap: 0; }
  .ct-pitch { grid-row: 1; grid-column: 1; justify-self: start; width: 100%; max-width: 340px; }
  .ct-pitch p { font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; }
  .ct-btn { margin-top: 24px; padding: 11px 20px; }
  .ct-services { grid-row: 2; grid-column: 1; margin-top: 52px; columns: 2; column-gap: var(--pad); font-weight: 400; font-size: 14px; line-height: 1.75; }
  .ct-services::before { content: "Services"; display: block; column-span: all; margin-bottom: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; color: #8c8c8c; }
  .ct-word { grid-row: 4; margin-top: 7vh; grid-template-columns: 1fr; font-size: 27vw; line-height: .82; }   /* "Let's" / "talk." on two lines */
  .ct-meta { grid-row: 5; grid-column: 1; justify-self: stretch; width: auto; margin-top: 22px; padding: 14px 0 0; border-top: 1px solid rgba(0, 0, 0, .08); }
}
