/* ==========================================================
   Helen's Orbit — styles
   ========================================================== */
:root {
  --ink: #fbf6ff;
  --ink-soft: rgba(251, 246, 255, .78);
  --ink-faint: rgba(251, 246, 255, .55);
  --line: rgba(255, 255, 255, .18);
  --glass: rgba(22, 10, 44, .38);
  --glass-strong: rgba(18, 8, 36, .62);
  --paper: #f6f1ea;
  --glow: #ffd9f0;
  --accent: #ffc7e6;
  --accent-2: #b9b2ff;
  --gold: #ffd98a;
  --display: "Italiana", "Cormorant Garamond", serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: #120822;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------------------------------------------- sky */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sky-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
body[data-world="home"] .sky-layer[data-sky="home"],
body[data-world="me"] .sky-layer[data-sky="me"],
body[data-world="games"] .sky-layer[data-sky="games"],
body[data-world="graphics"] .sky-layer[data-sky="graphics"],
body[data-world="art"] .sky-layer[data-sky="art"] { opacity: 1; }

.sky-layer[data-sky="home"] {
  background:
    radial-gradient(60% 55% at 12% 78%, rgba(214, 70, 170, .55), transparent 70%),
    radial-gradient(55% 60% at 88% 30%, rgba(92, 120, 50, .55), transparent 70%),
    radial-gradient(70% 60% at 50% 50%, rgba(140, 90, 190, .35), transparent 75%),
    linear-gradient(160deg, #2a1236 0%, #3b1c47 40%, #241a2c 70%, #1d2416 100%);
}
.sky-layer[data-sky="me"] {
  background:
    radial-gradient(70% 45% at 50% 105%, rgba(255, 186, 74, .75), transparent 70%),
    linear-gradient(180deg, #2c0f5c 0%, #5a2a9e 35%, #9a4aa5 62%, #e48a5a 88%, #f6b347 100%);
}
.sky-layer[data-sky="games"] {
  background:
    radial-gradient(60% 40% at 50% 108%, rgba(255, 210, 127, .7), transparent 70%),
    linear-gradient(180deg, #000b21 0%, #022453 30%, #003f82 52%, #4ca2b5 82%, #ffd27f 100%);
}
.sky-layer[data-sky="graphics"] {
  background:
    radial-gradient(55% 40% at 50% 100%, rgba(255, 231, 196, .55), transparent 70%),
    linear-gradient(180deg, #1a0838 0%, #3c1470 30%, #8a3fd6 60%, #c88ae8 82%, #ffd6c0 100%);
}
.sky-layer[data-sky="art"] {
  background:
    radial-gradient(60% 45% at 50% 105%, rgba(255, 226, 184, .65), transparent 70%),
    linear-gradient(180deg, #24104a 0%, #4b2e8f 34%, #8f86e8 64%, #b9b8ff 82%, #ffe2b8 100%);
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .035;
}

/* ---------------------------------------------- topbar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background .4s;
}
.topbar.scrolled { background: rgba(18, 8, 36, .82); border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-orb {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fff 0 8%, #ffd0e8 22%, #c5a8ff 55%, #7c6bff 80%, transparent 82%);
  box-shadow: 0 0 18px rgba(255, 200, 235, .65), 0 0 40px rgba(170, 150, 255, .35);
  transition: transform .5s var(--ease);
}
.brand { transition: opacity .5s, visibility .5s; }
body[data-world="home"] .brand { opacity: 0; visibility: hidden; pointer-events: none; }
.brand:hover .brand-orb { transform: scale(1.12) rotate(20deg); }
.brand-name { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav a {
  font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-decoration: none;
  color: var(--ink-soft); position: relative; padding: 6px 0; transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 10px var(--glow); transform: translateX(-50%) scale(0); transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after { transform: translateX(-50%) scale(1); }
.nav .nav-pill { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; color: var(--ink); background: rgba(255,255,255,.06); }
.nav .nav-pill:hover { background: rgba(255,255,255,.16); }
.nav .nav-pill::after { display: none; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; cursor: pointer; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 23px; }
.menu-open .menu-btn span:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 19.5px; transform: rotate(-45deg); }

@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(14, 6, 30, .96);
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav a { font-family: var(--display); font-size: 40px; letter-spacing: .04em; }
  .nav .nav-pill { font-family: var(--mono); font-size: 14px; margin-top: 10px; }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
}

/* ---------------------------------------------- views */
main { position: relative; z-index: 2; min-height: 100vh; outline: none; }
.view { animation: viewIn .9s var(--ease) both; }
.view.leaving { animation: viewOut .45s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes viewOut { to { opacity: 0; transform: translateY(-10px); } }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.page { padding-top: clamp(110px, 16vh, 160px); padding-bottom: 120px; }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); }
.display {
  font-family: var(--display); font-weight: 400; letter-spacing: .06em; line-height: .95; margin: 0;
  font-size: clamp(54px, 10vw, 128px); text-transform: uppercase;
  text-shadow: 0 0 40px rgba(255, 230, 250, .35);
}
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.6vw, 54px); letter-spacing: .04em; margin: 0 0 18px; line-height: 1.05; }
.h3 { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 18px; font-weight: 400; display: flex; align-items: center; gap: 14px; }
.h3::before, .h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.h3::after { background: linear-gradient(90deg, var(--line), transparent); }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); max-width: 62ch; font-weight: 300; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.1);
  transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 200, 240, .18); }
