/* ARSEN — black is the material. Every pixel is black, white or the division colour. */
@property --accent { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --accent-ink { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --on-accent { syntax: '<color>'; inherits: true; initial-value: #000000; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --r { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --track { syntax: '<length>'; inherits: true; initial-value: 0px; }

:root {
  --black: #000;
  --ink-2: #0b0b0b;
  --white: #fff;
  --mute: rgba(255, 255, 255, .55);
  --line: rgba(255, 255, 255, .12);
  --c-consulting: #ffffff;
  --c-ai: #ED6E00;
  --c-robotics: #B20303;
  --c-research: #1B1BFA;
  --accent: var(--c-consulting);
  --accent-ink: #ffffff;   /* text-safe tint of the division colour (4.5:1 on black) */
  --on-accent: #000000;    /* text colour on an accent fill */
  --bar: 64px;
  --foot-h: 112px;
  --gutter: clamp(16px, 3vw, 40px);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --font: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  transition: --accent .6s ease, --accent-ink .6s ease, --on-accent .6s ease;
  color-scheme: dark;
}

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

html {
  background: var(--black);
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #222 #000;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--accent-ink); outline-offset: 5px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 50;
  padding: .7em 1.2em; border-radius: 999px; background: var(--white); color: var(--black);
  font: 400 .78rem/1 var(--font); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* ───────── logo ring: six glossy spheres on a hexagon ───────── */
.ring { position: relative; display: block; width: 94px; height: 94px; flex: none; }
.ring i {
  --a: calc(-90deg + var(--i) * 60deg);
  --r: 36px;
  position: absolute; left: 36px; top: 36px;
  width: 22px; height: 22px; border-radius: 50%;
  background:
    radial-gradient(circle at 33% 28%, rgba(255, 255, 255, .95) 0 7%, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 40% 36%,
      color-mix(in srgb, var(--accent) 70%, #fff) 0%,
      var(--accent) 34%,
      color-mix(in srgb, var(--accent) 52%, #000) 72%,
      color-mix(in srgb, var(--accent) 18%, #000) 100%);
  box-shadow:
    inset -2px -3px 5px rgba(0, 0, 0, .45),
    0 5px 9px -3px rgba(0, 0, 0, .9),
    0 0 16px -2px color-mix(in srgb, var(--accent) 40%, transparent);
  transform: translate(calc(cos(var(--a)) * var(--r)), calc(sin(var(--a)) * var(--r)));
}
.ring--sm { width: 47px; height: 47px; }
.ring--sm i { transform: scale(.5) translate(calc(cos(var(--a)) * var(--r)), calc(sin(var(--a)) * var(--r))); transform-origin: 0 0; left: 18px; top: 18px; }

@keyframes orbit-in {
  from { --a: calc(-90deg + var(--i) * 60deg - 150deg); --r: 0px; opacity: 0; scale: .35; }
  60% { opacity: 1; }
  to { --a: calc(-90deg + var(--i) * 60deg); --r: 36px; opacity: 1; scale: 1; }
}
.bar .ring--sm i { animation: orbit-in 1.1s var(--spring) both; animation-delay: calc(var(--i) * 80ms + 100ms); }

/* ───────── wordmark ───────── */
.wm {
  --track: .55em;
  margin: 0;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: var(--track);
  padding-left: var(--track);
  text-transform: uppercase;
  white-space: nowrap;
}
.wm svg { display: inline-block; height: .7em; fill: currentColor; margin-right: var(--track); vertical-align: baseline; overflow: visible; }
.wm .gl { width: .68em; }
.wm .gx { width: .56em; }
.wm--nav { --track: .42em; font-size: .95rem; padding-left: 0; }
.wm--small { font-size: clamp(1.1rem, 2.2vw, 1.6rem); }

/* ───────── top bar ───────── */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--bar);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  background: var(--ink-2);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.home { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; justify-self: start; border-radius: 999px; }
.links { position: relative; display: flex; gap: clamp(1.4rem, 3vw, 2.8rem); }
.links a {
  font: 400 .78rem/1 var(--font); letter-spacing: .25em; text-transform: uppercase;
  color: var(--mute); text-decoration: none; padding: 10px 0; transition: color .3s;
}
.links a:hover, .links a[aria-current] { color: var(--white); }
.links .underline {
  position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); opacity: 0;
  transition: transform .6s var(--out), width .6s var(--out), opacity .3s;
}
.bar > .pill { justify-self: end; }

/* ───────── pill ───────── */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.15em 2.3em 1.15em calc(2.3em + .25em);
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(0, 0, 0, .4);
  color: var(--white); text-decoration: none;
  font: 400 .78rem/1 var(--font); letter-spacing: .25em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .35s, color .35s, border-color .35s, transform .45s var(--spring);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pill:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: scale(1.03); }
.pill:focus-visible { outline-offset: 4px; border-radius: 999px; }
.pill--sm { padding: .85em 1.5em .85em calc(1.5em + .25em); font-size: .7rem; }
.pill--lg { font-size: clamp(.8rem, 1.4vw, 1rem); letter-spacing: .18em; padding: 1.25em 2.4em 1.25em calc(2.4em + .18em); text-transform: none; }

/* ───────── chapter dots ───────── */
.dots {
  position: fixed; right: clamp(8px, 1.8vw, 28px); top: 50%; z-index: 30;
  display: flex; flex-direction: column; gap: 10px; transform: translateY(-50%);
}
.dots a { position: relative; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.dots a::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .32);
  transition: background-color .6s, transform .4s var(--spring), box-shadow .6s;
}
.dots a[aria-current]::before { background: var(--accent); transform: scale(1.5); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); }
.dots span {
  position: absolute; right: 32px; top: 50%;
  font: 400 .68rem/1 var(--font); letter-spacing: .25em; text-transform: uppercase; white-space: nowrap;
  color: var(--white); opacity: 0; transform: translate(6px, -50%); pointer-events: none;
  transition: opacity .3s, transform .3s var(--out);
}
.dots a:hover span, .dots a:focus-visible span { opacity: 1; transform: translate(0, -50%); }

/* ───────── chapters ───────── */
.chapter {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  scroll-snap-align: start; scroll-snap-stop: always;
  overflow: hidden; isolation: isolate;
}
.stage {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1;
  opacity: 0; transform: scale(.92);
  transition: opacity .9s ease, transform .9s var(--out);
  touch-action: pan-y;
}
.chapter.entered .stage.is-ready { opacity: 1; transform: none; }
/* corridor rises toward the type: hold the top band back so the stack reads first */
#platforms::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 50%; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .5) 55%, rgba(0, 0, 0, 0) 100%);
}
.stack { z-index: 1; } .pitch { z-index: 2; }

.stack {
  position: absolute; left: 0; right: 0; top: calc(var(--bar) + clamp(10px, 3.4svh, 44px));
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 16px; pointer-events: none;
}
.stack .wm { margin-top: clamp(12px, 3svh, 32px); }
.division {
  margin: clamp(8px, 1.6svh, 18px) 0 0;
  font-weight: 300; font-size: clamp(.9rem, 2.2vw, 1.6rem); line-height: 1.2;
  letter-spacing: .7em; padding-left: .7em; text-transform: uppercase;
  color: var(--accent-ink);
}
.tagline {
  margin: clamp(12px, 2.4svh, 26px) 0 0;
  font-weight: 400; font-size: .72rem; line-height: 1.6;
  letter-spacing: .42em; padding-left: .42em; text-transform: uppercase;
  color: var(--accent-ink);
}
.pitch {
  position: absolute; left: 50%; bottom: clamp(24px, 5svh, 56px); transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px);
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: clamp(24px, 3vw, 44px);
  text-align: left; pointer-events: none;
}
.pitch::before {
  content: ''; position: absolute; inset: -90px -180px -70px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 55%, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .8) 40%, rgba(0, 0, 0, .35) 72%, rgba(0, 0, 0, 0) 100%);
}
/* floor fade: the object dissolves into black under the sentence row */
.chapter::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30svh; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .9) 100%);
}
.chapter--contact::after { display: none; }
.pitch .pill { pointer-events: auto; }
.sentence {
  margin: 0; max-width: 40ch;
  font-weight: 300; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45;
  text-wrap: balance;
  text-shadow: 0 0 18px #000, 0 0 6px #000, 0 0 2px #000;
}

