/* ------------------------------------------------------------------
   Bruna Korb — portfolio
   Tokens, shared header/footer, and page styles.
------------------------------------------------------------------- */


:root {
  --dark: #0C0C0C;
  --black: #070707;
  --paper: #EDEDEB;
  --cream: #F4F2EE;
  --ink: #111111;
  --muted-on-dark: #CFCBC4;
  --muted-on-light: #55524C;
  --faint-on-light: #8C8880;
  --rule-on-light: #CFCDC7;
  --accent: #F6AE55;
  --accent-ink: #8A5A12;

  --gutter: 28px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --font: 'Space Grotesk', system-ui, sans-serif;
  --display: 'Unbounded', 'Space Grotesk', system-ui, sans-serif;
  --para: "Inter Tight", "Helvetica Neue", system-ui, sans-serif; /* body copy, close to the light grotesk on signal-a */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 12px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Themes ----------------------------------------------------------- */
body.theme-dark { --page-bg: var(--dark); background: var(--dark); color: var(--cream); --muted: var(--muted-on-dark); --hover: var(--accent); }
body.theme-light { --page-bg: var(--paper); background: var(--paper); color: var(--ink); --muted: var(--muted-on-light); --hover: var(--accent-ink); }
body.theme-black { --page-bg: var(--black); background: var(--black); color: var(--cream); --muted: var(--muted-on-dark); --hover: var(--accent); }
/* Hover (all pages): no colour change. In a group of links the one under the cursor stays sharp
   and its neighbours blur back (menu, marquees, About links). */
.menu-panel:has(.menu-panel__link:hover) .menu-panel__link:not(:hover),
.marquee__track:has(.marquee__item:hover) .marquee__item:not(:hover),
.ab-marquee__track:has(.marquee__item:hover) .marquee__item:not(:hover) { filter: blur(4px); opacity: .4; }
.marquee__item { transition: filter .35s var(--ease-out), opacity .35s var(--ease-out); }
.caps { text-transform: uppercase; letter-spacing: .02em; }
.caps .no-caps, .no-caps { text-transform: none; letter-spacing: 0; }

/* Full-viewport pages: no document scroll, footer pinned */
body.is-screen { height: 100svh; overflow: hidden; }

/* Shared header ---------------------------------------------------- */
.site-header {
  position: fixed; z-index: 50; top: 29px; left: var(--gutter); right: var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
body.is-page .site-header { position: fixed; transition: transform .5s var(--ease-out), opacity .4s; }
.site-header.is-hidden { transform: translateY(calc(-100% - 40px)); opacity: 0; }
/* once the page has scrolled, a soft fade of the page colour keeps the header readable over videos */
.site-header::before { content: ''; position: absolute; z-index: -1; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); top: -29px; height: calc(100% + 70px);
  background: linear-gradient(var(--page-bg) 55%, transparent); opacity: 0; transition: opacity .4s; pointer-events: none; }
.site-header.is-floating::before { opacity: .5; }
/* sticky columns on project pages make room while the header is showing */
.minimap, .info { transition: top .5s var(--ease-out); }
body.header-over .minimap, body.header-over .info { top: 180px; }
.brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.brand__home { display: flex; gap: 12px; align-items: center; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; } /* same face as the reel title (Unbounded) */
.brand__mark { position: relative; display: inline-block; width: 26px; height: 27px; }
.brand__mark img { width: 26px; height: auto; display: block; }
/* the Lottie canvas has padding around the mark: scale it so the resting pose matches the still logo */
.brand__lottie { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); pointer-events: none; }
.brand__mark.is-animated img { visibility: hidden; }
/* the "white" Lottie has the same dark frames as the black one: flip it to light on dark pages */
.theme-dark .brand__lottie, .theme-black .brand__lottie { filter: invert(1) brightness(1.25); }
.menu-toggle { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.menu-panel__link, .menu-panel__social { text-transform: uppercase; } /* menu links in caps on every page, About included */
.menu-toggle .menu-toggle__icon { display: inline-block; transition: transform .5s var(--ease-out); }
.menu-open .menu-toggle .menu-toggle__icon { transform: rotate(45deg); }
.site-header__email { justify-self: end; color: var(--muted); font-weight: 300; text-transform: none; letter-spacing: 0; }
.site-header__meta { justify-self: center; text-align: center; color: var(--muted); line-height: 1.6; font-weight: 300; text-transform: none; letter-spacing: 0; }

/* Menu panel */
.menu-panel {
  width: 240px; padding: 16px; background: var(--dark); color: var(--muted-on-dark);
  display: flex; flex-direction: column; gap: 10px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease-out), visibility 0s linear .6s;
}
.menu-open .menu-panel { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease-out); }
.menu-panel__link { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease-out), filter .35s var(--ease-out); }
.menu-panel__link sup { font-size: 11px; font-weight: 400; vertical-align: top; }
.menu-open .menu-panel__link { opacity: 1; transform: none; }
.menu-open .menu-panel__link:nth-child(2) { transition-delay: .06s; }
.menu-open .menu-panel__link:nth-child(3) { transition-delay: .12s; }
.menu-panel__link[aria-current="page"] { color: var(--accent); }
.menu-panel__social { margin-top: 6px; padding-top: 10px; border-top: 1px solid #2A2A2A; font-weight: 300; display: flex; gap: 14px; }

/* Shared footer bar */
.site-footer { text-transform: none !important; letter-spacing: 0 !important; /* footers are always in normal case */

  left: var(--gutter); right: var(--gutter); bottom: 22px; z-index: 40;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); color: var(--muted); font-weight: 300;
}
body.is-screen .site-footer { position: fixed; }
.site-footer > :last-child { justify-self: end; }
.footer-email { display: none; } /* Work: the email shows in the footer on phones, where the header hides it */

