:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --bg-elev: #111114;
  --surface: #16161a;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #ececef;
  --muted: #a6a6b0;
  --subtle: #8c8c96;
  --neon: #39c6aa;
  --neon-ink: #0a0a0c;
  --font-display: "Chakra Petch", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --nav-h: 84px;
  --container: 1380px;
  --gutter: clamp(28px, 11vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --noise: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

::selection { background: var(--neon); color: var(--neon-ink); }

.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-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--neon);
  color: var(--neon-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--subtle);
}

/* ---------- Intro screen ---------- */

html.has-intro:not(.intro-done) body { overflow: hidden; }
.intro-done .intro { display: none; }

.intro {
  --x: 50vw;
  --y: 50vh;
  --intro-bg: #0d0f15;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--intro-bg);
  transition: opacity .9s var(--ease), visibility .9s;
}

.intro.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.intro__grain {
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: .14;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.intro__layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.intro__logo {
  position: relative;
  width: min(62vmin, 540px);
  height: auto;
  margin-top: 2vh;
  overflow: visible;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
}

.lg-line { stroke: var(--lg-line); }
.lg-fill { stroke: var(--lg-fill); }

.intro__layer--base {
  --lg-line: rgba(200, 210, 230, .2);
  --lg-fill: var(--intro-bg);
}

.intro__layer--base .lg-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: logo-draw 2.6s var(--ease) forwards;
}

@keyframes logo-draw {
  to { stroke-dashoffset: 0; }
}

.intro__layer--glow {
  --lg-line: #07080b;
  --lg-fill: #07080b;
  background:
    radial-gradient(closest-side, rgba(90, 220, 192, .36), rgba(57, 198, 170, .18) 38%, rgba(57, 198, 170, .05) 70%, transparent) no-repeat,
    var(--intro-bg);
  background-size: 820px 820px, auto;
  background-position: calc(var(--x) - 410px) calc(var(--y) - 410px), 0 0;
  -webkit-mask-image: radial-gradient(360px circle at var(--x) var(--y), #000 0%, rgba(0, 0, 0, .75) 40%, transparent 100%);
  mask-image: radial-gradient(360px circle at var(--x) var(--y), #000 0%, rgba(0, 0, 0, .75) 40%, transparent 100%);
}

.intro__layer--glow .intro__logo {
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .6));
  will-change: transform;
}

.intro__layer--glow .lg-art { filter: url(#lg-texture); }

.intro__clouds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: overlay;
  opacity: .5;
}

.intro__name {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(64px, 14vh, 140px);
  padding-left: .42em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: .42em;
  text-align: center;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .85);
  pointer-events: none;
  opacity: 0;
  animation: fade-in 1.4s 1.2s var(--ease) forwards;
}

@keyframes fade-in {
  to { opacity: 1; }
}

@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.intro__enter {
  --sweep: 0deg;
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(48px, 10vh, 104px);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  margin-inline: auto;
  min-height: 58px;
  padding: 0 28px 0 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01)), rgba(10, 12, 16, .82);
  border: 1px solid rgba(200, 210, 230, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px -20px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  animation: fade-in 1s 1.8s var(--ease) forwards, sweep 4s linear infinite;
  transition: color .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}

/* A light that travels around the border. */
.intro__enter::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  background: conic-gradient(from var(--sweep), transparent 0 70%, rgba(57, 198, 170, .9) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* Hover fill that rises from the bottom. */
.intro__enter::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(57, 198, 170, .2), rgba(57, 198, 170, .03));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .45s var(--ease);
}

.intro__enter svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform .35s var(--ease);
}

@keyframes sweep {
  to { --sweep: 360deg; }
}

.intro__enter:hover,
.intro__enter:focus-visible {
  border-color: rgba(57, 198, 170, .55);
  color: #e9fffa;
}

.intro__enter:hover::after,
.intro__enter:focus-visible::after { transform: none; }

.intro__enter:hover svg { transform: translateX(5px); }
.intro__enter:active { transform: translateY(1px); }

.intro__enter { isolation: isolate; }

@media (max-width: 500px) {
  .intro__enter { padding: 0 20px 0 24px; gap: 12px; letter-spacing: .2em; font-size: 12px; }
}

/* Raster logo: muted at rest, fully lit under the pointer's light. */
.intro__logo--img {
  width: min(66vmin, 600px);
  aspect-ratio: 1100 / 814;
  object-fit: contain;
}

