/* Header pill, project room, case pages (js/site-nav.js, js/project-deck.js, js/work-case.js). */

:root {
  --header-h: 84px;
  --nav-ink: #262626;
  --nav-bg: #fff;
  --nav-mute: rgb(38 38 38 / 0.45);
  --nav-line: rgb(38 38 38 / 0.08);
  --nav-soft: #f6f6f6;
  --nav-accent: #ff4d2e;
  --nav-ease: cubic-bezier(0.625, 0.05, 0, 1);
  --nav-w: 312px;
  --open-w: min(1080px, calc(100vw - 32px));
  --open-h: 420px;
  --sans-tight: "Inter Tight", Inter, system-ui, sans-serif;
  --mono-geist: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
}

html.dark {
  --nav-ink: #f1efea;
  --nav-bg: #1c1b19;
  --nav-mute: rgb(241 239 234 / 0.5);
  --nav-line: rgb(255 255 255 / 0.09);
  --nav-soft: #262523;
}

/* ---------- header pill ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  color: var(--nav-ink);
  font-family: var(--mono-geist);
  pointer-events: none;
  transition: transform 0.6s var(--nav-ease);
}

.site-nav.is-tucked:not(.is-open) {
  transform: translateY(calc(-100% - 8px));
}

.site-nav__scrim {
  position: fixed;
  inset: 0;
  background: rgb(38 38 38 / 0.16);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--nav-ease);
}

.site-nav.is-open .site-nav__scrim {
  opacity: 1;
  pointer-events: auto;
}

.site-nav__side {
  position: absolute;
  top: 22px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--nav-bg);
  box-shadow: inset 0 0 0 1px var(--nav-line), 0 1px 2px rgb(38 38 38 / 0.06);
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.3s ease, transform 0.5s var(--nav-ease), opacity 0.4s ease;
}

.site-nav__side svg {
  width: 18px;
  height: 18px;
}

.site-nav__side:hover {
  transform: scale(1.06);
}

.site-nav__side--left {
  left: 24px;
}

.site-nav__side--right {
  right: 24px;
}

.site-nav.is-open .site-nav__side {
  opacity: 0;
  pointer-events: none;
}

.site-nav__bar {
  position: absolute;
  top: 16px;
  left: 50%;
  width: min(var(--nav-w), calc(100vw - 128px));
  height: 52px;
  transform: translateX(-50%);
  pointer-events: auto;
}

.site-nav__ground {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: var(--nav-bg);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.9),
    inset 0 0 0 1px var(--nav-line),
    0 1px 2px rgb(38 38 38 / 0.06),
    0 10px 30px -12px rgb(38 38 38 / 0.18);
  transition: inset 0.5s var(--nav-ease), border-radius 0.5s var(--nav-ease), box-shadow 0.5s ease;
}

html.dark .site-nav__ground {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), inset 0 0 0 1px var(--nav-line), 0 10px 30px -12px rgb(0 0 0 / 0.5);
}

.site-nav.is-open .site-nav__ground {
  inset: 0 calc((100% - var(--open-w)) / 2) calc(100% - var(--open-h));
  border-radius: 20px;
}

.site-nav__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding: 0 8px;
}

.site-nav__menu,
.site-nav__talk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: inherit;
  font: 500 12px/1 var(--mono-geist);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.site-nav__menu {
  justify-self: start;
}

.site-nav__talk {
  justify-self: end;
}

.site-nav__menu:hover,
.site-nav__talk:hover,
.site-nav__menu:focus-visible,
.site-nav__talk:focus-visible {
  background: var(--nav-line);
  outline: none;
}

.site-nav__talk[aria-expanded="true"],
.site-nav__menu[aria-expanded="true"] {
  background: var(--nav-line);
}

.site-nav__burger {
  position: relative;
  width: 16px;
  height: 10px;
}

.site-nav__burger i {
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.6px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.5s var(--nav-ease), top 0.5s var(--nav-ease);
}

.site-nav__burger i:first-child {
  top: 1.5px;
}

.site-nav__burger i:last-child {
  top: 6.9px;
}

.site-nav.is-open .site-nav__burger i:first-child {
  top: 4.2px;
  transform: rotate(45deg);
}

.site-nav.is-open .site-nav__burger i:last-child {
  top: 4.2px;
  transform: rotate(-45deg);
}

.site-nav__logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: inherit;
  transition: transform 0.5s var(--nav-ease);
}

.site-nav__logo:hover {
  transform: rotate(-8deg) scale(1.06);
}

.site-nav__logo svg {
  width: 26px;
  height: 26px;
}

.site-nav__panel {
  position: absolute;
  top: 52px;
  left: 50%;
  width: var(--open-w);
  padding: 20px 20px 20px;
  box-sizing: border-box;
  transform: translateX(-50%);
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.5s;
}

.site-nav.is-open .site-nav__panel {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}

.nav-view {
  display: none;
  grid-template-columns: 1fr 1fr minmax(300px, 1.05fr);
  gap: 20px;
}

.site-nav[data-view="menu"] .nav-view--menu,
.site-nav[data-view="talk"] .nav-view--talk {
  display: grid;
}

.nav-view > * > *,
.nav-cta {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s var(--nav-ease);
}

.nav-cta > * {
  opacity: 1;
  transform: none;
}

.site-nav.is-open .nav-view > * > *,
.site-nav.is-open .nav-cta {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease calc(0.12s + var(--nav-step, 0) * 0.045s),
    transform 0.7s var(--nav-ease) calc(0.1s + var(--nav-step, 0) * 0.045s);
}

.nav-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 4px;
}

.nav-col--wide {
  grid-column: span 1;
}

.nav-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--nav-mute);
  font: 500 12px/1 var(--mono-geist);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgb(34 197 94 / 0.18);
}

.nav-link {
  color: var(--nav-ink);
  font: 400 32px/1.15 var(--sans-tight);
  letter-spacing: -0.014em;
  text-decoration: none;
  transition: opacity 0.25s ease, translate 0.4s var(--nav-ease);
}

.nav-col:hover .nav-link {
  opacity: 0.4;
}

.nav-col .nav-link:hover,
.nav-col .nav-link:focus-visible {
  opacity: 1;
  translate: 6px 0;
  outline: none;
}

.nav-work {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--nav-ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nav-work span {
  font: 400 24px/1.1 var(--sans-tight);
  letter-spacing: -0.012em;
  transition: translate 0.4s var(--nav-ease);
}

.nav-work small {
  color: var(--nav-mute);
  font: 500 11px/1.2 var(--mono-geist);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-work:hover span,
.nav-work:focus-visible span {
  translate: 6px 0;
}

.nav-work:focus-visible {
  outline: none;
}

.nav-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--nav-ink);
  font: 500 12px/1 var(--mono-geist);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-more svg {
  width: 14px;
  height: 14px;
  transition: translate 0.4s var(--nav-ease);
}

.nav-more:hover svg {
  translate: 4px 0;
}

.nav-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 300px;
  padding: 20px;
  border-radius: 10px;
  background: var(--nav-soft);
}

.nav-cta__title {
  margin: 0;
  font: 400 32px/1.1 var(--sans-tight);
  letter-spacing: -0.014em;
}

.nav-cta__text {
  max-width: 30ch;
  margin: 12px 0 0;
  color: var(--nav-mute);
  font: 400 15px/1.45 Inter, system-ui, sans-serif;
}

.nav-cta__foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-pill {
  display: grid;
  place-items: center;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: var(--nav-ink);
  color: var(--nav-bg);
  font: 500 15px/1 Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s var(--nav-ease), opacity 0.25s ease;
}

.nav-pill:hover {
  transform: scale(0.985);
  opacity: 0.9;
}

.nav-icons {
  display: flex;
  gap: 8px;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--nav-line);
  color: var(--nav-ink);
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.nav-icon:hover {
  background: rgb(38 38 38 / 0.12);
}

.nav-icon svg {
  width: 15px;
  height: 15px;
}

.nav-talk__title {
  margin: 0;
  font: 400 40px/1.08 var(--sans-tight);
  letter-spacing: -0.02em;
}

.nav-talk__title span {
  color: var(--nav-mute);
}

@media (max-width: 860px) {
  .nav-view {
    grid-template-columns: 1fr 1fr;
  }

  .nav-cta {
    grid-column: 1 / -1;
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .site-nav__side {
    top: 22px;
    width: 36px;
    height: 36px;
  }

  .site-nav__side--left {
    left: 12px;
  }

  .site-nav__side--right {
    right: 12px;
  }

  .site-nav__bar {
    width: calc(100vw - 112px);
  }

  .site-nav__word {
    display: none;
  }

  .site-nav__talk::after {
    content: "Talk";
    font: 500 12px/1 var(--mono-geist);
    text-transform: uppercase;
  }

  .nav-view {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav-link {
    font-size: 28px;
  }

  .nav-talk__title {
    font-size: 30px;
  }
}

/* ---------- project room ---------- */

