:root {
  --bg: #0c0c0d;
  --surface: #151517;
  --surface-2: #1d1d20;
  --line: #2a2a2e;
  --text: #f2f0ea;
  --muted: #9c9a94;
  --accent: #ff5a36;
  --paper: #ffffff;
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.eyebrow span { color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgba(12, 12, 13, 0.85), rgba(12, 12, 13, 0));
  transition: background 0.25s;
}
.nav.is-solid { background: rgba(12, 12, 13, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-name { font-weight: 800; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.nav nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.nav nav a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color 0.2s; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.nav-name { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.nav nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 1000px);
  min-height: min(92svh, 1000px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(12, 12, 13, 0.7) 32%, rgba(12, 12, 13, 0) 65%),
    linear-gradient(to right, rgba(12, 12, 13, 0.55), rgba(12, 12, 13, 0) 60%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 8vh, 88px);
}
.hero h1 { font-size: clamp(48px, 9vw, 128px); font-weight: 800; letter-spacing: -0.045em; }
.hero .eyebrow { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9); }
.hero-tagline { max-width: 34ch; font-size: clamp(18px, 2vw, 22px); color: #d8d5ce; margin: 18px 0 28px; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid rgba(242, 240, 234, 0.35);
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 10vw, 128px) var(--gutter) 0; }
.section h2 { font-size: clamp(32px, 4.5vw, 56px); font-weight: 800; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head p { margin: 0; font-size: 15px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  font: 500 14px var(--sans);
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.is-active { color: var(--bg); background: var(--text); border-color: var(--text); }

/* ---------- Project cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.card { text-decoration: none; display: block; }
.card[hidden] { display: none; }
.card-media { overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 16 / 10; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { transform: scale(1.035); }
.card-media.contain img {
  object-fit: contain;
  padding: 3% 0;
  /* fade the render's own edges into the card colour so no box shows */
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.card-body { padding-top: 16px; }
.card-body .eyebrow { margin-bottom: 6px; }
.card h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; display: inline; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size 0.3s; }
.card:hover h3 { background-size: 100% 2px; }
.card-summary { color: var(--muted); margin: 8px 0 0; max-width: 52ch; font-size: 16px; }
.card.is-feature { grid-column: 1 / -1; }
.card.is-feature .card-media { aspect-ratio: 21 / 9; }
.card.is-feature h3 { font-size: clamp(28px, 3.4vw, 44px); }

/* ---------- About & contact ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); }
.about-text h2 { margin-bottom: 28px; }
.about-text p { font-size: clamp(17px, 1.5vw, 20px); color: #d8d5ce; max-width: 60ch; }
.about-lists { display: grid; gap: 32px; align-content: start; padding-top: 12px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; padding: 6px 12px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--line); }

.contact { padding-bottom: clamp(64px, 10vw, 128px); }
.contact-email {
  display: inline-block;
  font-size: clamp(26px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
  overflow-wrap: anywhere;
  line-height: 1.1;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 4px no-repeat;
  transition: background-size 0.35s;
  padding-bottom: 6px;
}
.contact-email:hover { background-size: 100% 4px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.contact-links a { color: var(--muted); text-decoration: none; }
.contact-links a:hover { color: var(--text); }

.footer {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- Project page ---------- */
.project { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.project-head { padding-top: clamp(110px, 14vw, 160px); }
.back { display: inline-block; margin-bottom: 32px; color: var(--muted); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--text); }
.project-head h1 { font-size: clamp(40px, 7vw, 96px); font-weight: 800; letter-spacing: -0.045em; max-width: 16ch; }
.project-intro { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 6vw, 96px); margin: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); }
.project-desc p { font-size: clamp(17px, 1.5vw, 20px); color: #d8d5ce; max-width: 62ch; }
.project-desc p:first-child { color: var(--text); font-weight: 600; }
.project-meta { margin: 0; display: grid; gap: 0; align-content: start; border-top: 1px solid var(--line); }
.project-meta div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.project-meta dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.project-meta dd { margin: 0; font-size: 15px; }

.project-hero { margin: 0 calc(var(--gutter) * -1); }
.project-hero img { width: 100%; max-height: 88vh; object-fit: contain; }
@media (min-width: 1440px) { .project-hero { margin: 0; } .project-hero img { border-radius: var(--radius); } }

.block { padding-top: clamp(56px, 8vw, 104px); }
.block-head { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px clamp(24px, 6vw, 96px); align-items: baseline; margin-bottom: 24px; }
.block-head h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; }
.block-text { margin: 0; color: var(--muted); max-width: 60ch; }