.intro__layer--base .intro__logo--img {
  opacity: 0;
  animation: logo-appear 2.4s .2s var(--ease) forwards;
}

@keyframes logo-appear {
  from { opacity: 0; transform: scale(.97); filter: blur(6px); }
  to { opacity: .14; transform: none; filter: blur(0); }
}

.intro__layer--glow .intro__logo--img {
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .45));
}

.intro.is-leaving .intro__logo {
  transform: scale(1.2);
  filter: blur(6px);
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent);
  pointer-events: none;
  transition: opacity .35s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(10, 10, 12, .74);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.site-header.is-scrolled::before,
.site-header.is-solid::before { opacity: 0; }

.nav {
  position: relative;
  height: 100%;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
}

.nav__group {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  margin-right: -.22em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .25s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: calc(50% - .11em - 10px);
  bottom: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--neon); }

.nav__link:hover::after,
.nav__link.is-active::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__brand {
  display: flex;
  gap: .6em;
  padding: 8px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s var(--ease);
}


.nav__brand:hover { color: var(--text); }

.nav__cta {
  --sweep: 0deg;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px 0 22px;
  margin-left: clamp(0px, 1vw, 12px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01)), rgba(10, 12, 16, .82);
  border: 1px solid rgba(200, 210, 230, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 30px -18px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  animation: sweep 4s linear infinite;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}

.nav__cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  background: conic-gradient(from var(--sweep), transparent 0 70%, rgba(57, 198, 170, .9) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.nav__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(57, 198, 170, .2), rgba(57, 198, 170, .03));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .45s var(--ease);
}

.nav__cta svg {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform .35s var(--ease);
}

.nav__cta:hover,
.nav__cta:focus-visible,
.nav__cta.is-active {
  border-color: rgba(57, 198, 170, .55);
  color: #e9fffa;
}

.nav__cta:hover::after,
.nav__cta:focus-visible::after,
.nav__cta.is-active::after { transform: none; }

.nav__cta:hover svg { transform: translateX(4px); }
.nav__cta:active { transform: translateY(1px); }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.nav__toggle-icon {
  position: relative;
  width: 22px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transition: border-color .25s;
}

.nav__toggle:hover { color: var(--neon); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  background: rgba(10, 10, 12, .97);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 8vw, 40px);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] { color: var(--neon); }

@media (max-width: 899px) {
  :root { --nav-h: 68px; }
  .nav__group { display: none; }
  .nav__toggle { display: inline-flex; }
}

@media (max-width: 380px) {
  .nav__brand { letter-spacing: .18em; font-size: 13px; }
  .nav__toggle { gap: 8px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform .3s var(--ease);
}

.btn:hover svg { transform: translate(3px, -3px); }

.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: var(--neon); color: var(--neon-ink); }

.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--neon); color: var(--neon); }

.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { border-color: var(--line-strong); color: var(--text); }
.btn[aria-disabled="true"]:hover svg { transform: none; }

/* ---------- Placeholder visuals ---------- */

.ph {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 25% 30%, hsl(var(--h, 200) 42% 30% / .85), transparent 65%),
    radial-gradient(60% 80% at 85% 85%, hsl(calc(var(--h, 200) + 35) 45% 24% / .75), transparent 70%),
    linear-gradient(160deg, #18181c, #0b0b0e);
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 60%, #000, transparent);
  mask-image: radial-gradient(80% 80% at 50% 60%, #000, transparent);
}

.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: .12;
  mix-blend-mode: overlay;
}

.ph__label {
  position: absolute;
  right: 4%;
  bottom: -.12em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 1;
  color: rgba(255, 255, 255, .06);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: #050506;
}

.hero__fallback {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(38% 48% at 30% 42%, hsl(168 55% 28% / .6), transparent 70%),
    radial-gradient(32% 42% at 72% 58%, hsl(38 70% 38% / .32), transparent 70%),
    radial-gradient(55% 60% at 50% 105%, hsl(222 45% 22% / .6), transparent 70%),
    #060608;
  animation: hero-drift 24s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  to { transform: translate3d(5%, -4%, 0) scale(1.1) rotate(2deg); }
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.hero__sim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

/* Slow camera push on each shot, like a video clip. */
.hero__slide.is-active,
.hero__slide.is-leaving { animation: slide-push 9s linear forwards; }
.hero__slide.is-active { opacity: 1; }

.hero__slide:nth-child(2):is(.is-active, .is-leaving) { animation-name: slide-pan; }

@keyframes slide-push {
  from { transform: scale(1.02); }
  to { transform: scale(1.14); }
}

@keyframes slide-pan {
  from { transform: scale(1.12) translateX(2.5%); }
  to { transform: scale(1.12) translateX(-2.5%); }
}

.hero.is-paused .hero__slide { animation-play-state: paused; }
.hero.has-slides .hero__sim { display: none; }

.hero__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s var(--ease), visibility 0s 1.2s;
}

