:root {
  --night: #050711;
  --deep: #090d20;
  --panel: #0d1430;
  --panel-soft: #111a3d;
  --panel-bright: #182653;
  --line: rgba(170, 192, 255, 0.22);
  --line-bright: rgba(205, 217, 255, 0.52);
  --ink: #f4f0e8;
  --ice: #d9e2ff;
  --soft: #b9c5ea;
  --muted: #94a4cd;
  --dim: #6d7da8;
  --accent: #8ea8ff;
  --accent-bright: #c3d1ff;
  --green: #4ee29b;
  --serif: 'Playfair Display', Georgia, serif;
  --display: 'Cormorant Garamond', Georgia, serif;
  --mono: 'DM Mono', Consolas, monospace;
  --ease: cubic-bezier(.22, .75, .25, 1);
  --dusk: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); overflow-x: hidden; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 10%, rgba(73, 96, 177, .13), transparent 26rem),
    radial-gradient(circle at 15% 70%, rgba(66, 74, 153, .08), transparent 28rem),
    var(--night);
  color: var(--ink);
  font-family: var(--mono);
  line-height: 1.5;
  transition: background-color .5s ease, color .5s ease;
}
body.menu-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
ul, ol, dl { margin: 0; padding: 0; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 12px 16px;
  background: var(--ink);
  color: var(--night);
  font-size: .72rem;
  text-decoration: none;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}

.star-field-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity .6s ease;
}

.floating-star {
  position: absolute;
  color: rgba(200, 212, 240, .4);
  font-size: .5rem;
  animation: twinkle var(--duration, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes twinkle {
  0%, 100% { opacity: .2; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.3); }
}

/* ─── Sky layers: clouds (day), nightfall veil (sunset scroll) ─ */
.sky {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
}
.nightfall {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 78% 10%, rgba(73, 96, 177, .13), transparent 26rem),
    radial-gradient(circle at 15% 70%, rgba(66, 74, 153, .08), transparent 28rem),
    #050711;
  transition: opacity .5s ease;
}
.cloud {
  position: absolute;
  width: 200px;
  height: 52px;
  background: linear-gradient(180deg, #ffffff, #e9f1f8);
  border-radius: 100px;
  opacity: .9;
  box-shadow: 0 0 40px rgba(255, 255, 255, .25);
  will-change: transform;
  animation: cloud-drift linear infinite;
}
.cloud::before, .cloud::after {
  position: absolute;
  background: #f4f8fc;
  border-radius: 50%;
  content: '';
}
.cloud::before { top: -46%; left: 16%; width: 46%; height: 168%; }
.cloud::after { top: -30%; right: 18%; width: 34%; height: 132%; }
.cloud:nth-child(1) { top: 12%; width: 190px; height: 50px; opacity: .9; animation-duration: 66s; animation-delay: -6s; }
.cloud:nth-child(2) { top: 24%; width: 120px; height: 34px; opacity: .68; animation-duration: 96s; animation-delay: -44s; }
.cloud:nth-child(3) { top: 40%; width: 260px; height: 66px; opacity: .82; animation-duration: 78s; animation-delay: -18s; }
.cloud:nth-child(4) { top: 58%; width: 150px; height: 40px; opacity: .6; animation-duration: 112s; animation-delay: -70s; }
.cloud:nth-child(5) { top: 74%; width: 210px; height: 54px; opacity: .75; animation-duration: 88s; animation-delay: -52s; }
.cloud:nth-child(6) { top: 6%; width: 100px; height: 30px; opacity: .5; animation-duration: 130s; animation-delay: -100s; }
@keyframes cloud-drift {
  from { transform: translateX(-42vw); }
  to { transform: translateX(142vw); }
}

body.has-custom-cursor, body.has-custom-cursor * { cursor: none !important; }

.cursor {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  pointer-events: none;
  opacity: 0;
  filter:
    drop-shadow(0 0 6px rgba(200, 212, 240, .9))
    drop-shadow(0 0 14px rgba(160, 185, 255, .7))
    drop-shadow(0 0 28px rgba(120, 150, 255, .45));
  transition: opacity .35s ease, filter .2s ease;
}
.cursor.is-hovering {
  filter:
    drop-shadow(0 0 8px rgba(244, 240, 232, 1))
    drop-shadow(0 0 20px rgba(200, 212, 240, .9))
    drop-shadow(0 0 40px rgba(160, 185, 255, .6));
}
.cursor-ring {
  position: fixed;
  z-index: 9996;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(200, 212, 240, .22);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease, border-color .2s ease, scale .2s ease;
}
.cursor-cross-h, .cursor-cross-v {
  position: fixed;
  z-index: 9997;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  background: rgba(200, 212, 240, .1);
  transition: opacity .35s ease;
}
.cursor-cross-h { width: 100vw; height: 1px; }
.cursor-cross-v { width: 1px; height: 100vh; }

.site-header { position: fixed; z-index: 20; inset: 0 0 auto; }
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 48px;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(5, 7, 17, .9), rgba(5, 7, 17, .42));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: min-height .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled .site-nav {
  min-height: 64px;
  border-color: rgba(170, 192, 255, .13);
  background: rgba(5, 7, 17, .84);
}
.nav-brand, .nav-desktop-links, .nav-desktop-actions { position: relative; z-index: 1; }
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: .02em;
  text-decoration: none;
}
.nav-brand > span:last-child { color: var(--accent-bright); font-size: .8rem; }
.nav-desktop-links { display: flex; align-items: center; gap: clamp(18px, 3.1vw, 46px); margin-left: 8vw; }
.nav-desktop-links a, .nav-cta, .availability {
  color: var(--soft);
  font-size: .63rem;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-desktop-links a { position: relative; padding: 8px 0; }
.nav-desktop-links a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: '';
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-desktop-links a:hover, .nav-desktop-links a:focus-visible { color: var(--ink); }
.nav-desktop-links a:hover::after, .nav-desktop-links a:focus-visible::after, .nav-desktop-links a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.nav-desktop-actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.availability { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .55rem; letter-spacing: .1em; white-space: nowrap; }
.availability-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(78, 226, 155, .09); }
.nav-cta { padding: 9px 12px; border: 1px solid var(--line); color: var(--ice); transition: border-color .25s ease, background .25s ease, color .25s ease; }
.nav-cta:hover { border-color: var(--ink); background: var(--ink); color: var(--night); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 1px; background: currentColor; transition: transform .25s var(--ease); }
.nav-toggle span + span { margin-top: 7px; }
.nav-toggle[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 64px 0 0;
  z-index: 19;
  overflow: auto;
  background: rgba(5, 7, 17, .98);
  border-top: 1px solid var(--line);
}
.mobile-menu-inner { display: grid; gap: 0; padding: 32px 24px 48px; }
.mobile-menu-label { margin: 0 0 16px; color: var(--dim); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; }
.mobile-menu a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(170, 192, 255, .13);
  color: var(--ink);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}