.gallery { display: grid; gap: clamp(12px, 1.6vw, 20px); align-items: start; }
.gallery.full { grid-template-columns: 1fr; }
.gallery.pair, .gallery.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery figure { margin: 0; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery .zoom { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); cursor: zoom-in; }
.gallery img { width: 100%; transition: transform 0.5s cubic-bezier(.2, .7, .2, 1), opacity 0.2s; }
.gallery .zoom:hover img { transform: scale(1.02); }
.gallery.cropped figure:not(.wide) img { aspect-ratio: var(--aspect); object-fit: cover; }
.gallery figure.paper .zoom { background: var(--paper); }
.gallery.cropped figure.paper img { object-fit: contain; padding: 12px; }
.gallery figure.paper img { padding: 12px; }
.gallery figcaption { font-size: 14px; color: var(--muted); padding-top: 10px; }

.next {
  display: block;
  margin-top: clamp(72px, 10vw, 140px);
  padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.next-title { display: block; font-size: clamp(32px, 6vw, 80px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; transition: color 0.2s; }
.next:hover .next-title { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: 1fr auto;
  background: rgba(8, 8, 9, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-stage { display: flex; align-items: center; justify-content: center; padding: 64px clamp(8px, 6vw, 96px) 8px; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox-stage img.paper { background: var(--paper); padding: 16px; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter) 20px; font-size: 14px; color: var(--muted); }
.lightbox-count { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.lightbox button {
  position: absolute;
  background: rgba(30, 30, 33, 0.8);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 100px;
  width: 44px;
  height: 44px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { background: var(--text); color: var(--bg); }
.lb-close { top: 14px; right: var(--gutter); }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
body.lb-lock { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about, .project-intro, .block-head { grid-template-columns: 1fr; }
  .gallery.grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card.is-feature .card-media { aspect-ratio: 16 / 10; }
  .gallery.pair, .gallery.grid2 { grid-template-columns: 1fr; }
  .nav-name { font-size: 15px; }
  .nav nav a { font-size: 14px; }
  .lb-prev, .lb-next { display: none; }
}
@media (max-width: 900px) {
  .gallery.grid3.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .gallery.grid3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery.grid3.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .gallery.grid3 figcaption { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Motion & interaction layer
   ========================================================= */

/* ---------- Hero slideshow ---------- */
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide .hero-img { object-fit: var(--fit, cover); object-position: var(--focus, 50% 50%); transform: scale(1.07); transition: transform 9s linear; }
.hero-slide.is-active .hero-img { transform: scale(1); }

.hero-caption {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: clamp(40px, 8vh, 88px);
  display: grid;
  justify-items: end;
  gap: 14px;
  text-align: right;
}
.hero-link { text-decoration: none; display: grid; gap: 2px; }
.hero-link .eyebrow { margin: 0; color: var(--muted); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); }
.hero-link-title { font-weight: 700; font-size: 18px; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9); transition: color 0.2s; }
.hero-link:hover .hero-link-title { color: var(--accent); }
.hero-dots { display: flex; gap: 6px; }
.hero-dot { position: relative; width: 30px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-dot::before, .hero-dot::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; }
.hero-dot::before { background: rgba(242, 240, 234, 0.28); }
.hero-dot.is-active::after { background: var(--accent); transform-origin: left; animation: dot-fill var(--slide-ms, 6500ms) linear forwards; }
.hero.is-paused .hero-dot.is-active::after { animation: none; transform: none; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Hero text rises in on load */
.js .hero-inner > * { opacity: 0; transform: translateY(22px); animation: rise 0.9s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .hero-inner > :nth-child(1) { animation-delay: 0.15s; }
.js .hero-inner > :nth-child(2) { animation-delay: 0.27s; }
.js .hero-inner > :nth-child(3) { animation-delay: 0.39s; }
.js .hero-inner > :nth-child(4) { animation-delay: 0.51s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Card hover: second image ---------- */
.card-media { position: relative; }
.card-media .card-alt { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) {
  .card:hover .card-media .card-alt { opacity: 1; }
}

/* ---------- Section numbers ---------- */
.block-num {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ---------- Before / after slider ---------- */
.compare {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  user-select: none;
  -webkit-user-select: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s;
}
.compare:hover .compare-handle span, .compare.is-dragging .compare-handle span { transform: translate(-50%, -50%) scale(1.1); }
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
}
.compare:has(.compare-range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.compare-label {
  position: absolute;
  top: 14px;
  padding: 6px 11px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(12, 12, 13, 0.78);
  color: var(--text);
  pointer-events: none;
}
.compare-label.is-before { left: 14px; }
.compare-label.is-after { right: 14px; }
.compare-hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 760px) {
  .hero-inner { padding-bottom: 92px; }
  .hero-caption { left: var(--gutter); right: auto; bottom: 30px; justify-items: start; text-align: left; }
  .hero-link { display: none; }
  .compare-handle span { width: 38px; height: 38px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero-inner > * { opacity: 1; transform: none; animation: none; }
  .hero-slide .hero-img { transform: none; }
}

/* ---------- Turntable videos & 3D viewers ---------- */
.video-frame { border-radius: var(--radius); overflow: hidden; background: #fff; }
.video-frame video { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
model-viewer {
  display: block;
  width: 100%;
  height: auto; /* model-viewer defaults to 150px tall, which beats aspect-ratio */
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 38%, #fbfbfb 0%, #e4e4e4 60%, #cfcfcf 100%);
  --poster-color: transparent;
  --progress-bar-color: var(--accent);
}
model-viewer:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-media .card-video { width: 100%; height: 100%; object-fit: cover; }
.card-media.contain .card-video { object-fit: contain; }
@media (max-width: 760px) {
  .gallery.videos, .gallery.viewers { grid-template-columns: 1fr; }
}

/* =========================================================
   Interactive layer
   ========================================================= */
.btn-solid { background: var(--accent); border-color: var(--accent); color: #111; }
.btn-solid:hover { background: var(--text); border-color: var(--text); color: var(--bg); }

/* ---------- Tier upgrade simulator ---------- */
.tiers { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.tiers-stage { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #3a3a3a; }
.tier-img { position: absolute; inset: 0; opacity: 0; transform: scale(0.94); transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2, .7, .2, 1); }
.tier-img img { width: 100%; height: 100%; object-fit: cover; }
.tier-img.is-active { opacity: 1; transform: none; }
.tier-img.is-active.pop { animation: tier-pop 0.6s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes tier-pop { 0% { transform: scale(0.86) translateY(4%); } 60% { transform: scale(1.05); } 100% { transform: none; } }
.tiers-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 58%, rgba(255, 214, 120, 0.6), rgba(255, 140, 60, 0.15) 35%, transparent 62%);
}
.tiers.is-upgrading .tiers-flash { animation: tier-flash 0.75s ease-out; }
@keyframes tier-flash { 0% { opacity: 0; transform: scale(0.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }
.tiers-panel .eyebrow { margin: 0 0 10px; }
.tier-towers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 26px; }
.tier-tower {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: 600 14px var(--sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.tier-tower img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: #3a3a3a; }
.tier-tower:hover { border-color: var(--muted); }
.tier-tower.is-active { border-color: var(--accent); background: var(--surface-2); }
.tier-levels { display: flex; gap: 8px; margin-bottom: 18px; }
.tier-level {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: 700 15px var(--mono);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.tier-level.is-on { background: linear-gradient(180deg, #ffb35c, var(--accent)); border-color: transparent; color: #111; }
.tiers-upgrade { width: 100%; text-align: center; cursor: pointer; font-family: var(--sans); }
.tiers-status { margin: 14px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- 3D model hotspots ---------- */
.hotspot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hotspot-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font: 700 12px var(--sans);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}
.hotspot:hover .hotspot-num, .hotspot.is-open .hotspot-num { transform: scale(1.15); }
.hotspot-label {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translate(-4px, -50%);
  opacity: 0;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 100px;
  background: rgba(12, 12, 13, 0.88);
  color: var(--text);
  font: 500 12px var(--sans);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.hotspot:hover .hotspot-label, .hotspot:focus-visible .hotspot-label, .hotspot.is-open .hotspot-label { opacity: 1; transform: translate(0, -50%); }
.hotspot:not([data-visible]) { opacity: 0; pointer-events: none; }
.hotspot { transition: opacity 0.3s; }

/* ---------- Reading progress (project pages) ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 30; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.next-hint { display: block; margin-top: 16px; font-size: 13px; color: var(--muted); }
@media (hover: none) { .next-hint { display: none; } }

/* ---------- Cursor bubble (mouse only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; will-change: transform; }
.cursor-inner {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font: 700 13px var(--sans);
  letter-spacing: 0.02em;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(.2, .7, .2, 1);
}
.cursor.is-on .cursor-inner { transform: scale(1); }

/* ---------- Card tilt ---------- */
.card-media { transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.card-media.is-tilting { transition: transform 0.12s linear; }

/* ---------- Lightbox zoom ---------- */
.lightbox-stage img { cursor: zoom-in; transition: transform 0.35s cubic-bezier(.2, .7, .2, 1); }
.lightbox.is-zoomed .lightbox-stage { overflow: hidden; touch-action: none; }
.lightbox.is-zoomed .lightbox-stage img { cursor: zoom-out; transform: scale(2.6); transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), transform-origin 0.08s linear; }
.lightbox-hint { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .lightbox-hint { display: none; } }

/* ---------- Experience list (About) ---------- */
.experience { grid-column: 1 / -1; }
.exp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.exp-row {
  display: grid;
  grid-template-columns: 11em minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 6px 28px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.exp-dates { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.exp-role { font-size: 17px; }
.exp-role strong { font-weight: 700; }
.exp-note { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) {
  .exp-row { grid-template-columns: 1fr; }
}