.project-stage {
  --room: #eceae6;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 560px;
  scroll-margin-top: 0;
  overflow: hidden;
  background: var(--room);
  color: #262626;
  isolation: isolate;
  font-family: var(--mono-geist);
}

.project-stage__plate {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.room {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  perspective: 900px;
  perspective-origin: 50% 47%;
  pointer-events: none;
}

.room::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 60% at 50% 46%, rgb(255 255 255 / 0.55), transparent 62%),
    linear-gradient(180deg, rgb(236 234 230 / 0.2), transparent 30%, transparent 70%, rgb(236 234 230 / 0.45));
}

.room__drum {
  position: absolute;
  top: 47%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: translateZ(var(--room-z, 700px)) rotateY(var(--room-spin, 0deg));
}

.room__panel {
  --tile: 92px;
  position: absolute;
  top: calc(var(--tile) * -16);
  left: calc(var(--panel-w) / -2);
  width: calc(var(--panel-w) + 1px);
  height: calc(var(--tile) * 32);
  backface-visibility: hidden;
  background-color: #e9e7e3;
  background-image:
    linear-gradient(180deg, rgb(0 0 0 / 0.1) 0, transparent 38%, transparent 62%, rgb(0 0 0 / 0.07)),
    linear-gradient(180deg, transparent calc(var(--tile) * 13.2), rgb(255 255 255 / 0.7) calc(var(--tile) * 14.6), rgb(255 255 255 / 0.7) calc(var(--tile) * 17.6), transparent calc(var(--tile) * 19)),
    linear-gradient(rgb(120 116 108 / 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgb(120 116 108 / 0.2) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, var(--tile) var(--tile), var(--panel-w) var(--tile);
  transform: rotateY(var(--a)) translateZ(calc(var(--room-r) * -1));
  filter: brightness(var(--lit, 1));
}

.project-fan {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  perspective: 1400px;
  perspective-origin: 50% 46%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.project-fan:active {
  cursor: grabbing;
}

.deck-card {
  --d: 0;
  --far: 0;
  position: absolute;
  top: 52%;
  left: 50%;
  width: clamp(230px, 23vw, 330px);
  transform-style: preserve-3d;
  transform:
    translate(-50%, -50%)
    translateX(var(--x, 0px))
    translateZ(var(--z, 0px))
    rotateY(var(--ry, 0deg));
  transition: opacity 0.4s ease;
  will-change: transform;
}

.deck-card.is-settling {
  transition: transform 0.7s var(--nav-ease), opacity 0.4s ease;
}

.deck-card .deck-repo {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.deck-face {
  --pad: 0.75rem;
  --tint-top: 34%;
  --tint-tab: 31%;
  --tint-foot: 16%;
  --card-base: #fff;
  --card-ink: #1a1a1a;
  --card-edge: #e4e2dc;
  --card-faint: color-mix(in srgb, var(--card-ink) 55%, transparent);
  --card-ray: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: var(--pad);
  border: 0;
  border-radius: 20px;
  background: linear-gradient(
    color-mix(in srgb, var(--brand) var(--tint-top), var(--card-base)),
    color-mix(in srgb, var(--brand) var(--tint-foot), var(--card-base))
  );
  box-shadow:
    0 0.1875rem 0 var(--card-edge),
    0 18px 40px -28px rgb(38 38 38 / 0.45),
    inset 0 1px 0 color-mix(in srgb, var(--card-ray) 60%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--card-ink) 8%, transparent);
  color: var(--card-ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

html.dark .deck-face {
  --tint-top: 36%;
  --tint-tab: 33%;
  --tint-foot: 14%;
  --card-base: #1c1b19;
  --card-ink: #f1efea;
  --card-edge: #2a2926;
  --card-ray: rgb(255 255 255 / 0.35);
}

.deck-face::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: var(--room, #eceae6);
  opacity: calc(var(--far) * 0.82);
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--card-ray) 60%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--card-ink) 8%, transparent);
}

html.dark .deck-face::after {
  background: var(--room, #141311);
}

.deck-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: var(--brand);
}

.deck-tag {
  position: absolute;
  top: calc(var(--pad) * -1);
  left: 50%;
  z-index: 2;
  max-width: 70%;
  padding: calc(var(--pad) - 0.12em) 0.75rem 0.375rem;
  border-radius: 0 0 10px 10px;
  background: color-mix(in srgb, var(--brand) var(--tint-tab), var(--card-base));
  color: var(--card-faint);
  font: 500 9.5px/1 var(--mono-geist);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateX(-50%);
}

.deck-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.36em;
  margin: 0.5rem 0.25rem 0;
  font: 600 clamp(15px, 1.4vw, 19px)/1.18 var(--sans-tight);
  letter-spacing: -0.014em;
}

.deck-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.5rem 0.25rem 0.15rem;
}

.deck-logo {
  flex: none;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--card-ink);
  font: 700 13px/1 var(--sans-tight);
  letter-spacing: -0.02em;
}

.deck-kind {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  max-width: 55%;
  color: var(--card-faint);
  font: 400 10px/1.35 var(--mono-geist);
  letter-spacing: 0.02em;
  text-align: right;
  text-transform: uppercase;
}