/* ------------------------------------------------------------------
   Loader
------------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--dark); color: var(--cream);
  transition: clip-path 1s var(--ease-in-out); clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
/* The header's own logo + name are the loader's: they sit above the mask, start bigger at the
   loader's left middle, and glide up into place when loading is done. Never swapped, so no flicker. */
html.skip-loader .loader { display: none; }
body[data-page="home"] .brand__home { transform-origin: 0 0; transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
html:not(.skip-loader) body.logo-on-top .site-header { z-index: 110; } /* above the loader until it is gone */
html:not(.skip-loader) body[data-logo="loader"] .brand__home { transform: translateY(calc(50vh - 29px - 27px * 1.25 / 2)) scale(1.25); }
/* the rest of the header waits under the mask, then scrambles in */
html:not(.skip-loader) body.header-wait .site-header > :not(.brand),
html:not(.skip-loader) body.header-wait .brand > :not(.brand__home) { opacity: 0; }
.brand__mark.is-looping .brand__lottie:not(.is-loop) { visibility: hidden; }
.loader__row { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; justify-content: space-between; align-items: center; }
.loader__pct { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 7vw, 100px); line-height: 1; color: var(--faint-on-light); font-variant-numeric: tabular-nums; text-align: right; margin-left: auto; } /* counter sits flush with the right gutter */
.loader__foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; display: flex; justify-content: space-between; color: var(--muted); font-weight: 300; font-size: 12px; text-transform: none; letter-spacing: 0; } /* same as the site footer */

/* ------------------------------------------------------------------
   Home
------------------------------------------------------------------- */
.reel { position: fixed; inset: 0; overflow: hidden; background: var(--dark); }
.reel video, .reel canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel video.is-hidden { visibility: hidden; }
.reel { will-change: transform; }
.reel__next { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,12,.55) 0%, rgba(12,12,12,.25) 40%, rgba(12,12,12,.85) 100%); pointer-events: none; }
.lens {
  position: fixed; z-index: 5; left: 0; top: 0; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%;
  backdrop-filter: blur(6px) saturate(1.6); -webkit-backdrop-filter: blur(6px) saturate(1.6);
  box-shadow: inset 0 0 40px rgba(255,255,255,.25); pointer-events: none; will-change: transform;
}
.hero { position: fixed; z-index: 10; left: 19.4vw; top: 35.3vh; display: flex; flex-direction: column; align-items: center; gap: 28px; mix-blend-mode: difference; color: #FFFFFF; }
/* TEST: name hidden, tagline alone in the centre of the screen (remove these two lines to go back) */
.hero__title { display: none; }
.hero { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6.6vw, 120px); letter-spacing: .01em; line-height: 1.05; white-space: nowrap; }
.hero__title .char { display: inline-block; transform: translateY(110%); opacity: 0; }
.is-ready .hero__title .char { transform: none; opacity: 1; transition: transform 1.1s var(--ease-out), opacity .6s; transition-delay: calc(var(--i) * 40ms + 200ms); }
.hero__tagline { width: min(686px, 80vw); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 5px; font-size: clamp(12px, 1.15vw, 17px); letter-spacing: .02em; }
.hero__tagline span { opacity: 0; transition: opacity .8s; transition-delay: calc(var(--i) * 30ms + 700ms); }
.is-ready .hero__tagline span { opacity: 1; }