.hero.video-ready.show-still .hero__still {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s var(--ease);
  animation: slide-push 9s linear forwards;
}

.hero.still-leaving .hero__still { animation: slide-push 9s linear forwards; }
.hero.is-paused .hero__still { animation-play-state: paused; }

.hero.video-ready .hero__video { opacity: 1; }
.hero.video-ready .hero__sim,
.hero.video-ready .hero__slides { display: none; }
.hero.is-paused .hero__fallback { animation-play-state: paused; }

.hero__grain {
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: .09;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 12, .35) 28%, transparent 55%);
  pointer-events: none;
}

.hero__bottom {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5vh, 48px);
  transform: translateX(-50%);
  width: min(100% - 2 * var(--gutter), var(--container));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
}

.hero__role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.3vw, 32px);
  line-height: 1;
  letter-spacing: .08em;
  /* frosted white, like the glass of the Contact button */
  color: rgba(255, 255, 255, .55);
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .38));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .35));
}

.hero__toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  background: rgba(10, 10, 12, .45);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .25s, border-color .25s;
}

.hero__toggle:hover { color: var(--neon); border-color: var(--neon); }

.hero__toggle-icon {
  width: 10px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

@media (max-width: 600px) {
  .hero__bottom { grid-template-columns: 1fr; gap: 20px; }
  .hero__toggle { justify-self: start; }
}

.hero.is-paused .hero__toggle-icon {
  width: 0;
  height: 0;
  border-left: 10px solid currentColor;
  border-right: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* ---------- Section heads ---------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 20px;
  margin-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: .95;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.section-head__count {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.3vw, 18px);
  letter-spacing: .08em;
  color: var(--subtle);
}

.section-title__count {
  margin-left: .4em;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--subtle);
  vertical-align: super;
}

/* ---------- Works ---------- */

.works {
  padding: clamp(110px, 18vh, 220px) 0 clamp(110px, 18vh, 220px);
  scroll-margin-top: var(--nav-h);
}

.projects {
  display: grid;
  gap: clamp(14px, 2vw, 28px);
}

.project-card {
  position: relative;
  display: block;
  aspect-ratio: 2.95 / 1;
  overflow: hidden;
  background: var(--surface);
  color: #fff;
  text-decoration: none;
}

.project-card__media {
  position: absolute;
  inset: 0;
  transition: transform 1.1s var(--ease);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__index {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .7);
}

.project-card__status,
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(57, 198, 170, .5);
  background: rgba(10, 10, 12, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--neon);
}

.project-card__status::before,
.project-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  animation: status-pulse 1.8s ease-in-out infinite;
}

@keyframes status-pulse {
  50% { opacity: .3; }
}

.project-card__status {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
}

.project-status { margin-left: 12px; vertical-align: middle; }

.project-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  background: rgba(5, 5, 7, .7);
  opacity: 0;
  transition: opacity .45s var(--ease);
}

.project-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: .2em;
  text-transform: uppercase;
  transform: translateY(10px);
  transition: transform .5s var(--ease);
}

.project-card__dash {
  width: 28px;
  height: 2px;
  background: var(--neon);
  transform: scaleX(0);
  transition: transform .5s .1s var(--ease);
}

.project-card__cat {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #d0d0d6;
}

.project-card:hover .project-card__overlay,
.project-card:focus-visible .project-card__overlay { opacity: 1; }

.project-card:hover .project-card__title,
.project-card:focus-visible .project-card__title { transform: none; }

.project-card:hover .project-card__dash,
.project-card:focus-visible .project-card__dash { transform: none; }

.project-card:hover .project-card__media { transform: scale(1.035); }

.project-card:focus-visible { outline-offset: 4px; }