.deck-cursor {
  display: none !important;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgb(38 38 38 / 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font: 500 12px/1 Inter, system-ui, sans-serif;
  pointer-events: none;
  opacity: 0;
  scale: 0.4;
  transition: opacity 0.25s ease, scale 0.45s var(--nav-ease), width 0.3s var(--nav-ease);
}

.deck-cursor svg {
  width: 10px;
  height: 10px;
  opacity: 0.8;
}

.deck-cursor.is-on {
  opacity: 1;
  scale: 1;
}

.deck-cursor.is-down {
  scale: 0.85;
}

.project-stage__foot {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  padding: 0 32px 30px;
  color: rgb(38 38 38 / 0.78);
  font: 500 12px/1.5 var(--mono-geist);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stage-side {
  position: relative;
  margin: 0;
  padding-top: 18px;
}

.stage-side--right {
  text-align: right;
}

.stage-tick {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--nav-accent);
}

.stage-side--right .stage-tick {
  right: 0;
  left: auto;
}

.stage-mid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.stage-count,
.stage-year {
  min-width: 64px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.stage-count {
  text-align: right;
}

.stage-open {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 22px;
  background: #262626;
  color: #fff;
  font: 500 15px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: transform 0.4s var(--nav-ease);
}

.stage-open:hover {
  transform: scale(0.97);
}

.project-stage.is-leaving .project-fan,
.project-stage.is-leaving .project-stage__foot {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.deck-sheets {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.deck-brief {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 40rem;
  padding-top: 24px;
}

.deck-brief p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.5;
}

.deck-brief a {
  color: rgb(var(--c-primary));
  font-weight: 600;
}

.project-stage.is-linear {
  height: auto;
  padding: 96px 3vw 48px;
  overflow: visible;
}

.project-stage.is-linear .room,
.project-stage.is-linear .project-fan,
.project-stage.is-linear .deck-cursor,
.project-stage.is-linear .project-stage__foot {
  display: none;
}

.project-stage.is-linear .deck-sheets {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

@media (max-width: 760px) {
  .deck-card {
    width: min(280px, 72vw);
  }

  .project-stage__foot {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0 16px calc(76px + env(safe-area-inset-bottom));
    text-align: center;
  }

  .stage-side {
    display: none;
  }

  .stage-mid {
    gap: 18px;
  }

  .stage-count,
  .stage-year {
    min-width: 0;
  }

  .project-fan {
    cursor: auto;
  }
}

/* ---------- cover art (no screenshots, so each project gets a drawn cover) ---------- */

.art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 70% 20%, rgb(255 255 255 / 0.22), transparent 60%),
    var(--brand);
  color: #fff;
  font-family: var(--sans-tight);
  container-type: size;
}

.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 0.12) 1px, transparent 1px);
  background-size: 6cqw 6cqw;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  pointer-events: none;
}

.art em {
  font-style: normal;
}

.art--phone .art-phone {
  position: absolute;
  top: 12%;
  left: 18%;
  display: flex;
  flex-direction: column;
  gap: 3cqw;
  width: 44%;
  height: 100%;
  padding: 7cqw 5cqw;
  box-sizing: border-box;
  border-radius: 7cqw 7cqw 0 0;
  background: #fff;
  box-shadow: 0 0 0 2.4cqw rgb(20 14 60 / 0.92), 0 30px 60px rgb(10 6 40 / 0.4);
  color: var(--ink);
  rotate: -6deg;
}

.art-phone b {
  font: 600 5.4cqw/1.1 var(--sans-tight);
}

.art-phone i {
  display: flex;
  flex-direction: column;
  gap: 1cqw;
  padding: 3cqw;
  border-radius: 3cqw;
  background: var(--tint);
  font: 500 3.8cqw/1.1 var(--sans-tight);
  font-style: normal;
}

.art-phone i em {
  color: rgb(0 0 0 / 0.5);
  font: 500 3cqw/1 var(--mono-geist);
}

.art-timer {
  display: grid;
  place-items: center;
  width: 22cqw;
  height: 22cqw;
  margin: 2cqw auto 0;
  border: 1.6cqw solid var(--brand);
  border-right-color: var(--tint);
  border-radius: 50%;
  font: 500 2.6cqw/1 var(--mono-geist);
  text-transform: uppercase;
}

.art-timer em {
  display: block;
  font: 600 5cqw/1 var(--sans-tight);
}

.art-bars {
  position: absolute;
  right: 8%;
  bottom: 12%;
  display: flex;
  align-items: flex-end;
  gap: 2cqw;
  height: 40%;
}

.art-bars span {
  width: 4.4cqw;
  height: calc(var(--h) * 100%);
  border-radius: 1.2cqw;
  background: var(--accent);
  opacity: calc(0.45 + var(--h) * 0.6);
}

.art--face img {
  position: absolute;
  bottom: -6%;
  left: 50%;
  width: 92%;
  translate: -50% 0;
  filter: grayscale(1) contrast(1.05) brightness(1.04);
  mix-blend-mode: luminosity;
}

.art-scan {
  position: absolute;
  top: 13%;
  left: 33%;
  width: 34%;
  height: 31%;
  border: 0.6cqw solid var(--accent);
  border-radius: 2cqw;
  box-shadow: 0 0 0 100cqw rgb(4 40 36 / 0.18);
}

.art-scan em {
  position: absolute;
  bottom: 100%;
  left: -0.6cqw;
  margin-bottom: 1.4cqw;
  padding: 1.2cqw 2cqw;
  border-radius: 1.4cqw;
  background: var(--accent);
  color: var(--ink);
  font: 500 3cqw/1 var(--mono-geist);
  white-space: nowrap;
}

.art-pill {
  position: absolute;
  bottom: 7%;
  left: 7%;
  padding: 2cqw 3.4cqw;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.92);
  color: var(--ink);
  font: 500 3.2cqw/1 var(--mono-geist);
}

.art--fashion {
  background: linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000));
}

.art-serif {
  position: absolute;
  top: 9%;
  left: 7%;
  font: italic 400 19cqw/0.9 "Instrument Serif", Georgia, serif;
  letter-spacing: -0.02em;
}

.art-rack {
  position: absolute;
  right: 7%;
  bottom: 8%;
  left: 7%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6cqw;
}

.art-rack i {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.2cqw;
  aspect-ratio: 3 / 4.4;
  padding: 2.4cqw;
  box-sizing: border-box;
  border-radius: 2.4cqw;
  background:
    linear-gradient(180deg, transparent 50%, rgb(0 0 0 / 0.06)),
    var(--tint);
  color: var(--ink);
  font: 600 3.6cqw/1 var(--sans-tight);
  font-style: normal;
}

.art-rack i:nth-child(2) {
  translate: 0 -8cqw;
  background: #fff;
}

.art-rack i em {
  font: 500 2.6cqw/1.1 var(--mono-geist);
  opacity: 0.7;
}

.art--layers {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.4cqw;
  padding: 0 11%;
  perspective: 120cqw;
}

.art--layers i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 14cqw;
  padding: 0 5cqw;
  border-radius: 3cqw;
  background: rgb(255 255 255 / calc(0.16 + var(--k, 0) * 0.2));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3);
  font: 500 5cqw/1 var(--sans-tight);
  font-style: normal;
  transform: rotateX(28deg) translateZ(calc(var(--k, 0) * 4cqw));
}

.art--layers i:nth-child(1) { --k: 0; }
.art--layers i:nth-child(2) { --k: 1; }
.art--layers i:nth-child(3) {
  --k: 3;
  background: #fff;
  color: var(--ink);
}
.art--layers i:nth-child(4) { --k: 2; }

.art--layers i em {
  font: 500 3cqw/1 var(--mono-geist);
  opacity: 0.75;
  text-transform: uppercase;
}