/* hovering a project in the marquee: name + tagline dim behind a still blur */
body.has-glass .lens { display: none; } /* WebGL draws the glass lens instead */
.hero__title, .hero__tagline { transition: opacity .6s var(--ease-out), filter .6s var(--ease-out); }
.is-previewing .hero__tagline { opacity: .5; filter: blur(8px); }
/* the name hands over to the WebGL glass letters (falls back to a soft blur without WebGL) */
.is-previewing .hero__title { opacity: .5; filter: blur(8px); }
.has-glass.is-previewing .hero__title { opacity: 0; filter: blur(4px); }

.marquee { position: fixed; z-index: 10; left: 0; right: 0; bottom: 95px; overflow: hidden; opacity: .8; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item { display: flex; align-items: center; gap: 18px; padding-right: 18px; }
.marquee__name { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 2.9vw, 42px); line-height: 1; transition: color .3s; }
.marquee__item img { width: 60px; height: 38px; object-fit: cover; }

/* ------------------------------------------------------------------
   Work index
------------------------------------------------------------------- */
/* a soft wash of the page colour under the index, so it reads over busy or grey cards */
.work-fade { position: fixed; left: 0; bottom: 0; width: 48vw; height: 42vh; z-index: 15; pointer-events: none;
  background: radial-gradient(ellipse 70% 75% at 0% 100%, rgba(237,237,235,.92) 0%, rgba(237,237,235,.75) 45%, rgba(237,237,235,0) 100%); }