/* entrance: runs every time a chapter becomes active */
.js .rise, .js .stack .ring i, .js .contact .ring i { opacity: 0; }
.js .rise { transform: translateY(14px); }
.entered .rise { animation: rise .9s var(--out) both; animation-delay: calc(var(--d, 0) * 80ms + 120ms); }
.entered .ring.rise { animation: none; opacity: 1; transform: none; }
.entered .ring i { animation: orbit-in 1.1s var(--spring) both; animation-delay: calc(var(--i) * 80ms); }
.entered .wm.rise { animation: track-in 1.1s var(--out) both; animation-delay: 220ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes track-in {
  from { opacity: 0; --track: .9em; filter: blur(10px); transform: none; }
  to { opacity: 1; --track: .55em; filter: blur(0); transform: none; }
}

/* ───────── contact + footer ───────── */
.chapter--contact { height: calc(100svh - var(--foot-h)); min-height: 520px; display: grid; place-items: center; padding: var(--bar) 16px 0; }
.contact { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact .wm { margin-top: 22px; }
.big {
  margin: clamp(28px, 5svh, 52px) 0 0; max-width: 16ch;
  font-weight: 300; font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.08; letter-spacing: -.01em;
  text-wrap: balance;
}
.contact .pill { margin-top: clamp(28px, 5svh, 48px); }
.offices {
  margin: clamp(24px, 4svh, 40px) 0 0;
  font-weight: 400; font-size: .72rem; letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: var(--mute);
}
.offices span { margin: 0 .5em; }

.foot {
  height: var(--foot-h); scroll-snap-align: end;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-content: center;
  gap: 14px 24px; padding: 0 var(--gutter);
  border-top: 1px solid var(--line);
  font: 400 .72rem/1.4 var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--mute);
}
.foot a { text-decoration: none; color: var(--mute); transition: color .3s; }
.foot a:hover { color: var(--white); }
.foot__divs { display: flex; flex-wrap: wrap; gap: 10px 2rem; }
.foot__by, .foot__c { margin: 0; }
.foot__by { justify-self: end; }
.foot__by a { color: var(--white); }
.foot__c { grid-column: 1 / -1; color: rgba(255, 255, 255, .35); }

/* ───────── mobile ───────── */
@media (max-width: 960px) {
  .links { display: none; }
  .bar { grid-template-columns: 1fr auto; }
}
@media (max-width: 720px) {
  :root { --bar: 56px; --foot-h: 200px; }
  .wm { --track: .4em; }
  @keyframes track-in {
    from { opacity: 0; --track: .7em; filter: blur(10px); }
    to { opacity: 1; --track: .4em; filter: blur(0); }
  }
  .wm--nav { --track: .32em; font-size: .85rem; }
  .stack .ring { transform: scale(.78); margin: -10px 0; }
  .division { letter-spacing: .55em; padding-left: .55em; margin-top: 22px; }
  .pitch::before { inset: -60px -16px -40px; background: radial-gradient(ellipse 60% 55% at 50% 55%, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .65) 50%, rgba(0, 0, 0, 0) 100%); }
  .tagline { letter-spacing: .3em; padding-left: .3em; font-size: .66rem; }
  .dots { right: 4px; gap: 4px; }
  .dots span { display: none; }
  .sentence { font-size: 1.05rem; max-width: 30ch; text-align: center; }
  .chapter::after { height: 42svh; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.7) 45%, rgba(0,0,0,.97) 100%); }
  .pitch { flex-direction: column; gap: 18px; width: calc(100% - 32px); }
  .foot { grid-template-columns: 1fr; align-content: center; }
  .foot__by { justify-self: start; }
  .foot__divs { gap: 10px 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .ring i, .stage { opacity: 1 !important; transform: none; filter: none !important; }
  .ring i { transform: translate(calc(cos(var(--a)) * var(--r)), calc(sin(var(--a)) * var(--r))) !important; }
  .ring--sm i { transform: scale(.5) translate(calc(cos(var(--a)) * var(--r)), calc(sin(var(--a)) * var(--r))) !important; }
}
/* the binary stream is the busiest backdrop: give the pitch a deeper pool of black there */
#platforms .pitch::before { background: radial-gradient(ellipse 50% 50% at 50% 55%, rgba(0, 0, 0, .93) 0%, rgba(0, 0, 0, .7) 50%, rgba(0, 0, 0, 0) 100%); }