.mobile-menu a span { color: var(--accent); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; }
.mobile-menu .mobile-menu-cta { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--accent); color: var(--ice); font-family: var(--mono); font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; }

main, .site-footer { position: relative; z-index: 1; }
section { scroll-margin-top: 92px; }
.hero {
  display: grid;
  align-items: center;
  min-height: max(800px, 100svh);
  padding: 128px 48px 82px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr); gap: 46px; width: min(1400px, 100%); margin: auto; }
.hero-copy { align-self: center; max-width: 660px; }
.eyebrow, .section-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow span { width: 40px; height: 1px; background: var(--accent); }
.hero-name { max-width: 720px; margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(4.6rem, 8.6vw, 8.5rem); font-weight: 700; letter-spacing: -.065em; line-height: .78; }
.hero-name em { display: inline-block; margin-top: .09em; color: var(--accent-bright); font-style: italic; font-weight: 600; }
.hero-role { max-width: 510px; margin: 34px 0 0; color: var(--ice); font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 2rem); font-style: italic; line-height: 1.13; }
.hero-desc { max-width: 530px; margin: 25px 0 0; color: var(--soft); font-size: .78rem; letter-spacing: .02em; line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 0 20px; font-size: .65rem; font-weight: 500; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; transition: transform .25s var(--ease), background .25s ease, border-color .25s ease, color .25s ease; }
.button span { font-size: 1rem; line-height: 0; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--ink); border: 1px solid var(--ink); color: var(--night); box-shadow: 0 14px 34px rgba(1, 2, 10, .26); }
.button-primary:hover { background: var(--ice); border-color: var(--ice); }
.button-secondary { border: 1px solid var(--line-bright); color: var(--ice); background: rgba(11, 17, 40, .38); }
.button-secondary:hover { border-color: var(--ink); background: rgba(217, 226, 255, .08); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 560px; margin: 42px 0 0; }
.hero-facts div { padding-top: 14px; border-top: 1px solid var(--line); }
.hero-facts dt { margin-bottom: 6px; color: var(--dim); font-size: .51rem; letter-spacing: .16em; text-transform: uppercase; }
.hero-facts dd { color: var(--soft); font-family: var(--display); font-size: 1rem; line-height: 1.3; }
.hero-art { position: relative; min-height: 610px; isolation: isolate; }
.moon-decoration {
  position: absolute;
  top: 50%;
  left: 52%;
  z-index: 1;
  width: min(42vw, 600px);
  aspect-ratio: 1;
  border: 1px solid rgba(209, 222, 255, .22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 35%, rgba(255, 255, 255, .31), transparent 3.5%),
    radial-gradient(circle at 36% 35%, rgba(214, 223, 255, .21), transparent 22%),
    radial-gradient(circle at 52% 42%, rgba(126, 146, 210, .13), transparent 45%),
    radial-gradient(circle at 65% 70%, rgba(69, 91, 172, .13), transparent 56%),
    linear-gradient(145deg, #3a466e 0%, #1e2948 38%, #0c1024 78%);
  box-shadow: 0 0 45px rgba(135, 161, 255, .24), 0 0 130px rgba(88, 112, 220, .18), inset -52px -42px 70px rgba(0, 0, 0, .5);
  transform: translate(-50%, -50%);
  animation: moonFloat 8s ease-in-out infinite;
}
@keyframes moonFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(calc(-50% - 10px), -52%); }
}
.moon-decoration::after { position: absolute; inset: 7%; border: 1px solid rgba(224, 234, 255, .08); border-radius: 50%; content: ''; }
.moon-crater { position: absolute; border-radius: 50%; background: rgba(3, 5, 15, .12); box-shadow: inset 3px 3px 8px rgba(0, 0, 0, .18); }
.crater-one { top: 20%; right: 22%; width: 11%; height: 11%; }
.crater-two { bottom: 18%; left: 27%; width: 6%; height: 6%; }
.crater-three { top: 50%; left: 17%; width: 4%; height: 4%; }
.orbit { position: absolute; top: 50%; left: 52%; border: 1px solid rgba(171, 191, 255, .16); border-radius: 50%; transform: translate(-50%, -50%) rotate(-20deg); }
.orbit-outer { width: min(51vw, 718px); height: min(19vw, 268px); }
.orbit-inner { width: min(47vw, 660px); height: min(35vw, 480px); transform: translate(-50%, -50%) rotate(54deg); opacity: .5; }
.hero-art-note { position: absolute; z-index: 2; color: var(--soft); font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; }
.note-top { top: 14%; right: 0; }
.note-bottom { bottom: 18%; left: 1%; }
.note-bottom span { margin-left: 7px; color: var(--accent-bright); }