@media (hover: none) {
  .project-card__overlay {
    opacity: 1;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    text-align: left;
    background: linear-gradient(to top, rgba(5, 5, 7, .82), rgba(5, 5, 7, .1) 65%);
  }
  .project-card__title { transform: none; }
  .project-card__dash { transform: none; }
}

@media (max-width: 700px) {
  /* phones: wider cards, title only */
  .works .container { width: calc(100% - 32px); }
  .project-card { aspect-ratio: 16 / 10; }
  .project-card__overlay { padding: 18px; }
  .project-card__cat,
  .project-card__dash { display: none; }
}

/* ---------- Contact ---------- */

.contact {
  padding: clamp(110px, 18vh, 220px) 0 clamp(130px, 22vh, 260px);
  scroll-margin-top: var(--nav-h);
}

.contact__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: end;
  gap: 40px;
  padding: clamp(32px, 5vw, 72px);
  /* neutral glass with a faint green glow, like the Contact button */
  background:
    radial-gradient(70% 140% at 100% 100%, rgba(57, 198, 170, .16), transparent 62%),
    radial-gradient(50% 90% at 0% 0%, rgba(57, 198, 170, .05), transparent 70%),
    #070808;
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* Slow green light running around the border, as on the Contact button. */
.contact__panel::after {
  --sweep: 0deg;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1px;
  /* static green gradient border, with the running light on top */
  background:
    conic-gradient(from var(--sweep), transparent 0 72%, rgba(57, 198, 170, .6) 90%, transparent 100%),
    linear-gradient(135deg, rgba(57, 198, 170, .3), rgba(57, 198, 170, .08) 40%, rgba(57, 198, 170, .08) 60%, rgba(57, 198, 170, .38));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: sweep 9s linear infinite;
  pointer-events: none;
}

.contact__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(57, 198, 170, .38) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 75%);
  mask-image: linear-gradient(to left, #000 10%, transparent 75%);
  pointer-events: none;
}

.contact__panel > * { position: relative; }

.contact__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 72px);
  line-height: .95;
  letter-spacing: .02em;
  white-space: nowrap;
  text-transform: uppercase;
}

.contact__text {
  max-width: 46ch;
  margin-top: 22px;
  font-size: 17px;
  color: var(--muted);
}

.contact__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.contact__mail {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color .25s;
}

.contact__mail:hover { color: var(--neon); }

@media (max-width: 600px) {
  .contact__panel { gap: 48px; padding: 56px 34px 52px; }
  .contact__actions .btn { padding: 0 20px; letter-spacing: .12em; white-space: nowrap; }
  .contact__text { margin-top: 26px; line-height: 1.65; }
  .contact__side { gap: 26px; }
  .contact__actions { flex-direction: column; align-items: stretch; width: 100%; gap: 14px; }
}

@media (max-width: 860px) {
  .contact__panel { grid-template-columns: 1fr; }
  .contact__side { align-items: flex-start; }
  .contact__actions { justify-content: flex-start; }
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  color: var(--subtle);
}

.footer__marquee {
  overflow: hidden;
  padding: clamp(14px, 2vw, 22px) 0;
  border-bottom: 1px solid var(--line);
}

.footer__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.footer__marquee:hover .footer__track { animation-play-state: paused; }

/* JS takes over the scrolling so the band can also be dragged. */
.footer__marquee.is-draggable {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.footer__marquee.is-draggable .footer__track {
  animation: none;
  will-change: transform;
}

.footer__marquee.is-dragging { cursor: grabbing; }

.footer__group {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding-right: clamp(20px, 3vw, 40px);
}

.footer__group span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3.6vw, 50px);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .28);
  transition: color .3s var(--ease), -webkit-text-stroke-color .3s var(--ease);
}

.footer__group span:hover {
  color: var(--text);
  -webkit-text-stroke-color: var(--text);
}