.art--plate {
  background:
    linear-gradient(180deg, transparent 55%, rgb(0 0 0 / 0.25)),
    radial-gradient(80% 60% at 50% 30%, rgb(255 255 255 / 0.25), transparent 70%),
    var(--brand);
}

.art-car {
  position: absolute;
  top: 18%;
  left: 12%;
  width: 76%;
  height: 52%;
  border-radius: 10cqw 10cqw 4cqw 4cqw;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.28), rgb(255 255 255 / 0.1));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3);
}

.art-lp {
  position: absolute;
  bottom: 14%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.6cqw 4.2cqw;
  border: 0.6cqw solid #1a1a1a;
  border-radius: 1.6cqw;
  background: #f8f8f4;
  color: #1a1a1a;
  font: 700 6.4cqw/1 var(--mono-geist);
  letter-spacing: 0.02em;
  translate: -50% 0;
}

.art-lp em {
  font-size: 5cqw;
}

.art-box {
  position: absolute;
  bottom: 9%;
  left: 27%;
  width: 46%;
  height: 32%;
  border: 0.7cqw solid var(--accent);
  border-radius: 1.4cqw;
}

.art-box em {
  position: absolute;
  bottom: 100%;
  left: -0.7cqw;
  padding: 1cqw 1.8cqw;
  background: var(--accent);
  color: #1a1a1a;
  font: 600 2.8cqw/1 var(--mono-geist);
  white-space: nowrap;
}

.art--plate code {
  position: absolute;
  bottom: 9%;
  left: 50%;
  padding: 2cqw 3.4cqw;
  border-radius: 2cqw;
  background: rgb(0 0 0 / 0.35);
  font: 500 3.4cqw/1 var(--mono-geist);
  white-space: nowrap;
  translate: -50% 0;
}

.art--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3cqw;
  padding: 9%;
  box-sizing: border-box;
}

.art--grid i {
  display: flex;
  align-items: flex-end;
  padding: 3cqw;
  border-radius: 3cqw;
  background:
    radial-gradient(circle at 50% 40%, var(--c) 0 16cqw, transparent 16.2cqw),
    #fff;
  color: var(--ink);
  font: 600 4cqw/1 var(--sans-tight);
  font-style: normal;
}

.art-ship {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 1.2cqw;
  padding: 3cqw 4cqw;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font: 600 3.6cqw/1 var(--sans-tight);
  text-align: center;
  white-space: nowrap;
  translate: -50% -50%;
}

.art-ship em {
  color: var(--accent);
  font: 500 2.6cqw/1 var(--mono-geist);
}

.art--receipt {
  background:
    radial-gradient(70% 60% at 50% 30%, rgb(255 220 170 / 0.25), transparent 70%),
    var(--brand);
}

.art-slip {
  position: absolute;
  top: 10%;
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 2.6cqw;
  width: 56%;
  padding: 6cqw 6cqw 9cqw;
  box-sizing: border-box;
  background: #fbf7f0;
  color: var(--ink);
  font: 500 4cqw/1 var(--mono-geist);
  translate: -50% 0;
  rotate: 4deg;
  mask-image: conic-gradient(from -45deg at 50% 100%, transparent 25%, #000 0) bottom / 5cqw 5cqw repeat-x, linear-gradient(#000, #000) top / 100% calc(100% - 2.4cqw) no-repeat;
  box-shadow: 0 30px 50px rgb(40 18 4 / 0.4);
}

.art-slip b {
  margin-bottom: 2cqw;
  font: 600 5.6cqw/1 var(--sans-tight);
}

.art-slip i {
  display: flex;
  justify-content: space-between;
  font-style: normal;
}

.art-slip i.is-total {
  margin-top: 2cqw;
  padding-top: 3cqw;
  border-top: 0.5cqw dashed rgb(0 0 0 / 0.3);
  font-weight: 700;
}

.art--folio {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2.4cqw;
  padding: 10% 9% 14%;
  box-sizing: border-box;
  background:
    linear-gradient(160deg, rgb(255 255 255 / 0.12), transparent 55%),
    var(--brand);
}

.art--folio i {
  display: flex;
  align-items: baseline;
  gap: 3cqw;
  padding: 3.2cqw 4cqw;
  border-radius: 2.4cqw;
  background: rgb(255 255 255 / 0.92);
  color: var(--ink);
  font: 600 4.4cqw/1 var(--sans-tight);
  font-style: normal;
  box-shadow: 0 1.2cqw 3cqw rgb(8 47 73 / 0.28);
}

.art--folio i:nth-child(1) { translate: 0 0; }
.art--folio i:nth-child(2) { translate: 4cqw 0; }
.art--folio i:nth-child(3) { translate: 8cqw 0; }

.art--folio em {
  color: var(--accent);
  font: 600 3cqw/1 var(--mono-geist);
}

.art-folio-mark {
  position: absolute;
  top: 9%;
  right: 9%;
  padding: 1.4cqw 2.8cqw;
  border-radius: 99px;
  background: var(--accent);
  color: var(--ink);
  font: 700 3cqw/1 var(--mono-geist);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- case page ---------- */

.case-veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #f9f9f9;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case-veil.is-on {
  opacity: 1;
  pointer-events: auto;
}

.case {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f9f9f9;
  color: #262626;
  font-family: Inter, system-ui, sans-serif;
}

.case[hidden] {
  display: none;
}

.case:focus {
  outline: none;
}

html.dark .case,
html.dark .case-veil {
  background: #141413;
  color: #f1efea;
}

html.is-case body {
  overflow: hidden;
}

html.is-case .site-nav__side--left {
  opacity: 0;
  pointer-events: none;
}

.case-back {
  position: fixed;
  top: 22px;
  left: 24px;
  z-index: 91;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: 20px;
  background: var(--nav-bg);
  box-shadow: inset 0 0 0 1px var(--nav-line), 0 1px 2px rgb(38 38 38 / 0.06);
  color: var(--nav-ink);
  font: 500 12px/1 var(--mono-geist);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.6s var(--nav-ease), opacity 0.4s ease;
}

.case-back svg {
  width: 14px;
  height: 14px;
}

.case-back[hidden] {
  display: none;
}

html:not(.is-case) .case-back {
  display: none;
}

html.nav-tucked .case-back {
  transform: translateY(-80px);
}

.case-page {
  --brand: #262626;
  --tint: #eee;
  --ink: #262626;
  --accent: #ffd84a;
  padding-top: 150px;
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), translate 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case.is-in .case-page {
  opacity: 1;
  translate: 0 0;
}

.case-head {
  padding: 0 24px;
  text-align: center;
}

.case-brand {
  margin: 0 0 18px;
  color: var(--brand);
  font: 700 clamp(28px, 2.6vw, 38px)/1 var(--sans-tight);
  letter-spacing: -0.04em;
}

html.dark .case-brand {
  color: color-mix(in srgb, var(--brand) 60%, #fff);
}

.case-title {
  max-width: 16ch;
  margin: 0 auto;
  font: 400 clamp(40px, 5.2vw, 80px)/1.02 var(--sans-tight);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

/* Bunq Why Zero–style Visit website CTA under the case title */
.case-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 28px auto 0;
  padding: 0.7rem 1.55rem;
  border: none;
  border-radius: 999px;
  background: #ebebeb;
  color: #111;
  font: 500 0.95rem/1.2 var(--sans-tight, Inter, system-ui, sans-serif);
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.case-visit:hover,
.case-visit:focus-visible {
  background: #e0e0e0;
  outline: none;
}

html.dark .case-visit {
  background: #2a2a28;
  color: #f1efea;
}

html.dark .case-visit:hover,
html.dark .case-visit:focus-visible {
  background: #353532;
}

.case-hero {
  position: relative;
  height: min(82vh, 820px);
  margin: 72px 0 0;
  overflow: hidden;
}

.case-hero__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78vh, 760px);
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  overflow: hidden;
  translate: -50% -50%;
  box-shadow: 0 50px 90px -40px rgb(0 0 0 / 0.6);
}
.case-hero__inner .art--image img {
  object-position: top center;
}

.case-hero__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 70% at 50% 50%, color-mix(in srgb, var(--brand) 70%, #fff), var(--brand));
}

.case-hero__wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 0;
  font: 500 12px/1.6 var(--mono-geist);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.case-meta dt {
  margin-bottom: 8px;
  color: rgb(38 38 38 / 0.45);
}

html.dark .case-meta dt {
  color: rgb(255 255 255 / 0.45);
}

.case-meta dd {
  margin: 0;
}

.case-sec {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 32px 0;
  scroll-margin-top: 100px;
}

.case-hand {
  margin: 0 0 22px;
  color: rgb(38 38 38 / 0.5);
  font: italic 400 26px/1 "Instrument Serif", Georgia, serif;
}

html.dark .case-hand {
  color: rgb(255 255 255 / 0.5);
}

.case-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.case-two h2 {
  margin: 0;
  font: 400 clamp(30px, 3vw, 44px)/1.1 var(--sans-tight);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.case-two p {
  max-width: 46ch;
  margin: 6px 0 0;
  color: rgb(38 38 38 / 0.72);
  font: 400 18px/1.6 Inter, system-ui, sans-serif;
}

html.dark .case-two p,
html.dark .case-note p {
  color: rgb(255 255 255 / 0.7);
}

.case-notes {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.case-note {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.4fr;
  gap: 56px;
  align-items: center;
}

.case-note:nth-child(even) {
  grid-template-columns: 1.4fr minmax(240px, 0.8fr);
}

.case-note:nth-child(even) .case-note__copy {
  order: 2;
}

.case-n {
  display: block;
  margin-bottom: 14px;
  color: var(--nav-accent);
  font: 500 12px/1 var(--mono-geist);
}

.case-note h3 {
  margin: 0 0 12px;
  font: 400 28px/1.15 var(--sans-tight);
  letter-spacing: -0.025em;
}

.case-note p {
  margin: 0;
  color: rgb(38 38 38 / 0.72);
  font: 400 17px/1.6 Inter, system-ui, sans-serif;
}

.case-shot {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--tint);
}

.case-shot .art {
  inset: 9%;
  border-radius: 10px;
}

.case-shot-fig {
  position: absolute;
  inset: 9%;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.35);
}

.case-shot-fig img {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
  background: #f4f4f5;
}

.case-shot-fig figcaption {
  flex: 0 0 auto;
  padding: 10px 14px;
  font: 500 12px/1.4 var(--mono-geist);
  letter-spacing: 0.02em;
  color: rgb(38 38 38 / 0.72);
  background: #fff;
  border-top: 1px solid rgb(0 0 0 / 0.06);
}

.case-link.is-private {
  cursor: default;
  opacity: 0.85;
}

.case-spec {
  position: absolute;
  inset: 9%;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: #17161a;
  color: #e9e6f2;
  font: 400 clamp(12px, 1.1vw, 15px)/1.75 var(--mono-geist);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.5);
}