.section { width: min(1496px, 100%); margin: 0 auto; padding: 140px 48px; }
.section-heading { max-width: 790px; }
.split-heading { display: flex; align-items: end; justify-content: space-between; max-width: none; gap: 50px; }
.section-kicker span { color: var(--dim); }
.section h2 { max-width: 820px; margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5.4rem); letter-spacing: -.055em; line-height: .92; }
.section h2 em { color: var(--accent-bright); font-style: italic; font-weight: 600; }
.section-intro { max-width: 365px; margin: 0 0 5px; color: var(--soft); font-family: var(--display); font-size: 1.25rem; font-style: italic; line-height: 1.35; }

.project-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; margin-top: 66px; }
.project-card { position: relative; display: grid; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(15, 23, 54, .93), rgba(8, 12, 29, .92)); color: var(--ink); text-decoration: none; transition: transform .45s var(--ease), border-color .35s ease, box-shadow .45s ease; }
.project-card::before { position: absolute; z-index: 0; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-bright), transparent); content: ''; opacity: 0; transition: opacity .35s ease; }
.project-card:hover, .project-card:focus-visible { z-index: 2; border-color: rgba(212, 224, 255, .58); box-shadow: 0 30px 70px rgba(0, 0, 0, .24), 0 0 60px rgba(85, 116, 220, .11); transform: translateY(-7px); outline: none; }
.project-card:hover::before, .project-card:focus-visible::before { opacity: 1; }
.project-card-featured { grid-column: span 12; grid-template-columns: minmax(330px, .92fr) minmax(450px, 1.08fr); min-height: 540px; }
.project-card-half { grid-column: span 6; grid-template-columns: minmax(0, 1fr); min-height: 610px; }
.project-card-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 34px; }
.project-card-topline { display: flex; justify-content: space-between; width: 100%; gap: 16px; color: var(--muted); font-size: .53rem; letter-spacing: .15em; text-transform: uppercase; }
.project-card-topline span:last-child { color: var(--accent); white-space: nowrap; }
.project-type { margin: auto 0 11px; color: var(--accent); font-size: .58rem; letter-spacing: .17em; text-transform: uppercase; }
.project-card h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.45rem); letter-spacing: -.05em; line-height: .91; }
.project-summary { max-width: 420px; margin: 18px 0 0; color: var(--soft); font-size: .71rem; line-height: 1.9; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin-top: 25px; }
.project-tags li { padding: 5px 9px; border: 1px solid rgba(142, 168, 255, .42); color: var(--ice); font-size: .54rem; letter-spacing: .06em; }
.project-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 25px; padding-bottom: 4px; border-bottom: 1px solid var(--accent); color: var(--ink); font-size: .58rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.project-link b { font-size: 1rem; font-weight: 400; line-height: 0; transition: transform .25s ease; }
.project-card:hover .project-link b { transform: translateX(5px); }
.project-visual { position: relative; min-height: 280px; overflow: hidden; }
.project-visual-studysynth { display: flex; align-items: center; justify-content: center; min-height: 100%; padding: 36px; background: radial-gradient(circle at 45% 45%, rgba(99, 118, 221, .27), transparent 40%), linear-gradient(135deg, #101a3a, #090d1d); }
.project-visual-studysynth::after { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(5, 7, 17, .14), transparent 40%, rgba(142, 168, 255, .08)); content: ''; pointer-events: none; }
.visual-frame { position: relative; z-index: 1; width: 100%; overflow: hidden; border: 1px solid rgba(203, 217, 255, .36); box-shadow: 0 30px 70px rgba(0, 0, 0, .42), 0 0 40px rgba(127, 152, 255, .11); transform: perspective(1300px) rotateY(-8deg) rotateX(3deg); transition: transform .6s var(--ease); }
.project-card:hover .visual-frame { transform: perspective(1300px) rotateY(-2deg) rotateX(0); }
.visual-frame img { width: 100%; height: auto; object-fit: cover; }
.visual-caption { position: absolute; z-index: 2; right: 29px; bottom: 27px; color: var(--soft); font-size: .53rem; letter-spacing: .16em; text-transform: uppercase; }
.project-visual-experiment { min-height: 280px; margin: 0; background: radial-gradient(circle at 52% 38%, rgba(156, 42, 88, .38), transparent 8%), radial-gradient(circle at 55% 52%, rgba(106, 27, 68, .31), transparent 30%), linear-gradient(145deg, #221129, #0b0d18 68%); }
.experiment-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(194, 164, 214, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(194, 164, 214, .10) 1px, transparent 1px); background-size: 31px 31px; mask-image: linear-gradient(to bottom, black, transparent); }
.experiment-scanline { position: absolute; top: 0; bottom: 0; left: 25%; width: 1px; background: rgba(245, 200, 219, .4); box-shadow: 90px 0 0 rgba(245, 200, 219, .09), 180px 0 0 rgba(245, 200, 219, .08); }
.experiment-hud { position: absolute; top: 20px; right: 21px; left: 21px; display: flex; justify-content: space-between; color: #f1b9cb; font-size: .53rem; letter-spacing: .17em; }
.experiment-target { position: absolute; top: 50%; left: 50%; width: 100px; height: 100px; border: 1px solid rgba(245, 185, 205, .55); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 17px rgba(245, 185, 205, .06), 0 0 38px rgba(255, 63, 142, .21); }
.experiment-target::before, .experiment-target::after { position: absolute; top: 50%; left: -20px; width: 138px; height: 1px; background: rgba(245, 185, 205, .45); content: ''; }
.experiment-target::after { transform: rotate(90deg); }
.project-visual-experiment p { position: absolute; bottom: 21px; left: 21px; margin: 0; color: #ecc5da; font-family: var(--display); font-size: 1.35rem; font-style: italic; }
.project-visual-dinema { position: relative; min-height: 280px; overflow: hidden; background: radial-gradient(circle at 50% 32%, rgba(255, 214, 140, .16), transparent 55%), linear-gradient(160deg, #1c1332 0%, #0b0d1f 72%); }
.dinema-glow { position: absolute; top: 16%; left: 50%; width: 130px; height: 130px; background: radial-gradient(circle, rgba(255, 224, 168, .55), transparent 70%); filter: blur(2px); transform: translateX(-50%); transition: transform .7s var(--ease), opacity .7s var(--ease); }
.project-card:hover .dinema-glow { transform: translateX(-50%) scale(1.18); opacity: .85; }
.dinema-stars { position: absolute; inset: 0; }
.dinema-stars span { position: absolute; color: rgba(255, 224, 168, .7); font-size: .55rem; }
.dinema-stars span:nth-child(1) { top: 20%; left: 22%; }
.dinema-stars span:nth-child(2) { top: 32%; left: 76%; font-size: .48rem; }
.dinema-stars span:nth-child(3) { top: 58%; left: 14%; font-size: .42rem; }
.dinema-stars span:nth-child(4) { top: 70%; left: 80%; font-size: .58rem; }
.dinema-stars span:nth-child(5) { top: 42%; left: 50%; font-size: .38rem; }
.dinema-mark { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 280px; padding: 0 30px; color: var(--ink); font-family: var(--display); font-size: 1.9rem; font-style: italic; font-weight: 600; line-height: 1.2; text-align: center; text-shadow: 0 0 34px rgba(255, 214, 140, .35); }
.project-visual-dinema > span { position: absolute; z-index: 1; bottom: 21px; left: 22px; color: var(--ice); font-size: .55rem; letter-spacing: .15em; text-transform: uppercase; }

.design-principles { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: end; gap: 70px; }
.principles-intro h2 { font-size: clamp(2.4rem, 4vw, 4.5rem); }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.principle-card { min-height: 250px; padding: 28px 23px; background: rgba(10, 15, 34, .88); }
.principle-card > span { display: block; color: var(--accent); font-size: .58rem; letter-spacing: .15em; }
.principle-card h3 { margin: 63px 0 14px; color: var(--ink); font-family: var(--display); font-size: 1.7rem; font-weight: 600; line-height: 1; }
.principle-card p { margin: 0; color: var(--soft); font-size: .65rem; line-height: 1.8; }

.section-experience { padding-top: 110px; }
.experience-list { margin-top: 58px; border-top: 1px solid var(--line); }
.experience-item { display: grid; grid-template-columns: minmax(175px, .36fr) minmax(0, 1fr); gap: 58px; padding: 43px 0; border-bottom: 1px solid var(--line); transition: background .3s ease; }
.experience-item:hover { background: rgba(142, 168, 255, .045); }
.experience-meta { display: grid; align-content: start; gap: 9px; color: var(--muted); font-size: .59rem; letter-spacing: .11em; line-height: 1.6; text-transform: uppercase; }
.experience-meta span:last-child { color: var(--dim); }
.experience-role { margin: 0 0 5px; color: var(--accent); font-size: .59rem; letter-spacing: .15em; text-transform: uppercase; }
.experience-main h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(1.3rem, 1.7vw, 1.7rem); letter-spacing: -.02em; line-height: 1.15; }
.experience-main > p:not(.experience-role) { max-width: 670px; margin: 17px 0 0; color: var(--soft); font-size: .72rem; line-height: 1.95; }

.section-skills { display: grid; grid-template-columns: minmax(250px, .76fr) minmax(0, 1.24fr); align-items: start; gap: 90px; }
.skills-copy { position: sticky; top: 130px; }
.skills-copy > p:not(.section-kicker) { max-width: 405px; margin: 28px 0 0; color: var(--soft); font-family: var(--display); font-size: 1.24rem; font-style: italic; line-height: 1.43; }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.capability-card { min-height: 265px; padding: 25px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(16, 25, 59, .78), rgba(8, 12, 29, .78)); transition: border-color .3s ease, transform .3s var(--ease), background .3s ease; }
.capability-card:hover { border-color: var(--line-bright); background: linear-gradient(145deg, rgba(28, 42, 92, .88), rgba(9, 13, 31, .9)); transform: translateY(-4px); }
.capability-card p { margin: 0; color: var(--accent); font-size: .55rem; letter-spacing: .14em; text-transform: uppercase; }
.capability-card h3 { margin: 47px 0 18px; color: var(--ink); font-family: var(--display); font-size: 1.78rem; font-weight: 600; line-height: 1; }
.capability-card ul { display: grid; gap: 7px; list-style: none; color: var(--soft); font-size: .65rem; }
.capability-card li::before { margin-right: 8px; color: var(--accent); content: '✦'; font-size: .48rem; }

.toolkit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px 60px; }
.toolkit-group { padding-top: 18px; border-top: 1px solid var(--line); }
.toolkit-label { margin: 0 0 22px; color: var(--accent); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; }
.toolkit-list { display: grid; gap: 20px; list-style: none; }
.toolkit-row { display: grid; gap: 9px; }
.toolkit-name { color: var(--ink); font-family: var(--display); font-size: 1.05rem; }
.toolkit-bar { position: relative; display: block; height: 2px; background: var(--line); overflow: hidden; }
.toolkit-bar span { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); transition: width 1.1s var(--ease); }
.reveal.is-visible .toolkit-bar span { width: var(--level, 0%); }

.section-art { padding-top: 105px; }
.art-grid { display: grid; grid-template-columns: 1.08fr 1fr 1fr; grid-auto-rows: 250px; gap: 13px; margin-top: 60px; }
.art-card { position: relative; display: block; overflow: hidden; padding: 0; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: zoom-in; text-align: left; transition: border-color .3s ease, transform .4s var(--ease), box-shadow .4s ease; }
.art-card:hover, .art-card:focus-visible { z-index: 1; border-color: var(--line-bright); box-shadow: 0 24px 45px rgba(0, 0, 0, .3), 0 0 35px rgba(114, 143, 246, .13); outline: none; transform: translateY(-5px); }
.art-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.art-card:hover img, .art-card:focus-visible img { transform: scale(1.055); }
.art-card::after { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 6, 17, .9), rgba(4, 6, 17, .08) 55%, transparent); content: ''; pointer-events: none; }
.art-card span { position: absolute; z-index: 1; right: 18px; bottom: 17px; left: 18px; color: var(--ink); font-family: var(--display); font-size: 1.45rem; font-style: italic; font-weight: 600; line-height: .95; }
.art-card small { display: block; margin-bottom: 7px; color: var(--accent-bright); font-family: var(--mono); font-size: .5rem; font-style: normal; letter-spacing: .15em; }
.art-card-tall { grid-row: span 2; }
.art-card-wide { grid-column: span 2; }

