@font-face{font-family:'Manrope Variable';font-style:normal;font-weight:200 800;font-display:swap;src:url('fonts/manrope-latin.woff2') format('woff2')}
*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid}button,input,textarea,select{font:inherit}button{background:transparent}a{color:inherit}svg{display:block}button,input{line-height:inherit}[hidden]{display:none!important}
/* ───────────────────────── Tokens ───────────────────────── */
[data-theme="light"] {
  --paper: #f2f1ed;
  --ink: #0e0e0e;
}
[data-theme="dark"] {
  --paper: #0e0e0e;
  --ink: #edece7;
}
:root {
  --accent: #ff4a1c;
  --g: clamp(16px, 2.1vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --sans: "Manrope Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  background: var(--paper);
}
#site {
  --bg: var(--paper);
  --fg: var(--ink);
}
.invert {
  --bg: var(--ink);
  --fg: var(--paper);
}
#site,
.invert {
  --muted: color-mix(in srgb, var(--fg) 44%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 14%, transparent);
  --soft: color-mix(in srgb, var(--fg) 6%, var(--bg));
  background: var(--bg);
  color: var(--fg);
}

/* ───────────────────────── Base ───────────────────────── */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
#site {
  min-height: 100vh;
  overflow-x: clip;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}
a {
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
  font-weight: inherit;
}
button {
  padding: 0;
  color: inherit;
  cursor: pointer;
}
::selection {
  background: var(--accent);
  color: #fff;
}
:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 3px;
}
.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
  animation: pulse 2.4s var(--ease-io) infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

/* Pills */
.pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg);
  transition:
    color 0.5s var(--ease),
    border-color 0.5s var(--ease),
    transform 0.6s var(--ease);
}
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--fg);
  transform: translateY(102%);
  transition: transform 0.55s var(--ease);
}
.pill > span {
  display: inline-block;
  transition: transform 0.55s var(--ease);
}
.pill:hover {
  color: var(--bg);
  border-color: var(--fg);
}
.pill:hover::before {
  transform: none;
}
.pill:hover > span {
  transform: rotate(45deg);
}
.pill.solid {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.pill.solid::before {
  background: var(--accent);
}
.pill.solid:hover {
  color: #fff;
  border-color: var(--accent);
}
.pill:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pill:disabled::before {
  display: none;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}
.text-link {
  position: relative;
  display: inline-flex;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
}
.text-link::after,
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.text-link:hover::after,
.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ───────────────────────── Motion primitives ───────────────────────── */
.sw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.sw > span {
  display: inline-block;
}
.motion [data-split] .sw > span {
  transform: translateY(112%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--w, 0) * 42ms);
}
.motion [data-split].in .sw > span {
  transform: none;
}
.fw {
  transition: opacity 0.3s linear;
}
.motion [data-reveal]:not([data-reveal="clip"]):not([data-reveal="line"]) {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1s var(--ease),
    transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 50ms);
}
.motion [data-reveal].in:not([data-reveal="clip"]):not([data-reveal="line"]) {
  opacity: 1;
  transform: none;
}
.motion [data-reveal="clip"] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease);
}
.motion [data-reveal="clip"] .pv {
  scale: 1.25;
  transition: scale 1.8s var(--ease), transform 1.4s var(--ease);
}
.motion [data-reveal="clip"].in {
  clip-path: inset(0 0 0 0);
}
.motion [data-reveal="clip"].in .pv {
  scale: 1;
}
.motion [data-reveal="line"] {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease) 0.2s;
}
.motion [data-reveal="line"].in {
  transform: scaleX(1);
}

/* ───────────────────────── Curtain + loader ───────────────────────── */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0e0e0e;
  color: #edece7;
  pointer-events: none;
  visibility: hidden;
}
.curtain > i {
  --d: calc(50vw - var(--g) - 11px);
  --e: calc(50svh - var(--g) - 11px);
  position: absolute;
  left: calc(50% - 11px);
  top: calc(50% - 11px);
  width: 22px;
  height: 22px;
  border: 0 solid currentColor;
}
.curtain > i:nth-of-type(1) {
  --sx: -1;
  --sy: -1;
  border-width: 1.5px 0 0 1.5px;
}
.curtain > i:nth-of-type(2) {
  --sx: 1;
  --sy: -1;
  border-width: 1.5px 1.5px 0 0;
}
.curtain > i:nth-of-type(3) {
  --sx: -1;
  --sy: 1;
  border-width: 0 0 1.5px 1.5px;
}
.curtain > i:nth-of-type(4) {
  --sx: 1;
  --sy: 1;
  border-width: 0 1.5px 1.5px 0;
}
.curtain-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.curtain-title span {
  display: block;
  padding: 0 0.05em 0.12em;
  font-size: clamp(56px, 11vw, 200px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.065em;
}
.js .curtain {
  visibility: visible;
  animation: curtain-up 0.9s var(--ease-io) 0.3s forwards;
}
.js .curtain-title span {
  animation: title-out 0.65s var(--ease-io) 0.08s both;
}
.js .curtain > i {
  animation: bracket-close 0.8s var(--ease) forwards;
}
@keyframes curtain-up {
  from {
    clip-path: inset(0 0 0 0);
  }
  to {
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
  }
}
@keyframes curtain-in {
  from {
    clip-path: inset(100% 0 0 0);
    visibility: visible;
  }
  to {
    clip-path: inset(0 0 0 0);
    visibility: visible;
  }
}
@keyframes title-out {
  to {
    transform: translateY(-125%);
  }
}
@keyframes title-in {
  from {
    transform: translateY(125%);
  }
}
@keyframes bracket-close {
  from {
    transform: translate(calc(var(--sx) * var(--d)), calc(var(--sy) * var(--e)));
  }
  to {
    transform: translate(calc(var(--sx) * 26px), calc(var(--sy) * 26px));
  }
}
@keyframes bracket-open {
  from {
    transform: translate(calc(var(--sx) * 26px), calc(var(--sy) * 26px));
  }
  to {
    transform: translate(calc(var(--sx) * var(--d)), calc(var(--sy) * var(--e)));
  }
}
.js .curtain.is-leaving {
  animation: curtain-in 0.6s var(--ease-io) forwards;
}
.js .curtain.is-leaving .curtain-title span {
  animation: title-in 0.7s var(--ease) 0.16s both;
}
.js .curtain.is-leaving > i {
  animation: bracket-open 0.7s var(--ease) forwards;
}
.js .curtain.is-loading {
  animation: none;
  visibility: visible;
}
.js .curtain.is-loading > i {
  animation: bracket-open 1.6s var(--ease) 0.2s both;
}
.js .curtain.is-revealing {
  animation: curtain-up 1.05s var(--ease-io) forwards;
}
.js .curtain.is-revealing > i {
  animation: none;
  transform: translate(calc(var(--sx) * var(--d)), calc(var(--sy) * var(--e)));
}
.curtain.is-loading .curtain-title,
.curtain.is-revealing .curtain-title {
  display: none;
}
.loader {
  display: none;
}
.curtain.is-loading .loader,
.curtain.is-revealing .loader {
  display: block;
}
.curtain.is-revealing .loader {
  opacity: 0;
  transition: opacity 0.35s;
}
.loader-ring {
  position: absolute;
  left: calc(50% - 38px);
  top: calc(50% - 38px);
  width: 76px;
  height: 76px;
  overflow: visible;
  animation: ring-spin 3.2s linear infinite;
}
.loader-ring path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 25 40;
  transform-origin: 50px 50px;
  transform: rotate(calc(var(--k) * 45deg));
  animation: arc-split 1.6s var(--ease-io) infinite;
  animation-delay: calc(var(--k) * 30ms);
}
@keyframes ring-spin {
  to {
    rotate: 360deg;
  }
}
@keyframes arc-split {
  0%,
  100% {
    transform: rotate(calc(var(--k) * 45deg)) translateY(0) scale(1);
  }
  45% {
    transform: rotate(calc(var(--k) * 45deg + 40deg)) translateY(-16px) scale(0.55);
  }
  70% {
    transform: rotate(calc(var(--k) * 45deg + 70deg)) translateY(-6px) scale(0.8);
  }
}
.loader-count {
  position: absolute;
  left: calc(var(--g) + 40px);
  bottom: calc(var(--g) + 34px);
  font-size: clamp(64px, 11vw, 180px);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.loader-name {
  position: absolute;
  right: calc(var(--g) + 40px);
  bottom: calc(var(--g) + 38px);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ───────────────────────── Cursor ───────────────────────── */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition:
    width 0.45s var(--ease),
    height 0.45s var(--ease),
    margin 0.45s var(--ease),
    background-color 0.3s,
    opacity 0.3s;
}
.cursor span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
}
.cursor.is-visible {
  opacity: 1;
}
.cursor.is-link {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
}
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 119;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid #fff;
  border-radius: 50%;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition:
    width 0.5s var(--ease),
    height 0.5s var(--ease),
    margin 0.5s var(--ease),
    opacity 0.3s;
}
.cursor-ring.is-visible {
  opacity: 0.5;
}
.cursor-ring.is-link {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  opacity: 1;
}
.cursor-ring.is-label {
  opacity: 0;
}
.cursor.is-label {
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  background: var(--accent);
  mix-blend-mode: normal;
}
.cursor.is-label span {
  opacity: 1;
}
.cursor.is-down {
  scale: 0.8;
}
.has-cursor,
.has-cursor a,
.has-cursor button {
  cursor: none;
}
.has-cursor input,
.has-cursor textarea {
  cursor: text;
}