.btn.solid { background: var(--ink); color: #241238; border-color: transparent; }
.btn.solid:hover { background: #fff; }
.btn svg { width: 15px; height: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.glass {
  background: var(--glass); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);

}

/* ---------------------------------------------- HOME / orbit */
.home { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; }
.orbit-stage {
  position: relative; width: 100%; height: min(100vh, 900px); height: min(100svh, 900px); min-height: 560px;
  --s: min(1, calc(100vw / 1100px));
}
.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-svg ellipse, .orbit-svg circle { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.orbit-svg .faint { stroke: rgba(255,255,255,.28); }
.core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(220px, 34vw, 400px); aspect-ratio: 1; border-radius: 50%; z-index: 5;
  display: grid; place-items: center; text-align: center;
}
.core-orb {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffd5c7 0%, #f6a4cf 28%, #c1a3ff 58%, #8fa6ff 78%, #a7d4ff 100%);
  box-shadow: 0 0 60px rgba(255, 190, 230, .55), 0 0 160px rgba(180, 150, 255, .45), inset -30px -40px 80px rgba(110, 80, 220, .35), inset 20px 20px 60px rgba(255,255,255,.25);
  filter: saturate(110%);
  animation: breathe 7s ease-in-out infinite;
}
.core-orb::after {
  content: ""; position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 240, .35), transparent 62%);
  filter: blur(10px); z-index: -1;
}
@keyframes breathe { 50% { transform: scale(1.025); } }
.core-flare { position: absolute; left: 50%; top: 46%; width: 70%; height: 70%; transform: translate(-50%, -50%); pointer-events: none; mix-blend-mode: screen; }
.core-flare::before, .core-flare::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: translate(-50%, -50%); filter: blur(.6px);
}
.core-flare::before { width: 100%; height: 2px; }
.core-flare::after { width: 2px; height: 70%; background: linear-gradient(180deg, transparent, #fff, transparent); }
.core-title {
  position: relative; font-family: var(--display); font-weight: 400; margin: 0;
  font-size: clamp(36px, 6.2vw, 74px); line-height: .92; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.92); text-shadow: 0 0 30px rgba(255,255,255,.6);
}

.planet {
  position: absolute; left: 0; top: 0; z-index: 6; text-decoration: none;
  display: flex; align-items: center; gap: 12px; will-change: transform;
}
.planet-body {
  width: var(--size, 34px); aspect-ratio: 1; border-radius: 50%; flex: none;
  background: var(--fill); box-shadow: 0 0 22px var(--halo), 0 0 60px var(--halo);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.planet-label {
  font-family: var(--mono); font-size: 14px; letter-spacing: .08em; white-space: nowrap;
  text-shadow: 0 0 12px rgba(0,0,0,.4); transition: letter-spacing .4s var(--ease);
}
.planet.label-left { flex-direction: row-reverse; }
.planet.label-top { flex-direction: column-reverse; gap: 8px; }
.planet:hover .planet-body, .planet:focus-visible .planet-body { transform: scale(1.35); box-shadow: 0 0 30px var(--halo), 0 0 100px var(--halo); }
.planet:hover .planet-label { letter-spacing: .2em; }
.planet.behind { z-index: 4; }
.planet.behind .planet-body { filter: brightness(.85); }

.p-me { --size: 26px; --fill: radial-gradient(circle at 35% 30%, #fff, #f1e9ff 50%, #c9b8ff); --halo: rgba(235, 220, 255, .6); }
.p-games { --size: 44px; --fill: radial-gradient(circle at 35% 30%, #fff, #e7f1ff 55%, #a9c9ff); --halo: rgba(200, 225, 255, .55); }
.p-graphics { --size: 70px; --fill: radial-gradient(circle at 40% 35%, #fff9e6, #ffe7a6 40%, #f6c35f 75%, #e7a64a); --halo: rgba(255, 214, 120, .55); }
.p-art { --size: 56px; --fill: radial-gradient(circle at 40% 40%, #e4fff7, #a7d9d0 45%, #6c9fb0 80%, #4e6f8f); --halo: rgba(150, 220, 210, .5); }

.home-foot {
  position: relative; z-index: 6; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter) 34px; max-width: 1400px; margin: 0 auto; width: 100%;
}
.home-intro { max-width: 520px; }
.home-intro p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }
.home-intro .roles { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.home-hint { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--ink-faint); display: flex; align-items: center; gap: 10px; }
.home-hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* warp transition */
.warp {
  position: fixed; z-index: 60; width: 40px; height: 40px; border-radius: 50%; pointer-events: none;
  left: 0; top: 0; opacity: 0; transform: translate(-50%, -50%) scale(0);
  background: var(--warp, #fff); box-shadow: 0 0 80px var(--warp, #fff);
}
.warp.go { animation: warp .8s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes warp {
  0% { opacity: .95; transform: translate(-50%, -50%) scale(.6); }
  70% { opacity: .9; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(90); }
}

/* ---------------------------------------------- ME */
.me-hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; min-height: 76vh; }
.me-hello { font-family: var(--mono); font-size: clamp(15px, 1.6vw, 18px); letter-spacing: .06em; margin: 0 0 20px; }
.me-roles { list-style: none; margin: 0 0 34px; padding: 0; }
.me-roles a {
  display: inline-flex; align-items: baseline; gap: 18px; text-decoration: none;
  font-family: var(--display); font-size: clamp(42px, 6.4vw, 84px); line-height: 1.08; letter-spacing: .03em;
  transition: color .4s, transform .5s var(--ease), text-shadow .4s;
}
.me-roles a small { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--ink-faint); transform: translateY(-1.1em); }
.me-roles a:hover { transform: translateX(10px); text-shadow: 0 0 30px rgba(255, 220, 250, .8); }
.me-figure { position: relative; justify-self: center; width: min(420px, 80vw); }
.me-figure .avatar { width: 50%; margin: 0 auto; position: relative; z-index: 2; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255,255,255,.45)) drop-shadow(0 0 30px rgba(255, 220, 250, .25)); }
.me-figure .cloud { display: block; width: 100%; height: auto; margin-top: -19%; position: relative; z-index: 1; overflow: visible; animation: float 7s ease-in-out infinite; animation-delay: -.25s; filter: drop-shadow(0 0 30px rgba(255, 190, 235, .45)); }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes drift { 50% { transform: translate(-10px, 8px) rotate(-4deg); } }

.statement { margin: 40px auto 120px; max-width: 860px; text-align: center; }
.statement p { font-family: var(--serif); font-size: clamp(21px, 2.5vw, 30px); line-height: 1.5; color: var(--ink); margin: 0 0 1em; font-weight: 400; }
.statement p:first-child::first-letter { font-family: var(--display); font-size: 2.2em; line-height: 1; padding-right: 2px; }
.statement .eyebrow { display: block; margin-bottom: 26px; }

.resume { display: grid; grid-template-columns: 1fr; gap: 26px; }
.resume-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.resume-head .h2 { margin: 0; }
.resume-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; align-items: start; }
.card { padding: clamp(22px, 3vw, 34px); }
.card + .card { margin-top: 26px; }
.entry { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); }
.entry:first-of-type { border-top: 0; padding-top: 4px; }
.entry-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; }
.entry-role { font-weight: 600; font-size: 17px; margin: 0; }
.entry-role a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.entry-role a:hover { background-size: 100% 1px; }
.entry-role a .arrow { display: inline-block; margin-left: 6px; font-family: var(--mono); font-size: 13px; opacity: .6; }
.entry-org { font-family: var(--mono); font-size: 13px; color: var(--accent); margin: 2px 0 8px; letter-spacing: .02em; }
.entry-date { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.entry ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 15px; font-weight: 300; }
.entry li { margin: 5px 0; }
.entry li::marker { color: var(--accent-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list a, .contact-list span { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); transition: color .3s; word-break: break-all; }
.contact-list a:hover { color: var(--ink); }
.contact-list svg { width: 17px; height: 17px; flex: none; opacity: .85; }

.join { text-align: center; margin-top: 120px; }
.join a { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; }
.join img { width: 120px; animation: float 6s ease-in-out infinite; }
.join span { font-family: var(--mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 4px; }

/* ---------------------------------------------- section heads */
.world-head { text-align: center; margin-bottom: clamp(40px, 7vw, 80px); }
.world-head .lede { margin: 18px auto 0; }

/* ---------------------------------------------- GAMES */
.game-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; perspective: 1200px; }
.game-card { text-decoration: none; display: block; position: relative; }
.game-card:nth-child(1) { order: 2; transform: translateY(-34px); }
.game-card:nth-child(2) { order: 1; }
.game-card:nth-child(n+3) { order: 3; }
.game-art {
  position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 30px 80px rgba(0, 10, 40, .5), 0 0 90px rgba(170, 220, 255, .18);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.game-card:hover .game-art { transform: translateY(-8px) rotateX(4deg); box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 40px 90px rgba(0, 10, 40, .55), 0 0 140px rgba(200, 235, 255, .4); }
.game-card:hover .game-art img { transform: scale(1.06); }
.game-info { padding: 22px 6px 0; }
.game-info h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3vw, 38px); margin: 0; letter-spacing: .03em; }
.game-info .k { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--ink-faint); margin: 4px 0 10px; }
.game-info p { margin: 0; color: var(--ink-soft); font-size: 15px; font-weight: 300; }
.more { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; gap: 8px; margin-top: 14px; color: var(--ink); }
.more::after { content: "→"; transition: transform .4s var(--ease); }
a:hover .more::after { transform: translateX(6px); }

/* ---------------------------------------------- project detail */
.back {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 34px;
}
.back::before { content: "←"; transition: transform .4s var(--ease); }
.back:hover { color: var(--ink); }
.back:hover::before { transform: translateX(-5px); }
.proj-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(26px, 5vw, 70px); align-items: start; margin-bottom: clamp(50px, 8vw, 100px); }
.proj-logo { max-width: min(460px, 100%); margin: 6px 0 22px; }
.proj-logo.paper { background: #fff; padding: 18px 26px; border-radius: 18px; max-width: 360px; }
.proj-title { font-family: var(--display); font-weight: 400; font-size: clamp(46px, 7vw, 92px); line-height: 1; margin: 6px 0 20px; letter-spacing: .03em; }
.proj-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.proj-summary { font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-soft); font-weight: 300; margin: 0 0 26px; }
.meta { margin: 0; display: grid; gap: 0; }
.meta div { padding: 15px 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: 110px 1fr; gap: 14px; }
.meta div:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); padding-top: 3px; }
.meta dd { margin: 0; font-size: 15px; }
.meta + .btn-row { margin-top: 24px; }

