/* ==========================================================================
   Damian — personal site
   A dark gallery with one bright room. Type: SF (system) + Instrument Serif.
   ========================================================================== */

:root {
  --bg: #050506;
  --fg: #f5f5f7;
  --muted: #8e8e93;
  --line: rgba(245, 245, 247, .12);

  --light-bg: #f5f5f7;
  --light-fg: #1d1d1f;
  --light-muted: #6e6e73;

  --blue: #1a3cc8;
  --cream: #f3ead6;

  --c-builder: #4d74ff;
  --c-marketer: #ff5ad9;
  --c-designer: #8be9ff;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --pad: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --page-bg: var(--bg);
  --page-fg: var(--fg);
  --page-muted: var(--muted);
  --page-line: var(--line);
}

body[data-theme="light"] {
  --page-bg: var(--light-bg);
  --page-fg: var(--light-fg);
  --page-muted: var(--light-muted);
  --page-line: rgba(29, 29, 31, .12);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color .9s var(--ease), color .9s var(--ease);
}

::selection { background: var(--c-builder); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video, canvas { display: block; max-width: 100%; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.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;
}
.muted { color: var(--page-muted); }

:focus-visible { outline: 2px solid var(--c-builder); outline-offset: 4px; border-radius: 4px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: lowercase;
  color: var(--page-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

.h2 {
  font-size: clamp(48px, 8.4vw, 148px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .9;
}
.h2 .line { display: inline-block; }
.h2 em { letter-spacing: -.02em; }
.h3 {
  font-size: clamp(32px, 4.4vw, 68px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
}

/* ───────── media slots (canvas now, video / image later) ───────── */
.media { position: relative; overflow: hidden; }
.media > canvas, .media > video, .media > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.media:has(> video, > img) > canvas { display: none; }

/* ───────── grain, cursor, progress ───────── */
.grain {
  position: fixed; inset: -100%;
  z-index: 90; pointer-events: none;
  opacity: .085;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
body[data-theme="light"] .grain { opacity: .05; mix-blend-mode: multiply; filter: invert(1); }
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(4%, -8%); }
  60% { transform: translate(-9%, -3%); }
  80% { transform: translate(7%, 9%); }
  100% { transform: translate(0, 0); }
}

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.js body, html.js a, html.js button, html.js summary, html.js label { cursor: none; }
  html.js input, html.js textarea { cursor: text; }
  .cursor {
    display: block;
    position: fixed; left: 0; top: 0; z-index: 150;
    pointer-events: none;
    mix-blend-mode: difference;
  }
  .cursor__dot, .cursor__ring {
    position: absolute; left: 0; top: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .cursor__dot { width: 6px; height: 6px; background: #fff; }
  .cursor__ring {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,.7);
    display: grid; place-items: center;
    transition: width .5s var(--ease), height .5s var(--ease), background-color .4s, border-color .4s;
  }
  .cursor__label {
    font-family: var(--mono); font-size: 11px; letter-spacing: .02em;
    color: #050506; opacity: 0; transition: opacity .3s;
    white-space: nowrap;
  }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(255,255,255,.08); }
  .cursor.has-label { mix-blend-mode: normal; }
  .cursor.has-label .cursor__ring { width: 96px; height: 96px; background: var(--fg); border-color: transparent; }
  .cursor.has-label .cursor__label { opacity: 1; }
  .cursor.has-label .cursor__dot { opacity: 0; }
}

.progress {
  position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 120;
  pointer-events: none;
}
.progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--c-builder), var(--c-marketer), var(--c-designer));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ───────── loader ───────── */
.loader { display: none; }
html.js:not(.reduce) .loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--pad);
  background: var(--bg);
  color: var(--fg);
}
.loader__top {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.loader__mid {
  position: relative; height: 1.1em;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(56px, 10vw, 160px); line-height: 1;
  overflow: hidden;
}
.loader__word {
  position: absolute; left: 0; top: 0;
  transform: translateY(110%);
}
.loader__bottom { display: flex; align-items: flex-end; gap: 4vw; }
.loader__bar { flex: 1; height: 1px; background: var(--line); margin-bottom: 1.4em; }
.loader__bar i { display: block; height: 100%; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); }
.loader__count {
  font-size: clamp(64px, 12vw, 200px);
  font-weight: 600; letter-spacing: -.06em; line-height: .8;
  font-variant-numeric: tabular-nums;
}