/* ───────── panels: the long-form sections after the four objects ───────── */
.panel {
  position: relative; scroll-snap-align: start; isolation: isolate;
  padding: calc(var(--bar) + clamp(56px, 10svh, 120px)) var(--gutter) clamp(72px, 12svh, 140px);
  background: var(--black);
}
.panel::before {
  /* grain: the only texture on the site, kept faint so black stays black */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.panel + .panel { border-top: 1px solid var(--line); }
.panel__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 1280px; margin: 0 auto; }
.label {
  margin: 0; display: flex; align-items: center; gap: 14px;
  font: 400 .72rem/1 var(--font); letter-spacing: .42em; text-transform: uppercase; color: var(--mute);
}
.label .num { color: var(--white); letter-spacing: .2em; }
.label::after { content: ''; width: 56px; height: 1px; background: var(--line); }
.h-big {
  margin: 0; max-width: 24ch;
  font-weight: 300; font-size: clamp(1.9rem, 4.2vw, 3.9rem); line-height: 1.06; letter-spacing: -.015em;
  text-wrap: balance;
}
.panel__foot {
  max-width: 1280px; margin: clamp(32px, 5svh, 56px) auto 0;
  font-size: .95rem; color: var(--mute); line-height: 1.6;
}
.panel__foot a { color: var(--white); text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; }
.panel__foot a:hover { color: var(--accent-ink); }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity .9s var(--out), transform .9s var(--out), filter .9s var(--out); }
.js .reveal.in-view { opacity: 1; transform: none; filter: none; }
.js .work__row.reveal { transition-delay: calc(var(--k, 0) * 70ms); }
.js .how__step.reveal, .js .skills__grid .reveal, .js .city.reveal { transition-delay: calc(var(--k, 0) * 90ms); }