.section { margin-top: clamp(60px, 9vw, 110px); }
.text-block { max-width: 760px; margin: 0 auto; text-align: center; }
.text-block p { font-family: var(--serif); font-size: clamp(19px, 2vw, 24px); line-height: 1.6; color: var(--ink); margin: 0; }

.gallery { columns: var(--cols, 3); column-gap: clamp(10px, 1.5vw, 18px); }
.gallery .g-item { break-inside: avoid; margin-bottom: clamp(10px, 1.5vw, 18px); }
.g-item {
  position: relative; margin: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; display: block;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
}
.g-item.wide { grid-column: span 2; }
.g-item img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.g-item.paper { background: var(--paper); border-color: transparent; display: grid; place-items: center; padding: 10%; aspect-ratio: 1; }
.g-item.paper img, .g-item.dark img { width: auto; max-height: 100%; object-fit: contain; }
.g-item.dark { background: radial-gradient(circle at 50% 40%, #233056, #0d1226); display: grid; place-items: center; padding: 8%; }
.g-item:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 60px rgba(255, 220, 250, .15); border-color: rgba(255,255,255,.25); }
.g-item:hover img { transform: scale(1.03); }
.g-item figcaption { padding: 12px 14px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); background: rgba(10, 4, 24, .5); }
.g-item.paper figcaption, .g-item.dark figcaption { position: absolute; left: 0; right: 0; bottom: 0; }
.art-gallery { columns: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 24px); }
.art-gallery .g-item { margin: 0; }
.art-gallery .g-item.wide { grid-column: span 2; }
.art-gallery .g-item img { max-height: 82vh; width: 100%; object-fit: contain; }
.art-gallery .g-item.dark { padding: 0; background: rgba(12, 8, 30, .35); }
.art-gallery .g-item.dark img { width: 100%; }