/* ───────────────────────── Navigation ───────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--g);
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.nav a,
.nav button {
  pointer-events: auto;
}
.nav-logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.05em;
  transition:
    opacity 0.5s var(--ease),
    transform 0.6s var(--ease);
}
.is-top .nav-logo {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.nav-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-controls button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.theme-dot {
  display: block;
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transition: transform 0.7s var(--ease);
}
[data-theme="dark"] .theme-dot {
  transform: rotate(180deg);
}
.menu-glyph {
  display: inline-grid;
  gap: 5px;
  width: 18px;
}
.menu-glyph i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.6s var(--ease);
}
[aria-expanded="true"] .menu-glyph i:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
[aria-expanded="true"] .menu-glyph i:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}
.nav-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
}

/* ───────────────────────── Menu ───────────────────────── */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: #0e0e0e;
  color: #edece7;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.menu.is-open {
  opacity: 1;
}
.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid rgba(237, 236, 231, 0.6);
  transition:
    left 0.9s var(--ease),
    top 0.9s var(--ease),
    right 0.9s var(--ease),
    bottom 0.9s var(--ease);
}
.corner.tl {
  left: calc(50% - 48px);
  top: calc(50% - 48px);
  border-width: 1.5px 0 0 1.5px;
}
.corner.tr {
  right: calc(50% - 48px);
  top: calc(50% - 48px);
  border-width: 1.5px 1.5px 0 0;
}
.corner.bl {
  left: calc(50% - 48px);
  bottom: calc(50% - 48px);
  border-width: 0 0 1.5px 1.5px;
}
.corner.br {
  right: calc(50% - 48px);
  bottom: calc(50% - 48px);
  border-width: 0 1.5px 1.5px 0;
}
.menu.is-open .corner.tl,
.menu.is-open .corner.bl {
  left: var(--g);
}
.menu.is-open .corner.tr,
.menu.is-open .corner.br {
  right: var(--g);
}
.menu.is-open .corner.tl,
.menu.is-open .corner.tr {
  top: 72px;
}
.menu.is-open .corner.bl,
.menu.is-open .corner.br {
  bottom: var(--g);
}
.menu-inner {
  position: absolute;
  inset: 96px calc(var(--g) + 28px) calc(var(--g) + 22px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}
.menu .label {
  color: rgba(237, 236, 231, 0.5);
}
.menu-links {
  align-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--g);
}
.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  overflow: hidden;
  padding: 0.04em 0 0.1em;
  font-size: clamp(30px, 4.4vw, 70px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.05em;
  transition: opacity 0.4s var(--ease);
}
.menu-num {
  min-width: 2.4em;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0;
  color: rgba(237, 236, 231, 0.45);
}
.menu-word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.5s var(--ease);
}
.menu.is-open .menu-word {
  transform: none;
  transition: transform 0.95s var(--ease) calc(var(--i) * 38ms + 0.18s);
}
.menu-links:hover a {
  opacity: 0.32;
}
.menu-links a:hover {
  opacity: 1;
}
.menu-links a:hover .menu-word {
  transform: translateX(14px);
  transition-delay: 0s;
}
.menu-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(237, 236, 231, 0.5);
}