.case-spec__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: rgb(255 255 255 / 0.05);
  color: rgb(255 255 255 / 0.5);
  font-size: 11px;
}

.case-spec__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
}

.case-spec__bar span {
  margin-left: 8px;
}

.case-spec pre {
  margin: 0;
  padding: 18px 20px;
  white-space: pre-wrap;
}

.case-spec .k {
  color: var(--accent);
}

.case-spec .s {
  color: #9be7c4;
}

.case-band {
  max-width: none;
  margin-top: 140px;
  padding: 120px 32px;
  background: var(--brand);
  color: #fff;
}

.case-band > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.case-band h2 {
  margin: 0;
  color: var(--accent);
  font: 400 clamp(32px, 3.4vw, 52px)/1.05 var(--sans-tight);
  letter-spacing: -0.035em;
}

.case-band p {
  margin: 8px 0 28px;
  color: rgb(255 255 255 / 0.85);
  font: 400 18px/1.6 Inter, system-ui, sans-serif;
}

.case-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-chips span {
  padding: 8px 12px;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.14);
  font: 500 12px/1 var(--mono-geist);
  letter-spacing: 0.02em;
}

.case-out {
  padding-top: 120px;
}

.case-out ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-out li {
  padding-top: 18px;
  border-top: 1px solid rgb(38 38 38 / 0.14);
  font: 400 22px/1.25 var(--sans-tight);
  letter-spacing: -0.015em;
}

html.dark .case-out li {
  border-color: rgb(255 255 255 / 0.14);
}

.case-out li span {
  display: block;
  margin-bottom: 14px;
  color: rgb(38 38 38 / 0.45);
  font: 500 12px/1 var(--mono-geist);
}

html.dark .case-out li span {
  color: rgb(255 255 255 / 0.45);
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  background: #262626;
  color: #fff;
  font: 500 15px/1 Inter, system-ui, sans-serif;
  text-decoration: none;
  transition: transform 0.4s var(--nav-ease);
}

.case-link.is-ghost {
  background: rgb(38 38 38 / 0.06);
  color: inherit;
}

html.dark .case-link {
  background: #f1efea;
  color: #141413;
}

html.dark .case-link.is-ghost {
  background: rgb(255 255 255 / 0.08);
  color: inherit;
}

.case-link:hover {
  transform: scale(0.97);
}

.case-next {
  padding-top: 160px;
}

.case-next__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.case-next__card {
  --tint: #eee;
  display: flex;
  flex-direction: column;
  padding: 8px 8px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--tint) 78%, #fff);
  color: #262626;
  text-decoration: none;
  transition: transform 0.6s var(--nav-ease);
}

.case-next__card:hover {
  transform: translateY(-6px);
}

.case-next__card .deck-media {
  aspect-ratio: 16 / 10;
}

.case-next__card .deck-title {
  margin-bottom: 14px;
  font-size: 22px;
}

.case-foot {
  margin-top: 160px;
  padding: 120px 32px 64px;
  border-top: 1px solid rgb(38 38 38 / 0.1);
  text-align: center;
}

html.dark .case-foot {
  border-color: rgb(255 255 255 / 0.1);
}

.case-foot h2 {
  max-width: 14ch;
  margin: 0 auto 32px;
  font: 400 clamp(36px, 4.4vw, 68px)/1.02 var(--sans-tight);
  letter-spacing: -0.045em;
}

.case-foot .case-links {
  justify-content: center;
  margin-top: 0;
}