/* ───────── nav ───────── */
.nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  pointer-events: none;
  transition: transform .7s var(--ease);
}
.nav.is-hidden { transform: translateY(-120%); }
.nav > * { pointer-events: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px;
  border-radius: 999px;
  background: rgba(22, 22, 24, .55);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--fg);
  font-size: 14px;
  border: 1px solid rgba(255,255,255,.06);
  transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s;
}
body[data-theme="light"] .pill { background: rgba(255,255,255,.72); color: var(--light-fg); border-color: rgba(0,0,0,.06); }
.pill--solid, body[data-theme="light"] .pill--solid { background: var(--fg); color: var(--bg); }
body[data-theme="light"] .pill--solid { background: var(--light-fg); color: var(--light-bg); }
.nav__mark { width: 22px; height: 22px; display: grid; }
.nav__mark svg { width: 100%; height: 100%; }
.nav__logo { font-weight: 500; }
.nav__links { gap: 4px; padding: 0 8px; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px;
  transition: background-color .3s;
}
.nav__links a:hover { background: rgba(255,255,255,.08); }
body[data-theme="light"] .nav__links a:hover { background: rgba(0,0,0,.05); }
.nav__cta { font-weight: 500; }
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__lang { gap: 2px; padding: 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.nav__lang a {
  padding: 7px 10px; border-radius: 999px;
  opacity: .5;
  transition: opacity .3s, background-color .3s;
}
.nav__lang a:hover { opacity: 1; }
.nav__lang a[aria-current] { opacity: 1; background: rgba(255,255,255,.1); }
body[data-theme="light"] .nav__lang a[aria-current] { background: rgba(0,0,0,.07); }
.nav__burger { display: none; width: 46px; padding: 0; justify-content: center; flex-direction: column; gap: 6px; }
.nav__burger i { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.nav__burger[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu a {
  font-size: clamp(48px, 14vw, 96px); font-weight: 600; letter-spacing: -.05em; line-height: 1.05;
  color: var(--fg);
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
}

/* ───────── hero ───────── */
.hero {
  position: relative;
  height: 100svh; min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__media:has(> video, > img) ~ .hero__canvas { opacity: .55; }
.hero__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 60% 45%, transparent 40%, rgba(5,5,6,.75) 100%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}

.hero__grid {
  --fs: min(14vw, 22vh);
  position: absolute; left: 0; right: 0; top: max(96px, 12vh);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  padding: 0 calc(var(--pad) * .6);
}
.hero__word {
  grid-column: 1 / -1;
  justify-self: start;
  display: flex; align-items: flex-start;
  font-size: var(--fs);
  font-weight: 600;
  line-height: .84;
  letter-spacing: -.058em;
  text-align: left;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 245, 247, .34);
  transition: color .8s var(--ease), -webkit-text-stroke-color .8s var(--ease);
  white-space: nowrap;
}
.hero__word:nth-of-type(1) { grid-row: 1; }
.hero__word:nth-of-type(2) { grid-row: 2; grid-column: 5 / -1; }
.hero__word:nth-of-type(3) { grid-row: 3; grid-column: 2 / -1; }
.hero__word:hover { -webkit-text-stroke-color: rgba(245,245,247,.75); }
.hero__word.is-active { color: var(--fg); -webkit-text-stroke-color: transparent; }
.hero__word sup {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0; line-height: 1;
  color: var(--muted);
  -webkit-text-stroke: 0;
  margin: .9em .9em 0 0;
  transition: color .6s;
}
.hero__word.is-active sup { color: var(--tint, var(--fg)); }
.split { display: inline-block; padding: 0 .02em .14em; margin-bottom: -.14em; overflow: hidden; }
.char { display: inline-block; will-change: transform; }

.hero__intro {
  grid-row: 3; grid-column: 10 / -1;
  align-self: center;
  max-width: 300px;
  font-size: 15px; line-height: 1.4;
  text-wrap: pretty;
}
.hero__meta { display: flex; flex-direction: column; position: relative; }
.hero__meta strong { font-size: clamp(30px, 3vw, 48px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.hero__meta small { font-size: 12px; color: var(--muted); margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; }
.hero__meta--tr { grid-row: 1; grid-column: 9 / -1; justify-self: end; align-self: center; text-align: right; align-items: flex-end; }
.hero__meta--bl { grid-row: 2; grid-column: 1 / 5; align-self: end; margin-left: 3.5vw; }
.hero__meta--br {
  position: absolute; right: var(--pad); bottom: max(32px, 6vh);
  text-align: right; align-items: flex-end;
}
.hero__line {
  position: absolute; width: 90px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,245,247,.5));
}
.hero__meta--tr .hero__line { right: calc(100% + 16px); top: 6px; transform: rotate(18deg); transform-origin: right; }
.hero__meta--bl .hero__line { left: calc(100% + 16px); top: 34px; transform: rotate(-18deg); transform-origin: left; background: linear-gradient(270deg, transparent, rgba(245,245,247,.5)); }
.hero__meta--br .hero__line { right: calc(100% + 16px); top: 6px; transform: rotate(18deg); transform-origin: right; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 0 rgba(48,209,88,.6); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(48,209,88,0); } 100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: max(28px, 5vh);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.hero__scroll i { width: 1px; height: 46px; background: rgba(245,245,247,.15); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--fg);
  animation: drip 1.8s var(--ease) infinite;
}
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

@media (max-width: 760px) {
  .hero__grid { --fs: 18vw; top: 110px; }
  .hero__word:nth-of-type(2) { grid-column: 2 / -1; }
  .hero__word:nth-of-type(3) { grid-column: 1 / -1; }
  .hero__intro { grid-row: 5; grid-column: 1 / -1; margin: 28px 0 0 3vw; }
  .hero__meta--tr, .hero__meta--bl { display: none; }
  .hero__meta--br { left: var(--pad); right: auto; text-align: left; align-items: flex-start; }
  .hero__meta--br .hero__line, .hero__scroll { display: none; }
}

/* ───────── manifest ───────── */
.manifest { position: relative; }
.manifest__inner {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 14vh var(--pad);
  max-width: 1320px; margin: 0 auto;
}
.manifest__text {
  font-size: clamp(30px, 4.6vw, 72px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.manifest__text em { font-size: 1.08em; }
.w { display: inline-block; white-space: pre; }
html.js:not(.reduce) [data-words] .w { opacity: .13; }

/* ───────── rooms (horizontal gallery) ───────── */
.rooms__head {
  padding: 18vh var(--pad) 6vh;
  display: flex; flex-direction: column; gap: 28px;
}
.rooms__title {
  font-size: clamp(48px, 9vw, 160px);
  font-weight: 600; letter-spacing: -.06em; line-height: .88;
}
.rooms__title > * { display: inline-block; }
.rooms__pin { position: relative; overflow: hidden; }
.rooms__track { display: flex; width: max-content; }
.room {
  position: relative;
  width: 100vw; height: 100vh; min-height: 640px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6vw;
  padding: 10vh 8vw 12vh;
  overflow: hidden;
}
.room__num {
  position: absolute; right: -2vw; bottom: -14vh;
  font-size: 52vw; font-weight: 600; letter-spacing: -.08em; line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,245,247,.07);
  pointer-events: none;
  z-index: -1;
}
.room__frame {
  position: relative;
  width: min(34vw, 52vh); aspect-ratio: 4 / 5;
  padding: 14px;
  border: 1px solid var(--line);
  background: #09090b;
}
.room__frame .media { width: 100%; height: 100%; }
.room__frame::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  box-shadow: 0 60px 120px -40px color-mix(in srgb, var(--tint) 45%, transparent);
}
.room__plate {
  position: absolute; left: 0; right: 0; top: calc(100% + 16px);
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.room__text { max-width: 560px; display: flex; flex-direction: column; gap: 28px; }
.room__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--tint);
}
.room__kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 18px var(--tint); }
.room__h {
  font-size: clamp(36px, 4.6vw, 76px);
  font-weight: 600; letter-spacing: -.048em; line-height: .98;
  text-wrap: balance;
}
.room__h em { color: var(--tint); }
.room__body { color: var(--muted); font-size: 19px; line-height: 1.45; max-width: 460px; }
.room__spec { display: grid; border-top: 1px solid var(--line); }
.room__spec div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.room__spec dt { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }

.rooms__progress {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 4vh;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.rooms__progress i { flex: 1; height: 1px; background: var(--line); position: relative; }
.rooms__progress b { position: absolute; inset: 0; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 900px) {
  .rooms__track { flex-direction: column; width: auto; }
  .room { width: auto; height: auto; min-height: 0; grid-template-columns: 1fr; padding: 8vh var(--pad) 12vh; gap: 64px; }
  .room__frame { width: 100%; max-width: 460px; }
  .room__num { font-size: 70vw; bottom: auto; top: 0; }
  .rooms__progress { display: none; }
}

/* ───────── marquee ───────── */
.marquee {
  overflow: hidden;
  padding: 6vh 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee__inner {
  display: flex; align-items: center; gap: .3em;
  width: max-content;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(72px, 12vw, 210px); line-height: 1;
  white-space: nowrap;
  will-change: transform;
}
.marquee__inner span { padding: 0 .05em; }
.marquee__inner span:nth-of-type(3n+1) { color: var(--c-builder); }
.marquee__inner span:nth-of-type(3n+2) { color: var(--c-marketer); }
.marquee__inner span:nth-of-type(3n) { color: var(--c-designer); }
.star { width: .42em; height: .42em; stroke: currentColor; stroke-width: 1.1; fill: none; flex: none; }

/* ───────── works ───────── */
.works { position: relative; padding: 18vh var(--pad) 16vh; }
.works__head { display: grid; gap: 28px; margin-bottom: 8vh; }
.works__sub { color: var(--muted); font-size: 19px; max-width: 520px; }
.works__filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.chip sup { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.chip:hover { border-color: rgba(245,245,247,.4); }
.chip.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip.is-active sup { color: var(--bg); }

.works__list { border-bottom: 1px solid var(--line); }
.work { border-top: 1px solid var(--line); overflow: hidden; transition: opacity .5s var(--ease); }
.work a {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 2.6fr) minmax(0, 1.2fr) 120px;
  align-items: center; gap: 20px;
  padding: 30px 0;
  isolation: isolate;
}
.work a::before {
  content: ""; position: absolute; inset: 0 calc(var(--pad) * -1);
  background: hsl(var(--h, 220) 90% 60% / .07);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .6s var(--ease);
  z-index: -1;
}
.work a:hover::before { transform: scaleY(1); }
.works__list:hover .work:not(:hover) { opacity: .32; }
.work__n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.work__title {
  font-size: clamp(26px, 2.8vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1;
  transition: transform .6s var(--ease);
}
.work a:hover .work__title { transform: translateX(18px); }
.work__kind, .work__roles { font-size: 14px; color: var(--muted); }
.work__roles { font-family: var(--mono); font-size: 12px; }
.work__line { font-size: 15px; color: var(--muted); text-wrap: pretty; }
.work__status {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  white-space: nowrap;
}
.work__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.work__status[data-status="live"]::before { background: #30d158; box-shadow: 0 0 10px #30d158; }
.work__status[data-status="wip"]::before { background: #ff9f0a; }
.work__status[data-status="planned"]::before { background: #64d2ff; }

.works__oss {
  margin-top: 48px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px;
}
.works__oss p { max-width: 560px; color: var(--muted); font-size: 15px; }
.works__oss .link-arrow { margin-top: 0; }
.link-arrow {
  display: inline-flex; gap: 8px; margin-top: 40px;
  font-size: 17px; border-bottom: 1px solid currentColor; padding-bottom: 4px;
}

.preview {
  position: fixed; left: 0; top: 0; z-index: 80;
  width: 340px; aspect-ratio: 4 / 3;
  pointer-events: none;
  border-radius: 10px; overflow: hidden;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}
.preview__art { position: absolute; inset: 0; background: #111; }
.preview__art > img, .preview__art > video { width: 100%; height: 100%; object-fit: cover; }
.preview__title {
  position: absolute; left: 18px; bottom: 14px;
  font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1;
  color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.4);
}

@media (max-width: 960px) {
  .work a { grid-template-columns: 36px 1fr auto; row-gap: 8px; padding: 24px 0; }
  .work__kind, .work__roles { display: none; }
  .work__line { grid-column: 2 / -1; grid-row: 2; }
  .work__status { grid-column: 3; grid-row: 1; }
  .preview { display: none; }
}

/* ───────── zoom ───────── */
.zoom { position: relative; height: 100vh; }
.zoom__stage {
  position: relative; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
.zoom__pre { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.zoom__word {
  font-size: clamp(80px, 19vw, 340px);
  font-weight: 600; letter-spacing: -.065em; line-height: .9;
  white-space: nowrap;
  will-change: transform;
}
/* full advance box, so its centre is the stem's centre (zoom origin) */
.zoom__i { display: inline-block; letter-spacing: 0; margin-right: -.065em; }

/* ───────── studio (light room) ───────── */
.studio { position: relative; padding: 4vh var(--pad) 10vh; color: var(--light-fg); background: var(--light-bg); }
.studio .eyebrow { color: var(--light-muted); }
.studio__intro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; max-width: 1180px; margin: 0 auto; }
.studio__intro .eyebrow { color: var(--light-muted); }
.zoom__reveal {
  position: absolute; inset: 0; z-index: 2;
  justify-content: center;
  padding: 0 var(--pad);
  color: var(--light-fg);
  pointer-events: none;
}
.zoom__reveal a { pointer-events: auto; }
html:not(.js) .zoom__reveal, html.reduce .zoom__reveal { position: relative; background: var(--light-bg); padding: 14vh var(--pad); max-width: none; }
html:not(.js) .zoom, html.reduce .zoom { height: auto; }
html:not(.js) .zoom__stage, html.reduce .zoom__stage { height: auto; }
html:not(.js) .zoom__word, html.reduce .zoom__word, html:not(.js) .zoom__pre, html.reduce .zoom__pre { display: none; }
.studio__intro .eyebrow { justify-content: center; }
.studio__h {
  font-size: clamp(44px, 6.6vw, 112px);
  font-weight: 600; letter-spacing: -.05em; line-height: .96;
  text-wrap: balance;
}
.studio__lead { font-size: clamp(19px, 1.6vw, 24px); color: var(--light-muted); max-width: 680px; line-height: 1.4; text-wrap: pretty; }
.studio__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.studio__proof { font-family: var(--mono); font-size: 12px; color: var(--light-muted); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 500;
  transition: background-color .4s, color .4s, transform .4s var(--ease);
}
.btn--dark { background: var(--light-fg); color: var(--light-bg); }
.btn--ghost { border: 1px solid rgba(29,29,31,.2); }
.btn--ghost:hover { background: rgba(29,29,31,.05); }
.btn--light { background: var(--fg); color: var(--bg); }

.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 1400px; margin: 0 auto 14vh;
}
.service {
  position: relative;
  min-height: 560px;
  border-radius: 28px;
  background: #fff;
  padding: 36px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.25); }
.service__n { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--light-muted); }
.service__t { font-size: clamp(28px, 2.6vw, 40px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.service__d { color: var(--light-muted); font-size: 17px; max-width: 340px; }
.service__ex { font-family: var(--mono); font-size: 12px; color: var(--light-fg); margin-top: auto; position: relative; z-index: 1; }

.service__shape { position: absolute; left: 50%; bottom: 90px; width: 180px; height: 180px; transform: translateX(-50%); }
/* a — stacked panes */
.service__shape--a::before, .service__shape--a::after, .service__shape--a {
  border-radius: 18px;
}
.service__shape--a {
  background: linear-gradient(135deg, rgba(77,116,255,.9), rgba(139,233,255,.7));
  transform: translateX(-50%) rotateX(55deg) rotateZ(-40deg);
  animation: floatA 6s var(--ease) infinite alternate;
  box-shadow: 0 30px 60px -20px rgba(77,116,255,.5);
}
.service__shape--a::before, .service__shape--a::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(29,29,31,.25);
  background: rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.service__shape--a::before { transform: translate(-22px, -22px); }
.service__shape--a::after { transform: translate(-44px, -44px); background: rgba(255,255,255,.55); }
@keyframes floatA { to { transform: translateX(-50%) rotateX(55deg) rotateZ(-40deg) translateZ(30px); } }
.service:hover .service__shape--a::before { transform: translate(-36px, -36px); }
.service:hover .service__shape--a::after { transform: translate(-72px, -72px); }
.service__shape--a::before, .service__shape--a::after { transition: transform .8s var(--ease); }

/* b — donut chart */
.service__shape--b {
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--light-fg) 0 38%, #a1a1a6 0 64%, var(--c-marketer) 0 78%, #e8e8ed 0 100%);
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%);
  mask: radial-gradient(circle, transparent 46%, #000 47%);
  animation: spin 14s linear infinite;
}
.service:hover .service__shape--b { animation-duration: 3s; }
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }

/* c — orb + orbit */
.service__shape--c {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--c-marketer) 30%, var(--c-builder) 70%, #120a3a);
  filter: saturate(1.1);
  animation: breathe 4s ease-in-out infinite alternate;
  box-shadow: 0 0 80px rgba(255,90,217,.35);
}
.service__shape--c::before {
  content: ""; position: absolute; inset: -40px;
  border-radius: 50%;
  border: 1px solid rgba(29,29,31,.25);
  transform: rotateX(72deg) rotateZ(0deg);
  animation: orbit 8s linear infinite;
}
.service__shape--c::after {
  content: ""; position: absolute; left: 50%; top: -40px; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--light-fg);
  transform-origin: 5px 130px;
  animation: orbitDot 5s linear infinite;
}
@keyframes breathe { to { transform: translateX(-50%) scale(1.08); } }
@keyframes orbit { to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes orbitDot { to { transform: rotate(360deg); } }

.stack { max-width: 1400px; margin: 0 auto 16vh; display: grid; gap: 28px; }
.stack__marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.stack__inner { display: flex; gap: 72px; width: max-content; animation: slide 30s linear infinite; }
.stack__inner span { font-size: clamp(28px, 3.4vw, 52px); font-weight: 600; letter-spacing: -.04em; color: #a1a1a6; transition: color .3s; }
.stack__inner span:hover { color: var(--light-fg); }
@keyframes slide { to { transform: translateX(-50%); } }

.oss { max-width: 1400px; margin: 0 auto 18vh; display: grid; gap: 7vh; }
.oss__head { display: grid; gap: 24px; max-width: 820px; }
.oss__lead { color: var(--light-muted); font-size: 19px; max-width: 600px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier {
  border-radius: 24px; background: #fff; padding: 32px;
  display: flex; flex-direction: column; gap: 28px;
  min-height: 0;
}
.tier h4 { font-size: 26px; font-weight: 600; letter-spacing: -.035em; }
.tier__price { font-family: var(--mono); font-size: 13px; color: var(--light-muted); margin-top: 6px; }
.tier ul { display: grid; }
.tier li { padding: 12px 0; border-top: 1px solid rgba(29,29,31,.1); font-size: 15px; }
.tier__cta { margin-top: auto; font-weight: 500; }
.tier--feature { background: var(--light-fg); color: var(--light-bg); }
.tier--feature .tier__price { color: #a1a1a6; }
.tier--feature li { border-color: rgba(245,245,247,.14); }

.process {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6vw;
}
.process__sticky {
  position: sticky; top: 18vh; align-self: start;
  display: grid; gap: 20px;
}
.process__counter {
  display: flex;
  font-size: clamp(140px, 22vw, 360px);
  font-weight: 600; letter-spacing: -.07em; line-height: .9;
  font-variant-numeric: tabular-nums;
}
.process__digits { display: block; height: .9em; overflow: hidden; }
.process__roll b { display: block; height: .9em; font-weight: inherit; }
.process__roll { position: relative; }
.process__roll > b { will-change: transform; }
.process__bar { height: 2px; background: rgba(29,29,31,.1); width: 70%; }
.process__bar i { display: block; height: 100%; background: var(--light-fg); transform-origin: 0 50%; transform: scaleX(0); }
.process__steps { display: grid; }
.step {
  min-height: 52vh;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  border-top: 1px solid rgba(29,29,31,.12);
  opacity: .22;
  transition: opacity .6s var(--ease);
}
.step.is-active { opacity: 1; }
.step__n { font-family: var(--mono); font-size: 12px; color: var(--light-muted); }
.step h4 { font-size: clamp(36px, 4vw, 64px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.step p { font-size: 19px; color: var(--light-muted); }

@media (max-width: 960px) {
  .services, .tiers { grid-template-columns: 1fr; }
  .service { min-height: 440px; }
  .process { grid-template-columns: 1fr; }
  .process__sticky { position: relative; top: 0; }
  .process__counter, .process__bar { display: none; }
  .step { min-height: 0; padding: 32px 0; opacity: 1; }
}

/* ───────── about ───────── */
.about {
  padding: 20vh var(--pad) 14vh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 7vw;
  align-items: center;
  max-width: 1500px; margin: 0 auto;
}
.about__portrait { position: relative; aspect-ratio: 4 / 5; }
.about__portrait .media { position: absolute; inset: 0; border-radius: 4px; background: #070708; }
.about__portrait figcaption {
  position: absolute; left: 0; top: calc(100% + 14px);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.about__text { display: grid; gap: 36px; }
.about__bio { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.25; letter-spacing: -.025em; font-weight: 500; text-wrap: pretty; }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.facts div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.facts dt { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { font-size: 15px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { height: 44px; padding: 0 20px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: background-color .3s, color .3s; }
.socials a:hover { background: var(--fg); color: var(--bg); }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 72px; }
}

/* ───────── faq ───────── */
.faq {
  padding: 14vh var(--pad);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 7vw;
  max-width: 1500px; margin: 0 auto;
}
.faq__head { display: grid; gap: 28px; align-content: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0;
  font-size: clamp(20px, 2vw, 30px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 18px; height: 18px; flex: none; }
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease);
}
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 48px 30px 0; color: var(--muted); font-size: 17px; max-width: 640px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ───────── contact ───────── */
.contact { padding: 18vh var(--pad) 16vh; display: grid; gap: 6vh; }
.contact__big {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .18em;
  font-size: clamp(88px, 20vw, 360px);
  font-weight: 600; letter-spacing: -.07em; line-height: .82;
}
.contact__big em { letter-spacing: -.03em; }
.contact__big .ch { display: inline-block; transition: color .3s; transform-origin: 50% 100%; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 7vw; }
.contact__direct { display: grid; gap: 40px; align-content: start; }
.contact__lead { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; line-height: 1.3; }
.contact__direct dl { display: grid; gap: 22px; }
.contact__direct dt { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.contact__direct dd a { font-size: clamp(20px, 2vw, 28px); letter-spacing: -.03em; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.contact__direct dd a:hover { border-color: var(--fg); }

.form { display: grid; gap: 30px; }
.field { position: relative; display: block; border: 0; padding: 0; margin: 0; }
.field > input, .field > textarea {
  width: 100%;
  background: transparent; color: var(--fg);
  border: 0; border-bottom: 1px solid var(--line);
  padding: 26px 0 12px;
  font: inherit; font-size: 20px; letter-spacing: -.02em;
  outline: none; resize: vertical;
  transition: border-color .4s;
}
.field > input:focus, .field > textarea:focus { border-color: var(--fg); }
.field > span {
  position: absolute; left: 0; top: 26px;
  color: var(--muted); font-size: 20px;
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform .5s var(--ease), color .3s;
}
.field > input:focus + span, .field > input:not(:placeholder-shown) + span,
.field > textarea:focus + span, .field > textarea:not(:placeholder-shown) + span {
  transform: translateY(-24px) scale(.62);
}
.field--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.field--chips legend { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; padding: 0; }
.field--chips label { position: relative; }
.field--chips input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.field--chips span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 14px;
  transition: background-color .3s, color .3s, border-color .3s;
}
.field--chips input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.field--chips input:focus-visible + span { outline: 2px solid var(--c-builder); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; accent-color: var(--fg); margin: 0; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.form .btn { justify-self: start; }
.form__note { font-size: 14px; color: var(--muted); min-height: 1.4em; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; gap: 64px; } }

/* ───────── footer ───────── */
.footer {
  position: relative;
  background: var(--blue);
  color: var(--cream);
  overflow: hidden;
}
.footer__top {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px;
  padding: 12vh var(--pad) 0;
}
.footer__logo { font-size: 28px; font-weight: 600; letter-spacing: -.04em; }
.footer__logo span { font-family: var(--serif); font-style: italic; font-weight: 400; opacity: .7; }
.footer__claim { display: grid; gap: 22px; align-content: start; }
.footer__claim p { font-size: 20px; line-height: 1.4; opacity: .82; max-width: 460px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, auto); gap: 72px; }
.footer__cols div { display: grid; gap: 14px; align-content: start; }
.footer__cols h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.footer__cols a { font-size: 15px; opacity: .72; transition: opacity .3s; }
.footer__cols a:hover { opacity: 1; }
.footer__land { display: block; width: 100%; height: clamp(320px, 52vh, 620px); margin-top: -4vh; }
.footer__bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 22px var(--pad);
  font-family: var(--mono); font-size: 12px;
  color: var(--blue);
}
.footer__bottom b { font-weight: 400; }
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, auto); gap: 40px; justify-content: start; }
  .footer__clock { display: none; }
}

/* no JS / reduced motion: the gallery stacks vertically */
html:not(.js) .rooms__track, html.reduce .rooms__track { flex-direction: column; width: auto; }
html:not(.js) .room, html.reduce .room { width: auto; height: auto; min-height: 0; }
html:not(.js) .rooms__progress, html.reduce .rooms__progress { display: none; }

/* ───────── reveal helpers ───────── */
html.js:not(.reduce) .reveal-up { opacity: 0; transform: translateY(24px); }

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