/* ==========================================================================
   Illumic — portfolio styles
   Black base, negative (inverted) accents, horizontal track driven by scroll.
   ========================================================================== */

:root {
  --bg: #060606;
  --bg-2: #0e0e0e;
  --fg: #ecebe7;
  --mute: #8b8a85;
  --dim: #55544f;
  --line: rgba(236, 235, 231, .14);
  --line-2: rgba(236, 235, 231, .28);
  --blue: #0075d1;        /* CV blue — CMYK 100/44/0/18 */

  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", Menlo, ui-monospace, monospace;

  --top: 96px;          /* room for the header */
  --bottom: 84px;       /* room for the timeline */
  --gap: clamp(20px, 3.4vw, 56px);
  --card-h: 56svh;

  /* Adobe-style tool cursors */
  --c-brush: url("../cursors/brush.svg") 7 25, crosshair;
  --c-type: url("../cursors/type.svg") 16 16, text;
  --c-arrow: url("../cursors/arrow.svg") 5 3, default;
  --c-hand: url("../cursors/hand.svg") 12 4, pointer;
  --c-dropper: url("../cursors/eyedropper.svg") 6 26, copy;
  --c-zoom: url("../cursors/zoom.svg") 13 13, zoom-in;
  --c-play: url("../cursors/play.svg") 16 16, pointer;

  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html { background: var(--bg); color-scheme: dark; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: var(--c-brush);
  overflow-x: hidden;
}

/* cursor map: text = type tool, links/buttons = hand, works = selection arrow */
p, h1, h2, h3, h4, li, dd, dt, blockquote, .t { cursor: var(--c-type); }
a, button, label, select, [role="button"], input[type="range"] { cursor: var(--c-hand); }
.card, .card *, .index-row, .index-row * { cursor: var(--c-arrow); }
.vp-frame, .vp-frame * { cursor: var(--c-play); }
.logo-cell, .logo-cell * { cursor: var(--c-dropper); }
.media-item--image, .media-item--image * { cursor: var(--c-zoom); }
.lightbox, .lightbox * { cursor: var(--c-zoom); }
.is-playing .vp-frame, .is-playing .vp-frame * { cursor: var(--c-arrow); }

::selection { background: var(--fg); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
img, video { display: block; max-width: none; }
h1, h2, h3, h4, p { margin: 0; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.mute { color: var(--mute); }
.skip { position: fixed; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

/* ---------- light + grain (the "illumic" layer) ---------- */
.light {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(255, 246, 225, .055), transparent 70%);
  transition: opacity .6s;
}
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 60; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 22px var(--gap);
  pointer-events: none;
  mix-blend-mode: difference;   /* negative over images */
}
.hud > * { pointer-events: auto; }
.brand { display: flex; gap: 22px; align-items: flex-start; }
.brand-mark { font-weight: 600; font-size: 41px; letter-spacing: -.055em; line-height: .78; transition: color .6s var(--ease); }
.brand-mark:hover { color: var(--blue); }
.brand-mark sup { font-family: var(--mono); font-size: 9px; font-weight: 400; margin-left: 4px; color: var(--mute); letter-spacing: 0; vertical-align: 2.2em; }
.brand-tag { font-size: 12px; line-height: 1.35; color: #bdbcb7; max-width: 300px; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 34px); font-size: 13px; align-items: center; }
.nav a, .nav button { position: relative; padding: 2px 0; }
.nav a::after, .nav button.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav button.link:hover::after { transform: scaleX(1); transform-origin: left; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 99px; overflow: hidden; }
.lang button { padding: 3px 9px; font-family: var(--mono); font-size: 10.5px; color: var(--mute); }
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.menu-btn { display: none; }

/* work dropdown */
.drop { position: relative; }
.drop-list {
  position: absolute; top: calc(100% + 14px); right: -14px; min-width: 260px; list-style: none; margin: 0;
  padding: 10px; background: var(--fg); color: var(--bg); border-radius: 4px;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: .25s var(--ease);
}
.drop:hover .drop-list, .drop:focus-within .drop-list, .drop.open .drop-list { opacity: 1; transform: none; pointer-events: auto; }
.drop-list a { display: flex; justify-content: space-between; gap: 18px; padding: 7px 8px; border-radius: 3px; }
.drop-list a:hover { background: var(--bg); color: var(--fg); }
.drop-list a::after { display: none; }
.drop-list .mono { opacity: .55; }

/* ---------- stage + horizontal track ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; overflow: clip; z-index: 2; }
.track { display: flex; height: 100svh; will-change: transform; }
.scroll-spacer { width: 1px; pointer-events: none; }

.panel {
  flex: none; position: relative; height: 100%;
  padding: var(--top) var(--gap) var(--bottom);
  display: flex; flex-direction: column; justify-content: center;
}

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.is-in .rv, .is-in.rv { opacity: 1; transform: none; }
.rv:nth-child(2) { transition-delay: .08s; } .rv:nth-child(3) { transition-delay: .16s; } .rv:nth-child(4) { transition-delay: .24s; }

/* ---------- hero ---------- */
.hero { width: 100vw; justify-content: flex-end; padding-bottom: calc(var(--bottom) + 4svh); }
.hero h1 {
  font-size: clamp(54px, 10.4vw, 210px); font-weight: 600; letter-spacing: -.055em; line-height: .88;
}
.hero h1 > span { display: block; }
.hero h1 .neg { display: inline-block; background: var(--fg); color: var(--bg); padding: 0 .08em .04em; margin-left: -.02em; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 5svh; }
.hero-foot p { max-width: 520px; font-size: clamp(15px, 1.15vw, 18px); color: #cfcec9; }
.scroll-cue { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.scroll-cue i { display: block; width: 64px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--fg); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- about ---------- */
.about { width: max(118vw, 1200px); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 6vw; align-items: end; }
.kicker { display: block; margin-bottom: 26px; color: var(--mute); }
.about h2, .big { font-size: clamp(34px, 4.4vw, 84px); line-height: .98; letter-spacing: -.04em; font-weight: 500; }
.about-body p { font-size: clamp(15px, 1.12vw, 19px); color: #cfcec9; max-width: 640px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 7svh; border-top: 1px solid var(--line); }
.stat { padding: 22px 22px 0 0; }
.stat b { display: block; font-size: clamp(40px, 4.6vw, 88px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.stat span { color: var(--mute); font-size: 13px; }

/* ---------- category intro ---------- */
.cat-panel { width: clamp(300px, 30vw, 520px); justify-content: flex-end; border-left: 1px solid var(--line); margin-left: 4vw; }
.cat-num { font-size: clamp(90px, 11vw, 200px); font-weight: 500; letter-spacing: -.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--line-2); margin-bottom: auto; }
.cat-panel h2 { font-size: clamp(28px, 2.8vw, 48px); letter-spacing: -.035em; line-height: 1; font-weight: 500; margin: 0 0 14px; }
.cat-panel p { color: var(--mute); max-width: 360px; }
.cat-panel .mono { margin-top: 22px; display: block; }

/* ---------- project cards ---------- */
.card { padding-left: 0; padding-right: clamp(28px, 4vw, 72px); }
.card a { display: block; }
.card-media { position: relative; overflow: hidden; height: var(--card-h); background: var(--bg-2); border-radius: 3px; }
.card:nth-of-type(3n+1) .card-media { height: calc(var(--card-h) * .86); }
.card:nth-of-type(3n+1) .framed { transform: translateY(-5svh); }
.card:nth-of-type(3n+2) .framed { transform: translateY(4svh); }
.card-media img { height: 100%; width: auto; transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.85) brightness(.92); }
.card:hover .card-media img { transform: scale(1.035); filter: none; }
.card-media::after { /* negative flash on hover */
  content: ""; position: absolute; inset: 0; background: var(--fg); mix-blend-mode: difference; opacity: 0; transition: opacity .45s;
}
.card:hover .card-media::after { opacity: .0; }
.card-meta { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; margin-top: 16px; }
.card:nth-of-type(3n+1) .card-meta { margin-top: calc(16px - 5svh); }
.card:nth-of-type(3n+2) .card-meta { margin-top: calc(16px + 4svh); }
.card-meta h3 { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.card-meta .client { color: var(--mute); font-size: 13px; display: block; font-weight: 400; }
.ai-tag { display: inline-block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 99px; margin-left: 8px; vertical-align: 2px; color: #cfcec9; }

/* ---------- software icons beside each frame (from the top-left corner down) ---------- */
.framed { position: relative; }
.sw-tools {
  position: absolute; right: 100%; top: 0; margin: 0 10px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 9px; color: #c9c8c3; z-index: 2;
}
.sw-tools li { width: 16px; height: 16px; display: grid; place-items: center; opacity: .8; transition: opacity .2s, color .2s; }
.sw-tools li:hover { opacity: 1; color: #fff; }
.sw-tools svg { width: 16px; height: 16px; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sw-tools.vp-tools { right: auto; margin: 0; pointer-events: auto; }
.is-full .vp-tools, .is-playing .sw-tools.vp-tools { opacity: 0 !important; pointer-events: none; }

/* ---------- video panels (pin + grow to full screen) ---------- */
.panel--video { width: 100vw; padding: 0; overflow: visible; z-index: 3; }
.vp-backdrop { position: absolute; inset: 0; background: center/cover no-repeat; filter: blur(40px) brightness(.45); opacity: 0; transform: scale(1.1); pointer-events: none; }
.vp-frame { position: absolute; overflow: hidden; background: #000; border-radius: 4px; }
.vp-frame video { width: 100%; height: 100%; object-fit: cover; }
.vp-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 16px;
  border-radius: 99px; background: rgba(6, 6, 6, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .25); font-size: 14px; letter-spacing: .01em;
  transition: background .3s, color .3s, opacity .3s;
}
.vp-play svg { width: 26px; height: 26px; }
.vp-play:hover { background: var(--fg); color: var(--bg); }
.is-playing .vp-play { opacity: 0; pointer-events: none; }
.vp-caption { position: absolute; left: var(--gap); bottom: calc(var(--bottom) + 8px); display: flex; gap: 16px; align-items: baseline; pointer-events: none; }
.vp-caption h3 { font-size: clamp(22px, 2vw, 34px); font-weight: 500; letter-spacing: -.03em; }
.vp-controls {
  position: absolute; left: var(--gap); right: var(--gap); bottom: 74px; z-index: 5;
  display: flex; align-items: center; gap: 18px; opacity: 0; pointer-events: none; transition: opacity .3s;
  mix-blend-mode: difference;
}
.is-full .vp-controls, .is-playing .vp-controls { opacity: 1; pointer-events: auto; }
.vp-controls button { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; min-width: 54px; text-align: left; }
.vp-controls .time { font-family: var(--mono); font-size: 11px; min-width: 92px; }
.vp-progress { flex: 1; -webkit-appearance: none; appearance: none; height: 1px; background: rgba(255, 255, 255, .35); }
.vp-progress::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.vp-progress::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: #fff; }
.vp-hint {
  position: absolute; left: 50%; top: 92px; transform: translateX(-50%); z-index: 5;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 7px 12px; border-radius: 99px;
  background: var(--fg); color: var(--bg); opacity: 0; transition: opacity .4s; white-space: nowrap; pointer-events: none;
}
.is-playing.hint .vp-hint { opacity: 1; }

/* ---------- international ---------- */
.intl { width: max(190vw, 1900px); }
.intl-head { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: end; margin-bottom: 7svh; max-width: 1500px; }
.intl-head p { color: #cfcec9; max-width: 560px; font-size: clamp(15px, 1.1vw, 18px); }
.places { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.place { padding: 22px 28px 0 0; border-right: 1px solid var(--line); margin-right: 22px; position: relative; }
.place::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--fg); }
.place h3 { font-size: clamp(26px, 2.6vw, 46px); font-weight: 500; letter-spacing: -.04em; line-height: 1; margin: 12px 0 6px; }
.place .country { color: #cfcec9; }
.place .what { color: var(--mute); font-size: 13px; margin-top: 18px; max-width: 260px; }
.place .years { margin-top: 26px; display: block; }

/* ---------- career (click a row to open details) ---------- */
.career { width: max(74vw, 820px); }
.career-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.career-head .kicker { margin: 0; }
.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-height: calc(100svh - var(--top) - var(--bottom) - 70px); overflow-y: auto; scrollbar-width: none; }
.job { border-bottom: 1px solid var(--line); }
.job-row { width: 100%; display: grid; grid-template-columns: 120px 1.1fr 1fr 18px; gap: 18px; align-items: baseline; text-align: left; padding: 12px 4px; transition: color .3s, padding .4s var(--ease); }
.job-row .c { color: var(--mute); transition: color .3s; }
.job-row:hover, .job.open .job-row { color: var(--blue); padding-left: 10px; }
.job-row:hover .c, .job.open .job-row .c { color: #cfcec9; }
.plus { width: 11px; height: 11px; position: relative; align-self: center; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.plus::after { transform: rotate(90deg); }
.job.open .plus::after { transform: rotate(0); }
.job-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.job-more > div { overflow: hidden; }
.job-more p { padding: 2px 30px 18px 142px; color: #cfcec9; max-width: 900px; font-size: 14.5px; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .5s var(--ease); }
.job.open .job-more { grid-template-rows: 1fr; }
.job.open .job-more p { opacity: 1; transform: none; transition-delay: .12s; }

/* ---------- AI panel ---------- */
.ai-panel { width: max(176vw, 1800px); }
.ai-grid { display: grid; grid-template-columns: minmax(380px, 1fr) 2.5fr; gap: 5vw; align-items: start; }
.ai-intro > p { color: #cfcec9; max-width: 560px; margin-top: 22px; font-size: clamp(15px, 1.1vw, 18px); }
.ai-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 5svh; border-top: 1px solid var(--line); padding-top: 18px; }
.ai-facts b { display: block; font-size: clamp(28px, 2.6vw, 46px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.ai-facts span { color: var(--mute); font-size: 12.5px; }
.ai-principles { margin-top: 4.5svh; }
.ai-principles ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: pr; }
.ai-principles li { counter-increment: pr; padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.ai-principles li::before { content: counter(pr, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--blue); padding-top: 3px; }
.ai-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-left: 1px solid var(--line); margin-top: 4svh; }
.pillar { padding: 6px 26px 26px; border-right: 1px solid var(--line); min-height: 52svh; display: flex; flex-direction: column; transition: background .4s; }
.pillar:hover { background: rgba(255, 255, 255, .025); }
.pillar h3 { font-size: clamp(22px, 1.9vw, 32px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; margin: 16px 0 14px; }
.pillar > p { color: #b9b8b3; font-size: 14.5px; }
.sw-tools.inline { position: static; flex-direction: row; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.sw-tools.inline li { width: 18px; height: 18px; }
.sw-tools.inline svg { width: 18px; height: 18px; }
.pillar-links { margin-top: auto; padding-top: 22px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 6px 12px; }
.pillar-links a { color: #cfcec9; border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s; }
.pillar-links a:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- disciplines ---------- */
.disc { width: max(120vw, 1200px); }
.disc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.disc-item { padding: 26px 30px 34px 0; border-bottom: 1px solid var(--line); }
.disc-item h3 { font-size: clamp(22px, 2vw, 34px); font-weight: 500; letter-spacing: -.03em; margin-bottom: 10px; }
.disc-item p { color: var(--mute); max-width: 380px; }

/* ---------- clients (logo grid: 5 rows x 10) ---------- */
.clients { width: 100vw; }
.clients-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4svh; }
.logos { display: grid; grid-template-columns: repeat(8, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-cell {
  height: var(--cell-h, 90px);
  display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #000; transition: background .3s;
}
/* one grey for every logo (also for logos uploaded later); CV blue on hover */
.logo-cell img { height: var(--logo-h); width: auto; max-width: 76%; object-fit: contain; filter: brightness(0) invert(.66); transition: filter .3s, transform .5s var(--ease); }
.logo-cell:hover { background: #050505; }
.logo-cell:hover img { filter: brightness(0) saturate(100%) invert(30%) sepia(98%) saturate(2400%) hue-rotate(196deg) brightness(97%); transform: scale(1.04); }
.logo-more { color: var(--mute); }

/* ---------- contact ---------- */
.contact { width: 100vw; justify-content: flex-end; }
.contact h2 { font-size: clamp(60px, 12vw, 240px); font-weight: 600; letter-spacing: -.06em; line-height: .85; }
.contact-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; margin-top: 5svh; align-items: end; }
.contact-row p { color: #cfcec9; max-width: 480px; }
.big-link { font-size: clamp(20px, 2.1vw, 36px); letter-spacing: -.03em; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color .3s; }
.big-link:hover { border-color: var(--fg); }
.contact-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ---------- project page ---------- */
.p-intro { width: max(56vw, 640px); justify-content: flex-end; }
.p-intro .back { margin-bottom: auto; display: inline-flex; gap: 10px; align-items: center; color: var(--mute); }
.p-intro .back:hover { color: var(--fg); }
.p-intro h1 { font-size: clamp(48px, 7.4vw, 150px); font-weight: 600; letter-spacing: -.055em; line-height: .88; }
.p-intro .lede { margin-top: 3svh; font-size: clamp(16px, 1.25vw, 21px); color: #cfcec9; max-width: 620px; }
.meta { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 36px; margin-top: 4svh; justify-content: start; }
.meta dt { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); }
.meta dd { margin: 0; font-size: 14px; }
.media-item { padding: var(--top) clamp(16px, 2vw, 36px) var(--bottom) clamp(40px, 3.4vw, 60px); }
.media-item figure { margin: 0; }
.media-item img { height: 68svh; width: auto; border-radius: 3px; background: var(--bg-2); }
.media-item figcaption { margin-top: 12px; color: var(--mute); font-size: 13px; display: flex; gap: 14px; }
.next { width: 100vw; justify-content: flex-end; }
.next a { display: block; }
.next .big-title { font-size: clamp(54px, 9vw, 180px); font-weight: 600; letter-spacing: -.055em; line-height: .88; transition: color .4s; }
.next a:hover .big-title { color: transparent; -webkit-text-stroke: 1px var(--fg); }
.next-thumb { width: min(36vw, 520px); margin-bottom: 4svh; border-radius: 3px; overflow: hidden; }
.next-thumb img { width: 100%; height: auto; }

/* ---------- timeline (thicker on hover, click anywhere to jump) ---------- */
.timeline {
  position: fixed; left: var(--gap); right: var(--gap); bottom: 14px; z-index: 40; height: 46px;
  mix-blend-mode: difference; cursor: var(--c-hand);
}
.tl-line { position: absolute; left: 0; right: 0; bottom: 14px; height: 1px; background: rgba(255,255,255,.3); transition: height .25s var(--ease), bottom .25s var(--ease), background .25s; }
.timeline:hover .tl-line { height: 4px; bottom: 13px; background: rgba(255,255,255,.42); }
.tl-tick { position: absolute; bottom: 4px; width: 22px; height: 30px; margin-left: -11px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; }
.tl-tick::before { content: ""; width: 1px; height: 6px; background: rgba(255,255,255,.55); transition: height .25s var(--ease), width .25s, background .2s; }
.tl-tick.major::before { height: 11px; background: #fff; }
.timeline:hover .tl-tick::before { width: 2px; height: 14px; }
.timeline:hover .tl-tick.major::before { width: 3px; height: 22px; }
.tl-tick:hover::before { background: #fff; height: 24px !important; width: 3px !important; }
.tl-tick span { display: none; }
.tl-dot { position: absolute; bottom: 11px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #fff; transition: width .25s, height .25s, margin .25s, bottom .25s; pointer-events: none; }
.timeline:hover .tl-dot { width: 13px; height: 13px; margin-left: -6.5px; bottom: 8.5px; }
.tl-now { position: absolute; left: 0; bottom: 26px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #fff; transition: opacity .2s; pointer-events: none; }
.timeline:hover .tl-now { opacity: 0; }
.tl-tip {
  position: absolute; bottom: 38px; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em;
  background: #fff; color: #000; padding: 5px 9px; border-radius: 99px; opacity: 0; transition: opacity .15s;
}
.tl-tip.on { opacity: 1; }

/* ---------- cursor label ---------- */
.cursor-label {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  padding: 5px 10px; border-radius: 99px; background: var(--fg); color: var(--bg);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translate(-999px, -999px); transition: opacity .2s;
}
.cursor-label.on { opacity: 1; }

/* ---------- index overlay ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 70; background: var(--fg); color: var(--bg);
  padding: 90px var(--gap) 40px; overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.overlay.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease); }
.overlay .close { position: fixed; top: 22px; right: var(--gap); font-size: 13px; z-index: 2; }
.overlay h2 { font-size: clamp(40px, 6vw, 110px); letter-spacing: -.05em; font-weight: 600; line-height: .9; margin-bottom: 40px; }
.index-cat { margin-bottom: 44px; }
.index-cat > .mono { display: block; padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,.25); opacity: .6; }
.index-row { display: grid; grid-template-columns: 54px 1.3fr 1.4fr 140px; gap: 18px; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.12); align-items: baseline; transition: padding .3s var(--ease), background .2s; }
.index-row:hover { background: var(--bg); color: var(--fg); padding-left: 12px; }
.index-row .ai-tag { color: inherit; border-color: currentColor; opacity: .7; }
.index-row h3 { font-size: clamp(18px, 1.6vw, 26px); font-weight: 500; letter-spacing: -.02em; }
.index-row .c { opacity: .65; font-size: 14px; }
.index-preview { position: fixed; z-index: 75; width: 300px; pointer-events: none; opacity: 0; transition: opacity .2s; border-radius: 3px; overflow: hidden; }
.index-preview.on { opacity: 1; }
.index-preview img { width: 100%; height: auto; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.94); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .35s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 94vw; max-height: 92svh; width: auto; height: auto; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  :root { --top: 78px; --bottom: 70px; --card-h: 46svh; --gap: 20px; }
  .brand-tag { display: none; }
  .brand-mark { font-size: 30px; }
  .nav { display: none; }
  .menu-btn { display: inline-block; font-size: 13px; }
  .hud.menu-open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: fixed; inset: 0; background: var(--bg); padding: 90px 20px; font-size: 28px; mix-blend-mode: normal;
  }
  .hud.menu-open { mix-blend-mode: normal; }
  .hud.menu-open .menu-btn { position: relative; z-index: 2; }
  .drop-list { position: static; opacity: 1; transform: none; pointer-events: auto; background: none; color: var(--fg); padding: 6px 0 0; font-size: 16px; }
  .drop-list a:hover { background: var(--fg); color: var(--bg); }
  .about { width: 220vw; }
  .about-grid, .intl-head { grid-template-columns: 1fr; gap: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 3svh; }
  .cat-panel { width: 80vw; }
  .intl { width: 560vw; }
  .career { width: 100vw; }
  .job-row { grid-template-columns: 1fr 14px; gap: 4px 10px; }
  .job-row .mono { grid-column: 1 / -1; }
  .job-more p { padding: 0 6px 16px; }
  .ai-panel { width: 440vw; }
  .ai-grid { grid-template-columns: 88vw 1fr; gap: 8vw; }
  .ai-pillars { grid-template-columns: repeat(4, 80vw); }
  .disc { width: 300vw; }
  .clients { width: 100vw; }
  .contact-row { grid-template-columns: 1fr; gap: 18px; }
  .p-intro { width: 100vw; }
  .meta { grid-template-columns: repeat(2, auto); }
  .media-item img { height: 56svh; }
  .index-row { grid-template-columns: 34px 1fr; }
  .index-row .c, .index-row .y { grid-column: 2; }
  .next-thumb { width: 70vw; }
  .vp-hint { white-space: normal; width: 86vw; text-align: center; }
}

@media (hover: none) {
  .light, .cursor-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .scroll-cue i::after { animation: none; }
}

/* ---------- brush ink (assets/js/ink.js) ---------- */
.ink { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 30; pointer-events: none; }

/* ---------- dot world map (International) ---------- */
.intl { position: relative; }
.intl > :not(.world) { position: relative; z-index: 1; }
/* covers the whole International panel; JS slides it slowly while scrolling (parallax) */
.world { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 24vw); pointer-events: none; z-index: 0; will-change: transform; }
.world svg { width: 100%; height: 100%; display: block; }
.world .land { fill: none; stroke: rgba(236, 235, 231, .12); stroke-linecap: round; }
.world .pin-core { fill: #f4f3ef; }
.world .pin-pulse { fill: none; stroke: rgba(244, 243, 239, .55); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pin 2.8s var(--ease) infinite; }
.world .pin:nth-of-type(2n) .pin-pulse { animation-delay: .9s; }
.world .pin:nth-of-type(3n) .pin-pulse { animation-delay: 1.7s; }
.world .pin.on .pin-core { fill: var(--blue); }
.world .pin.on .pin-pulse { stroke: var(--blue); }
@keyframes pin { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.place { transition: background .4s; }
.place:hover h3 { color: var(--blue); }


/* ---------- headline micro-animations ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .02em .08em; margin: 0 -.02em -.08em; }
.w > span { display: inline-block; transform: translateY(108%); transition: transform 1.05s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + 80ms); }
.is-in .w > span { transform: none; }
.hero h1 .neg { background: linear-gradient(var(--fg), var(--fg)) no-repeat left center / 0% 100%; transition: background-size 1.1s var(--ease) .45s; }
.is-in .hero h1 .neg, .hero.is-in h1 .neg { background-size: 100% 100%; }
.hero h1 .neg { background-color: transparent; }
.kicker { transition: letter-spacing 1.4s var(--ease), opacity 1s; }
.panel:not(.is-in) .kicker { letter-spacing: .3em; opacity: 0; }
.cat-num { transition: opacity 1.2s var(--ease), transform 1.4s var(--ease), -webkit-text-stroke-color .6s; }
.cat-panel:not(.is-in) .cat-num { opacity: 0; transform: translateX(-24px); }
.cat-panel:hover .cat-num { -webkit-text-stroke-color: var(--blue); }
.card-meta h3, .disc-item h3, .place h3 { transition: transform .5s var(--ease), color .4s; }
.card:hover .card-meta h3 { transform: translateX(4px); }
.disc-item:hover h3 { color: var(--blue); transform: translateX(4px); }
.big-link { transition: border-color .3s, color .3s; }
.big-link:hover { color: var(--blue); border-color: var(--blue); }
.next a:hover .big-title .w > span { transition-delay: 0s; }

/* ---------- vertical project pages ---------- */
.is-vertical .track { flex-direction: column; height: auto; width: 100vw; }
.is-vertical .panel { width: 100vw; height: auto; }
.is-vertical .p-intro { min-height: 100svh; padding-bottom: calc(var(--bottom) + 6svh); }
.is-vertical .media-item { display: flex; justify-content: center; padding: 7svh var(--gap) 7svh calc(var(--gap) + 34px); }
.is-vertical .media-item img:not(.shield) { width: min(1400px, calc(100vw - 2 * var(--gap) - 34px), calc(86svh * var(--ar, 1.5))); height: auto; }
.is-vertical .panel--video { height: 100svh; }
.is-vertical .next { min-height: 100svh; }

/* stair step: the column ends, the page turns right and slides to the next project */
.is-vertical .track { position: relative; }
.v-col { display: flex; flex-direction: column; width: 100vw; }
.h-tail { position: absolute; left: 100vw; top: 0; height: 100svh; display: flex; }
.is-vertical .h-tail .panel { height: 100svh; }
.is-vertical .step { width: 100vw; flex-direction: row; align-items: flex-end; justify-content: flex-start; padding: var(--top) var(--gap) var(--bottom); }
.step-link { display: flex; align-items: flex-end; gap: clamp(28px, 4vw, 72px); }
.step-cover { position: relative; height: 66svh; border-radius: 3px; overflow: hidden; background: var(--bg-2); flex: none; }
.step-cover img:not(.shield) { height: 100%; width: auto; transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.85) brightness(.92); }
.step-link:hover .step-cover img:not(.shield) { transform: scale(1.03); filter: none; }
.step-meta { padding-bottom: 6px; }
.step .big-title { display: block; font-size: clamp(44px, 6.4vw, 132px); font-weight: 600; letter-spacing: -.055em; line-height: .9; transition: color .4s; }
.step-link:hover .big-title { color: transparent; -webkit-text-stroke: 1px var(--fg); }
.step-foot { position: absolute; left: var(--gap); top: calc(var(--top) + 8px); }
.is-vertical .step-end { width: 46vw; justify-content: flex-end; gap: 14px; padding: var(--top) var(--gap) calc(var(--bottom) + 6px) 0; }
.step-bar { display: block; height: 1px; width: 100%; background: var(--line-2); position: relative; overflow: hidden; }
.step-bar b { position: absolute; inset: 0; background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.stage { transition: opacity .38s var(--ease); }
body.leaving .stage { opacity: 0; }
@media (max-width: 760px) {
  .step-link { flex-direction: column; align-items: flex-start; gap: 22px; }
  .step-cover { height: auto; width: 84vw; }
  .step-cover img:not(.shield) { width: 100%; height: auto; }
  .is-vertical .step-end { width: 70vw; }
}

/* 1-px shield over images and videos: "save image" / "open image" only gets a transparent pixel */
.zoom-btn { position: relative; }
img.shield {
  position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important;
  max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important;
  transform: none !important; filter: none !important; opacity: 0 !important; background: none !important; border-radius: 0 !important;
  z-index: 1; -webkit-user-drag: none; user-select: none;
}
.vp-frame img.shield { z-index: 1; }
.vp-frame .vp-play { z-index: 2; }
img, video { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }

@media (prefers-reduced-motion: reduce) {
  .w > span { transform: none !important; transition: none; }
  .hero h1 .neg { background-size: 100% 100%; transition: none; }
  .panel:not(.is-in) .kicker, .cat-panel:not(.is-in) .cat-num { opacity: 1; transform: none; letter-spacing: .04em; }
  .world .pin-pulse { animation: none; }
}