/* ───────────────────────── Home: hero ───────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--g);
  overflow: hidden;
}
.hero-intro {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: start;
  gap: 22px;
  max-width: 30ch;
  font-size: clamp(20px, 1.75vw, 28px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.hero-intro .pill {
  transition:
    color 0.5s var(--ease),
    border-color 0.5s var(--ease),
    opacity 1s var(--ease) 0.6s,
    transform 1s var(--ease) 0.6s;
}
.motion #site:not(.is-ready) .hero-intro .pill {
  opacity: 0;
  transform: translateY(14px);
}
.hero-mark {
  position: relative;
  z-index: 1;
  align-self: center;
  display: flex;
  justify-content: center;
  overflow: hidden;
  font-size: min(53vw, calc((100svh - 250px) * 1.12));
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.07em;
  user-select: none;
}
.hero-mark span {
  display: inline-block;
}
.motion .hero-mark span {
  transform: translateY(104%);
}
.motion #site.is-ready .hero-mark span {
  transform: none;
  transition: transform 1.5s var(--ease);
}
.hero-mark span:nth-child(2) {
  transition-delay: 0.09s !important;
}
.hero-mark span:nth-child(3) {
  transition-delay: 0.18s !important;
}
.ink {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-base {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-base > :last-child {
  text-align: right;
}
.hero-scroll {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.hero-scroll i {
  position: relative;
  overflow: hidden;
  width: 1px;
  height: 34px;
  background: var(--line);
}
.hero-scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  animation: scroll-hint 2s var(--ease-io) infinite;
}
@keyframes scroll-hint {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* ───────────────────────── Home: reel ───────────────────────── */
.reel {
  position: relative;
  z-index: 1;
  height: 390vh;
  background: var(--bg);
}
.reel-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  padding: calc(var(--g) + 70px) var(--g) var(--g);
}
.reel-title {
  max-width: 13ch;
  font-size: clamp(38px, 5.8vw, 100px);
  font-weight: 500;
  line-height: 0.97;
  letter-spacing: -0.055em;
}
.reel-frame {
  --t: 64%;
  --s: var(--g);
  --b: var(--g);
  --r: 4px;
  position: absolute;
  inset: 0;
  background: #0e0e0e;
  clip-path: inset(var(--t) var(--s) var(--b) var(--s) round var(--r));
  will-change: clip-path;
}
.reel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.reel-slide.is-active {
  opacity: 1;
}
.reel-slide .pv {
  transform: scale(var(--zoom, 1));
  transition: none;
}
.reel-caption {
  position: absolute;
  left: var(--g);
  right: var(--g);
  bottom: var(--g);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  color: #fff;
  opacity: var(--cap, 0);
  pointer-events: none;
}
.reel-caption a {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  gap: 4px;
  max-width: min(440px, 70vw);
  padding: 14px 18px;
  border-radius: 6px;
  background: rgba(14, 14, 14, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.reel-caption a.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.reel-caption a span {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.65;
}
.reel-caption a strong {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
.reel-count {
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 99px;
  background: rgba(14, 14, 14, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--mono);
  font-size: 11px;
}
.reel-count b {
  font-weight: 400;
}

/* ───────────────────────── Home: intro ───────────────────────── */
.intro {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 var(--g);
  padding: 22vh var(--g) 26vh;
}
.intro > .label {
  grid-column: 1 / 4;
  padding-top: 0.6em;
}
.intro-copy {
  grid-column: 4 / 11;
  position: relative;
  z-index: 1;
}
.intro-lead {
  font-size: clamp(28px, 3.3vw, 54px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.intro-body {
  max-width: 34ch;
  margin: 56px 0 0 auto;
  font-size: 16px;
  color: var(--muted);
}
.chrome-orb {
  position: absolute;
  right: 6vw;
  top: 4vh;
  width: clamp(120px, 16vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0, #e4e4e2 7%, #9c9c99 28%, #3b3b3c 58%, #121213 78%, #595958 100%);
  box-shadow:
    inset -14px -20px 40px rgba(0, 0, 0, 0.55),
    0 30px 60px rgba(0, 0, 0, 0.18);
  animation: orb-float 7s var(--ease-io) infinite alternate;
}
@keyframes orb-float {
  to {
    rotate: 25deg;
    scale: 0.94;
  }
}

/* ───────────────────────── Home: works ───────────────────────── */
.works {
  padding: 120px var(--g) 90px;
}
.works-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--g);
  margin-bottom: 14vh;
}
.mega {
  font-size: clamp(76px, 15.5vw, 280px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.075em;
}
.works-head p {
  max-width: 34ch;
  color: var(--muted);
  font-size: 15px;
}
.works-head strong {
  color: var(--fg);
  font-weight: 500;
}
.works-list {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 var(--g);
}
.work {
  display: block;
}
.work-0 {
  grid-column: 1 / 8;
}
.work-1 {
  grid-column: 8 / 13;
  margin-top: 34vh;
}
.work-2 {
  grid-column: 2 / 9;
  margin-top: 10vh;
}
.work-3 {
  grid-column: 7 / 13;
  margin-top: 14vh;
}
.work-4 {
  grid-column: 1 / 8;
  margin-top: 10vh;
}
.work-5 {
  grid-column: 7 / 13;
  margin-top: 18vh;
}
.work-caption {
  margin-bottom: 16px;
}
.work-caption h3 {
  max-width: 28ch;
  margin-top: 8px;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.work-media,
.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  border-radius: 4px;
  background: var(--soft);
}
.work-1 .work-media {
  aspect-ratio: 4 / 5;
}
.work:hover .pv,
.project-card:hover .pv {
  transform: scale(1.045);
}
.works-all {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 6vw;
  margin-top: 18vh;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: clamp(28px, 3.4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.045em;
}
.works-all i {
  display: inline-block;
  font-style: normal;
  transition: transform 0.6s var(--ease);
}
.works-all:hover i {
  transform: translate(6px, -6px);
}
.works-all span + span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--muted);
}

/* ───────────────────────── Home: stats ───────────────────────── */
.stats {
  position: relative;
  overflow: hidden;
  padding: 14vh var(--g) 0;
}
.stats-top {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(220px, 34vh, 380px);
  margin: 0 6%;
}
.stats-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.stats-arc path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--draw, 1);
}
.stats-label {
  position: relative;
  padding: 6px 12px;
  background: var(--bg);
}
.stats-orbit {
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  offset-anchor: 50% 50%;
  offset-rotate: 0deg;
  offset-path: var(--orbit);
  offset-distance: var(--od, 0%);
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.stat {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 56px 12px 70px;
  text-align: center;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat strong {
  font-size: clamp(54px, 7.4vw, 128px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ───────────────────────── Home: architecture stack (section 05) ───────────────────────── */
.watch {
  position: relative;
  height: 340vh;
}
.watch-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: var(--g);
  padding: 96px var(--g) 84px;
  background: radial-gradient(ellipse 55% 60% at 68% 50%, var(--soft), transparent 70%);
}
.watch-copy {
  position: relative;
  z-index: 2;
}
.watch-copy h2 {
  margin: 26px 0;
  font-size: clamp(40px, 4.8vw, 82px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.watch-body {
  max-width: 30ch;
  color: var(--muted);
}
.watch-scene {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  perspective: 1500px;
}
.watch-assembly {
  --size: clamp(232px, 26vw, 356px);
  --r: 26px;
  position: relative;
  width: var(--size);
  height: var(--size);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg)) scale(var(--sc, 1));
}
.watch-layer {
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  transform-style: preserve-3d;
  transform: translateZ(var(--z, 0px));
}
.arch-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 01 — Infrastructure chassis */
.layer-infra {
  inset: 1px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(145deg, #1b1b1a, #10100f 70%, #171716);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 28px 56px rgba(0, 0, 0, 0.28);
}
.arch-infra .arch-frame {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.8;
}
.arch-infra .arch-screw circle {
  fill: #242422;
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 0.8;
}
.arch-infra .arch-screw line {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 0.7;
}
.arch-infra .arch-hair {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.7;
}
.arch-infra .arch-blade {
  fill: rgba(255, 255, 255, 0.045);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.75;
}
.arch-infra .arch-slot {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 4 4;
}
.arch-infra .arch-dot-grid {
  fill: rgba(255, 255, 255, 0.18);
}
.arch-mono {
  font-family: var(--mono);
  font-size: 6.4px;
  letter-spacing: 0.7px;
  fill: rgba(255, 255, 255, 0.48);
}
.arch-mono.bright {
  fill: rgba(255, 255, 255, 0.84);
}
.arch-mono.end {
  text-anchor: end;
}
.arch-led {
  fill: rgba(255, 255, 255, 0.4);
}
.arch-led.accent {
  fill: var(--accent);
  animation: arch-blink 2.4s var(--ease-io) infinite;
}
@keyframes arch-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.32;
  }
}

/* 02 — API & Routing blueprint */
.layer-api {
  inset: 1px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 74, 28, 0.08), transparent 58%),
    rgba(19, 19, 18, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 14px 30px rgba(0, 0, 0, 0.24);
}
.arch-api .arch-frame {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.8;
}
.arch-api .arch-guide {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.7;
  stroke-dasharray: 3 4;
}
.arch-api .arch-trace {
  fill: none;
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.arch-api .arch-pulse {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 28 280;
  animation: arch-flow 3.6s linear infinite;
}
.arch-api .arch-pulse.p1 {
  stroke: var(--accent);
}
.arch-api .arch-pulse.p2 {
  stroke: rgba(255, 255, 255, 0.85);
  animation-delay: -1.8s;
}
@keyframes arch-flow {
  from {
    stroke-dashoffset: 308;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.arch-api .arch-hub {
  fill: #151514;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 1;
}
.arch-api .arch-hub-inner {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.9;
  stroke-dasharray: 4 3;
}
.arch-api .arch-hub-text {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1px;
  fill: #f4f3ef;
  text-anchor: middle;
}
.arch-api .arch-node {
  fill: #141413;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1;
}
.arch-api .arch-node-core {
  fill: var(--accent);
}

/* 03 — Core Logic satin titanium die */
.layer-logic {
  inset: 1px;
  background: linear-gradient(135deg, #e5e4df, #c7c6c0 52%, #dad9d4);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 14px 30px rgba(0, 0, 0, 0.2);
}
.arch-logic .arch-frame-metal {
  fill: none;
  stroke: rgba(14, 14, 14, 0.18);
  stroke-width: 0.8;
}
.arch-logic .arch-die {
  fill: rgba(255, 255, 255, 0.42);
  stroke: rgba(14, 14, 14, 0.2);
  stroke-width: 0.85;
}
.arch-logic .arch-die.core {
  fill: #171716;
  stroke: #171716;
}
.arch-logic .arch-die-inner {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 0.8;
}
.arch-logic .arch-die-title {
  font-family: var(--mono);
  font-size: 6.8px;
  font-weight: 700;
  letter-spacing: 0.6px;
  fill: #141413;
}
.arch-logic .arch-die-sub {
  font-family: var(--mono);
  font-size: 5.8px;
  letter-spacing: 0.5px;
  fill: rgba(14, 14, 14, 0.58);
}
.arch-logic .arch-die-sub.mid {
  text-anchor: middle;
  fill: rgba(255, 255, 255, 0.55);
}
.arch-logic .arch-core-mark {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.2px;
  fill: #f6f5f1;
  text-anchor: middle;
}
.arch-logic .arch-code-line {
  stroke: rgba(14, 14, 14, 0.28);
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* 04 — Motion & WebGL frosted wireframe sheet */
.layer-motion {
  inset: 1px;
  background: rgba(248, 247, 243, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(14, 14, 14, 0.16),
    0 12px 26px rgba(0, 0, 0, 0.12);
}
.arch-motion .arch-grid-line {
  stroke: rgba(14, 14, 14, 0.12);
  stroke-width: 0.65;
}
.arch-motion .arch-curve-ghost {
  fill: none;
  stroke: rgba(14, 14, 14, 0.18);
  stroke-width: 0.9;
  stroke-dasharray: 2 3;
}
.arch-motion .arch-handle {
  stroke: rgba(255, 74, 28, 0.55);
  stroke-width: 0.9;
  stroke-dasharray: 3 3;
}
.arch-motion .arch-curve {
  fill: none;
  stroke: #111110;
  stroke-width: 2;
  stroke-linecap: round;
}
.arch-motion .arch-cp {
  fill: #f8f7f3;
  stroke: #111110;
  stroke-width: 1.4;
}
.arch-motion .arch-cp.solid {
  fill: #111110;
}
.arch-motion .arch-cp.accent {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 1.4;
}
.arch-motion .arch-motion-mono {
  font-family: var(--mono);
  font-size: 6.3px;
  letter-spacing: 0.7px;
  fill: rgba(14, 14, 14, 0.72);
}
.arch-motion .arch-motion-mono.end {
  text-anchor: end;
}

/* 05 — Interface hero display slab */
.layer-ui {
  background: linear-gradient(160deg, #fcfbf8, #f1f0eb 78%, #e8e7e1);
  color: #111110;
  box-shadow:
    inset 0 0 0 1px rgba(14, 14, 14, 0.14),
    0 20px 44px rgba(0, 0, 0, 0.14);
}
.arch-ui {
  position: relative;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(14px, 1.4vw, 20px);
  background:
    radial-gradient(rgba(14, 14, 14, 0.08) 0.75px, transparent 0.75px);
  background-size: 16px 16px;
}
.arch-ui-top,
.arch-ui-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: clamp(8px, 0.66vw, 10px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(17, 17, 16, 0.56);
}
.arch-ui-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111110;
  font-weight: 600;
}
.arch-ui-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.arch-clock {
  font-variant-numeric: tabular-nums;
  color: #111110;
}
.arch-ui-mid {
  position: relative;
  margin: clamp(10px, 1.1vw, 16px) 0;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 0.8vw, 12px);
  border: 1px solid rgba(17, 17, 16, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
}
.arch-bracket {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: rgba(17, 17, 16, 0.42);
}
.arch-bracket.tl {
  top: -1px;
  left: -1px;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
  border-top-left-radius: 4px;
}
.arch-bracket.tr {
  top: -1px;
  right: -1px;
  border-top-width: 1.5px;
  border-right-width: 1.5px;
  border-top-right-radius: 4px;
}
.arch-bracket.bl {
  bottom: -1px;
  left: -1px;
  border-bottom-width: 1.5px;
  border-left-width: 1.5px;
  border-bottom-left-radius: 4px;
}
.arch-bracket.br {
  bottom: -1px;
  right: -1px;
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
  border-bottom-right-radius: 4px;
}
.arch-ui-mark {
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.07em;
  color: #111110;
}
.arch-ui-sub {
  font-family: var(--mono);
  font-size: clamp(7.5px, 0.62vw, 9.5px);
  letter-spacing: 0.14em;
  color: rgba(17, 17, 16, 0.54);
}
.arch-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 22px;
  margin-top: 2px;
}
.arch-bars i {
  display: block;
  width: 3px;
  height: var(--h, 50%);
  border-radius: 99px;
  background: rgba(17, 17, 16, 0.28);
  transform-origin: bottom;
  animation: arch-eq 2.8s var(--ease-io) infinite alternate;
}
.arch-bars i:nth-child(2) {
  animation-delay: -0.4s;
}
.arch-bars i:nth-child(3) {
  animation-delay: -0.9s;
}
.arch-bars i:nth-child(4) {
  animation-delay: -1.3s;
}
.arch-bars i:nth-child(5) {
  animation-delay: -1.9s;
}
.arch-bars i:nth-child(6) {
  animation-delay: -2.2s;
}
.arch-bars i.accent {
  background: var(--accent);
}
@keyframes arch-eq {
  from {
    transform: scaleY(0.55);
  }
  to {
    transform: scaleY(1);
  }
}
.arch-chips {
  display: flex;
  gap: 6px;
}
.arch-chips span {
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid rgba(17, 17, 16, 0.14);
  font-family: var(--mono);
  font-size: clamp(7.5px, 0.6vw, 9px);
  letter-spacing: 0.08em;
  color: rgba(17, 17, 16, 0.72);
}

/* 06 — Optical Glass shield */
.layer-glass {
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    132deg,
    rgba(255, 255, 255, 0.44) 0%,
    rgba(255, 255, 255, 0.06) 26%,
    rgba(255, 255, 255, 0) 48%,
    rgba(255, 255, 255, 0.05) 72%,
    rgba(255, 255, 255, 0.24) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    inset 0 1px 18px rgba(255, 255, 255, 0.24);
}
.arch-glass-face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}
.arch-glare {
  position: absolute;
  inset: -40%;
  background: linear-gradient(125deg, transparent 42%, rgba(255, 255, 255, 0.34) 48%, transparent 54%);
  opacity: calc(0.45 + var(--ex, 0) * 0.45);
}
.arch-cross {
  position: absolute;
  width: 9px;
  height: 9px;
  opacity: calc(0.25 + var(--ex, 0) * 0.55);
}
.arch-cross::before,
.arch-cross::after {
  content: "";
  position: absolute;
  background: rgba(17, 17, 16, 0.38);
}
.arch-cross::before {
  left: 4px;
  top: 0;
  width: 1px;
  height: 9px;
}
.arch-cross::after {
  top: 4px;
  left: 0;
  height: 1px;
  width: 9px;
}
.arch-cross.tl {
  top: 12px;
  left: 12px;
}
.arch-cross.tr {
  top: 12px;
  right: 12px;
}
.arch-cross.bl {
  bottom: 12px;
  left: 12px;
}
.arch-cross.br {
  bottom: 12px;
  right: 12px;
}
.arch-glass-tag {
  position: absolute;
  left: 28px;
  top: 13px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(17, 17, 16, 0.5);
  opacity: var(--lo, 0);
}

/* Dark theme adjustments for Architecture Stack */
[data-theme="dark"] .layer-infra {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 30px 64px rgba(0, 0, 0, 0.62);
}
[data-theme="dark"] .layer-logic {
  background: linear-gradient(135deg, #2b2b29, #1d1d1b 52%, #252523);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 14px 32px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .arch-logic .arch-frame-metal {
  stroke: rgba(255, 255, 255, 0.14);
}
[data-theme="dark"] .arch-logic .arch-die {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.16);
}
[data-theme="dark"] .arch-logic .arch-die.core {
  fill: #edece7;
  stroke: #edece7;
}
[data-theme="dark"] .arch-logic .arch-die-inner {
  stroke: rgba(14, 14, 14, 0.22);
}
[data-theme="dark"] .arch-logic .arch-die-title {
  fill: #edece7;
}
[data-theme="dark"] .arch-logic .arch-die-sub {
  fill: rgba(237, 236, 231, 0.54);
}
[data-theme="dark"] .arch-logic .arch-die-sub.mid {
  fill: rgba(14, 14, 14, 0.62);
}
[data-theme="dark"] .arch-logic .arch-core-mark {
  fill: #111110;
}
[data-theme="dark"] .arch-logic .arch-code-line {
  stroke: rgba(237, 236, 231, 0.34);
}
[data-theme="dark"] .layer-motion {
  background: rgba(26, 26, 24, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.44);
}
[data-theme="dark"] .arch-motion .arch-grid-line {
  stroke: rgba(255, 255, 255, 0.11);
}
[data-theme="dark"] .arch-motion .arch-curve-ghost {
  stroke: rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .arch-motion .arch-curve {
  stroke: #edece7;
}
[data-theme="dark"] .arch-motion .arch-cp {
  fill: #181816;
  stroke: #edece7;
}
[data-theme="dark"] .arch-motion .arch-cp.solid {
  fill: #edece7;
}
[data-theme="dark"] .arch-motion .arch-motion-mono {
  fill: rgba(237, 236, 231, 0.72);
}
[data-theme="dark"] .layer-ui {
  background: linear-gradient(160deg, #1b1b19, #131312 78%, #181816);
  color: #edece7;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 24px 54px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .arch-ui {
  background: radial-gradient(rgba(237, 236, 231, 0.08) 0.75px, transparent 0.75px);
  background-size: 16px 16px;
}
[data-theme="dark"] .arch-ui-top,
[data-theme="dark"] .arch-ui-foot,
[data-theme="dark"] .arch-ui-sub {
  color: rgba(237, 236, 231, 0.54);
}
[data-theme="dark"] .arch-ui-id,
[data-theme="dark"] .arch-clock,
[data-theme="dark"] .arch-ui-mark {
  color: #edece7;
}
[data-theme="dark"] .arch-ui-mid {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
[data-theme="dark"] .arch-bracket {
  border-color: rgba(237, 236, 231, 0.45);
}
[data-theme="dark"] .arch-bars i {
  background: rgba(237, 236, 231, 0.3);
}
[data-theme="dark"] .arch-bars i.accent {
  background: var(--accent);
}
[data-theme="dark"] .arch-chips span {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(237, 236, 231, 0.78);
}
[data-theme="dark"] .layer-glass {
  background: linear-gradient(
    132deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.03) 28%,
    rgba(255, 255, 255, 0) 52%,
    rgba(255, 255, 255, 0.08) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    inset 0 1px 16px rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .arch-cross::before,
[data-theme="dark"] .arch-cross::after {
  background: rgba(237, 236, 231, 0.44);
}
[data-theme="dark"] .arch-glass-tag {
  color: rgba(237, 236, 231, 0.56);
}

/* Exploded callout labels */
.watch-label {
  position: absolute;
  left: 105%;
  top: 50%;
  padding-left: 54px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg);
  opacity: var(--lo, 0);
  transform: translateY(-50%);
  transition: color 0.35s var(--ease);
}
.watch-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 44px;
  height: 1px;
  background: var(--muted);
  transition: background-color 0.35s var(--ease);
}
.watch-label::after {
  content: "";
  position: absolute;
  left: -2px;
  top: calc(50% - 2px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.layer-infra .watch-label,
.layer-logic .watch-label,
.layer-ui .watch-label {
  left: auto;
  right: 105%;
  padding: 0 54px 0 0;
}
.layer-infra .watch-label::before,
.layer-logic .watch-label::before,
.layer-ui .watch-label::before {
  left: auto;
  right: 0;
}
.layer-infra .watch-label::after,
.layer-logic .watch-label::after,
.layer-ui .watch-label::after {
  left: auto;
  right: -2px;
}
.watch-layer.is-focus .watch-label {
  color: var(--accent);
}
.watch-layer.is-focus .watch-label::before,
.watch-layer.is-focus .watch-label::after {
  background: var(--accent);
}
.watch-layer.is-focus .watch-label::after {
  transform: scale(1.35);
}

.watch-foot {
  position: absolute;
  left: var(--g);
  right: var(--g);
  bottom: var(--g);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}
.watch-foot > :last-child {
  text-align: right;
}
.watch-meter {
  width: 140px;
  height: 1px;
  background: var(--line);
}
.watch-meter i {
  display: block;
  height: 100%;
  background: var(--fg);
  transform: scaleX(var(--wp, 0));
  transform-origin: left;
}

/* ───────────────────────── Home: world index ───────────────────────── */
.world {
  position: relative;
  height: calc(var(--n) * 50vh + 100vh);
}
.world-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0 var(--g);
  padding: 92px var(--g) var(--g);
}
.world-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--g);
}
.world-title {
  font-size: clamp(50px, 8.2vw, 148px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.world-head p {
  max-width: 30ch;
  padding-bottom: 0.6em;
  color: var(--muted);
}
.world-list {
  align-self: end;
  display: grid;
  justify-items: start;
  gap: 2px;
  font-size: clamp(22px, 2.2vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.world-list a {
  position: relative;
  color: var(--muted);
  transition:
    color 0.5s var(--ease),
    transform 0.6s var(--ease);
}
.world-list a::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent);
  scale: 0;
  transition: scale 0.5s var(--ease);
}
.world-list a.is-active {
  color: var(--fg);
  transform: translateX(18px);
}
.world-list a.is-active::before {
  scale: 1;
}
.world-list a:hover {
  color: var(--fg);
}
.world-stage {
  position: relative;
  min-height: 0;
}
.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.world-panels {
  position: relative;
  align-self: end;
  min-height: 210px;
}
.world-panel {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 14px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s var(--ease);
  pointer-events: none;
}
.world-panel.is-active {
  opacity: 1;
  transform: none;
}
.world-index {
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05em;
}
.world-panel h3 {
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.world-panel p {
  max-width: 34ch;
  color: var(--muted);
}

/* ───────────────────────── Home: atmosphere ───────────────────────── */
.atmos {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  height: 110svh;
  min-height: 620px;
  background: #0d0c0b;
  color: #f3f0ea;
  text-align: center;
}
.atmos-blur {
  position: absolute;
  inset: -15%;
  z-index: -2;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform 1.6s var(--ease);
}
.atmos-blur i {
  position: absolute;
  border-radius: 50%;
}
.atmos-blur i:nth-child(1) {
  left: 0;
  top: 8%;
  width: 62vw;
  height: 90vh;
  background: radial-gradient(closest-side, rgba(150, 122, 86, 0.95), rgba(150, 122, 86, 0));
  animation: drift-a 16s var(--ease-io) infinite alternate;
}
.atmos-blur i:nth-child(2) {
  right: 0;
  top: 0;
  width: 56vw;
  height: 100vh;
  background: radial-gradient(closest-side, rgba(52, 66, 88, 0.95), rgba(52, 66, 88, 0));
  animation: drift-b 19s var(--ease-io) infinite alternate;
}
.atmos-blur i:nth-child(3) {
  left: 30%;
  bottom: 0;
  width: 48vw;
  height: 70vh;
  background: radial-gradient(closest-side, rgba(196, 82, 34, 0.7), rgba(196, 82, 34, 0));
  animation: drift-c 13s var(--ease-io) infinite alternate;
}
@keyframes drift-a {
  to {
    transform: translate(18vw, 6vh) scale(1.15);
  }
}
@keyframes drift-b {
  to {
    transform: translate(-16vw, 14vh) scale(0.85);
  }
}
@keyframes drift-c {
  to {
    transform: translate(-10vw, -24vh) scale(1.3);
  }
}
.atmos-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.atmos-copy {
  display: grid;
  justify-items: center;
  gap: 24px;
}
.atmos-copy .label {
  color: rgba(243, 240, 234, 0.6);
}
.atmos-copy h2 {
  font-size: clamp(36px, 4.6vw, 78px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}
.atmos-copy .muted {
  color: rgba(243, 240, 234, 0.55);
}
.atmos-copy p {
  font-size: 13px;
  color: rgba(243, 240, 234, 0.7);
}
.atmos-corner {
  position: absolute;
  right: var(--g);
  bottom: var(--g);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

/* Floating contact */
.float-contact {
  position: fixed;
  right: var(--g);
  bottom: var(--g);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #fff;
  mix-blend-mode: difference;
  opacity: 0;
  scale: 0.6;
  pointer-events: none;
  transition:
    opacity 0.6s var(--ease),
    scale 0.8s var(--ease);
}
.float-contact.show {
  opacity: 1;
  scale: 1;
  pointer-events: auto;
}
.float-contact svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: spin 16s linear infinite;
}
.float-contact text {
  fill: currentColor;
  font-family: var(--sans);
  font-size: 8.6px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.float-contact > span {
  font-size: 20px;
  transition: transform 0.5s var(--ease);
}
.float-contact:hover > span {
  transform: rotate(45deg);
}

/* ───────────────────────── Footer ───────────────────────── */
.footer {
  position: relative;
  overflow: hidden;
  padding: 0 var(--g) var(--g);
}
.marquee {
  overflow: hidden;
  margin: 0 calc(var(--g) * -1);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 34s linear infinite;
}
.marquee-track > span {
  display: inline-flex;
  align-items: center;
  font-size: clamp(30px, 3.6vw, 58px);
  font-weight: 500;
  letter-spacing: -0.045em;
}
.marquee i {
  margin: 0 0.6em;
  font-size: 0.55em;
  font-style: normal;
  color: var(--accent);
  display: inline-block;
  animation: spin 8s linear infinite;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--g);
  padding: 130px 0 90px;
}
.footer-call h2 {
  font-size: clamp(42px, 5.6vw, 96px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.footer-links {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.footer-links .label {
  margin-bottom: 12px;
}
.footer-links a {
  position: relative;
}
.footer-mark {
  display: flex;
  justify-content: center;
  overflow: hidden;
  font-size: 53vw;
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.07em;
}
.footer-mark span {
  display: inline-block;
}
.motion .footer-mark span {
  transform: translateY(100%);
  transition: transform 1.4s var(--ease);
}
.motion .footer-mark.in span {
  transform: none;
}
.footer-mark span:nth-child(2) {
  transition-delay: 0.08s;
}
.footer-mark span:nth-child(3) {
  transition-delay: 0.16s;
}
.motion .marquee-track {
  animation: none;
}
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}
.footer-bottom > :last-child {
  justify-self: end;
}

/* ───────────────────────── Project visuals ───────────────────────── */
.pv {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
  transition: transform 1.4s var(--ease);
}
.pv-clinic {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 0%, #eef0ec, #d7dbd5 80%);
  color: #1c231f;
}
.pv-window {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 76cqw;
  height: 68cqh;
  overflow: hidden;
  border-radius: 1.4cqmin;
  background: #fbfbf9;
  box-shadow: 0 4cqmin 10cqmin rgba(28, 35, 31, 0.14);
}
.pv-bar {
  display: flex;
  align-items: center;
  gap: 0.9cqmin;
  padding: 2cqmin 2.4cqmin;
  border-bottom: 1px solid #eceeea;
}
.pv-bar i {
  width: 1.3cqmin;
  height: 1.3cqmin;
  border-radius: 50%;
  background: #d5d8d3;
}
.pv-bar span {
  margin: 0 auto;
  padding: 0.5cqmin 3cqmin;
  border-radius: 99px;
  background: #f0f1ee;
  font-family: var(--mono);
  font-size: 1.6cqmin;
  color: #7a817c;
}
.pv-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 3cqmin;
  padding: 0 6cqmin;
}
.pv-copy {
  display: grid;
  justify-items: start;
  gap: 2.6cqmin;
}
.pv-copy small {
  font-size: 2.2cqmin;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.pv-copy small b {
  font-weight: 800;
}
.pv-copy strong {
  font-size: 5.6cqmin;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.pv-pill {
  padding: 1.1cqmin 2.2cqmin;
  border-radius: 99px;
  background: #1c231f;
  color: #fbfbf9;
  font-size: 1.6cqmin;
  font-weight: 650;
  text-transform: uppercase;
}
.pv-tooth svg {
  width: 100%;
  max-width: 34cqmin;
  margin-left: auto;
}
.pv-tooth circle {
  fill: #e5eae5;
}
.pv-tooth path {
  fill: #fbfbf9;
  stroke: #1c231f;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.pv-foot {
  display: flex;
  justify-content: space-between;
  padding: 2.2cqmin 6cqmin;
  border-top: 1px solid #eceeea;
  font-family: var(--mono);
  font-size: 1.5cqmin;
  text-transform: uppercase;
  color: #7a817c;
}
.pv-baby {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 60% 30%, #f2ede7, #e1d9cf 80%);
  color: #2a211b;
}
.pv-side {
  position: absolute;
  left: 7cqw;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4cqmin;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
@container (max-aspect-ratio: 5/4) {
  .pv-side {
    display: none;
  }
}
.pv-side em {
  font-style: normal;
  color: #9b8e81;
}
.pv-phone {
  position: relative;
  height: 80cqh;
  aspect-ratio: 9 / 19;
  padding: 1.1cqmin;
  border-radius: 5.6cqmin;
  background: #121212;
  box-shadow: 0 5cqmin 12cqmin rgba(42, 33, 27, 0.25);
  animation: phone-float 6s var(--ease-io) infinite alternate;
}
@keyframes phone-float {
  to {
    transform: translateY(-2cqmin) rotate(-2deg);
  }
}
.pv-notch {
  position: absolute;
  left: 38%;
  right: 38%;
  top: 2.2cqmin;
  z-index: 1;
  height: 2.4cqmin;
  border-radius: 99px;
  background: #121212;
}
.pv-screen {
  display: grid;
  align-content: start;
  gap: 3cqmin;
  height: 100%;
  padding: 7cqmin 3.2cqmin 3cqmin;
  border-radius: 4.6cqmin;
  background: #faf7f3;
}
.pv-app {
  font-size: 2.1cqmin;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.pv-app span {
  float: right;
  color: #b9a998;
}
.pv-screen strong {
  font-size: 4.4cqmin;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.pv-ring {
  width: 74%;
  justify-self: center;
}
.pv-ring circle {
  fill: none;
  stroke: #ebe3d9;
  stroke-width: 6;
}
.pv-ring .pv-ring-fill {
  stroke: #2a211b;
  stroke-linecap: round;
  stroke-dasharray: 251;
  stroke-dashoffset: 82;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.pv-ring text {
  fill: #2a211b;
  font-size: 20px;
  font-weight: 500;
  text-anchor: middle;
}
.pv-ring .pv-ring-small {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 1px;
  fill: #9b8e81;
}
.pv-rows {
  display: grid;
  gap: 1.2cqmin;
}
.pv-rows span {
  display: flex;
  justify-content: space-between;
  padding: 1.6cqmin 2cqmin;
  border-radius: 1.6cqmin;
  background: #f1ebe4;
  font-size: 1.8cqmin;
}
.pv-steam {
  background: radial-gradient(ellipse at 50% 35%, #2a2a2f, #0b0b0d 72%);
  color: #fff;
}
.pv-floor {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -12%;
  height: 62%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 6cqmin 6cqmin;
  transform: perspective(60cqmin) rotateX(64deg);
  transform-origin: top;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%);
  mask-image: linear-gradient(to bottom, transparent, #000 45%);
  animation: floor 4s linear infinite;
}
@keyframes floor {
  to {
    background-position: 0 6cqmin;
  }
}
.pv-word {
  position: absolute;
  left: 7cqw;
  top: 14cqh;
  font-size: 15cqmin;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: max(1px, 0.22cqmin) rgba(255, 255, 255, 0.8);
}
.pv-orb {
  position: absolute;
  right: 13cqw;
  top: 20cqh;
  width: 38cqmin;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0, #dedede 7%, #8e8e93 30%, #2c2c31 62%, #0c0c0e 80%, #4a4a50 100%);
  box-shadow:
    inset -3cqmin -4cqmin 8cqmin rgba(0, 0, 0, 0.6),
    0 6cqmin 14cqmin rgba(0, 0, 0, 0.6);
  animation: orb-bob 5s var(--ease-io) infinite alternate;
}
@keyframes orb-bob {
  to {
    transform: translateY(-3cqmin);
  }
}
.pv-tag {
  position: absolute;
  left: 7cqw;
  right: 7cqw;
  bottom: 7cqh;
  display: flex;
  justify-content: space-between;
  padding-top: 2cqmin;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--mono);
  font-size: 1.7cqmin;
  color: rgba(255, 255, 255, 0.7);
}

/* App screens */
.pv-app {
  background: radial-gradient(ellipse at 50% 18%, #f1f9f7, #cfe6e2 86%);
}
.pv-app-phone {
  --x: 0%;
  --r: 0deg;
  --s: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  height: 76cqh;
  width: calc(76cqh * 0.4621);
  padding: 0.9cqmin;
  border-radius: 4.8cqmin;
  background: #121212;
  box-shadow: 0 5cqmin 12cqmin rgba(10, 60, 56, 0.28);
  transform: translate(-50%, -50%) translateX(var(--x)) rotate(var(--r)) scale(var(--s));
}
.pv-app-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 4cqmin;
}
.pv-app-0 {
  --x: -118%;
  --r: -7deg;
  --s: 0.86;
}
.pv-app-1 {
  z-index: 1;
  animation: app-float 6s var(--ease-io) infinite alternate;
}
.pv-app-2 {
  --x: 118%;
  --r: 7deg;
  --s: 0.86;
}
@keyframes app-float {
  to {
    transform: translate(-50%, -52%) rotate(-1.5deg);
  }
}
@container (max-aspect-ratio: 1/1) {
  .pv-app-phone {
    height: 62cqh;
    width: calc(62cqh * 0.4621);
  }
  .pv-app-0 {
    --x: -64%;
    --s: 0.8;
  }
  .pv-app-2 {
    --x: 64%;
    --s: 0.8;
  }
}

/* Real screenshots */
.pv-real {
  background: radial-gradient(ellipse at 62% 28%, #fdf6ea, #f3e3c9 82%);
}
.pv-real-steamify {
  background: radial-gradient(ellipse at 62% 26%, #f3f6ff, #cfdcff 86%);
}
.pv-real-steamify .pv-browser,
.pv-real-steamify .pv-device {
  box-shadow: 0 4cqmin 11cqmin rgba(20, 50, 160, 0.22);
}
.pv-real-stomoclinic {
  background: radial-gradient(ellipse at 62% 28%, #f2faf8, #cde5e1 86%);
}
.pv-real-stomoclinic .pv-browser,
.pv-real-stomoclinic .pv-device {
  box-shadow: 0 4cqmin 11cqmin rgba(10, 70, 64, 0.22);
}
.pv-real-prepverse {
  background: radial-gradient(ellipse at 62% 26%, #eef9fa, #c6e5e9 86%);
}
.pv-real-prepverse .pv-browser {
  box-shadow: 0 4cqmin 11cqmin rgba(8, 79, 92, 0.22);
}
.pv-real-solo .pv-browser {
  left: 50%;
  top: 50%;
  width: min(84cqw, 128cqh);
  transform: translate(-50%, -50%);
}
.pv-real-solo .pv-browser img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

/* UZAlphaCS tactical server console visual */
.pv-cs {
  background:
    radial-gradient(ellipse 65% 65% at 72% 26%, rgba(255, 74, 28, 0.16), transparent 64%),
    linear-gradient(145deg, #171817, #0d0e0d 72%, #131413);
  color: #f0efe9;
}
.pv-cs-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 6cqw 6cqw;
}
.pv-cs-frame {
  position: absolute;
  inset: 9cqh 7cqw;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 3.2cqmin 4cqmin;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.8cqmin;
  background: rgba(14, 15, 14, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 4cqmin 12cqmin rgba(0, 0, 0, 0.45);
}
.pv-cs-top,
.pv-cs-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  font-family: var(--mono);
  font-size: clamp(8px, 1.55cqw, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 239, 233, 0.54);
}
.pv-cs-live {
  display: inline-flex;
  align-items: center;
  gap: 0.9cqw;
  color: #f0efe9;
  font-weight: 600;
}
.pv-cs-live i {
  width: clamp(5px, 0.9cqw, 8px);
  height: clamp(5px, 0.9cqw, 8px);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 74, 28, 0.25);
}
.pv-cs-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4cqmin;
  text-align: center;
}
.pv-cs-eyebrow {
  font-family: var(--mono);
  font-size: clamp(8px, 1.5cqw, 11.5px);
  letter-spacing: 0.14em;
  color: rgba(240, 239, 233, 0.58);
}
.pv-cs-center strong {
  font-size: clamp(24px, 9.2cqw, 78px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: #f5f4ef;
}
.pv-cs-ip {
  padding: 1.1cqmin 2.4cqmin;
  border-radius: 99px;
  border: 1px solid rgba(255, 74, 28, 0.55);
  background: rgba(255, 74, 28, 0.12);
  font-family: var(--mono);
  font-size: clamp(9px, 1.85cqw, 14px);
  letter-spacing: 0.04em;
  color: #fff;
}
.pv-cs-foot {
  padding-top: 2cqmin;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.server-ip-box {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.server-ip-box code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--fg);
  user-select: all;
}
.pv-browser {
  position: absolute;
  left: 6cqw;
  top: 11cqh;
  width: 74cqw;
  overflow: hidden;
  border-radius: 1.4cqmin;
  background: #fff;
  box-shadow: 0 4cqmin 11cqmin rgba(96, 52, 0, 0.2);
}
.pv-browser .pv-bar {
  border-bottom-color: #f0ebe3;
}
.pv-browser img,
.pv-device img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: top;
}
.pv-browser img {
  aspect-ratio: 16 / 10;
}
.pv-device {
  position: absolute;
  right: 6cqw;
  bottom: 7cqh;
  height: 72cqh;
  width: calc(72cqh * 0.4621);
  padding: 0.9cqmin;
  border-radius: 4.6cqmin;
  background: #121212;
  box-shadow: 0 5cqmin 12cqmin rgba(60, 30, 0, 0.32);
  animation: phone-float 6s var(--ease-io) infinite alternate;
}
.pv-device img {
  height: 100%;
  border-radius: 3.8cqmin;
}
@container (max-aspect-ratio: 1/1) {
  .pv-browser {
    left: 6cqw;
    top: 8cqh;
    width: 88cqw;
  }
  .pv-device {
    right: 8cqw;
    bottom: 6cqh;
    height: 58cqh;
    width: calc(58cqh * 0.4621);
  }
}

/* ───────────────────────── Inner pages ───────────────────────── */
.page {
  min-height: 100vh;
  padding: 0 var(--g) 60px;
}
.page-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 var(--g);
  padding: 24vh 0 0;
}
.page-hero > .label {
  grid-column: 1 / -1;
  margin-bottom: 30px;
}
.page-hero h1 {
  grid-column: 1 / 12;
  font-size: clamp(46px, 8.6vw, 156px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.062em;
  overflow-wrap: anywhere;
}
.page-sub {
  grid-column: 9 / 13;
  margin-top: 54px;
  max-width: 34ch;
  font-size: 16px;
  color: var(--muted);
}
.rule {
  grid-column: 1 / -1;
  display: block;
  height: 1px;
  margin: 72px 0 0;
  background: var(--line);
}
.back-link {
  display: inline-block;
  margin-top: 96px;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  transition: transform 0.5s var(--ease);
}
.back-link:hover {
  transform: translateX(-6px);
}
.page-project .page-hero {
  padding-top: 12vh;
}
.collection,
.block,
.interest-list {
  padding: 72px 0 40px;
}
.block-title {
  margin-bottom: 40px;
  font-size: clamp(30px, 3.6vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 44px;
}
.filters button {
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  transition:
    background-color 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.filters button:hover {
  border-color: var(--fg);
}
.filters button.selected {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

/* Rows */
.content-grid:not(.projects),
.block > .row:first-of-type {
  border-top: 1px solid var(--line);
}
.row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 90px minmax(0, 1.5fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 var(--g);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.45s var(--ease);
}
.row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--g) * -1);
  z-index: -1;
  background: var(--fg);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
}
.row:hover {
  color: var(--bg);
}
.row:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}
.row:hover p,
.row:hover .row-index,
.row:hover .tag {
  color: color-mix(in srgb, var(--bg) 62%, var(--fg));
}
.row h2 {
  font-size: clamp(24px, 2.9vw, 46px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
  transition: transform 0.6s var(--ease);
}
.row:hover h2 {
  transform: translateX(12px);
}
.row p {
  color: var(--muted);
  transition: color 0.45s;
}
.row-index {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}
.row-link {
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}
.row.goal {
  grid-template-columns: 160px minmax(0, 1.4fr) minmax(0, 1fr);
}

/* Project grid */
.content-grid.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 90px var(--g);
}
.content-grid.projects > div:nth-child(even) {
  margin-top: 16vh;
}
.project-card {
  display: block;
}
.project-media {
  aspect-ratio: 4 / 3.1;
}
.project-meta {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 4px var(--g);
  padding-top: 18px;
}
.project-meta h3 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.project-meta p {
  grid-column: 2;
  color: var(--muted);
}
.project-meta .tag {
  grid-row: 1;
  grid-column: 3;
}

/* Interests */
.interest-list {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding-top: 0;
}
.interest {
  display: flex;
  align-items: baseline;
  gap: var(--g);
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--line);
  transition: color 0.5s var(--ease);
}
.interest h2 {
  font-size: clamp(42px, 7.6vw, 132px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
  transition: transform 0.7s var(--ease);
}
.interest .row-index {
  min-width: 60px;
}
.interest-list:hover .interest {
  color: var(--muted);
}
.interest-list .interest:hover {
  color: var(--fg);
}
.interest:hover h2 {
  transform: translateX(2vw);
}

/* Chips & people */
.chips,
.people {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips span {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 16px;
  font-weight: 500;
  transition:
    background-color 0.4s var(--ease),
    color 0.4s var(--ease);
}
.chips span:hover {
  background: var(--fg);
  color: var(--bg);
}
.people {
  gap: 18px 44px;
}
.people span {
  display: grid;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.people small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
}

/* Empty */
.empty {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 12vh 0;
  text-align: center;
}
.empty-star {
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
  animation: spin 12s linear infinite;
}
.empty h2 {
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
}
.empty p {
  max-width: 40ch;
  color: var(--muted);
}

/* About */
.about-lead {
  padding: 80px 0 60px;
}
.about-lead p {
  max-width: 24ch;
  font-size: clamp(30px, 4.2vw, 70px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.048em;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--g) 8vw;
  padding: 60px 0;
  align-items: end;
}
.about-tile {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 4.6;
  border-radius: 4px;
  background: var(--soft);
}
.about-star {
  font-size: clamp(120px, 18vw, 300px);
  line-height: 1;
  color: var(--fg);
  animation: spin 30s linear infinite;
}
.about-tile .label {
  position: absolute;
  left: 20px;
  bottom: 18px;
}
.about-text > p {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.015em;
}
.about-stat {
  display: grid;
  gap: 10px;
  margin-top: 70px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.about-stat strong {
  font-size: clamp(80px, 10vw, 170px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.07em;
}
.about-stat span {
  max-width: 30ch;
  color: var(--muted);
}

/* Forms */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 56px 8vw;
  padding: 72px 0 120px;
}
.form-aside {
  display: grid;
  align-content: start;
  gap: 24px;
}
.form-aside p {
  max-width: 40ch;
  color: var(--muted);
}
.form-aside .form-lead {
  max-width: 20ch;
  font-size: clamp(26px, 2.8vw, 46px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.contact-form {
  display: grid;
  align-content: start;
  gap: 30px;
}
.contact-form label {
  display: grid;
  gap: 6px;
}
.contact-form label > span {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}
.contact-form label:focus-within > span {
  color: var(--accent);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  caret-color: var(--accent);
  font-size: 20px;
  letter-spacing: -0.02em;
  outline: none;
  transition: border-color 0.4s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}
/* Browser autofill paints fields blue-grey; keep them in the page colours. */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  box-shadow: 0 0 0 1000px var(--bg) inset;
  caret-color: var(--accent);
  transition:
    border-color 0.4s var(--ease),
    background-color 99999s 0s;
}
.contact-form input:autofill {
  box-shadow: 0 0 0 1000px var(--bg) inset;
}
.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}
.contact-form .pill {
  justify-self: start;
}
/* Send button: accent colour, inverts to the text colour on hover. */
.contact-form .pill.solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.contact-form .pill.solid::before {
  background: var(--fg);
}
.contact-form .pill.solid:hover {
  color: var(--bg);
  border-color: var(--fg);
}
.contact-form .pill.solid:disabled {
  opacity: 0.5;
  color: #fff;
  border-color: var(--accent);
}
.form-status {
  min-height: 1.3em;
  font-size: 13px;
  color: var(--muted);
}
.static-notice {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.static-socials a[href^="mailto:"] {
  text-transform: none;
}
.static-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
}
.message-list {
  align-content: start;
  display: grid;
  border-top: 1px solid var(--line);
}
.message-empty {
  padding: 22px 0;
  color: var(--muted);
}
.offline-entry {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.offline-entry strong {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
}

/* Project detail */
.cover {
  margin: 72px calc(var(--g) * -1) 0;
}
.cover-frame {
  --ci: 0;
  position: relative;
  height: 92svh;
  min-height: 420px;
  background: var(--soft);
  clip-path: inset(calc(var(--ci) * 10%) calc(var(--ci) * (var(--g) + 8%)) round calc(var(--ci) * 10px));
}
.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 56px var(--g);
  padding: 110px 0 60px;
}
.case-grid aside {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  justify-items: start;
  gap: 14px;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.download-button > span {
  transition: transform 0.55s var(--ease);
}
.download-button:hover > span {
  transform: translateY(3px);
}
.download-note {
  display: grid;
  gap: 4px;
  max-width: 26ch;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.case-body h2 {
  margin-bottom: 26px;
  font-size: clamp(32px, 3.4vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}
.case-body p {
  max-width: 42ch;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
}
.case-body .case-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}
.case-comments {
  padding: 60px 0 0;
  border-top: 1px solid var(--line);
}
.case-comments .form-layout {
  padding-top: 0;
}
.next-project {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0 calc(var(--g) * -1);
  padding: 90px var(--g) 110px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.next-project strong {
  font-size: clamp(60px, 12vw, 220px);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.07em;
  transition: transform 0.8s var(--ease);
}
.next-arrow {
  position: absolute;
  right: var(--g);
  bottom: 110px;
  font-size: clamp(40px, 6vw, 100px);
  font-weight: 300;
  transition: transform 0.8s var(--ease);
}
.next-project:hover strong {
  transform: translateX(2vw);
}
.next-project:hover .next-arrow {
  transform: translateX(-2vw);
}

/* ───────────────────────── Letter roll ───────────────────────── */
.roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  font-style: normal;
  line-height: 1.25;
}
.roll > b {
  display: block;
  font-weight: inherit;
}
.roll > b + b {
  position: absolute;
  left: 0;
  top: 100%;
}
.roll i {
  display: inline-block;
  font-style: normal;
  white-space: pre;
  transition: transform 0.6s var(--ease);
  transition-delay: calc(var(--c) * 14ms);
}
a:hover .roll i,
button:hover .roll i {
  transform: translateY(-100%);
}

/* ───────────────────────── Film grain ───────────────────────── */
body::after {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 95;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27180%27 height=%27180%27%3E%3Cfilter id=%27g%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.9%27 numOctaves=%272%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23g)%27/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  20% {
    transform: translate(-3%, 2%);
  }
  40% {
    transform: translate(2%, -4%);
  }
  60% {
    transform: translate(-1%, 5%);
  }
  80% {
    transform: translate(4%, -1%);
  }
}

/* ───────────────────────── Home: horizontal stack ───────────────────────── */
.stack {
  position: relative;
  height: 420vh;
}
.stack-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 100%);
  grid-template-rows: auto 1fr auto;
  padding: 92px 0 var(--g);
}
.stack-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--g);
  padding: 0 var(--g);
}
.stack-head h2 {
  font-size: clamp(36px, 4.6vw, 80px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}
.stack-track {
  align-self: center;
  justify-self: start;
  display: flex;
  align-items: stretch;
  width: max-content;
  padding: 0 30vw 0 34vw;
  transform: translate3d(var(--x, 0px), 0, 0) skewX(var(--sk, 0deg));
  will-change: transform;
}
.stack-card {
  display: grid;
  align-content: space-between;
  gap: 30px;
  min-height: 34vh;
  padding: 0 4.5vw;
  border-left: 1px solid var(--line);
}
.stack-card strong {
  font-size: clamp(64px, 10.5vw, 196px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.065em;
  white-space: nowrap;
  color: color-mix(in srgb, var(--fg) 16%, transparent);
  transition: color 0.6s var(--ease);
}
.stack-card.is-near strong {
  color: var(--fg);
}
.stack-card .tag {
  align-self: end;
}
.stack-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--g);
}
.stack-meter {
  width: 160px;
  height: 1px;
  background: var(--line);
}
.stack-meter i {
  display: block;
  height: 100%;
  background: var(--fg);
  transform: scaleX(var(--sp, 0));
  transform-origin: left;
}

/* ───────────────────────── Floating poster preview ───────────────────────── */
.preview {
  --h: 210;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 220px;
  aspect-ratio: 3 / 4;
  margin: -150px 0 0 -110px;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(155deg, hsl(var(--h) 30% 34%), hsl(calc(var(--h) + 50) 38% 9%));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
  color: #fff;
  pointer-events: none;
  opacity: 0;
  scale: 0.5;
  transition:
    opacity 0.35s var(--ease),
    scale 0.55s var(--ease),
    background 0.6s var(--ease);
}
.preview.show {
  opacity: 1;
  scale: 1;
}
.preview::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: inherit;
}
.preview .glyph {
  position: absolute;
  right: -12%;
  top: 8%;
  font-size: 230px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  opacity: 0.14;
}
.preview b,
.preview em {
  position: absolute;
  top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 400;
  text-transform: uppercase;
  opacity: 0.75;
}
.preview b {
  left: 14px;
}
.preview em {
  right: 14px;
}
.preview strong {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  font-size: 30px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

/* ───────────────────────── Tilt ───────────────────────── */
.work-media[data-tilt],
.project-media[data-tilt] {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) skewY(var(--skew, 0deg));
  transition:
    transform 0.7s var(--ease),
    clip-path 1.4s var(--ease);
}
[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.35), transparent 42%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
[data-tilt]:hover::after {
  opacity: 1;
}

/* ───────────────────────── Case study media ───────────────────────── */
.case-about {
  margin-top: 22px;
  color: var(--muted);
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 46px;
  border-top: 1px solid var(--line);
}
.case-stats > div {
  display: grid;
  gap: 8px;
  padding: 24px 12px 0 0;
}
.case-stats > div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.case-stats strong {
  font-size: clamp(44px, 5vw, 84px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid #eee9e1;
  background: #fbfaf8;
}
.shot-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dcd7cf;
}
.shot-bar span {
  margin: 0 auto;
  padding: 3px 16px;
  border-radius: 99px;
  background: #f1eee9;
  font-family: var(--mono);
  font-size: 11px;
  color: #8a847b;
}
.scrollshot {
  position: relative;
  height: 280vh;
  margin: 0 calc(var(--g) * -1);
}
.scrollshot-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 26px;
  padding: 80px var(--g) var(--g);
  overflow: hidden;
}
.scrollshot-frame {
  width: min(1120px, 100%);
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.18);
  transform: scale(var(--ss, 1));
}
.scrollshot-view {
  height: min(66svh, 660px);
  overflow: hidden;
}
.scrollshot-view img {
  display: block;
  width: 100%;
  transform: translate3d(0, var(--pan, 0px), 0);
  will-change: transform;
}
.gallery {
  padding: 110px 0 30px;
}
.gallery-desktop {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 90px var(--g);
}
.shot {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}
.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: transform 1.2s var(--ease);
}
.shot:hover img {
  transform: scale(1.03);
}
.shot figcaption {
  padding: 14px 16px;
  border-top: 1px solid #eee9e1;
  color: #8a847b;
}
.shot:nth-child(4n + 1) {
  grid-column: 1 / 10;
}
.shot:nth-child(4n + 2) {
  grid-column: 5 / 13;
}
.shot:nth-child(4n + 3) {
  grid-column: 2 / 11;
}
.shot:nth-child(4n + 4) {
  grid-column: 4 / 13;
}
.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--g);
  padding-bottom: 60px;
}
.phone {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.phone:nth-child(3n + 2) {
  margin-top: 12vh;
}
.phone-frame {
  width: min(100%, 330px);
  aspect-ratio: 390 / 844;
  padding: 9px;
  border-radius: 44px;
  background: #121212;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.22);
}
.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 36px;
}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1024px) {
  .watch-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    padding-top: 90px;
  }
  .watch-copy h2 {
    margin: 18px 0;
  }
  .world-sticky {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .world-stage {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .world-list {
    grid-row: 3;
  }
  .world-panels {
    grid-row: 3;
  }
}
@media (max-width: 820px) {
  .menu-links {
    grid-template-columns: 1fr;
  }
  .menu-links a {
    font-size: clamp(26px, 7.4vw, 44px);
  }
  .menu-foot span:nth-child(2) {
    display: none;
  }
  .hero-base {
    grid-template-columns: 1fr 1fr;
  }
  .hero-scroll {
    display: none;
  }
  .intro {
    grid-template-columns: 1fr;
    padding: 16vh var(--g) 20vh;
  }
  .intro > .label,
  .intro-copy {
    grid-column: 1;
  }
  .intro > .label {
    margin-bottom: 24px;
  }
  .chrome-orb {
    top: auto;
    bottom: 5vh;
    right: var(--g);
  }
  .works-head {
    grid-template-columns: 1fr;
    margin-bottom: 70px;
  }
  .works-list {
    grid-template-columns: 1fr;
    gap: 80px;
  }
  .work-0,
  .work-1,
  .work-2,
  .work-3,
  .work-4,
  .work-5 {
    grid-column: 1;
    margin-top: 0;
  }
  .work-1 .work-media {
    aspect-ratio: 16 / 10.5;
  }
  .works-all {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }
  .works-all span:last-child {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .watch-assembly {
    --size: clamp(190px, 50vw, 244px);
    --r: 20px;
  }
  .watch-label {
    padding-left: 26px;
    font-size: 8.5px;
  }
  .watch-label::before {
    width: 20px;
  }
  .layer-infra .watch-label,
  .layer-logic .watch-label,
  .layer-ui .watch-label {
    padding: 0 26px 0 0;
  }
  .watch-foot span:first-child {
    display: none;
  }
  .watch-foot {
    grid-template-columns: auto 1fr;
  }
  .world-head {
    display: grid;
    gap: 14px;
  }
  .world-sticky {
    padding-top: 84px;
  }
  .world-list {
    font-size: 20px;
  }
  .world-panels {
    min-height: 180px;
  }
  .world-index {
    font-size: 34px;
  }
  .world-panel p {
    font-size: 13px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    padding: 90px 0 60px;
  }
  .footer-bottom {
    grid-template-columns: 1fr auto;
  }
  .footer-bottom span:nth-child(2) {
    display: none;
  }
  .page-hero {
    padding-top: 20vh;
  }
  .page-hero h1 {
    grid-column: 1 / -1;
  }
  .page-sub {
    grid-column: 1 / -1;
    margin-top: 30px;
  }
  .rule {
    margin-top: 48px;
  }
  .row,
  .row.goal {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    padding: 22px 0;
  }
  .row p {
    grid-column: 2 / -1;
    grid-row: 2;
    margin-top: 6px;
  }
  .row.goal .row-index {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
  .row.goal h2,
  .row.goal p {
    grid-column: 1 / -1;
  }
  .row-link {
    grid-column: 2 / -1;
    margin-top: 10px;
  }
  .content-grid.projects {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .content-grid.projects > div:nth-child(even) {
    margin-top: 0;
  }
  .about-grid,
  .form-layout,
  .case-grid {
    grid-template-columns: 1fr;
  }
  .gallery-desktop .shot {
    grid-column: 1 / -1;
  }
  .gallery-desktop {
    gap: 40px;
  }
  .case-grid aside {
    position: static;
  }
  .cover-frame {
    height: 64svh;
  }
}
@media (max-width: 520px) {
  .scrollshot-view {
    height: 56svh;
  }
  .phones {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--g) * -1);
    padding: 0 var(--g) 40px;
  }
  .phone {
    scroll-snap-align: center;
  }
  .phone:nth-child(3n + 2) {
    margin-top: 0;
  }
  .case-stats strong {
    font-size: 40px;
  }
  .stack-card {
    min-height: 26vh;
    padding: 0 9vw;
  }
  .stack-head {
    display: grid;
    gap: 14px;
  }
  .nav-controls button {
    padding: 0 7px;
  }
  .hero {
    padding-top: 76px;
  }
  .hero-intro {
    font-size: 21px;
  }
  .hero-base {
    font-size: 10px;
  }
  .reel {
    height: 280vh;
  }
  .reel-caption a {
    max-width: calc(100vw - 2 * var(--g) - 90px);
  }
  .stat {
    padding: 40px 8px 46px;
  }
  .world-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 14px;
  }
  .world-list {
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    font-size: 17px;
  }
  .world-list a.is-active {
    transform: none;
  }
  .world-list a::before {
    display: none;
  }
  .world-panels {
    grid-row: 4;
    min-height: 150px;
  }
  .world-panel {
    gap: 8px;
  }
  .float-contact {
    width: 68px;
    height: 68px;
  }
  .float-contact text {
    font-size: 9.6px;
  }
  .project-meta {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .project-meta .tag {
    grid-column: 2;
    grid-row: auto;
  }
}
/* Without the motion engine (reduced motion, or JS unavailable) the
   scroll-pinned scenes collapse into ordinary, fully visible sections. */
html:not(.motion) .reel,
html:not(.motion) .watch,
html:not(.motion) .world {
  height: auto;
}
html:not(.motion) .reel-sticky,
html:not(.motion) .watch-sticky,
html:not(.motion) .world-sticky {
  position: relative;
  height: auto;
  min-height: 0;
}
html:not(.motion) .reel-frame {
  position: relative;
  height: 72svh;
  margin-top: 48px;
  clip-path: inset(0 round 4px);
}
html:not(.motion) .reel-caption {
  --cap: 1;
}
html:not(.motion) .reel-slide:first-child,
html:not(.motion) .reel-caption a:first-child {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
html:not(.motion) .scrollshot {
  height: auto;
}
html:not(.motion) .scrollshot-sticky {
  position: relative;
  height: auto;
}
html:not(.motion) .scrollshot-view {
  overflow-y: auto;
}
html:not(.motion) .stack {
  height: auto;
}
html:not(.motion) .stack-sticky {
  position: relative;
  height: auto;
  gap: 40px;
}
html:not(.motion) .stack-track {
  width: auto;
  overflow-x: auto;
  padding: 0 var(--g);
}
html:not(.motion) .stack-card strong {
  color: var(--fg);
}
html:not(.motion) .watch-scene {
  height: 62vh;
}
html:not(.motion) .watch-assembly {
  --rx: 52deg;
  --ry: -12deg;
  --rz: -30deg;
  --sc: 0.78;
  --ex: 1;
  --lo: 1;
}
html:not(.motion) .watch-layer {
  transform: translateZ(calc((var(--i) - 2.5) * 42px));
}
html:not(.motion) .watch-sticky {
  padding-bottom: 110px;
}
html:not(.motion) .world-stage {
  display: none;
}
html:not(.motion) .world-panels {
  min-height: 0;
}
html:not(.motion) .world-panel:first-child {
  position: relative;
  opacity: 1;
  transform: none;
}
html:not(.motion) .world-list a {
  color: var(--fg);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