.footer__star {
  flex: none;
  width: clamp(12px, 1.3vw, 18px);
  height: clamp(12px, 1.3vw, 18px);
  fill: var(--neon);
  animation: star-spin 6s linear infinite;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes star-spin {
  to { transform: rotate(360deg); }
}

.footer__stage {
  position: relative;
  isolation: isolate;
}

.footer__floor {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  perspective: 360px;
  /* the far rows (top) are hidden: squeezed lines there shimmer when moving */
  -webkit-mask-image: linear-gradient(to bottom, transparent 46%, rgba(0, 0, 0, .55) 70%, #000 92%);
  mask-image: linear-gradient(to bottom, transparent 46%, rgba(0, 0, 0, .55) 70%, #000 92%);
  pointer-events: none;
}

.footer__floor::before {
  content: "";
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: 0;
  height: 160%;
  transform: rotateX(66deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(57, 198, 170, .3) 2px, transparent 2px),
    linear-gradient(90deg, rgba(57, 198, 170, .3) 2px, transparent 2px);
  background-size: 88px 88px;
  backface-visibility: hidden;
  will-change: transform;
  animation: floor-run 3.2s linear infinite;
}

.footer__floor::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -40%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(57, 198, 170, .22), transparent);
  filter: blur(20px);
}

@keyframes floor-run {
  from { transform: rotateX(66deg) translate3d(0, 0, 0); }
  to { transform: rotateX(66deg) translate3d(0, 88px, 0); }
}

.footer__main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(56px, 9vw, 112px) 0 clamp(80px, 12vw, 160px);
}

.footer__email {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: .01em;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--neon), var(--neon)) 0 100% / 0 2px no-repeat;
  transition: background-size .45s var(--ease), color .3s var(--ease);
}

.footer__email:hover,
.footer__email:focus-visible {
  background-size: 100% 2px;
  color: var(--neon);
}

.footer__label {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--subtle);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.footer__col a {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--text);
  text-decoration: none;
  transition: color .25s var(--ease), transform .25s var(--ease);
}

.footer__col a:hover {
  color: var(--neon);
  transform: translateX(4px);
}

.footer__col a[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 22px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 10, 12, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  text-decoration: none;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}

.footer__top svg {
  width: 16px;
  height: 16px;
  transition: transform .3s var(--ease);
}

.footer__top:hover { border-color: var(--text); }
.footer__top:hover svg { transform: translateY(-3px); }

@media (max-width: 800px) {
  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__intro { grid-column: 1 / -1; }
  .footer__role { display: none; }
}

/* ---------- Inner pages ---------- */

.page-main { padding-top: var(--nav-h); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .25s;
}

.back-link:hover { color: var(--neon); }

/* ---------- Project page ---------- */

.project-page {
  --h: 220;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Textured backdrop: tinted base, soft clouds, grunge mottling and grain. */
.pj-texture {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* near-black neutral grey */
  background-color: #0e0e0f;
  pointer-events: none;
}

.pj-texture::before,
.pj-texture::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='g' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.03' numOctaves='4' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  -1.8 0 0 0 1.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 600px 600px;
  opacity: .55;
}

.pj-texture::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='c' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0045' numOctaves='5' seed='21' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  2.2 0 0 0 -1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  background-size: 900px 900px;
  opacity: .05;
}

.pj-texture::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='g' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.045' numOctaves='4' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  -3 0 0 0 1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"), var(--noise);
  background-size: 420px 420px, 160px 160px;
  opacity: .55;
  mix-blend-mode: multiply;
}

.pj-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--noise);
  opacity: .1;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Header image, fading into the texture with a rough edge. */
.pj-hero {
  position: relative;
  height: min(88vh, 960px);
  min-height: 420px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 600' preserveAspectRatio='none'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.5' cy='.42' r='.62'%3E%3Cstop offset='.5' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.014 .02' numOctaves='4' seed='7' result='n'/%3E%3CfeColorMatrix in='n' type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  1 0 0 0 0' result='na'/%3E%3CfeComposite in='SourceGraphic' in2='na' operator='arithmetic' k1='0' k2='1' k3='.18' k4='-.09'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='1.5' intercept='-.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3C/defs%3E%3Crect width='1000' height='600' fill='url(%23g)' filter='url(%23f)'/%3E%3C/svg%3E") center / 100% 100% no-repeat, linear-gradient(to bottom, #000 60%, transparent 98%);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 600' preserveAspectRatio='none'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.5' cy='.42' r='.62'%3E%3Cstop offset='.5' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.014 .02' numOctaves='4' seed='7' result='n'/%3E%3CfeColorMatrix in='n' type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  1 0 0 0 0' result='na'/%3E%3CfeComposite in='SourceGraphic' in2='na' operator='arithmetic' k1='0' k2='1' k3='.18' k4='-.09'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='1.5' intercept='-.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3C/defs%3E%3Crect width='1000' height='600' fill='url(%23g)' filter='url(%23f)'/%3E%3C/svg%3E") center / 100% 100% no-repeat, linear-gradient(to bottom, #000 60%, transparent 98%);

  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.pj-hero__media {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.pj-hero__media img,
.pj-hero__media .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(.85);
}

/* Project information, rising into the bottom of the header fade. */
.pj-info {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(40px, 7vw, 120px);
  margin-top: calc(min(88vh, 960px) * -.16);
  padding-bottom: clamp(110px, 18vh, 220px);
}

.pj-info .eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.pj-info .project-status { margin-left: 0; }

.project-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1.02;
  overflow-wrap: break-word;
  hyphens: auto;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.project-lead {
  max-width: 34ch;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.4;
  color: var(--text);
}

.pj-desc {
  max-width: 60ch;
  margin-top: 28px;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.75;
  color: var(--muted);
}

.pj-desc p + p { margin-top: 1em; }

.project-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 40px;
  margin-top: clamp(44px, 7vh, 72px);
}