.section-about { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(45px, 8vw, 135px); }
.about-portrait { position: relative; overflow: hidden; max-width: 570px; border: 1px solid var(--line); background: var(--panel); }
.about-portrait::before { position: absolute; z-index: 1; inset: 14px; border: 1px solid rgba(233, 240, 255, .25); content: ''; pointer-events: none; }
.about-portrait img { width: 100%; aspect-ratio: .91; object-fit: cover; object-position: 50% 22%; filter: brightness(1.12) contrast(1.05) saturate(1.08); }
.portrait-note { position: absolute; z-index: 2; top: 26px; right: 25px; padding: 6px 9px; background: var(--accent-bright); color: var(--night); font-size: .52rem; letter-spacing: .14em; text-transform: uppercase; }
.about-content > p:not(.section-kicker) { max-width: 530px; margin: 16px 0 0; color: var(--soft); font-size: .78rem; letter-spacing: .02em; line-height: 1.95; }
.about-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 640px; margin-top: 42px; }
.about-facts div { padding-top: 15px; border-top: 1px solid var(--line); }
.about-facts span { display: block; margin-bottom: 7px; color: var(--dim); font-size: .55rem; letter-spacing: .15em; text-transform: uppercase; }
.about-facts strong { color: var(--ice); font-family: var(--display); font-size: 1.05rem; font-weight: 500; }