.is-opening .work-fade { opacity: 0; transition: opacity .5s; }
@media (max-width: 760px) { .work-fade { display: none; } }
/* the big index number sits at the bottom left (Round 2 design) */
.work-aside { --idx: clamp(110px, 12.9vw, 200px); position: fixed; left: var(--gutter); bottom: calc(var(--idx) * -.1); display: flex; flex-direction: column; z-index: 20; color: #FFFFFF; mix-blend-mode: difference; } /* white + difference: dark on the paper, inverted over the cards */
.counter { display: flex; align-items: flex-start; gap: 6px; }
.counter__num { font-family: var(--display); font-weight: 800; font-size: var(--idx); letter-spacing: -.04em; height: var(--idx); overflow: hidden; display: inline-flex; margin-top: 0; margin-left: -.038em; } /* cancels the "0" side bearing so the ink lines up with the logo */
.counter__digit { display: inline-block; height: var(--idx); overflow: hidden; transition: width .8s var(--ease-out); }
.counter__digit > span > span { text-align: left; }
.counter__digit > span { display: block; transition: transform .8s var(--ease-out); }
.counter__digit > span > span { height: var(--idx); line-height: var(--idx); }
.counter__total { font-size: calc(var(--idx) * .115); margin-top: calc(var(--idx) * .14); }

.stage { position: fixed; inset: 0; z-index: 10; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; transition: transform .6s var(--ease-out); }
.stage.is-dragging { cursor: grabbing; transition: none; }
.card a, .card video { -webkit-user-drag: none; }
.card {
  position: absolute; left: 50%; top: 50%; width: min(683px, 47.4vw); aspect-ratio: 683 / 420; margin: 0;
  transform-origin: center; transition: transform 1.1s var(--ease-out), opacity .8s, filter .8s;
  will-change: transform;
}
.card video, .card img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* floating: every card drifts gently on its own rhythm */
.card a { display: block; width: 100%; height: 100%; perspective: 1100px; animation: card-float 7s ease-in-out infinite; animation-delay: var(--float-delay, 0s); }
@keyframes card-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  33% { transform: translate3d(4px, -10px, 0) rotate(.5deg); }
  66% { transform: translate3d(-3px, -4px, 0) rotate(-.4deg); }
}
/* 3D tilt toward the cursor on the selected card */
.card__tilt { display: block; width: 100%; height: 100%; background: #ddd; box-shadow: 0 30px 70px rgba(0,0,0,.18);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .6s var(--ease-out), box-shadow .6s; will-change: transform; }
.card.is-tilting .card__tilt { transition: transform .15s linear; box-shadow: calc(var(--ry-n, 0) * -24px) calc(30px + var(--rx-n, 0) * 18px) 70px rgba(0,0,0,.2); }
.card:not(.is-current) { pointer-events: none; }
.card:not(.is-current) .card__tilt { box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .card a { animation: none; } }
.stage.no-anim .card { transition: none; }
/* opening a project from Work */
.work-travel { position: fixed; z-index: 70; object-fit: cover; background: #000; pointer-events: none;
  transition: left .95s var(--ease-in-out), top .95s var(--ease-in-out), width .95s var(--ease-in-out), height .95s var(--ease-in-out); }
.is-opening .site-header, .is-opening .site-footer, .is-opening .work-aside, .is-opening .work-caption { opacity: 0; transition: opacity .5s; pointer-events: none; }
.is-opening .card { transition: transform 1s var(--ease-in-out), opacity .7s; }
/* arriving from the homepage: the card is already in place, the rest fades in */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.from-home .site-header, .from-home .site-footer, .from-home .work-aside, .from-home .work-caption { animation: fade-in .7s .1s both; }
.from-home .card:not(.is-current) { animation: fade-in .9s .3s both; }
.card.is-current:hover { cursor: pointer; }

/* title + category in the right column, level with the centre of the selected project */
.work-caption { position: fixed; z-index: 20; left: calc(50% + min(683px, 47.4vw) / 2 + clamp(40px, 7.5vw, 110px)); top: 50%; transform: translateY(-50%); max-width: calc(50% - min(683px, 47.4vw) / 2 - clamp(40px, 7.5vw, 110px) - var(--gutter)); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; }
.work-caption__title { display: inline-block; padding: .06em .02em; font-family: var(--display); font-weight: 800; font-size: clamp(16px, 1.575vw, 22.4px); line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }
.work-caption__cat { display: inline-block; padding: .1em 0; color: var(--muted); font-weight: 300; font-size: 8.4px; }
/* title + category: simple fade — out as soon as a move or drag starts, back in once it settles */
.swap { display: inline-block; transition: opacity .35s var(--ease-out), filter .35s var(--ease-out); will-change: filter; }
.swap.is-out { opacity: .35; filter: blur(9px); } /* soft blur in place, text swaps while blurred, then sharpens */

/* ------------------------------------------------------------------
   Project page
------------------------------------------------------------------- */
.project { position: relative; padding: 150px var(--gutter) 120px; display: grid; grid-template-columns: 84px minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.minimap { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 6px; }
.minimap__back { color: var(--muted); font-weight: 300; margin-bottom: 8px; text-transform: uppercase; }
.minimap__items { position: relative; display: flex; flex-direction: column; gap: 6px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.minimap__items.is-scrubbing { cursor: grabbing; }
.minimap__items img { -webkit-user-drag: none; pointer-events: none; }
.minimap__items button img { width: 100%; object-fit: cover; opacity: .85; transition: opacity .3s; }
.minimap__items button:hover img { opacity: 1; }
.minimap__view { position: absolute; left: -5px; right: -5px; top: 0; border: 1.5px solid var(--accent); pointer-events: none; will-change: transform; }
.media { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.media__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.media__item { position: relative; overflow: hidden; background: #DCDBD7; }
.media__item video { width: 100%; height: auto; }
/* side-by-side clips: both fill the row height, cropping instead of leaving a gap */
.media__pair .media__item video { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.media__pair.is-single .media__item { width: calc(50% - 14px); justify-self: center; grid-column: 1 / -1; }
/* phone recordings: real proportions, centred, never taller than the screen */
.media__phones { display: flex; justify-content: center; gap: 28px; padding: 48px 0; background: #E4E3DF; }
.media__item--phone { flex: 0 1 auto; width: min(300px, calc((75vh - 96px) * 9 / 19.5)); background: transparent; }
.media__item--phone video { width: 100%; height: auto; }
.media__sound { position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 9px 14px; border-radius: 999px; background: rgba(12,12,12,.72); color: var(--cream); font-weight: 400; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s, color .3s; }
.media__sound:hover, .media__sound[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
/* once the sound is on, the button gets out of the way: it comes back on hover (or a tap on touch screens) to turn it off */
.media__sound { transition: background .3s, color .3s, opacity .35s var(--ease-out); }
.media__sound[aria-pressed="true"] { opacity: 0; pointer-events: none; }
.media__item:hover .media__sound[aria-pressed="true"], .media__item.show-sound .media__sound[aria-pressed="true"], .media__sound[aria-pressed="true"]:focus-visible { opacity: 1; pointer-events: auto; }
.media__item--phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* a set of three (still, vertical cut, still): equal widths that always fit the column */
.media__phones--set .media__item--phone { flex: 1 1 0; width: auto; max-width: 300px; }
/* micro interaction banners: stacked in the middle of a dark panel, each at about its real size */
.media__phones--banners { flex-direction: column; align-items: center; gap: 22px; padding: 56px 20px; background: #0C0C0C; }
.media__phones--banners .media__item--phone { flex: none; max-width: none; }
.info { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 28px; }
.info__label { color: var(--muted); font-weight: 300; text-transform: uppercase; display: block; margin-bottom: 6px; }
.info__title { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.01em; }
.info p { font-weight: 300; font-size: 14px; line-height: 1.6; }
.info__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.next { position: relative; height: 300px; background: var(--dark); color: var(--cream); --muted: var(--muted-on-dark); }
.next__link { position: absolute; left: var(--gutter); right: var(--gutter); top: 0; bottom: 60px; display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.next__link > span { min-width: 0; }
.next__media { flex: none; }
.next__label { color: #A8A49D; font-weight: 300; text-transform: uppercase; display: block; margin-bottom: 14px; }
.next__title { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 84px); white-space: nowrap; line-height: .9; text-transform: uppercase; transition: color .3s; }
.next__link img, .next__media { width: 320px; aspect-ratio: 16 / 10; object-fit: cover; background: #000; }
/* same 3D tilt as the Work cards: the video leans toward the cursor */
.next__media { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease-out), box-shadow .6s; will-change: transform; }
.next__media.is-tilting { transition: transform .15s linear; box-shadow: calc(var(--ry-n, 0) * -24px) calc(30px + var(--rx-n, 0) * 18px) 70px rgba(0,0,0,.45); }
/* while the transition runs, the band's title + video are carried by the overlay */
.next.is-travelling .next__link > span, .next.is-travelling .next__media { visibility: hidden; }
.next.is-travelling .site-footer { opacity: 0; transition: opacity .3s; }
.next .site-footer { position: absolute; }

/* next-project transition (scroll-driven) and the wipe on arrival */
.next-veil { position: fixed; inset: 0; z-index: 60; pointer-events: none; visibility: hidden; color: var(--cream); perspective: 1400px; }
.next-veil__bg { position: absolute; inset: 0; background: var(--dark); clip-path: inset(100% 0 0 0); }
.next-veil__title { position: absolute; z-index: 2; left: 0; top: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; transform-origin: 0 0; will-change: transform, opacity; }
.next-veil__title .next__label { margin: 0 0 14px; }
.next-veil__name { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 84px); line-height: .9; text-transform: uppercase; white-space: nowrap; }
.next-veil__media { position: absolute; z-index: 1; left: 0; top: 0; object-fit: cover; transform-origin: 50% 50%; backface-visibility: hidden; will-change: transform, width, height; background: #000; }
.next-veil.is-arriving { visibility: visible; }
.next-veil.is-arriving .next-veil__bg { clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease-in-out) .15s; }
.next-veil.is-arriving.is-open .next-veil__bg { clip-path: inset(0 0 100% 0); }
/* covers the page until the arrival script takes over (set in project.html) */
html.is-entering body::after { content: ''; position: fixed; inset: 0; z-index: 59; background: var(--dark); }
html.is-entering-light body::after { content: ''; position: fixed; inset: 0; z-index: 59; background: var(--paper); transition: opacity .65s var(--ease-out); }
html.is-entering-light.is-revealing body::after { opacity: 0; }

/* ------------------------------------------------------------------
   About: layout after signal-a.studio/about, in the site's own type (Unbounded + Space Grotesk, no caps)
------------------------------------------------------------------- */
.ab { padding: 150px var(--gutter) 140px; display: flex; flex-direction: column; gap: 150px; }
.ab-display { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -.03em; text-transform: uppercase; }
.ab-hero { display: flex; align-items: flex-end; justify-content: center; gap: 24px; } /* headline + subtitle, centred as one group on the page */ /* headline, then the one-line subtitle right after it */
.ab-hero h1 { margin-left: 0; white-space: nowrap; width: max-content; text-align: justify; text-align-last: justify; } /* pushed in from the left, both lines justified to the same width */
.ab-feature { width: min(772px, 100%); align-self: center; display: flex; flex-direction: column; gap: 12px; }
.ab-spread { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font-family: var(--display); font-weight: 700; font-size: 13px; line-height: 1.15; text-transform: uppercase; }
.ab-spread span:nth-child(3) { text-align: center; } .ab-spread span:nth-child(4) { text-align: right; }
.ab-media { position: relative; aspect-ratio: 772 / 352; background: var(--black); overflow: hidden; }
.ab-media video { width: 100%; height: 100%; object-fit: cover; }
.ab-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.ab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.ab-lead { max-width: 20em; margin-left: 30%; } /* 40% narrower than before (about 340px) */
/* paragraph title (after signal-a): same size as the copy, bold caps, justified with the same indent */
.ab-ptitle { font-family: var(--para); font-weight: 700; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.2; text-transform: uppercase; letter-spacing: .01em; text-align: justify; text-justify: inter-word; text-indent: 25%; }
.ab-hero__sub { white-space: nowrap; text-indent: 0; margin-bottom: .55em; margin-left: 0; margin-right: 0; font-weight: 400; text-transform: none; letter-spacing: 0; } /* one line, sitting on the headline's last line */
.ab-text { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.5; max-width: 52ch; }
.ab-indent { text-indent: 25%; }
.ab-disciplines > div:last-child { width: fit-content; } /* the pill row spans exactly the paragraph below it */
.ab-pill-row { display: flex; align-items: center; justify-content: space-between; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 70px; font-size: 12px; }
.ab-pill { width: 64px; height: 28px; border: 1px solid currentColor; border-radius: 999px; position: relative; }
.ab-pill::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.ab-heading { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(16px, 1.4vw, 20px); margin: 0 0 14px calc(50% + var(--gutter) / 2); }
.ab-lettered { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
.ab-lettered li { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--ink); }
.ab-lettered span { font-size: 12px; color: var(--muted); }
.ab-lettered strong { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.7vw, 26px); letter-spacing: -.01em; }
.ab-label { font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; padding-top: 14px; border-top: 1px solid var(--ink); }
.ab-table dl { margin: 0; border-top: 1px solid var(--ink); }
.ab-table dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--rule-on-light); }
.ab-table dt { font-family: var(--display); font-weight: 700; font-size: clamp(14px, 1.15vw, 17px); }
.ab-table dd { margin: 0; font-size: 12px; color: var(--muted); text-align: right; }
/* portrait block (after the testimonial layout on signal-a): a narrow centred column */
.ab-person { width: clamp(420px, 25vw, 560px); max-width: 100%; align-self: center; }
.ab-person__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.ab-person__note { align-self: end; margin: 0; font-size: 13px; line-height: 1.45; text-indent: 25%; }
.ab-person__photo { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.ab-person__photo { position: relative; }
.ab-person__photo canvas { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1 / 1; pointer-events: none; opacity: 0; }
.ab-person__photo.is-live canvas { opacity: 1; }
.ab-person__photo.is-live img { visibility: hidden; }
.ab-person__photo img { filter: grayscale(1); width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 28%; }
/* the reel's marquee, in the page flow */
.ab-marquee { margin: 0 calc(-1 * var(--gutter)); overflow: hidden; }
.ab-marquee__track { display: flex; width: max-content; will-change: transform; }
.ab-marquee .marquee__name { text-transform: uppercase; }
/* About: the footer sits in the page flow, between the links and the reel */
.ab .site-footer { position: static; margin: -80px 0 0; }
/* keep scrolling: the reel grows from 50% to full screen, then the homepage takes over */
.ab-to-home { height: 180vh; margin: 0 calc(-1 * var(--gutter)) -140px; }
.ab-to-home__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.ab-to-home__reel { position: absolute; inset: 0; transform: scale(.5); transform-origin: 50% 50%; background: var(--dark); will-change: transform; }
.ab-to-home__reel video { width: 100%; height: 100%; object-fit: cover; }
.ab-to-home__shade { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(180deg, rgba(12,12,12,.55) 0%, rgba(12,12,12,.25) 40%, rgba(12,12,12,.85) 100%); }

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .project { grid-template-columns: minmax(0, 1fr) 280px; }
  .minimap { display: none; }
}
/* tablets: the selected Work card 50% bigger, its title + category centred below it */
@media (min-width: 761px) and (max-width: 1180px) {
  :root { --card-w: min(1024px, 71.1vw, (100svh - 380px) * 683 / 420); } /* 1.5x, but never taller than the screen allows (landscape) */
  .card { width: var(--card-w); top: calc(50% - 40px); }
  .work-caption { left: 50%; top: calc(50% - 40px + var(--card-w) * 420 / 683 / 2 + 28px); transform: translateX(-50%); max-width: none; width: 100%; align-items: center; text-align: center; }
  .work-caption__title { font-size: 30px; }
  .work-caption__cat { font-size: 11px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .site-header { top: 18px; grid-template-columns: minmax(0, 1fr) auto; }
  /* email under the clock, level with Menu */
  .site-header__email { position: absolute; right: 0; top: 37px; line-height: 44px; } /* logo 27px + 10px gap: the Menu row */
  .site-header__meta { justify-self: end; text-align: right; }
  .hero { left: var(--gutter); right: var(--gutter); top: 32vh; align-items: flex-start; }
  .hero__title { font-size: 15vw; white-space: normal; }
  .hero__tagline { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .lens { display: none; }
  .loader__foot > :nth-child(2) { display: none; }
  /* counter low on the screen, just above the footer */
  .loader__row { top: auto; bottom: 56px; transform: none; }
  .marquee { bottom: 70px; }
  .site-footer > :nth-child(2) { display: none; }
  .site-footer { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; } /* © stays on the right */
  .counter__num { font-size: 80px; height: 80px; margin-top: -8px; } .counter__digit { height: 80px; }
  .counter__digit > span > span { height: 80px; line-height: 80px; }
  .card { width: calc(100vw - 2 * var(--gutter)); top: calc(50% - 50px); } /* card + caption centred between the menu and the index number */
  .work-caption { left: 50%; transform: translateX(-50%); max-width: none; top: calc(50% - 50px + (100vw - 32px) * 420 / 683 / 2 + 20px); width: 100%; align-items: center; text-align: center; }
  .work-caption__title { font-size: 30px; }
  /* index number at the bottom right, just above the footer */
  .work-aside { left: auto; right: var(--gutter); top: auto; bottom: 44px; align-items: flex-end; }
  .project { grid-template-columns: minmax(0, 1fr); padding-top: 110px; gap: 32px; }
  .info { position: static; order: -1; }
  .media__pair { grid-template-columns: minmax(0, 1fr); }
  .media__phones--set { gap: 10px; padding: 24px 10px; }
  /* next project band: title, then its video below, the footer under both */
  .next { height: auto; padding: 56px var(--gutter) 70px; }
  .next__link { position: static; flex-direction: column; align-items: flex-start; gap: 24px; }
  .next__title, .next-veil__name { font-size: min(34px, 8.6vw); }
  .next__link img, .next__media { width: 100%; }
  .ab { padding-top: 110px; gap: 90px; }
  .ab-hero, .ab-grid, .ab-lettered { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .ab-heading { margin-left: 0; }
  .ab-indent { text-indent: 0; }
  .ab-disciplines > div:first-child { display: none; }
  .ab-person { width: 100%; min-width: 0; margin-left: 0; }
  .ab-lead { margin-left: 0; max-width: none; } /* same width as the paragraph below */
  .ab-lettered { row-gap: 0; }
  .ab-lettered li { padding: 8px 0; }
  .ab .site-footer { margin: 0; }
  .ab-hero { flex-direction: column; align-items: flex-start; gap: 24px; }
  .ab-hero__sub { white-space: normal; margin: 0; }
  .ab-hero h1 { margin-left: 0; font-size: 7.8vw; width: 100%; } /* both lines fit the screen, still justified */
  .ab-spread { font-size: 10px; }
  .ab-table dl { border-top: 0; } /* no rule under Experience / Recognition */
  .ab-person__photo { width: 50%; justify-self: center; }
  .ab-person__grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .ab-person__note { order: 2; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
}

/* Body copy everywhere: light grotesk, justified (no hyphenation) */
.ab-text, .info p { font-family: var(--para); font-weight: 300; text-align: justify; text-justify: inter-word; hyphens: manual; }