.soon { text-align: center; padding: clamp(40px, 8vw, 90px) 24px; }
.soon .orb-sm { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 24px; background: radial-gradient(circle at 38% 35%, #fff, #ffe0f1 30%, #c9b2ff 70%, transparent 72%); box-shadow: 0 0 40px rgba(255, 210, 240, .6); animation: breathe 5s ease-in-out infinite; }
.soon p { color: var(--ink-soft); font-family: var(--mono); font-size: 13px; letter-spacing: .08em; margin: 0; }

/* next project */
.next-proj { margin-top: clamp(80px, 12vw, 150px); display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 26px; }
.next-proj a { text-decoration: none; display: flex; flex-direction: column; gap: 4px; max-width: 48%; }
.next-proj a:last-child { text-align: right; margin-left: auto; }
.next-proj span { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.next-proj strong { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.4vw, 42px); transition: text-shadow .4s; }
.next-proj a:hover strong { text-shadow: 0 0 24px rgba(255,255,255,.7); }

/* ---------------------------------------------- GRAPHICS sun system */
.sun-system { position: relative; height: clamp(420px, 56vw, 620px); margin: -10px auto 40px; max-width: 1100px; }
/* majestic golden planet at the centre of the Graphics system */
.gold-planet {
  --S: clamp(150px, 18vw, 220px);
  position: absolute; left: 50%; top: 64%; width: var(--S); height: var(--S);
  margin: calc(var(--S) / -2) 0 0 calc(var(--S) / -2); pointer-events: none;
}
.gp-halo {
  position: absolute; inset: -70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 232, 160, .55) 0%, rgba(255, 200, 120, .25) 30%, rgba(255, 170, 200, .1) 48%, transparent 66%);
  filter: blur(6px); animation: gp-pulse 7s ease-in-out infinite;
}
@keyframes gp-pulse { 50% { opacity: .7; } }
.gp-tilt { position: absolute; inset: 0; transform: rotateZ(-16deg); transform-style: preserve-3d; }
.gp-sphere {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 40% 36%, #fffdf0 0%, #fff0b8 22%, #ffd77a 50%, #f2b453 76%, #d98f3e 100%);
  box-shadow: 0 0 34px rgba(255, 226, 140, .85), 0 0 90px rgba(255, 205, 120, .55), 0 0 180px rgba(255, 190, 140, .3);
}
.gp-surface {
  position: absolute; top: 0; bottom: 0; left: 0; width: 200%;
  background:
    radial-gradient(ellipse 7% 5% at 18% 60%, rgba(214, 128, 50, .45), transparent 70%),
    radial-gradient(ellipse 5% 3.5% at 68% 34%, rgba(255, 252, 230, .8), transparent 70%),
    radial-gradient(ellipse 9% 3% at 40% 30%, rgba(230, 150, 70, .3), transparent 70%),
    radial-gradient(ellipse 6% 4% at 88% 70%, rgba(255, 245, 210, .6), transparent 70%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0) 0 6%, rgba(255, 246, 214, .35) 6% 9%, rgba(255,255,255,0) 9% 14%, rgba(214, 140, 60, .22) 14% 17%, rgba(255,255,255,0) 17% 24%);
  background-size: 50% 100%; background-repeat: repeat-x;
  filter: blur(1.2px); mix-blend-mode: soft-light; opacity: .95;
  animation: gp-spin 45s linear infinite;
}
@keyframes gp-spin { to { transform: translateX(-50%); } }
.gp-light {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 248, .9), rgba(255, 255, 248, 0) 26%),
    radial-gradient(circle at 62% 64%, transparent 40%, rgba(170, 90, 40, .28) 78%, rgba(120, 60, 40, .45) 100%);
  box-shadow: inset 0 0 22px rgba(255, 250, 225, .9), inset -10px -14px 30px rgba(190, 110, 50, .35);
}
/* Saturn-like ring + orbiting moons live on a tilted plane, so they pass behind the planet */
.gp-ring, .gp-orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform-style: preserve-3d; }
.gp-ring {
  width: 230%; height: 230%; margin: -115% 0 0 -115%;
  background: radial-gradient(circle, transparent 47%, rgba(255, 238, 190, .0) 48%, rgba(255, 238, 190, .55) 50%, rgba(255, 214, 150, .25) 55%, rgba(255, 240, 200, .5) 57%, rgba(255, 220, 170, .12) 63%, transparent 66%);
  transform: rotateX(76deg);
  animation: gp-ring-spin 80s linear infinite;
}
@keyframes gp-ring-spin { to { transform: rotateX(76deg) rotateZ(360deg); } }
.gp-orbit { border: 0; }
.gp-orbit.o1 { width: 300%; height: 300%; margin: -150% 0 0 -150%; animation: gp-orbit 26s linear infinite; }
.gp-orbit.o2 { width: 380%; height: 380%; margin: -190% 0 0 -190%; animation: gp-orbit 41s linear infinite reverse; }
@keyframes gp-orbit { from { transform: rotateX(76deg) rotateZ(0deg); } to { transform: rotateX(76deg) rotateZ(360deg); } }
.gp-moon {
  position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #ffe9f6 55%, #e2c8ff);
  box-shadow: 0 0 10px #fff, 0 0 22px rgba(255, 220, 245, .8);
  animation: gp-moon-face 26s linear infinite;
}
.gp-orbit.o2 .gp-moon { width: 7px; height: 7px; margin-left: -3.5px; top: -3.5px; animation: gp-moon-face 41s linear infinite reverse; }
@keyframes gp-moon-face { from { transform: rotateZ(0deg) rotateX(-76deg); } to { transform: rotateZ(-360deg) rotateX(-76deg); } }
.gp-spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255, 245, 210, .9); animation: blink 3.2s ease-in-out infinite; }
.gp-spark.s1 { left: -30%; top: 10%; } .gp-spark.s2 { right: -38%; top: 32%; animation-delay: -1.1s; }
.gp-spark.s3 { left: -12%; bottom: -22%; animation-delay: -2s; width: 3px; height: 3px; } .gp-spark.s4 { right: -8%; top: -24%; animation-delay: -.5s; width: 3px; height: 3px; }
.sun-rays {
  position: absolute; left: 50%; bottom: 14%; width: 110%; aspect-ratio: 1; transform: translate(-50%, 50%);
  background: repeating-conic-gradient(from 0deg, rgba(255, 240, 220, .22) 0deg 2.5deg, transparent 2.5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0 8%, rgba(0,0,0,.6) 25%, transparent 55%);
          mask: radial-gradient(circle, #000 0 8%, rgba(0,0,0,.6) 25%, transparent 55%);
  animation: spin 120s linear infinite; pointer-events: none; filter: blur(2px);
}
@keyframes spin { to { transform: translate(-50%, 50%) rotate(360deg); } }
.sun-core {
  position: absolute; left: 50%; bottom: 23%; transform: translate(-50%, 50%);
  width: clamp(120px, 15vw, 170px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fffef7 0 30%, #fff1b8 55%, rgba(255, 220, 140, .0) 72%);
  box-shadow: 0 0 80px rgba(255, 240, 190, .9), 0 0 180px rgba(255, 220, 160, .6);
  animation: breathe 6s ease-in-out infinite;
}
.sun-cradle {
  position: absolute; left: 50%; bottom: 23%; width: clamp(260px, 34vw, 420px); aspect-ratio: 3.2; transform: translate(-50%, 40%);
  border-radius: 50%; border-bottom: 1.5px solid rgba(255, 240, 220, .85); border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 40px -12px rgba(255, 220, 170, .7); pointer-events: none;
}
.sun-cradle::after {
  content: ""; position: absolute; inset: -30% -12%; border-radius: 50%;
  border-bottom: 1px solid rgba(255, 230, 240, .35); transform: rotate(-4deg);
}
.moon {
  position: absolute; left: 0; top: 0; text-decoration: none; text-align: center; will-change: transform;
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 3; transform-origin: 50% 33px;
}
.moon .moon-body { --size: 66px; }
.moon.far .moon-label { opacity: .7; }
.moon-label { transition: opacity .4s; }
.gold-planet { z-index: 2; }
@keyframes bob { 50% { margin-top: -10px; } }
.moon-body {
  width: var(--size, 64px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; position: relative;
  background: radial-gradient(circle at 40% 35%, #fff, #ffe6f3 45%, #ffc7de 80%);
  box-shadow: 0 0 30px rgba(255, 230, 245, .8), 0 0 80px rgba(255, 200, 230, .45);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.moon-body img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.moon:hover .moon-body, .moon:focus-visible .moon-body { transform: scale(1.4); box-shadow: 0 0 40px rgba(255, 240, 250, 1), 0 0 120px rgba(255, 200, 230, .7); }
.moon:hover .moon-body img, .moon:focus-visible .moon-body img { opacity: 1; }
.moon-label { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; white-space: nowrap; text-shadow: 0 0 12px rgba(40, 0, 60, .5); }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.proj-card { text-decoration: none; display: block; overflow: hidden; border-radius: 20px; position: relative; transition: transform .6s var(--ease), box-shadow .6s; }
.proj-card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(10, 0, 30, .45), 0 0 80px rgba(255, 220, 250, .2); }
.proj-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: rgba(255,255,255,.06); display: grid; place-items: center; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.proj-thumb.logo-only { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.18), rgba(255,255,255,.03)); }
.proj-thumb.logo-only img { width: 70%; height: auto; object-fit: contain; }
.proj-card:hover .proj-thumb img { transform: scale(1.05); }
.proj-body { padding: 18px 20px 22px; }
.proj-body .k { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.proj-body h3 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 4px 0 0; letter-spacing: .02em; }

/* ---------------------------------------------- flipbook */
.fb { position: relative; user-select: none; -webkit-user-select: none; }
.fb-stage { position: relative; display: flex; justify-content: center; padding: 10px 0 0; }
.fb-book {
  position: relative; width: var(--bw); height: var(--bh);
  perspective: 2600px; transition: transform .9s var(--ease);
}
.fb-book.at-start { transform: translateX(-25%); }
.fb-book.at-end { transform: translateX(25%); }
.fb-book::before {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -26px; height: 40px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.45), transparent 70%); filter: blur(6px);
}
@property --shade { syntax: "<number>"; inherits: false; initial-value: 0; }
/* two fixed, identical page slots */
.fb-page, .fb-face {
  position: absolute; top: 0; width: 50%; height: 100%; overflow: hidden;
  background: #fff; cursor: pointer;
}
.fb-page img, .fb-face img { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.fb-page.left, .fb-leaf.back { left: 0; }
.fb-page.right, .fb-leaf.fwd { left: 50%; }
.fb-page.left { border-radius: 4px 0 0 4px; box-shadow: -1px 0 0 rgba(0,0,0,.04), -3px 3px 0 -1px #ece6dd, -5px 5px 0 -2px #ddd5ca, 0 24px 50px rgba(10, 0, 30, .35); }
.fb-page.right { border-radius: 0 4px 4px 0; box-shadow: 3px 3px 0 -1px #ece6dd, 5px 5px 0 -2px #ddd5ca, 0 24px 50px rgba(10, 0, 30, .35); }
.fb-page.empty { background: transparent; box-shadow: none; cursor: default; }
/* soft fold in the middle of the spread */
.fb-gutter {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 12%; transform: translateX(-50%); pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.07) 38%, rgba(0,0,0,.18) 50%, rgba(0,0,0,.07) 62%, transparent);
}
.fb-book.at-start .fb-gutter, .fb-book.at-end .fb-gutter { opacity: 0; }
/* the one leaf that turns */
.fb-leaf { position: absolute; top: 0; width: 50%; height: 100%; z-index: 3; transform-style: preserve-3d; pointer-events: none; }
.fb-leaf.fwd { transform-origin: left center; }
.fb-leaf.back { transform-origin: right center; }
.fb-leaf .fb-face { left: 0; width: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fb-leaf .fb-face.back { transform: rotateY(180deg); }
.fb-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--shade); }
.fb-leaf.fwd .fb-face.front::after, .fb-leaf.back .fb-face.back::after { background: linear-gradient(90deg, rgba(0,0,0,.28), transparent 45%, rgba(255,255,255,.15)); }
.fb-leaf.fwd .fb-face.back::after, .fb-leaf.back .fb-face.front::after { background: linear-gradient(270deg, rgba(0,0,0,.28), transparent 45%, rgba(255,255,255,.15)); }
.fb-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.fb-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.08); cursor: pointer; font-size: 20px; display: grid; place-items: center; transition: background .3s, transform .3s; }
.fb-btn:hover:not(:disabled) { background: rgba(255,255,255,.2); transform: scale(1.06); }
.fb-btn:disabled { opacity: .3; cursor: default; }
.fb-count { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; min-width: 120px; text-align: center; color: var(--ink-soft); }
.fb-range { -webkit-appearance: none; appearance: none; width: min(320px, 60vw); height: 2px; background: rgba(255,255,255,.25); border-radius: 2px; outline-offset: 8px; }
.fb-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.8); cursor: pointer; }
.fb-range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.8); cursor: pointer; }
.fb-tip { text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-faint); margin-top: 14px; }
/* single-page mode (phones) */
.fb.single .fb-book { transform: none !important; }
.fb.single .fb-leaf { left: 0; width: 100%; transition: none; }
.fb-mono { position: absolute; inset: 0; perspective: 1800px; }
.fb-mono .pg { position: absolute; inset: 0; background: #f4efe8; border-radius: 4px; overflow: hidden; transform-origin: left center; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.fb-mono .pg img { width: 100%; height: 100%; object-fit: cover; }
.fb-mono .pg.out-next { animation: pgOutNext .55s cubic-bezier(.5,0,.3,1) forwards; z-index: 2; }
.fb-mono .pg.out-prev { animation: pgOutPrev .55s cubic-bezier(.5,0,.3,1) forwards; z-index: 2; transform-origin: right center; }
@keyframes pgOutNext { to { transform: rotateY(-100deg); opacity: .2; } }
@keyframes pgOutPrev { to { transform: rotateY(100deg); opacity: .2; } }

/* ---------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(8, 3, 20, .94); display: grid; place-items: center; animation: fade .3s ease; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-figure { margin: 0; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-figure img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.lb-figure.paper img { background: var(--paper); padding: 4vmin; }
.lb-figure.tall { max-height: 92vh; overflow-y: auto; justify-content: flex-start; padding: 0 6px; scrollbar-width: thin; }
.lb-figure.tall img { max-height: none; width: min(640px, 88vw); max-width: none; flex: none; }

/* newsletters — scrollable email frames */
.sec-intro { text-align: center; color: var(--ink-soft); font-size: 15px; font-weight: 300; max-width: 60ch; margin: -6px auto 26px; }
.mail-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.mail { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(10, 0, 30, .4), 0 0 0 1px rgba(255,255,255,.2); transition: transform .6s var(--ease), box-shadow .6s; }
.mail:hover { transform: translateY(-6px); box-shadow: 0 34px 70px rgba(10, 0, 30, .5), 0 0 60px rgba(255, 220, 250, .2); }
.mail-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f1ede8; border-bottom: 1px solid #e3ddd5; color: #6d655d; }
.mail-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d8cfc5; flex: none; }
.mail-bar span { font-family: var(--mono); font-size: 11px; margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-scroll { height: clamp(380px, 52vh, 520px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cfc5ba transparent; }
.mail-scroll img { width: 100%; cursor: zoom-in; }
.mail figcaption { background: rgba(10, 4, 24, .55); color: var(--ink-soft); font-family: var(--mono); font-size: 12px; padding: 10px 14px; }

/* social carousels */
.carousel-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 380px)); justify-content: center; gap: clamp(20px, 4vw, 48px); }
.carousel { margin: 0; position: relative; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 16px; scrollbar-width: none; aspect-ratio: 4 / 5; box-shadow: 0 24px 60px rgba(10, 0, 30, .4), 0 0 0 1px rgba(255,255,255,.18); }
.car-track::-webkit-scrollbar { display: none; }
.car-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; cursor: zoom-in; }
.car-btn { position: absolute; top: calc(50% - 30px); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #3a3040; font-size: 20px; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.2); transition: opacity .3s, transform .3s; }
.car-btn:hover { transform: scale(1.08); }
.car-btn.prev { left: 10px; } .car-btn.next { right: 10px; }
.carousel.at-start .car-btn.prev, .carousel.at-end .car-btn.next { opacity: 0; pointer-events: none; }
.car-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0 8px; }
.car-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background .3s, transform .3s; }
.car-dots i.on { background: #fff; transform: scale(1.3); box-shadow: 0 0 8px #fff; }
.carousel figcaption { text-align: center; font-size: 14px; color: var(--ink-soft); }
.carousel figcaption strong { color: var(--ink); font-weight: 500; }

.lb-figure figcaption { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 50%; width: 50px; height: 50px; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--ink-faint); }