.project-meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--subtle);
}

.project-meta dd { margin-top: 10px; font-size: 17px; }
.project-meta .is-empty dd { color: var(--subtle); font-style: italic; }

/* Text block placed between renders. */
.pj-text {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}

.pj-text__title {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pj-text p {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.8;
  color: var(--muted);
}

.pj-text p + p { margin-top: 1em; }

/* Media: rounded shots floating above the texture. */
.pj-media {
  display: flex;
  flex-direction: column;
  gap: clamp(90px, 15vh, 180px);
  padding-bottom: clamp(40px, 8vh, 100px);
}

.pj-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.pj-row .pj-shot:nth-child(2) { margin-top: clamp(60px, 12vh, 140px); }

.pj-shot {
  margin: 0;
  transform: translate3d(0, calc(var(--drift, 0) * 1px), 0);
  will-change: transform;
}

.pj-shot__frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
  /* on a near-black page a dark shadow barely shows: add a faint light
     rim and a wide soft halo so the shot lifts off the background */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .09),
    0 1px 0 rgba(255, 255, 255, .08) inset,
    0 40px 80px -30px rgba(0, 0, 0, 1),
    0 90px 160px -40px rgba(0, 0, 0, .95),
    0 0 120px -20px rgba(255, 255, 255, .05);
  opacity: 0;
  transform: translateY(70px) scale(.95);
  transition: opacity 1.1s var(--ease), transform 1.4s var(--ease), box-shadow .6s var(--ease);
}

.pj-shot.is-in .pj-shot__frame { opacity: 1; transform: none; }

.pj-shot__frame img,
.pj-shot__frame video {
  display: block;
  width: 100%;
  height: auto;
}

.pj-shot__frame .ph { aspect-ratio: 16 / 9; }
.pj-row .pj-shot__frame img,
.pj-row .pj-shot__frame .ph { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }

.pj-shot figcaption {
  max-width: 60ch;
  margin: 34px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--subtle);
}

/* Next project: rough-edged rounded rectangle. */
.project-next {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 8vh, 88px);
  padding: clamp(140px, 22vh, 260px) var(--gutter) clamp(80px, 12vh, 140px);
}

.project-next__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.project-next__bubble {
  position: relative;
  display: block;
  width: min(96vw, 1180px);
  aspect-ratio: 1000 / 440;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 440' preserveAspectRatio='none'%3E%3Cfilter id='f' filterUnits='userSpaceOnUse' x='0' y='0' width='1000' height='440' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='24' result='soft'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011 .018' numOctaves='4' seed='9' result='n'/%3E%3CfeColorMatrix in='n' type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  1 0 0 0 0' result='na'/%3E%3CfeComposite in='soft' in2='na' operator='arithmetic' k1='0' k2='1' k3='.45' k4='-.22'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='1.9' intercept='-.2'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect x='95' y='68' width='810' height='304' rx='90' fill='%23fff' filter='url(%23f)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 440' preserveAspectRatio='none'%3E%3Cfilter id='f' filterUnits='userSpaceOnUse' x='0' y='0' width='1000' height='440' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='24' result='soft'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011 .018' numOctaves='4' seed='9' result='n'/%3E%3CfeColorMatrix in='n' type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  1 0 0 0 0' result='na'/%3E%3CfeComposite in='soft' in2='na' operator='arithmetic' k1='0' k2='1' k3='.45' k4='-.22'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='1.9' intercept='-.2'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect x='95' y='68' width='810' height='304' rx='90' fill='%23fff' filter='url(%23f)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: scale(.86);
  opacity: 0;
  transition: transform 1.2s var(--ease), opacity 1.2s var(--ease);
}