/* ── work: editorial index rows, the name runs big across the row ── */
.work { list-style: none; margin: clamp(40px, 7svh, 80px) auto 0; padding: 0; max-width: 1280px; border-top: 1px solid var(--line); }
.work__row { border-bottom: 1px solid var(--line); }
.work__link {
  position: relative; display: grid; align-items: start;
  grid-template-columns: 3.5rem clamp(220px, 22vw, 320px) minmax(0, 1fr) 2.5rem;
  grid-template-areas: "idx name what arrow" "idx tags tags arrow";
  gap: 10px clamp(16px, 2.5vw, 40px);
  padding: clamp(22px, 3.2svh, 34px) 0; text-decoration: none; color: inherit;
}
.work__link::before {
  content: ''; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,0) 70%);
  opacity: 0; transition: opacity .4s;
}
.work__link:hover::before, .work__link:focus-visible::before { opacity: 1; }
.work__idx { grid-area: idx; padding-top: .9em; font-size: .72rem; letter-spacing: .25em; color: var(--mute); font-weight: 400; }
.work__name {
  grid-area: name; font-weight: 300; font-size: clamp(1.7rem, 3.2vw, 3rem); line-height: 1; letter-spacing: -.01em;
  transition: transform .5s var(--out);
}
.work__link:hover .work__name { transform: translateX(8px); }
.work__what { grid-area: what; padding-top: .35em; font-size: clamp(.95rem, 1.15vw, 1.1rem); line-height: 1.5; color: rgba(255,255,255,.78); max-width: 62ch; }
.work__tags { grid-area: tags; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); font-weight: 400; }
.work__arrow { grid-area: arrow; justify-self: end; align-self: start; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; display: grid; place-items: center; transition: background-color .35s, border-color .35s, transform .5s var(--spring); }
.work__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.work__link:hover .work__arrow { background: var(--white); color: var(--black); border-color: var(--white); transform: rotate(45deg) scale(1.05); }

/* ── studio: lead on the left, body on the right ── */
.studio { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 96px); max-width: 1280px; margin: 0 auto; align-items: start; }
.studio__lead { display: grid; gap: 18px; position: sticky; top: calc(var(--bar) + 32px); }
.studio__body p { margin: 0 0 1.3em; font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.6; color: rgba(255,255,255,.82); }
.studio__body p:last-child { margin-bottom: 0; }
.studio__body strong { font-weight: 400; color: var(--white); }