.case-foot small {
  display: block;
  margin-top: 80px;
  color: rgb(38 38 38 / 0.45);
  font: 500 12px/1 var(--mono-geist);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

html.dark .case-foot small {
  color: rgb(255 255 255 / 0.45);
}

.case-toc {
  position: fixed;
  top: 50%;
  left: 22px;
  z-index: 82;
  display: flex;
  flex-direction: column;
  gap: 10px;
  translate: 0 -50%;
}

.case-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 14px;
  color: rgb(38 38 38 / 0.5);
  font: 500 11px/1 var(--mono-geist);
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

html.dark .case-toc a {
  color: rgb(255 255 255 / 0.5);
}

.case-toc a i {
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transition: width 0.4s var(--nav-ease), background-color 0.3s ease;
}

.case-toc a span {
  opacity: 0;
  translate: -4px 0;
  transition: opacity 0.3s ease, translate 0.4s var(--nav-ease);
}

.case-toc:hover a span,
.case-toc a.is-on span {
  opacity: 1;
  translate: 0 0;
}

.case-toc a.is-on {
  color: var(--nav-ink);
}

.case-toc a.is-on i {
  width: 22px;
  background: var(--nav-accent);
}

@media (max-width: 900px) {
  .case-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-two,
  .case-note,
  .case-note:nth-child(even),
  .case-band > div,
  .case-next__row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-note:nth-child(even) .case-note__copy {
    order: 0;
  }

  .case-out ol {
    grid-template-columns: 1fr;
  }

  .case-toc {
    display: none;
  }

  .case-sec {
    padding-top: 96px;
  }

  .case-page {
    padding-top: 120px;
  }

  .case-back {
    top: 22px;
    left: 12px;
    padding: 0 12px;
  }

  .case-back span {
    display: none;
  }
}

/* ---------- draw a zero (ice gate) ---------- */

#draw-zero {
  position: fixed;
  inset: 0;
  z-index: 95;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 40%, rgb(235 248 250 / 0.5), transparent 70%),
    linear-gradient(165deg, rgb(206 232 240 / 0.86), rgb(160 204 218 / 0.82) 55%, rgb(190 224 232 / 0.88));
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  color: #fff;
  cursor: crosshair;
  touch-action: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#draw-zero[hidden] {
  display: none;
}

#draw-zero.is-in {
  opacity: 1;
}

#draw-zero.is-leaving {
  opacity: 0;
  transition-duration: 0.7s;
  pointer-events: none;
}

#draw-zero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgb(70 120 140 / 0.28));
  pointer-events: none;
}

#draw-zero-ice {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dz-ui {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#draw-zero.is-drawing .dz-ui,
#draw-zero.is-won .dz-ui {
  opacity: 0;
}

.dz-demo {
  position: relative;
  width: 132px;
  height: 132px;
  margin-bottom: 10px;
}

.dz-demo svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  rotate: -90deg;
}

.dz-demo__track {
  fill: none;
  stroke: rgb(255 255 255 / 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 2 6;
}

.dz-demo__ink {
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgb(255 255 255 / 0.9));
  animation: dz-ink 2.6s cubic-bezier(0.55, 0.1, 0.35, 1) infinite;
}

.dz-demo__tip {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgb(255 255 255 / 0.25), 0 0 18px rgb(255 255 255 / 0.9);
  offset-path: path("M66 17.6 A48.4 48.4 0 1 1 65.99 17.6");
  offset-rotate: 0deg;
  animation: dz-tip 2.6s cubic-bezier(0.55, 0.1, 0.35, 1) infinite;
}

@keyframes dz-ink {
  0% { stroke-dashoffset: 1; opacity: 1; }
  78% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes dz-tip {
  0% { offset-distance: 0%; opacity: 1; }
  78% { offset-distance: 100%; opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.draw-zero__label {
  margin: 0;
  font: 400 clamp(30px, 3.2vw, 46px)/1 var(--sans-tight);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgb(40 90 110 / 0.35);
}

.dz-hint {
  min-height: 1em;
  margin: 0;
  color: rgb(255 255 255 / 0.85);
  font: 500 12px/1 var(--mono-geist);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#draw-zero.is-miss .dz-ui {
  opacity: 1;
}

#draw-zero.is-miss .dz-hint {
  animation: dz-shake 0.42s ease;
}

@keyframes dz-shake {
  20% { translate: -6px 0; }
  45% { translate: 5px 0; }
  70% { translate: -3px 0; }
}

.draw-zero__cancel {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 3;
  padding: 10px 16px;
  border: 0;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.22);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.4);
  color: #fff;
  font: 500 12px/1 var(--mono-geist);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  translate: -50% 0;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s ease;
}

#draw-zero.is-won .draw-zero__cancel {
  opacity: 0;
  pointer-events: none;
}

.dz-reward {
  position: absolute;
  top: var(--zy, 50%);
  left: var(--zx, 50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 0;
  height: 0;
  pointer-events: none;
}

.dz-star {
  position: absolute;
  width: 64px;
  height: 64px;
  fill: #f3f04a;
  filter: drop-shadow(0 0 10px rgb(250 240 90 / 0.9)) drop-shadow(0 0 34px rgb(246 238 120 / 0.8));
  opacity: 0;
  scale: 0;
  rotate: -40deg;
}

.dz-star::after {
  content: "";
}

.dz-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(250 246 160 / 0.5), rgb(250 246 160 / 0) 62%);
  box-shadow: 0 0 0 1.5px rgb(196 226 200 / 0.45);
  opacity: 0;
  scale: 0.2;
}

.dz-xp {
  position: absolute;
  top: 56px;
  color: rgb(120 150 150 / 0.95);
  font: 600 22px/1 var(--sans-tight);
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
  translate: 0 10px;
}

.dz-reward.is-on .dz-star {
  opacity: 1;
  scale: 1;
  rotate: 0deg;
  transition: scale 0.7s cubic-bezier(0.2, 1.6, 0.4, 1), rotate 0.9s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.2s ease;
}

.dz-reward.is-on .dz-ring {
  opacity: 1;
  scale: 1;
  transition: scale 1s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.4s ease;
}

.dz-reward.is-on .dz-xp {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.5s ease 0.25s, translate 0.7s var(--nav-ease) 0.25s;
}

.dz-reward.is-out .dz-star {
  opacity: 1;
  scale: 0.05;
  rotate: 180deg;
  filter: drop-shadow(0 0 6px #fff) brightness(2);
  transition: scale 0.32s cubic-bezier(0.7, 0, 0.9, 0.4), rotate 0.32s ease-in, filter 0.3s ease;
}

.dz-reward.is-out .dz-ring {
  opacity: 0;
  scale: 0.05;
  transition: scale 0.3s cubic-bezier(0.7, 0, 0.9, 0.4), opacity 0.3s ease;
}

.dz-reward.is-out .dz-xp {
  opacity: 0;
  translate: 0 -8px;
  transition: opacity 0.25s ease, translate 0.3s ease;
}

#space-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#orbit.is-arriving {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .site-nav,
  .site-nav__ground,
  .case-page,
  .case-veil {
    transition-duration: 0.01s !important;
  }

  .dz-demo__ink,
  .dz-demo__tip {
    animation: none;
  }
}

@media print {
  .site-nav,
  .case-veil,
  .case-back,
  .case-toc,
  .deck-cursor,
  .room {
    display: none !important;
  }
}


/* ==========================================================================
   3D Furniture Studio Room (#principles) — Portals: Download CV / About / Services
   ========================================================================== */