/* ---------------------------------------------- footer */
.foot { position: relative; z-index: 2; padding: 40px var(--gutter) 50px; display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; max-width: var(--max); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.1); }
.foot p { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: .06em; }
.foot nav { display: flex; gap: 22px; }
.foot a { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); text-decoration: none; letter-spacing: .06em; }
.foot a:hover { color: var(--ink); }

/* ---------------------------------------------- responsive */
@media (max-width: 960px) {
  .resume-grid, .proj-head { grid-template-columns: 1fr; }
  .gallery { --cols: 2 !important; }
  .art-gallery .g-item.wide { grid-column: span 2; }
}
@media (max-width: 760px) {
  .me-hero { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .me-figure { order: -1; width: min(300px, 70vw); }
  .game-row { grid-template-columns: 1fr; gap: 48px; }
  .game-card:nth-child(n) { transform: none; order: 0; }
  .game-art { max-width: 420px; }
  .planet-label { font-size: 12px; }
  .moon-label { font-size: 11px; white-space: normal; max-width: 110px; line-height: 1.3; }
  .home-foot { flex-direction: column; align-items: flex-start; }
  .meta div { grid-template-columns: 1fr; gap: 2px; }
  .fb-controls { gap: 10px; }
  .fb-range { width: 34vw; }
  .fb-count { min-width: 0; width: 100%; }
}
@media (max-width: 520px) {
  .gallery { --cols: 1 !important; }
  .g-item.wide, .art-gallery .g-item.wide { grid-column: span 1; }
  .orbit-stage { min-height: 520px; }
}

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

/* ---------------------------------------------- home core: 3D rotating sphere + ring wrapping it */
.core-orb { overflow: hidden; }
.core-surface {
  position: absolute; top: 0; bottom: 0; left: 0; width: 200%; border-radius: 0;
  background:
    radial-gradient(ellipse 9% 6% at 20% 62%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(ellipse 6% 4% at 64% 30%, rgba(120, 90, 230, .35), transparent 70%),
    radial-gradient(ellipse 11% 4% at 80% 70%, rgba(255, 210, 235, .6), transparent 70%),
    radial-gradient(ellipse 7% 5% at 42% 44%, rgba(160, 200, 255, .45), transparent 70%),
    repeating-linear-gradient(172deg, rgba(255,255,255,0) 0 7%, rgba(255, 236, 248, .38) 7% 10%, rgba(255,255,255,0) 10% 16%, rgba(130, 110, 230, .22) 16% 19%, rgba(255,255,255,0) 19% 26%);
  background-size: 50% 100%; background-repeat: repeat-x;
  filter: blur(2px); mix-blend-mode: soft-light;
  animation: gp-spin 70s linear infinite;
}
.core-light {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 60% 62%, transparent 42%, rgba(70, 50, 170, .22) 78%, rgba(40, 20, 110, .4) 100%);
  box-shadow: inset 0 0 40px rgba(255, 240, 255, .7);
}
.orbit-front { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 6; pointer-events: none; }
.orbit-front path { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(255,255,255,.6)); }
.planet { z-index: 7; }
.planet.behind { z-index: 4; }