.how {
  list-style: none; margin: clamp(56px, 9svh, 110px) auto 0; padding: 0; max-width: 1280px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.how__step { background: var(--black); padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; align-content: start; min-height: 220px; }
.how__n { font: 400 .72rem/1 var(--font); letter-spacing: .25em; color: var(--mute); }
.how__step h3 { margin: 0; font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1; letter-spacing: -.01em; }
.how__step p { margin: 0; font-size: .98rem; line-height: 1.55; color: rgba(255,255,255,.75); }
.how__step:nth-child(2) { transform: translateY(0); }
@media (min-width: 961px) { .how__step:nth-child(2) { padding-top: clamp(48px, 5vw, 72px); } .how__step:nth-child(3) { padding-top: clamp(72px, 8vw, 104px); } }

.skills { max-width: 1280px; margin: clamp(56px, 9svh, 110px) auto 0; display: grid; gap: clamp(24px, 4svh, 40px); }
.marquee { position: relative; overflow: hidden; margin: 0 calc(var(--gutter) * -1); padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee 48s linear infinite; }
.marquee__track span { font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 2.4rem); line-height: 1; white-space: nowrap; padding: 0 1.1em; position: relative; color: rgba(255,255,255,.85); }
.marquee__track span::after { content: ''; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); opacity: .7; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.skills__grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px) clamp(24px, 3vw, 56px); }
.skills__grid dt { font: 400 .72rem/1 var(--font); letter-spacing: .3em; text-transform: uppercase; color: var(--white); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.skills__grid dd { margin: 0; font-size: .98rem; line-height: 1.55; color: rgba(255,255,255,.72); }

/* ── offices: three cities, live clocks ── */
.cities { list-style: none; margin: clamp(40px, 7svh, 80px) auto 0; padding: 0; max-width: 1280px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.city { position: relative; background: var(--black); padding: clamp(24px, 3vw, 40px) clamp(20px, 2.6vw, 36px) clamp(28px, 3.4vw, 44px); display: grid; gap: 10px; align-content: start; overflow: hidden; }
.city::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%); pointer-events: none; }
.city__coord { font: 400 .66rem/1 var(--font); letter-spacing: .2em; color: var(--mute); }
.city__name { margin: 6px 0 0; font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -.02em; }
.city__role { margin: 0; font-size: .92rem; color: rgba(255,255,255,.7); }
.city__time { margin: clamp(18px, 2.4vw, 32px) 0 0; display: flex; align-items: baseline; gap: 12px; font-weight: 300; font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.city__zone { font-size: .7rem; letter-spacing: .25em; color: var(--mute); font-weight: 400; }
.city__status { display: inline-flex; align-items: center; gap: 8px; font: 400 .68rem/1 var(--font); letter-spacing: .25em; text-transform: uppercase; color: var(--mute); min-height: 1em; }
.city__status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); }
.city__status.is-open { color: var(--white); }
.city__status.is-open::before { background: #38d47a; box-shadow: 0 0 10px #38d47a; }

/* ── contact additions ── */
.mail {
  margin: clamp(26px, 4.5svh, 44px) 0 0; display: inline-block;
  font-weight: 300; font-size: clamp(1.25rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.01em;
  color: var(--white); text-decoration: none; word-break: break-all;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size .6s var(--out), color .3s;
}
.mail:hover, .mail:focus-visible { background-size: 100% 1px; }
.contact__note { margin: 18px 0 0; max-width: 40ch; font-size: 1rem; line-height: 1.55; color: var(--mute); text-wrap: balance; }
.contact__links { margin-top: clamp(24px, 4svh, 40px); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact__links .pill { gap: 10px; }
.pill .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-left: -.25em; }
.chapter--contact { height: auto; min-height: calc(100svh - var(--foot-h)); padding-bottom: clamp(40px, 7svh, 72px); }
.contact .offices { color: var(--mute); }

@media (max-width: 960px) {
  .studio { grid-template-columns: 1fr; }
  .studio__lead { position: static; }
  .how, .skills__grid, .cities { grid-template-columns: 1fr; }
  .how__step { min-height: 0; }
  .work__link { grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem; grid-template-areas: "idx name arrow" "idx what arrow" "idx tags arrow"; gap: 10px 16px; }
  .city__name { font-size: clamp(2rem, 9vw, 3rem); }
}
@media (max-width: 720px) {
  .panel { padding-right: calc(var(--gutter) + 22px); }
  .h-big { font-size: clamp(1.7rem, 7.4vw, 2.6rem); }
  .work__link { grid-template-columns: 2rem minmax(0, 1fr); grid-template-areas: "idx name" "idx what" "idx tags"; }
  .work__arrow { display: none; }
  .work__name { font-size: 1.6rem; }
  .marquee__track span { font-size: 1.25rem; }
  .mail { font-size: clamp(1.1rem, 6.2vw, 1.6rem); }
  .contact__links .pill { font-size: .7rem; padding: .95em 1.5em .95em calc(1.5em + .25em); }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .marquee__track { animation: none; }
}