.studio-room {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  background: #dcdcdc;
  color: #161616;
  user-select: none;
}

.studio-room[data-studio-mode="dark"] {
  background: #0d0d0d;
  color: #f2f2f2;
}

.studio-room__gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.studio-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  font-family: "JetBrains Mono", var(--mono-geist, monospace);
  font-size: 11.5px;
  line-height: 1.48;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(22 22 22 / 0.72);
  transition: color 0.35s ease;
}

.studio-room[data-studio-mode="dark"] .studio-ui {
  color: rgb(242 242 242 / 0.72);
}

.studio-side {
  position: absolute;
  top: 22%;
  bottom: 31%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.studio-side--left {
  left: clamp(20px, 2.4vw, 40px);
  align-items: flex-start;
}

.studio-side--right {
  right: clamp(20px, 2.4vw, 40px);
  align-items: flex-end;
  text-align: right;
}

.studio-side__copy {
  margin: 0;
}

.studio-side__line {
  display: block;
  white-space: nowrap;
}

.studio-side__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-height: 230px;
  margin: 18px 0;
}

.studio-side__rule {
  flex: 1;
  width: 1px;
  min-height: 36px;
  background: currentColor;
  opacity: 0.38;
}

.studio-side__tag {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* Top bar controls inside the studio room */
.studio-topbar {
  position: absolute;
  top: clamp(18px, 2.2vw, 32px);
  left: clamp(20px, 2.4vw, 40px);
  right: clamp(20px, 2.4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.studio-topbar__quick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.studio-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgb(22 22 22 / 0.14);
  background: rgb(255 255 255 / 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #141414;
  font: 500 11px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.studio-pill:hover {
  transform: translateY(-1px);
  background: rgb(255 255 255 / 0.94);
  border-color: rgb(22 22 22 / 0.32);
}

.studio-room[data-studio-mode="dark"] .studio-pill {
  border-color: rgb(255 255 255 / 0.16);
  background: rgb(20 20 22 / 0.72);
  color: #f5f5f5;
}

.studio-room[data-studio-mode="dark"] .studio-pill:hover {
  background: rgb(32 32 36 / 0.92);
  border-color: rgb(255 255 255 / 0.35);
}

.studio-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8cd90;
  box-shadow: 0 0 0 2px rgb(232 205 144 / 0.35);
}

.studio-pill__dot--about {
  background: #ff4a3d;
  box-shadow: 0 0 0 2px rgb(255 74 61 / 0.3);
}

.studio-pill__dot--services {
  background: #8e9298;
  box-shadow: 0 0 0 2px rgb(142 146 152 / 0.3);
}

/* WebGL failure / always-on desktop pills stay usable */
.studio-room--fallback .studio-mobile-cards {
  display: grid;
}

.studio-room--fallback .studio-room__gl {
  opacity: 0.35;
}

/* Mobile fallback cards at bottom for touch screens */
.studio-mobile-cards {
  display: none;
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 20px;
  z-index: 3;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  pointer-events: auto;
}

.studio-mobile-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 12px;
  min-height: 92px;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 0.22);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 26px rgb(0 0 0 / 0.16);
}

.studio-mobile-card--awards {
  background: linear-gradient(165deg, #f0d89e 0%, #d4b46e 100%);
  color: #111111;
}

.studio-mobile-card--about {
  background: linear-gradient(165deg, #c0243a 0%, #ff4a3d 62%, #ffa060 100%);
}

.studio-mobile-card--services {
  background: linear-gradient(165deg, #4c5157 0%, #8e9298 62%, #cfd2d6 100%);
}

.studio-mobile-card__title {
  font: 600 14px/1.15 "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.02em;
}

.studio-mobile-card__cta {
  font: 500 10px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.86;
}

/* Slide-Over Drawer & Backdrop */
.studio-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgb(10 10 12 / 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.studio-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.studio-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  width: min(740px, 95vw);
  background: linear-gradient(180deg, rgba(18, 22, 32, 0.98) 0%, rgba(10, 12, 18, 0.99) 100%) !important;
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  color: #f0f2f5 !important;
  border-left: 1px solid rgba(0, 242, 254, 0.3) !important;
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.88), -2px 0 30px rgba(0, 242, 254, 0.12), inset 1px 0 0 rgba(255, 255, 255, 0.08) !important;
  transform: translateX(104%);
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: text;
}

html.dark .studio-drawer {
  background: linear-gradient(180deg, rgba(18, 22, 32, 0.98) 0%, rgba(10, 12, 18, 0.99) 100%) !important;
  color: #f0f2f5 !important;
  border-left-color: rgba(0, 242, 254, 0.3) !important;
}

.studio-drawer.is-open {
  transform: translateX(0);
}

.studio-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  background: rgba(14, 17, 25, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.studio-drawer__kicker {
  font: 700 11px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00f2fe;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.studio-drawer__close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  font: 600 11px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.studio-drawer__close:hover {
  background: rgba(255, 50, 50, 0.22);
  border-color: #ff3232;
  color: #ff6b6b;
  box-shadow: 0 0 15px rgba(255, 50, 50, 0.4);
  transform: scale(1.03);
}

.studio-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 26px 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.25) transparent;
}

.studio-drawer__title {
  margin: 0;
  font: 700 clamp(24px, 3vw, 32px)/1.15 "Inter Tight", Inter, sans-serif;
  letter-spacing: -0.025em;
  color: #ffffff !important;
}

.studio-drawer__lede {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(240, 242, 245, 0.72) !important;
}

.studio-drawer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.studio-drawer__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font: 600 12.5px/1 "Inter Tight", Inter, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.studio-drawer__btn:hover {
  transform: translateY(-1px);
}

.studio-drawer__btn--primary {
  background: #00f2fe !important;
  color: #07080d !important;
  border: 1px solid #00f2fe !important;
  font-weight: 700 !important;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35) !important;
}

.studio-drawer__btn--primary:hover {
  background: #38f9d7 !important;
  border-color: #38f9d7 !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.55) !important;
}

.studio-drawer__btn--ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f0f2f5 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.studio-drawer__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px);
}

.studio-drawer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.studio-drawer__card {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 50%, rgba(0, 0, 0, 0.16) 100%), #141722 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.studio-drawer__card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 242, 254, 0.45) !important;
  box-shadow: inset 0 1px 0 rgba(0, 242, 254, 0.25), 0 12px 32px rgba(0, 242, 254, 0.15) !important;
}

.studio-drawer__card-num {
  font: 700 11px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb800 !important;
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.4);
}

.studio-drawer__card-title {
  margin: 10px 0 8px;
  font: 600 16px/1.25 "Inter Tight", Inter, sans-serif;
  color: #ffffff !important;
  letter-spacing: -0.015em;
}

.studio-drawer__card-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(240, 242, 245, 0.72) !important;
}

.studio-drawer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.studio-drawer__tag {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 242, 254, 0.28) !important;
  background: rgba(0, 242, 254, 0.08) !important;
  color: #00f2fe !important;
  font: 600 10.5px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Awesome-CV Sheet within Studio Drawer 1
   ========================================================================== */