.project-next__bubble img,
.project-next__bubble .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-next__bubble > * { transition: transform 1s var(--ease); }

.project-next.is-visible .project-next__bubble {
  transform: none;
  opacity: 1;
}

.project-next__link:hover .project-next__bubble > * { transform: scale(1.06); }

.project-next__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: -2%;
  text-align: center;
}

.project-next__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 48px);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .8);
  transition: color .3s var(--ease);
}

.project-next__link:hover .project-next__title { color: var(--neon); }

.project-missing {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding-top: var(--nav-h);
}

@media (max-width: 1100px) {
  .pj-info { grid-template-columns: 1fr; gap: 32px; }
}

/* Lightbox */
.pj-shot__frame img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 64px);
  background: rgba(6, 6, 7, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .35s var(--ease);
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 2 * clamp(16px, 4vw, 64px));
  max-height: calc(100svh - 2 * clamp(16px, 4vw, 64px));
  border-radius: 4px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9);
  transform: scale(.96);
  transition: transform .45s var(--ease);
  cursor: default;
}

.lightbox.is-open .lightbox__img { transform: none; }

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: rgba(10, 12, 16, .7);
  border: 1px solid rgba(200, 210, 230, .16);
  color: var(--text);
  cursor: pointer;
  transition: color .25s, border-color .25s;
}

.lightbox__btn:hover { color: var(--neon); border-color: rgba(57, 198, 170, .55); }
.lightbox__btn svg { width: 18px; height: 18px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

.lightbox__count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}

@media (max-width: 800px) {
  .pj-media { width: calc(100% - 24px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; }
  .lightbox__count { bottom: 22px; }
}

@media (max-width: 800px) {
  .pj-hero { height: 62vh; }
  .pj-info { gap: 28px; margin-top: -8vh; }
  .pj-row { grid-template-columns: 1fr; gap: clamp(90px, 15vh, 180px); }
  .pj-row .pj-shot:nth-child(2) { margin-top: 0; }
  .project-next__bubble { width: calc(100vw - 16px); aspect-ratio: 1000 / 700; }
}

@media (prefers-reduced-motion: reduce) {
  .pj-shot { transform: none; }
  .pj-shot__frame { opacity: 1; transform: none; }
}

/* ---------- Parcours ---------- */

.parcours-intro {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: start;
  gap: 4rem;
  padding: clamp(40px, 7vh, 80px) 0 clamp(64px, 12vh, 140px);
}

.arrow-list {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.arrow-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.arrow-list svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--subtle);
}

.arrow-list a {
  text-decoration: none;
  transition: color .25s;
}

.arrow-list a:hover { color: var(--neon); }
.arrow-list a[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.arrow-list a[aria-disabled="true"]:hover { color: inherit; }

.parcours-bio {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.parcours-bio p {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: var(--muted);
}

.parcours-bio .parcours-lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.9vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--text);
}

.parcours-lead em {
  font-style: normal;
  color: var(--neon);
}

.parcours-section { padding: clamp(72px, 15vh, 170px) 0; }

.parcours-section h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 3.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.parcours-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.7rem;
  width: 42px;
  height: 2px;
  background: var(--text);
}

.parcours-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.parcours-row:last-child { border-bottom: 0; }

.parcours-row h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .04em;
}

.parcours-row__left {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.parcours-row__left p {
  font-size: .92rem;
  color: var(--subtle);
}

.parcours-row__left .parcours-company { color: var(--neon); }

.parcours-row__right {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.parcours-row__right p { color: var(--muted); }

.parcours-date {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}

.parcours-tasks {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.parcours-tasks li {
  position: relative;
  padding-left: 1.4rem;
}

.parcours-tasks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: .6rem;
  height: 1px;
  background: var(--neon);
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.software {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.software__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--neon);
}

.software__logo svg {
  width: 24px;
  height: 24px;
}

.software__mono {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .02em;
  line-height: 1;
}

.software__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .03em;
}

.arrow-list--muted li { color: var(--muted); }
.arrow-list--muted .is-key { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .parcours-intro { grid-template-columns: 1fr; gap: 2.4rem; }
  .parcours-bio { order: -1; }
  .parcours-row { grid-template-columns: 1fr; gap: .8rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