.contact-section { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); gap: 70px; overflow: hidden; margin-bottom: 30px; padding-top: 125px; padding-bottom: 125px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(24, 37, 83, .78), rgba(9, 13, 33, .9)); }
.contact-section::before { position: absolute; inset: 0; background: radial-gradient(circle at 72% 52%, rgba(136, 157, 255, .17), transparent 21rem); content: ''; pointer-events: none; }
.contact-copy, .contact-actions { position: relative; z-index: 1; }
.contact-copy > p:not(.section-kicker) { max-width: 490px; margin: 29px 0 0; color: var(--soft); font-family: var(--display); font-size: 1.32rem; font-style: italic; line-height: 1.42; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; justify-content: end; padding-bottom: 10px; }
.contact-email { max-width: 100%; padding-bottom: 13px; border-bottom: 1px solid var(--accent-bright); color: var(--ink); font-family: var(--display); font-size: clamp(1.65rem, 3.5vw, 2.7rem); font-style: italic; font-weight: 600; line-height: 1; text-decoration: none; overflow-wrap: anywhere; transition: color .2s ease; }
.contact-email:hover { color: var(--accent-bright); }
.contact-email span { display: inline-block; font-family: var(--mono); font-size: .75em; font-style: normal; transition: transform .25s var(--ease); }
.contact-email:hover span { transform: translate(4px, -4px); }
.copy-email { margin-top: 16px; padding: 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--soft); cursor: pointer; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; transition: border-color .2s ease, color .2s ease; }
.copy-email:hover { border-color: var(--accent); color: var(--ink); }
.contact-socials { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 46px; }
.contact-socials a { color: var(--soft); font-size: .6rem; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.contact-socials a:hover { color: var(--ink); }
.contact-socials span { color: var(--accent); }
.contact-orbit { position: absolute; top: 50%; right: -150px; width: 430px; height: 430px; border: 1px solid rgba(195, 209, 255, .2); border-radius: 50%; transform: translateY(-50%); box-shadow: 0 0 0 64px rgba(154, 173, 255, .025), 0 0 100px rgba(123, 145, 255, .12); }

.site-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1496px, 100%); margin: 0 auto; padding: 30px 48px 38px; color: var(--muted); font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; }
.art-dialog { width: min(1080px, 92vw); max-height: 90vh; overflow: auto; padding: 0; border: 1px solid rgba(211, 223, 255, .35); background: #080c1c; color: var(--ink); box-shadow: 0 35px 100px rgba(0, 0, 0, .68), 0 0 70px rgba(113, 141, 249, .14); }
.art-dialog::backdrop { background: rgba(3, 5, 14, .78); backdrop-filter: blur(8px); }
.art-dialog img { width: 100%; max-height: 72vh; object-fit: contain; background: #070a18; }
.dialog-close { position: absolute; z-index: 2; top: 17px; right: 18px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(225, 233, 255, .5); border-radius: 50%; background: rgba(5, 7, 17, .7); color: var(--ink); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.dialog-close:hover { background: var(--ink); color: var(--night); }
.art-dialog-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 24px 22px; }
.art-dialog-caption span { color: var(--accent); font-size: .55rem; letter-spacing: .15em; text-transform: uppercase; }
.art-dialog-caption h3 { margin: 0; font-family: var(--display); font-size: 1.8rem; font-style: italic; }
.toast { position: fixed; z-index: 80; right: 20px; bottom: 20px; max-width: calc(100vw - 40px); padding: 12px 16px; border: 1px solid var(--line-bright); background: var(--panel-bright); color: var(--ink); font-size: .62rem; letter-spacing: .08em; opacity: 0; pointer-events: none; transform: translateY(15px); transition: opacity .25s ease, transform .25s var(--ease); }
.toast.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor .cursor,
  body.has-custom-cursor .cursor-ring,
  body.has-custom-cursor .cursor-cross-h,
  body.has-custom-cursor .cursor-cross-v { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .site-nav { padding: 0 30px; }
  .nav-desktop-links { gap: 21px; margin-left: 4vw; }
  .availability { display: none; }
  .hero, .section { padding-right: 30px; padding-left: 30px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(390px, .8fr); }
  .hero-art { min-height: 530px; }
  .moon-decoration { width: min(47vw, 510px); }
  .orbit-outer { width: min(53vw, 610px); }
  .orbit-inner { width: min(48vw, 550px); }
  .project-card-featured { grid-template-columns: minmax(300px, .85fr) minmax(380px, 1.15fr); }
  .design-principles, .section-skills { gap: 44px; }
  .site-footer { padding-right: 30px; padding-left: 30px; }
}

@media (max-width: 900px) {
  .nav-desktop-links, .nav-desktop-actions { display: none; }
  .nav-toggle { display: block; padding: 12px 0 12px 12px; }
  .hero { min-height: auto; padding-top: 150px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: 700px; }
  .hero-art { min-height: 360px; max-width: 650px; width: 100%; margin: -65px auto 0; }
  .moon-decoration { width: min(70vw, 500px); left: 52%; }
  .orbit-outer { width: min(86vw, 650px); height: min(32vw, 245px); }
  .orbit-inner { width: min(79vw, 590px); height: min(50vw, 370px); }
  .note-top { top: 11%; right: 5%; }
  .note-bottom { bottom: 10%; left: 5%; }
  .scroll-cue { display: none; }
  .split-heading { display: grid; gap: 22px; }
  .section-intro { max-width: 590px; }
  .project-card-featured { grid-template-columns: 1fr; }
  .project-card-featured .project-visual { order: -1; min-height: 350px; }
  .project-card-half { grid-column: span 12; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 400px; }
  .project-card-half .project-visual { min-height: 100%; }
  .project-card-half .project-card-content { padding: 30px; }
  .project-card-half .project-type { margin-top: 38px; }
  .design-principles { grid-template-columns: 1fr; }
  .principles-grid { max-width: 760px; }
  .section-skills { grid-template-columns: 1fr; }
  .skills-copy { position: static; }
  .toolkit-grid { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }
  .section-about { grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr); gap: 40px; }
  .contact-section { grid-template-columns: 1fr; gap: 54px; }
}

@media (max-width: 640px) {
  .site-nav { min-height: 64px; padding: 0 24px; }
  .site-header.is-scrolled .site-nav { min-height: 60px; }
  .nav-brand { font-size: 1.08rem; }
  .mobile-menu { inset: 60px 0 0; }
  .hero, .section { padding-right: 24px; padding-left: 24px; }
  .hero { padding-top: 116px; padding-bottom: 65px; }
  .hero-name { font-size: clamp(4.05rem, 18vw, 5.5rem); letter-spacing: -.07em; }
  .hero-role { margin-top: 25px; font-size: 1.45rem; }
  .hero-desc { margin-top: 19px; font-size: .7rem; line-height: 1.85; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
  .button { min-height: 54px; padding: 0 12px; font-size: .57rem; line-height: 1.5; text-align: center; }
  .button span { display: none; }
  .hero-facts { gap: 14px; margin-top: 30px; }
  .hero-facts div { padding-top: 11px; }
  .hero-facts dd { font-size: .88rem; }
  .hero-art { min-height: 260px; margin-top: -35px; }
  .moon-decoration { width: min(86vw, 410px); }
  .orbit-outer { width: 95vw; height: 36vw; }
  .orbit-inner { width: 85vw; height: 53vw; }
  .hero-art-note { font-size: .48rem; }
  .section { padding-top: 90px; padding-bottom: 90px; }
  .section h2 { font-size: clamp(2.65rem, 12vw, 4rem); }
  .section-kicker, .eyebrow { font-size: .53rem; }
  .section-intro { font-size: 1.12rem; }
  .project-grid { gap: 14px; margin-top: 42px; }
  .project-card-featured, .project-card-half { display: flex; flex-direction: column; grid-column: span 12; min-height: auto; }
  .project-card-featured .project-visual, .project-card-half .project-visual { order: 0; min-height: 230px; }
  .project-card-content, .project-card-half .project-card-content { min-height: 388px; padding: 25px 24px 24px; }
  .project-card-featured .project-card-content { order: 1; }
  .project-card-half .project-card-content { order: 1; }
  .project-card-topline { font-size: .47rem; }
  .project-card-topline span:last-child { display: none; }
  .project-card h3 { font-size: 2.45rem; }
  .project-type, .project-card-half .project-type { margin-top: auto; }
  .project-summary { font-size: .66rem; }
  .visual-frame { transform: none; }
  .visual-caption { right: 15px; bottom: 13px; font-size: .45rem; }
  .project-visual-experiment { min-height: 230px; }
  .project-visual-experiment p { left: 17px; bottom: 16px; font-size: 1.15rem; }
  .project-visual-dinema, .dinema-mark { min-height: 230px; }
  .dinema-mark { padding: 0 20px; font-size: 1.6rem; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 192px; padding: 23px; }
  .principle-card h3 { margin-top: 38px; }
  .experience-list { margin-top: 41px; }
  .experience-item { grid-template-columns: 1fr; gap: 20px; padding: 31px 0; }
  .experience-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; font-size: .52rem; }
  .experience-main > p:not(.experience-role) { font-size: .67rem; }
  .section-skills { gap: 38px; }
  .skills-copy > p:not(.section-kicker) { font-size: 1.14rem; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 220px; }
  .capability-card h3 { margin-top: 35px; }
  .art-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 215px; gap: 9px; margin-top: 39px; }
  .art-card-tall { grid-row: span 2; }
  .art-card-wide { grid-column: span 2; }
  .art-card span { right: 12px; bottom: 12px; left: 12px; font-size: 1.15rem; }
  .section-about { grid-template-columns: 1fr; gap: 38px; }
  .about-portrait { max-width: none; }
  .about-portrait img { aspect-ratio: 1.1; }
  .about-content > p:not(.section-kicker) { font-size: .73rem; }
  .about-facts { grid-template-columns: 1fr; gap: 10px; margin-top: 30px; }
  .contact-section { margin-bottom: 0; padding-top: 85px; padding-bottom: 85px; }
  .contact-copy > p:not(.section-kicker) { font-size: 1.17rem; }
  .contact-email { font-size: clamp(1.46rem, 8vw, 2rem); }
  .contact-socials { margin-top: 34px; }
  .site-footer { flex-direction: column; padding: 26px 24px 34px; font-size: .49rem; line-height: 1.7; }
  .art-dialog { width: 96vw; }
  .art-dialog img { max-height: 68vh; }
  .art-dialog-caption { display: block; padding: 16px 18px 19px; }
  .art-dialog-caption h3 { margin-top: 6px; font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cursor, .cursor-ring, .cursor-cross-h, .cursor-cross-v { display: none; }
  /* keep clouds parked in place instead of snapping off-screen */
  .sky .cloud { animation: none !important; transform: none !important; }
  .cloud:nth-child(1) { left: 8vw; }
  .cloud:nth-child(2) { left: 66vw; }
  .cloud:nth-child(3) { left: 30vw; }
  .cloud:nth-child(4) { left: 78vw; }
  .cloud:nth-child(5) { left: 48vw; }
  .cloud:nth-child(6) { left: 88vw; }
}

@media print {
  #stars-canvas, .star-field-overlay, .sky, .site-header, .scroll-cue, .cursor, .cursor-ring, .cursor-cross-h, .cursor-cross-v, .art-dialog, .toast { display: none !important; }
  body { background: #fff; color: #111; }
  .hero, .section { min-height: auto; padding: 32px; break-inside: avoid; }
}

/* ─── Theme toggle button ────────────────────────────────────── */
.theme-toggle {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: rgba(11, 17, 40, .55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: transform .3s var(--ease), border-color .25s ease, background .25s ease;
}
.theme-toggle:hover { transform: rotate(22deg); border-color: var(--ink); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 4px; }

/* ─── Day theme (clear blue sky) ─────────────────────────────── */
:root[data-theme="day"] {
  --night: #d3e7f7;
  --deep: #e4eef9;
  --panel: #e0ebf7;
  --panel-soft: #d7e6f4;
  --panel-bright: #cadff1;
  --line: rgba(40, 70, 110, .20);
  --line-bright: rgba(28, 52, 88, .42);
  --ink: #16263b;
  --ice: #2c4157;
  --soft: #3d5064;
  --muted: #556880;
  --dim: #71869c;
  --accent: #2e6dae;
  --accent-bright: #b86c14;
  --green: #1f8f57;
}

:root[data-theme="day"] body {
  background: linear-gradient(180deg, #b7d9f2 0%, #d0e5f6 46%, #e2eef8 100%) fixed;
  transition: background-color .5s ease, color .5s ease;
}

:root[data-theme="day"] #stars-canvas,
:root[data-theme="day"] .star-field-overlay,
:root[data-theme="day"] .nightfall { opacity: 0; }
:root[data-theme="day"] .sky { opacity: 1; }

:root[data-theme="day"] .cursor {
  filter:
    drop-shadow(0 0 6px rgba(255, 210, 130, .9))
    drop-shadow(0 0 14px rgba(255, 180, 90, .55))
    drop-shadow(0 0 28px rgba(255, 160, 70, .35));
}
:root[data-theme="day"] .cursor-ring { border-color: rgba(40, 80, 130, .4); }
:root[data-theme="day"] .cursor-cross-h,
:root[data-theme="day"] .cursor-cross-v { background: rgba(30, 60, 100, .12); }

:root[data-theme="day"] .site-nav {
  background: linear-gradient(to bottom, rgba(214, 233, 248, .9), rgba(214, 233, 248, .4));
}
:root[data-theme="day"] .site-header.is-scrolled .site-nav { background: rgba(214, 233, 248, .85); }
:root[data-theme="day"] .mobile-menu { background: rgba(210, 230, 246, .98); }
:root[data-theme="day"] .mobile-menu a { border-bottom-color: rgba(40, 70, 110, .16); }

:root[data-theme="day"] .button-secondary { background: rgba(255, 255, 255, .4); }
:root[data-theme="day"] .portrait-note { background: var(--ink); color: var(--night); }

/* moon -> golden sun */
:root[data-theme="day"] .moon-decoration {
  border-color: rgba(255, 214, 150, .6);
  background:
    radial-gradient(circle at 42% 40%, rgba(255, 255, 255, .98), transparent 14%),
    radial-gradient(circle at 46% 44%, rgba(255, 246, 220, .9), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(255, 216, 140, .95), transparent 64%),
    radial-gradient(circle at 50% 50%, rgba(255, 190, 95, .6), transparent 80%),
    linear-gradient(145deg, #ffe6ac 0%, #ffd083 45%, #f8b657 100%);
  box-shadow:
    0 0 70px rgba(255, 220, 150, .65),
    0 0 170px rgba(255, 198, 110, .5),
    0 0 320px rgba(255, 178, 80, .28);
}
:root[data-theme="day"] .moon-decoration::after { border-color: rgba(255, 236, 195, .4); }
:root[data-theme="day"] .moon-crater { opacity: 0; }
:root[data-theme="day"] .orbit { border-color: rgba(255, 255, 255, .38); }

:root[data-theme="day"] .project-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(226, 238, 250, .66));
}
:root[data-theme="day"] .project-visual-studysynth {
  background:
    radial-gradient(circle at 45% 45%, rgba(255, 214, 140, .26), transparent 42%),
    linear-gradient(135deg, #dcebf8, #cadff1);
}
:root[data-theme="day"] .visual-frame { border-color: rgba(40, 70, 110, .28); }

:root[data-theme="day"] .principle-card { background: rgba(255, 255, 255, .66); }
:root[data-theme="day"] .experience-item:hover { background: rgba(46, 109, 174, .06); }
:root[data-theme="day"] .capability-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .62), rgba(224, 236, 248, .6));
}
:root[data-theme="day"] .capability-card:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(214, 230, 246, .74));
}