/* ---------------------------------------------- graphics project moons (pastel, cratered) */
.moon { --m1: #fff; --m2: #f1edf6; --m3: #d9d3e3; --m4: #b9b1c8; --mc: rgba(150, 140, 170, .22); --mg: rgba(235, 225, 255, .7); }
.moon:nth-of-type(1) { --m2: #ffe3ee; --m3: #f7bfd6; --m4: #d996b8; --mc: rgba(200, 120, 160, .2); --mg: rgba(255, 200, 225, .75); } /* rose */
.moon:nth-of-type(2) { --m2: #e6e0ff; --m3: #c6bbff; --m4: #9d8fe6; --mc: rgba(130, 110, 210, .2); --mg: rgba(205, 195, 255, .75); } /* lavender */
.moon:nth-of-type(3) { --m2: #fff2d9; --m3: #ffdca8; --m4: #e8b46e; --mc: rgba(210, 150, 80, .2); --mg: rgba(255, 225, 175, .75); } /* peach */
.moon:nth-of-type(4) { --m2: #dcf3ff; --m3: #b3defa; --m4: #82b8e0; --mc: rgba(90, 140, 190, .2); --mg: rgba(185, 225, 255, .75); } /* sky */
.moon:nth-of-type(5) { --m2: #dcfaee; --m3: #b2ead6; --m4: #7fc4ab; --mc: rgba(80, 160, 130, .2); --mg: rgba(185, 245, 220, .75); } /* mint */
.moon-body {
  background:
    radial-gradient(circle at 31% 35%, rgba(255,255,255,.35) 0, transparent 9%),
    radial-gradient(circle at 29% 33%, var(--mc) 0, transparent 10%),
    radial-gradient(circle at 63% 59%, rgba(255,255,255,.3) 0, transparent 13%),
    radial-gradient(circle at 61% 57%, var(--mc) 0, transparent 14%),
    radial-gradient(circle at 48% 24%, var(--mc) 0, transparent 7%),
    radial-gradient(circle at 30% 71%, var(--mc) 0, transparent 8%),
    radial-gradient(circle at 75% 35%, var(--mc) 0, transparent 6%),
    radial-gradient(ellipse 40% 30% at 55% 40%, var(--mc), transparent 70%),
    radial-gradient(circle at 38% 34%, var(--m1) 0%, var(--m2) 35%, var(--m3) 70%, var(--m4) 100%);
  box-shadow: inset -7px -6px 14px rgba(90, 70, 130, .3), inset 3px 3px 8px rgba(255,255,255,.8), 0 0 26px var(--mg), 0 0 70px var(--mg);
}
.moon:hover .moon-body, .moon:focus-visible .moon-body { box-shadow: inset -7px -6px 14px rgba(90, 70, 130, .2), 0 0 40px #fff, 0 0 110px var(--mg); }

/* home core: no centre spark, glowing title */
.core-flare { display: none; }
.core-title {
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, .95), 0 0 18px rgba(255, 236, 250, .85), 0 0 40px rgba(255, 200, 240, .7), 0 0 80px rgba(200, 170, 255, .55);
  animation: title-glow 6s ease-in-out infinite;
}
@keyframes title-glow { 50% { text-shadow: 0 0 8px #fff, 0 0 24px rgba(255, 236, 250, .95), 0 0 56px rgba(255, 200, 240, .8), 0 0 110px rgba(200, 170, 255, .65); } }

/* home planet canvas */
.core-surface { display: none; }
.core-canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; opacity: 0; transition: opacity 1.2s ease; }
.core-canvas.ready { opacity: 1; }
.core-orb { box-shadow: 0 0 50px rgba(255, 200, 240, .55), 0 0 140px rgba(190, 160, 255, .5), 0 0 260px rgba(170, 150, 255, .25); }
.core-light {
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 34%);
  box-shadow: inset 0 0 26px rgba(255, 236, 255, .55);
}

/* ---------------------------------------------- performance-friendly layers */
.glass { background: rgba(26, 12, 52, .58); }
.stars { position: absolute; inset: 0; overflow: hidden; }
.star-layer { position: absolute; left: -40px; top: -40px; will-change: transform, opacity; animation: twinkle 5s ease-in-out infinite alternate; }
.star-layer.l1 { animation-duration: 7s; animation-delay: -2s; }
.star-layer.l2 { animation-duration: 3.6s; animation-delay: -1s; }
@keyframes twinkle { from { opacity: 1; } to { opacity: .45; } }
.shooting-star {
  position: absolute; left: var(--x, 50vw); top: var(--y, 10vh); width: 120px; height: 1.5px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff); border-radius: 2px;
  transform-origin: right center; will-change: transform, opacity;
}
.shooting-star.go { animation: shoot 1.1s ease-out forwards; }
@keyframes shoot {
  0% { opacity: 0; transform: rotate(calc(var(--dir, 1) * 28deg)) translateX(0) scaleX(calc(var(--dir, 1))); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: rotate(calc(var(--dir, 1) * 28deg)) translateX(calc(var(--dir, 1) * 320px)) scaleX(calc(var(--dir, 1))); }
}
.core-title { animation: none; }
.core-orb, .me-figure .avatar, .me-figure .cloud, .gold-planet, .moon, .planet { will-change: transform; }
.gp-surface, .gp-halo { will-change: transform, opacity; }
.view { will-change: auto; }
@media (prefers-reduced-motion: reduce) { .star-layer { animation: none; } }

.skill-group + .skill-group { margin-top: 18px; }
.skill-label { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