.cv-drawer-sheet {
  background: rgba(16, 20, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 36px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  padding: clamp(1.25rem, 3vw, 2rem);
  font-family: "Inter", sans-serif;
  color: #f0f2f5;
}

.cv-sheet__header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cv-sheet__name {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

.cv-sheet__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ff4757;
  margin-bottom: 0.35rem;
}

.cv-sheet__loc {
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(240, 242, 245, 0.6);
  margin-bottom: 0.5rem;
}

.cv-sheet__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  font-size: 0.78rem;
  color: rgba(240, 242, 245, 0.75);
  margin-bottom: 0.65rem;
}

.cv-sheet__contacts a {
  color: #00f2fe;
  text-decoration: none;
}

.cv-sheet__quote {
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(240, 242, 245, 0.55);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.45;
}

.cv-sheet__sec-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin: 1.5rem 0 0.85rem 0;
}

.cv-sheet__sec-title::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: #ff4757;
  opacity: 0.8;
}

.cv-sheet__summary {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(240, 242, 245, 0.78);
  margin: 0;
}

.cv-sheet__entry {
  margin-bottom: 1.15rem;
}

.cv-sheet__entry-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.cv-sheet__org {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.cv-sheet__entry-loc {
  font-size: 0.76rem;
  font-style: italic;
  color: #ff4757;
  white-space: nowrap;
}

.cv-sheet__subrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.cv-sheet__role {
  font-size: 0.82rem;
  font-style: italic;
  color: #00f2fe;
}

.cv-sheet__date {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(240, 242, 245, 0.55);
  white-space: nowrap;
}

.cv-sheet__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cv-sheet__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(240, 242, 245, 0.72);
  margin-bottom: 0.25rem;
}

.cv-sheet__list li::before {
  content: "•";
  position: absolute;
  left: 0.15rem;
  top: 0;
  color: #ff4757;
  font-size: 0.95rem;
}

.cv-sheet__stack-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 0.45rem;
}

@media (max-width: 600px) {
  .cv-sheet__stack-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.cv-sheet__stack-cat {
  font-weight: 700;
  color: #ffffff;
}

.cv-sheet__stack-val {
  color: rgba(240, 242, 245, 0.72);
}

@media (max-width: 900px) {
  .studio-side {
    display: none;
  }
  .studio-topbar {
    display: none;
  }
  .studio-mobile-cards {
    display: grid;
  }
  .studio-drawer__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Sleek Hex-Disc Shutter Wave + Central "H" SDF Emblem + Chapter HUD
   ========================================================================== */

.bunq-stage-wipe {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  --wipe-accent: #e8cd90;
}

.bunq-stage-wipe.is-active {
  opacity: 1;
}

.bunq-stage-wipe__gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.bunq-stage-wipe__hud {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 78px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  opacity: var(--hud-p, 0);
  transition: opacity 0.2s ease;
  text-align: center;
  pointer-events: none;
}

.bunq-stage-wipe__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bunq-stage-wipe__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wipe-accent);
  box-shadow: 0 0 10px var(--wipe-accent);
}

.bunq-stage-wipe__kicker {
  font: 500 11px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.85);
}

.bunq-stage-wipe__title {
  font: 600 clamp(22px, 2.6vw, 34px)/1.1 "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.03em;
  color: #ffffff;
  white-space: nowrap;
}

/* ---------- page loader (bunq-style gate) ---------- */

#loader {
  z-index: 10000;
  color: var(--nav-ink);
  place-content: center;
  justify-items: center;
  display: grid;
  position: fixed;
  inset: 0;
}

[data-gate="open"] #loader {
  display: none;
}

#loader-ground {
  background-color: var(--nav-bg);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.9),
    inset 0 0 0 1px var(--nav-line),
    0 1px 2px rgb(38 38 38 / 0.06),
    0 10px 30px -12px rgb(38 38 38 / 0.18);
  position: absolute;
  inset: 0;
}

html.dark #loader-ground {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), inset 0 0 0 1px var(--nav-line), 0 10px 30px -12px rgb(0 0 0 / 0.5);
}

#loader.is-arriving {
  pointer-events: none;
}

#loader.is-fading {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#loader-row {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100vw;
  display: grid;
  position: relative;
  z-index: 1;
}

#loader-logo {
  grid-area: 1 / 1 / 2 / 3;
  justify-self: center;
  color: var(--nav-ink);
  line-height: 0;
}

#loader-logo svg {
  width: clamp(3.2rem, 9vmin, 4.6rem);
  height: clamp(3.2rem, 9vmin, 4.6rem);
  display: block;
}

.loader-word {
  height: 1em;
  font-family: var(--mono-geist);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  justify-self: center;
  justify-items: center;
  line-height: 1;
  display: grid;
  overflow: hidden;
}

.loader-word--start {
  grid-area: 1 / 1;
}

.loader-word--end {
  grid-area: 1 / 2;
}

.loader-word > * {
  grid-area: 1 / 1;
  transition: translate 0.5s cubic-bezier(0.625, 0.05, 0, 1);
}

.loader-word > :nth-child(2) {
  translate: 0 100%;
}

#loader-count {
  font-variant-numeric: tabular-nums;
}

#loader.is-done .loader-word > :first-child {
  translate: 0 -100%;
}

#loader.is-done .loader-word > :nth-child(2) {
  translate: 0;
}

html[data-intro="hold"] {
  overflow: hidden;
}

/* ==========================================================================
   Bunq Labs Seamless Page Transitions
   ========================================================================== */

html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--sq-night, #f7f6f2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

html.dark::after {
  background: var(--sq-night, #0f0e0c);
}

/* Leaving current page: curtain covers screen smoothly (Bunq Labs 500ms) */
html.is-leaving::after {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Arriving at new page: curtain starts 100% opaque (no flash), then lifts smoothly */
html.is-arriving::after {
  opacity: 1;
  visibility: visible;
  transition: none;
  animation: 0.5s 0.08s cubic-bezier(0.4, 0, 0.2, 1) forwards page-cover-lift;
}

@keyframes page-cover-lift {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Body content: 100% STATIC during transitions (Pure Bunq Labs Quiet Luxury)
   Body does NOT move, bounce, or translateY to preserve WebGL canvas, 3D scenes & fixed nav */
html.is-arriving body,
html.is-leaving body {
  animation: none !important;
  transform: none !important;
}
html.is-leaving body {
  pointer-events: none;
}

/* Minimal centered spinner (graceful feedback if page load takes > 0.6s) */
html::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin: -0.75rem 0 0 -0.75rem;
  border: 1.5px solid rgba(255, 77, 46, 0.2);
  border-top-color: var(--sq-accent, #ff4d2e);
  border-radius: 50%;
  z-index: 75;
  pointer-events: none;
  opacity: 0;
}

html.is-leaving::before {
  animation: 0.8s linear infinite page-spin, 0.3s 0.6s both page-spinner-in;
}

html.is-arriving::before {
  animation: 0.8s linear infinite page-spin, 0.25s 0.25s both page-spinner-in;
}

@keyframes page-spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes page-spinner-in {
  to {
    opacity: 1;
  }
}

.nav-col .nav-link.is-current,
.nav-col:hover .nav-link.is-current {
  opacity: 1;
  color: var(--nav-accent);
}

@media (prefers-reduced-motion: reduce) {
  .loader-word > * {
    transition: none;
  }

  html::after,
  html::before,
  html.is-arriving body,
  html.is-leaving body {
    animation: none !important;
    transition: none !important;
  }
}