:root[data-theme="day"] .art-card::after {
  background: linear-gradient(to top, rgba(230, 240, 250, .92), rgba(230, 240, 250, .1) 55%, transparent);
}
:root[data-theme="day"] .about-portrait::before { border-color: rgba(30, 55, 90, .25); }

:root[data-theme="day"] .contact-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, .6), rgba(220, 234, 248, .74));
}
:root[data-theme="day"] .contact-section::before {
  background: radial-gradient(circle at 72% 52%, rgba(255, 214, 150, .2), transparent 21rem);
}
:root[data-theme="day"] .contact-orbit { border-color: rgba(40, 80, 130, .22); }

:root[data-theme="day"] .art-dialog { background: #e4eef9; }
:root[data-theme="day"] .art-dialog::backdrop { background: rgba(20, 40, 65, .55); }
:root[data-theme="day"] .art-dialog img { background: #d7e6f4; }
:root[data-theme="day"] .dialog-close {
  border-color: rgba(40, 70, 110, .4);
  background: rgba(230, 240, 250, .8);
}

:root[data-theme="day"] .theme-toggle { background: rgba(255, 255, 255, .72); }

/* ─── Sunset theme (evening — auto-only, darkens to night on scroll) ─ */
:root[data-theme="sunset"] {
  --ink: #fdf3ea;
  --ice: #ffe9d6;
  --soft: #f2d9c6;
  --muted: #d8b6a8;
  --dim: #bd9a92;
  --accent: #ff9e6b;
  --accent-bright: #ffd0a2;
  --line: rgba(255, 205, 175, .20);
  --line-bright: rgba(255, 222, 198, .48);
  --panel: #241733;
  --panel-soft: #2c1c3d;
  --panel-bright: #3a2550;
}

:root[data-theme="sunset"] body {
  background: linear-gradient(180deg,
    #4a3568 0%,
    #6d3b60 18%,
    #8f4557 34%,
    #9e5344 50%,
    #7a4048 66%,
    #472c44 80%,
    #221a30 91%,
    #0c0c18 100%) fixed;
}

/* nightfall veil + star field driven by scroll progress (--dusk: 0 → 1) */
:root[data-theme="sunset"] .nightfall { opacity: var(--dusk); }
:root[data-theme="sunset"] .sky { opacity: calc(1 - var(--dusk)); }
:root[data-theme="sunset"] #stars-canvas,
:root[data-theme="sunset"] .star-field-overlay { opacity: var(--dusk); }

:root[data-theme="sunset"] .cloud {
  background: linear-gradient(180deg, #ffe7d4, #ffc39c);
  box-shadow: 0 0 46px rgba(255, 150, 110, .35);
}
:root[data-theme="sunset"] .cloud::before,
:root[data-theme="sunset"] .cloud::after { background: #ffd9c0; }

:root[data-theme="sunset"] .cursor {
  filter:
    drop-shadow(0 0 6px rgba(255, 190, 120, .9))
    drop-shadow(0 0 14px rgba(255, 140, 90, .55))
    drop-shadow(0 0 28px rgba(240, 100, 90, .4));
}
:root[data-theme="sunset"] .cursor-ring { border-color: rgba(255, 190, 160, .35); }

:root[data-theme="sunset"] .site-nav {
  background: linear-gradient(to bottom, rgba(30, 18, 34, .9), rgba(30, 18, 34, .4));
}
:root[data-theme="sunset"] .site-header.is-scrolled .site-nav { background: rgba(20, 14, 26, .84); }
:root[data-theme="sunset"] .mobile-menu { background: rgba(24, 16, 30, .98); }

/* moon -> sunset sun */
:root[data-theme="sunset"] .moon-decoration {
  border-color: rgba(255, 200, 140, .55);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 250, 238, .98), transparent 12%),
    radial-gradient(circle at 50% 50%, rgba(255, 214, 150, .95), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(255, 150, 90, .9), transparent 66%),
    radial-gradient(circle at 50% 50%, rgba(240, 110, 80, .55), transparent 82%),
    linear-gradient(160deg, #ffdca0 0%, #ff9e5c 50%, #f56b4b 100%);
  box-shadow:
    0 0 90px rgba(255, 170, 110, .7),
    0 0 220px rgba(255, 130, 90, .5),
    0 0 400px rgba(230, 90, 120, .3);
}
:root[data-theme="sunset"] .moon-decoration::after { border-color: rgba(255, 224, 190, .4); }
:root[data-theme="sunset"] .moon-crater { opacity: 0; }
:root[data-theme="sunset"] .orbit { border-color: rgba(255, 215, 195, .32); }

:root[data-theme="sunset"] .project-card {
  background: linear-gradient(145deg, rgba(48, 30, 58, .92), rgba(20, 14, 28, .92));
}
:root[data-theme="sunset"] .principle-card { background: rgba(40, 26, 52, .82); }
:root[data-theme="sunset"] .experience-item:hover { background: rgba(255, 158, 107, .05); }
:root[data-theme="sunset"] .capability-card {
  background: linear-gradient(145deg, rgba(48, 32, 60, .8), rgba(20, 14, 28, .82));
}
:root[data-theme="sunset"] .capability-card:hover {
  background: linear-gradient(145deg, rgba(64, 42, 78, .88), rgba(22, 15, 30, .9));
}
:root[data-theme="sunset"] .contact-section {
  background: linear-gradient(135deg, rgba(74, 44, 74, .7), rgba(16, 14, 30, .88));
}
:root[data-theme="sunset"] .theme-toggle { background: rgba(40, 24, 44, .6); }
