/* DOT Exhibits — shared styles */
:root {
  --bg: #0b0b0d;
  --surface: #141417;
  --line: rgba(255, 255, 255, .1);
  --text: #f2f2f3;
  --muted: #8d8d95;
  --grey: #3a3a3c;
  --accent: #f5a524;
  --accent-soft: rgba(245, 165, 36, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 clamp(16px, 1.05vw, 18px)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(80px, 12vw, 180px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.h-xl { font-size: clamp(56px, 11vw, 190px); line-height: .9; font-weight: 500; letter-spacing: -.045em; margin: 0; }
.h-lg { font-size: clamp(40px, 6.4vw, 104px); line-height: .95; font-weight: 500; letter-spacing: -.035em; margin: 0; }
.h-md { font-size: clamp(26px, 3vw, 44px); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; margin: 0; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: 99px; }
.skip:focus { top: 16px; }

/* split text (added by JS) */
.line { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.18em; } /* room for descenders (g, y, p) */
.line > span { display: inline-block; will-change: transform; }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: 99px;
  border: 1px solid var(--line); font-weight: 500; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--accent); transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { border-color: var(--accent); color: #0b0b0d; } /* dark text reads best on the accent */
.btn--solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--solid:hover { color: #0b0b0d; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: transform .6s var(--ease), background .4s;
}
.header.is-hidden { transform: translateY(-100%); }
.header.is-solid { background: rgba(11, 11, 13, .9); } /* solid instead of a live blur: blurring the page behind it on every scroll frame made scrolling lag */
.header.on-light { --text: #0b0b0d; --muted: #4a4a52; --line: rgba(0, 0, 0, .14); color: var(--text); } /* over a white or grey band (main.js) */
.header.on-light.is-solid { background: rgba(255, 255, 255, .92); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand svg { height: auto; display: block; }
.brand__mark { width: 34px; }
.brand__word { width: 124px; }
.nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav a { position: relative; font-size: 15px; color: var(--muted); transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__cta { display: flex; align-items: center; gap: 12px; }
/* sound toggle: four bars that dance while sound is on */
.sound-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.sound-btn i { width: 2px; height: 14px; background: currentColor; border-radius: 2px; transform-origin: bottom; animation: bars 1s ease-in-out infinite alternate; }
.sound-btn i:nth-child(2) { animation-delay: -.3s; } .sound-btn i:nth-child(3) { animation-delay: -.6s; } .sound-btn i:nth-child(4) { animation-delay: -.15s; }
.sound-btn.is-muted i { animation: none; transform: scaleY(.2); opacity: .6; }
@keyframes bars { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.menu-btn { display: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.menu-btn span { position: absolute; left: 16px; right: 16px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn span:first-child { top: 21px; }
.menu-btn span:last-child { top: 29px; }
.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 110px var(--pad) 40px;
  clip-path: circle(0 at calc(100% - 42px) 42px); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 42px) 42px); visibility: visible; transition: clip-path .8s var(--ease); }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-size: clamp(44px, 12vw, 80px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.menu__foot { display: grid; gap: 6px; color: var(--muted); }

/* Preloader */
.preloader { display: none; }
.intro .preloader {
  position: fixed; inset: 0; z-index: 100; background: #000;
  display: grid; place-items: center;
  animation: preloaderFailsafe 0s 7s forwards; /* if JS never runs, get out of the way */
}
@keyframes preloaderFailsafe { to { visibility: hidden; } }
.preloader svg { width: min(72vw, 420px); height: auto; overflow: visible; }
.intro body { overflow: hidden; }

/* Light bands between the dark sections (as on trionn.com): white for the group, stats and work, grey for Design in Motion */
.is-light, .is-grey { --bg: #fff; --surface: #f1f1f3; --line: rgba(0, 0, 0, .1); --text: #0b0b0d; --muted: #5d5d66; color-scheme: light; background: var(--bg); color: var(--text); }
.is-grey { --bg: #d4d4d8; --surface: #c6c6cb; --line: rgba(0, 0, 0, .12); --muted: #4a4a52; }
.is-light .co img { filter: invert(1); } /* the company logos are white artwork */
.is-grey .sribbon__title { color: var(--accent); }

/* Stripe transition between sections of different colour (main.js) */
.wipe { position: relative; height: 0; z-index: 3; pointer-events: none; }
.wipe__bars { position: absolute; left: 0; right: 0; bottom: 0; height: 38vh; display: flex; flex-direction: column; }
.wipe__bars i { transform: scaleY(0); transform-origin: bottom; margin-top: -1px; } /* overlap a pixel so no hairline shows between bars */

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-block: 140px 56px; overflow: hidden; }
/* fixed so the dots can float over the whole site after the blast (dotfield.js) */
.hero canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; } /* behind all content: dots float in the page background */
.hero { cursor: pointer; }
.hero a, .hero button { cursor: revert; }
.hero__in { position: relative; display: grid; gap: 40px; pointer-events: none; }
.hero__in a, .hero__in button { pointer-events: auto; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--muted); font-size: 14px; letter-spacing: .06em; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero__lead { max-width: 30em; color: var(--muted); font-size: clamp(17px, 1.3vw, 20px); margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__hint { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.hero__hint i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { transform: scale(1.8); opacity: .3; } }

/* About */
.about__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__text { font-size: clamp(26px, 3.2vw, 52px); line-height: 1.18; font-weight: 400; letter-spacing: -.02em; margin: 0; }
.about__text .w { opacity: 1; }
.about__media { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 4/5; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding: 0; list-style: none; }
.values li { border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font-size: 14px; color: var(--muted); }

/* The DOT group: four companies */
.group__lead { max-width: 34em; margin: 24px 0 56px; }
.group__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.co { background: var(--bg); padding: clamp(24px, 2.6vw, 40px); display: grid; gap: 16px; align-content: start; transition: background .4s; }
.co:hover { background: var(--surface); }
.co img { height: 72px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; margin-bottom: 12px; }
.co h3 { margin: 0; font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; }
.co p { margin: 0; color: var(--muted); }
.co ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.co li { border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .group__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .group__grid { grid-template-columns: 1fr; } }

/* Stats */
.stats { position: relative; overflow: hidden; }
.stats__bg { position: absolute; inset: 0; }
.stats__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(1); }
.stats__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--bg), transparent 30%, transparent 55%, #d4d4d8); }
/* By the numbers melts from white into the grey of Design in Motion below, instead of a hard edge */
.stats.is-light { background: linear-gradient(var(--bg) 50%, #d4d4d8); padding-bottom: clamp(140px, 22vh, 260px); }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-top: 56px; }
.stat { background: color-mix(in srgb, var(--bg) 82%, transparent); padding: clamp(28px, 4vw, 56px); display: grid; gap: 12px; }
.stat__num { font-size: clamp(56px, 7.5vw, 128px); font-weight: 500; letter-spacing: -.05em; line-height: .9; }
.stat__num sup { color: var(--accent); font-size: .45em; vertical-align: .9em; margin-left: .05em; }
.stat p { margin: 0; color: var(--muted); max-width: 18em; }

/* Selected work: pinned sideways slider (hslider.js); a plain horizontal scroller without JS */
.hs { position: relative; overflow-x: auto; }
.hs__track { display: flex; align-items: stretch; min-height: 100svh; width: max-content; }
.hs__intro, .hs__card, .hs__end { flex: none; border-right: 1px solid var(--line); padding: 0 clamp(24px, 3vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.hs__intro { width: clamp(300px, 34vw, 520px); align-items: center; text-align: center; gap: 28px; padding-left: var(--pad); }
.hs__title { margin: 0; font-size: clamp(40px, 4.4vw, 72px); font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.hs__title .ch { display: inline-block; will-change: filter, opacity; }
.hs__card { width: clamp(300px, 40vw, 640px); gap: 18px; will-change: transform; justify-content: flex-start; padding-top: max(96px, calc(50svh - 230px)); } /* photos on one line; long titles push the text down, not the photo up */
.hs__media { display: block; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--surface); }
.hs__media img { width: 100%; height: 100%; object-fit: cover; }
.hs__card h3 { margin: 4px 0 0; font-size: clamp(22px, 2vw, 32px); font-weight: 400; letter-spacing: -.01em; }
.hs__meta { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.hs__meta p { margin: 0; color: var(--muted); max-width: 26em; font-size: 15px; }
.hs__link { flex: none; display: inline-flex; gap: 28px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 6px; transition: color .3s; }
.hs__link:hover { color: var(--accent); }
.hs__end { width: clamp(300px, 34vw, 520px); align-items: center; text-align: center; gap: 24px; }
.hs__end p { margin: 0; font-size: clamp(18px, 1.5vw, 22px); max-width: 18em; }
.hs.is-live { overflow: hidden; }
@media (max-width: 640px) { .hs__card { width: 82vw; } .hs__intro, .hs__end { width: 82vw; } .hs__meta { flex-direction: column; align-items: start; } }

/* Locations map (worldmap.js draws the dotted map on the canvas) */
.map { position: relative; }
.map__in { position: relative; z-index: 1; pointer-events: none; display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.map__text { pointer-events: auto; display: grid; gap: 24px; align-content: start; }
.map__text .muted { margin: 0; max-width: 30em; }
.map__legend { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 18px; }
.map__legend li, .map__site { display: grid; grid-template-columns: 18px 1fr; column-gap: 12px; text-align: left; }
.map__legend li:has(.map__site) { display: block; }
.map__site { width: 100%; border-radius: 10px; padding: 6px 8px; margin: -6px -8px; transition: background .3s; }
.map__site:hover, .map__site[aria-pressed="true"] { background: var(--surface); }
.map__card { position: absolute; z-index: 2; width: min(280px, 80%); padding: 16px 18px; border-radius: 14px; background: rgba(20,20,24,.92); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transform: translate(-50%, calc(-100% - 18px)); pointer-events: none; }
.map__card b { display: block; font-weight: 500; }
.map__card span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.map__legend i { grid-row: span 2; margin-top: 7px; width: 10px; height: 10px; border-radius: 50%; }
/* the site list stays for screen readers and holds each site's address card; sighted visitors use the pins */
.map__legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.map__hint { margin-top: 20px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.map__legend .is-hq { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.map__legend .is-prod { border: 2px solid var(--accent); }
.map__legend .is-studio { border: 2px solid var(--accent); background: radial-gradient(circle, #f2f2f3 0 35%, transparent 40%); }
.map__legend .is-main { background: var(--accent); border-radius: 2px; }
.map__legend .is-region { background: rgba(255,200,120,.4); border-radius: 2px; }
.map__legend b { font-weight: 500; }
.map__legend span { color: var(--muted); font-size: 14px; }
/* the map fills the whole section; the text column sits on top and the map is drawn to its right */
.map__stage { position: absolute; inset: 0; }
.map__space { aspect-ratio: 1.63; }
.map__stage canvas { width: 100%; height: 100%; display: block; cursor: pointer; }
/* the text sits over the map; a soft shade behind it keeps it readable, and lifts away while zoomed into a site */
.map__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11, 11, 13, .82), rgba(11, 11, 13, .45) 32%, transparent 52%); transition: opacity 1s; }
.map__stage.is-zoomed::after { opacity: .35; }
@media (max-width: 960px) { .map__in { grid-template-columns: 1fr; } .map__space { display: none; } .map__stage { position: relative; aspect-ratio: 1.3; margin-top: 32px; } .map__stage::after { display: none; } }

/* Clients marquee */
.marquee { display: grid; gap: 40px; overflow: hidden; margin-top: 56px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; flex-wrap: wrap; justify-content: center; }
.js .marquee__track { flex-wrap: nowrap; width: max-content; animation: marquee 60s linear infinite; }
.marquee__track--rev { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); padding: 0 clamp(24px, 3vw, 48px); margin: 0; list-style: none; }
.marquee img { height: clamp(34px, 3.4vw, 52px); width: auto; max-width: 180px; object-fit: contain; opacity: .55; transition: opacity .3s; }
.marquee img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* CTA / contact */
.cta { text-align: center; display: grid; justify-items: center; gap: 40px; }
.cta .h-xl { max-width: 11ch; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta__address { color: var(--muted); font-style: normal; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: 72px; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { margin: 0 0 16px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--accent); }
.footer__big { margin-top: 80px; color: #1b1b1f; }
.footer__big svg { width: 100%; height: auto; display: block; }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; color: var(--muted); font-size: 14px; }

/* Work page */
.page-hero { padding-block: 180px 64px; display: grid; gap: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; font-size: 14px; color: var(--muted); transition: all .3s; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0b0b0d; }
.gallery { columns: 3 320px; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; position: relative; overflow: hidden; border-radius: 14px; background: var(--surface); }
.gallery figure[hidden] { display: none; }
.gallery button { display: block; width: 100%; }
.gallery img { width: 100%; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 99px; font-size: 13px;
  background: rgba(11, 11, 13, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none;
}
/* CMS projects, videos, project and blog pages */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 24px; margin-bottom: 40px; }
.pcard { display: grid; gap: 10px; align-content: start; }
.pcard[hidden] { display: none; }
.pcard__media { display: block; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: var(--surface); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard h3, .pcard__title { margin: 6px 0 0; font-size: 22px; font-weight: 500; }
.pcard h3 a:hover, .pcard__title a:hover { color: var(--accent); }
.pcard__meta { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.pcard__text { margin: 0; color: var(--muted); }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 40px; }
.video { margin: 0; display: grid; gap: 12px; }
.video__play, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; overflow: hidden; background: #000; }
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s; }
.video__play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b0b0d' d='M9 7l9 5-9 5z'/%3E%3C/svg%3E") center / 30px no-repeat; }
.video__play:hover img { opacity: 1; }
.video figcaption b { display: block; font-weight: 500; }
.video figcaption span { color: var(--muted); font-size: 14px; }
.project__meta { margin: 0; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.project__img { width: 100%; border-radius: 16px; }
.post__body { max-width: 44em; font-size: 18px; line-height: 1.75; }
.post__body img { border-radius: 12px; }
.post__body a { color: var(--accent); text-decoration: underline; }
.post__body table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.5em 0; display: block; overflow-x: auto; }
.post__body th, .post__body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.post__body th { color: var(--muted); font-weight: 500; }

.cities { display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: clamp(22px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.02em; margin: 32px 0 0; padding: 0; list-style: none; }
.cities li::after { content: "•"; color: var(--accent); margin-left: 32px; }
.cities li:last-child::after { content: none; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox img { position: absolute; inset: 0; margin: auto; max-width: 92vw; max-height: 84vh; width: auto; border-radius: 12px; }
.lightbox__btn { position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); background: rgba(11,11,13,.6); color: #fff; font-size: 22px; display: grid; place-items: center; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--muted); }

/* Cursor (fine pointers only, added by JS) */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
.cursor__dot { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #fff; }
.cursor__ring {
  position: absolute; width: 44px; height: 44px; margin: -22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  display: grid; place-items: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: transparent;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, color .3s;
}
.cursor.is-link .cursor__ring { width: 72px; height: 72px; margin: -36px; }

/* Responsive */
@media (max-width: 960px) {
  .nav, .header__cta .btn { display: none; }
  .menu-btn { display: block; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 16/10; order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .stats__grid { grid-template-columns: 1fr; }
  .btn { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee ul[aria-hidden] { display: none; }
}

/* Portfolio S-ribbon: cards fly along a 3D S-curve, then land in a grid (sribbon.js).
   Without JS / reduced motion it is a plain grid. */
.sribbon { position: relative; padding: clamp(80px, 10vw, 140px) var(--pad); display: grid; gap: 32px; }
.sribbon__title { display: grid; font-size: clamp(64px, 12vw, 200px); font-weight: 500; letter-spacing: -.05em; line-height: .88; color: #d9d9de; text-transform: uppercase; will-change: transform; }
.sribbon__title span:last-child { padding-left: 34vw; }
.sribbon__sub { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sribbon__stage { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sribbon__card { display: block; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--surface); }
.sribbon__card img { width: 100%; height: 100%; object-fit: cover; }
.sribbon__caption { margin: 0; max-width: 22em; color: var(--muted); }
.sribbon__cta { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 6px; transition: color .3s; }
.sribbon__cta:hover { color: var(--accent); }
.sribbon__cta svg { width: 16px; height: 16px; }

.sribbon.is-live { display: block; height: 100svh; min-height: 600px; padding: 0; overflow: hidden; perspective: 1400px; }
.is-live .sribbon__title { position: absolute; left: var(--pad); top: 24%; }
.is-live .sribbon__sub { position: absolute; right: var(--pad); top: 24%; text-align: right; }
.is-live .sribbon__stage { position: absolute; inset: 0; display: block; transform-style: preserve-3d; pointer-events: none; }
.is-live .sribbon__card {
  position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--ch); margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2);
  aspect-ratio: auto; overflow: visible; background: none; pointer-events: auto; will-change: transform, opacity; opacity: 0;
  backface-visibility: hidden;
}
.is-live .sribbon__card img { border-radius: 8px; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.is-live .sribbon__caption { position: absolute; left: var(--pad); bottom: 40px; }
.sribbon__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
/* WebGL draws the cards; the links stay in the page (visually hidden) for keyboards and search engines */
.sribbon.is-3d .sribbon__stage { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.is-live .sribbon__caption, .is-live .sribbon__cta { z-index: 2; }
.is-live .sribbon__cta { position: absolute; right: var(--pad); bottom: 40px; }
@media (max-width: 640px) {
  .sribbon__title span:last-child { padding-left: 18vw; }
  .is-live .sribbon__sub { top: 16%; }
  .is-live .sribbon__caption { bottom: 96px; right: var(--pad); }
  .is-live .sribbon__cta { left: var(--pad); right: auto; }
}

/* Services: a cinematic fly-through (cine.js). Without JS or with reduced motion, a plain grid of cards. */
.cine { position: relative; overflow: hidden; background: #050506; isolation: isolate; padding: clamp(80px, 10vw, 140px) var(--pad); }
.cine__smoke { position: absolute; inset: -10%; background: url(../img/smoke-a.webp) center / cover; opacity: .35; z-index: -2; will-change: transform; } /* image is already greyscale: no live filter while it moves */
/* the first screen's colour melts down into the smoke, so there is no hard edge between them */
.cine__fade { position: absolute; left: 0; right: 0; top: 0; height: 60vh; z-index: 0; pointer-events: none; background: linear-gradient(var(--bg) 0%, rgba(11, 11, 13, .85) 30%, transparent 100%); }
.cine::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, .85) 100%); }
.cine__world { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; max-width: var(--max); margin: 0 auto; }
.cine__title, .for-label, .sectors { grid-column: 1 / -1; }
.cine .word, .cine__hud { display: none; }
.tag { font-size: clamp(18px, 1.8vw, 30px); letter-spacing: .02em; color: rgba(242, 242, 243, .7); white-space: nowrap; }
.tag.is-hot { color: var(--accent); }
.card { margin: 0; border-radius: 18px; overflow: hidden; background: rgba(20, 20, 24, .78); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); } /* no live blur behind cards that move every frame */
.card__img { aspect-ratio: 16/8; background: #111 center / cover; }
.card__body { padding: 22px 26px 26px; display: grid; gap: 10px; }
.card__num { font-size: 12px; letter-spacing: .2em; color: var(--accent); }
.card h3 { margin: 0; font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.card p { margin: 0; color: var(--muted); }
.card ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card li { border: 1px solid rgba(255, 255, 255, .14); border-radius: 99px; padding: 3px 11px; font-size: 13px; color: #c9c9cf; }
.cine__title { text-align: center; margin-bottom: 32px; }
.cine__title p { margin: 0 0 18px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.cine__title h2 { margin: 0; font-size: clamp(56px, 9vw, 150px); font-weight: 500; letter-spacing: -.045em; line-height: .9; white-space: nowrap; }
.cine__title h2 em { font-style: normal; color: var(--accent); }
.word { font-size: clamp(48px, 8vw, 132px); font-weight: 500; letter-spacing: -.04em; white-space: nowrap; }
.for-label { margin-top: 48px; text-align: center; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.sectors { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: 10px 40px; font-size: clamp(24px, 2.8vw, 44px); white-space: nowrap; }
.sectors span::before { content: "✦ "; color: var(--accent); font-size: .6em; vertical-align: .25em; }
/* live: one pinned screen, everything placed in 3D by cine.js */
.cine.is-live { height: 100svh; min-height: 600px; padding: 0; }
.is-live .cine__world { display: block; position: absolute; inset: 0; max-width: none; perspective: 1100px; perspective-origin: 50% 50%; }
.is-live .cine__world > * { position: absolute; left: 50%; top: 50%; margin: 0; will-change: transform, opacity; }
.is-live .card { width: min(560px, 84vw); }
.is-live .word { display: block; }
.is-live .cine__hud { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; z-index: 5; display: flex; justify-content: space-between; align-items: end; gap: 24px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cine__hud-bar { flex: 1; max-width: 320px; height: 1px; background: rgba(255, 255, 255, .15); position: relative; }
.cine__hud-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.cine__hud b { color: var(--text); font-weight: 400; }
@media (max-width: 760px) { .sectors { grid-template-columns: repeat(2, auto); } .cine__title h2 { white-space: normal; } }

/* Portfolio photos are black and white and turn to colour as the cursor gets close (colorize.js) */
.hs__media img, .sribbon__card img, .gallery img, .pcard__media img { filter: grayscale(1) brightness(.8); transition: filter .35s ease-out, transform 1s var(--ease); }

.cursor-dots { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 80; pointer-events: none; }
