:root {
  --bg: #05030b;
  --panel: #0b0a16;
  --panel-soft: #111022;
  --text: #f3f5ff;
  --muted: #9ea5d3;
  --line: #222040;
  --accent: #00e5ff;
  --accent-soft: #00a9bf;
  --accent-2: #ff2bd6;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 6%, rgba(0, 229, 255, 0.13) 0%, transparent 36%),
    radial-gradient(circle at 92% 10%, rgba(255, 43, 214, 0.14) 0%, transparent 32%),
    radial-gradient(circle at top, #0b0b1a 0%, var(--bg) 44%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.035) 0.65px, transparent 0.65px);
  background-size: 3px 3px;
  opacity: 0.5;
}

body.performance-mode::before {
  opacity: 0.08;
}

body.effects-mode::before {
  opacity: 0.72;
}

body.performance-mode .home-shutter-mark,
body.performance-mode .logo-orbit,
body.performance-mode .interactive-logo::before,
body.performance-mode .tool-card::before,
body.performance-mode .spinner-ring::before,
body.performance-mode .spinner-ring::after,
body.performance-mode .hero-tile,
body.performance-mode .thumb.cover,
body.performance-mode .video-thumb img {
  animation: none !important;
}

body.performance-mode .home-shutter-bg {
  display: none;
}

body.performance-mode .hero-collage {
  display: none;
}

body.performance-mode .home-shutter-mark {
  display: none;
}

body.performance-mode .hero::before {
  background: linear-gradient(180deg, rgba(8, 8, 20, 0.42) 10%, rgba(4, 3, 11, 0.92) 78%);
}

body.performance-mode .hero {
  background: linear-gradient(135deg, #090817, #05030b);
}

body.performance-mode .card,
body.performance-mode .list-item,
body.performance-mode .button,
body.performance-mode .hero-tile,
body.performance-mode .thumb.cover,
body.performance-mode .video-thumb img,
body.performance-mode .interactive-logo img,
body.performance-mode .tool-strip span {
  transition: none !important;
}

body.performance-mode .card:hover,
body.performance-mode .list-item:hover,
body.performance-mode .button:hover,
body.performance-mode .tool-strip span:hover,
body.performance-mode .hero-tile:hover,
body.performance-mode .card:hover .thumb.cover,
body.performance-mode .video-thumb:hover img {
  transform: none !important;
  box-shadow: none !important;
}

body.performance-mode .shutter-spinner img,
body.performance-mode .interactive-logo img,
body.performance-mode .tool-logo,
body.performance-mode .home-shutter-mark,
body.performance-mode .spinner-ring,
body.performance-mode .button::before {
  filter: none !important;
  box-shadow: none !important;
}

body.performance-mode .button::before,
body.performance-mode .shutter-spinner-wrap::before {
  display: none;
}

body.performance-mode .spinner-ring {
  background: transparent;
}

html[data-performance-mode="on"] .perf-toggle::after {
  content: " - lighter";
}

html[data-performance-mode="off"] .perf-toggle::after {
  content: " - full fx";
}

body.effects-mode .home-shutter-mark {
  opacity: 0.22;
  filter: drop-shadow(0 0 58px rgba(0, 229, 255, 0.42)) drop-shadow(0 0 110px rgba(255, 43, 214, 0.22));
}

body.effects-mode .card:hover {
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(0, 229, 255, 0.24), 0 0 26px rgba(255, 43, 214, 0.14);
}

body.effects-mode .hero-content {
  box-shadow: 0 0 34px rgba(0, 229, 255, 0.12);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", "Avenir Next", sans-serif;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: 1rem;
}

.top-nav-inner {
  background: rgba(9, 8, 18, 0.8);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: "Sora", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: contain;
  background: transparent;
}

.nav-links {
  display: flex;
  gap: 0.62rem;
  align-items: center;
}

.nav-link {
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
  transition: color 160ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  border-radius: 10px;
  padding: 0.42rem 0.65rem;
  font-size: 0.85rem;
}

.perf-toggle {
  position: fixed;
  right: 1rem;
  top: 5.2rem;
  z-index: 80;
  border: 1px solid #343163;
  border-radius: 999px;
  color: #dffbff;
  background: rgba(8, 8, 18, 0.88);
  backdrop-filter: blur(10px);
  padding: 0.58rem 0.78rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.perf-toggle:hover,
.perf-toggle.active {
  border-color: #00d7ff;
  background: #00e5ff;
  color: #041018;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.28);
}

.mobile-menu {
  display: none;
  margin-top: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #090814;
  padding: 0.8rem;
}

.mobile-menu a {
  display: block;
  color: var(--muted);
  padding: 0.55rem 0.2rem;
}

.mobile-menu a.active {
  color: var(--text);
}

.page-header {
  padding: 4.5rem 0 2rem;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
  margin-bottom: 0.6rem;
}

.page-header h1 {
  font-size: clamp(2rem, 6.8vw, 4.5rem);
  max-width: 12ch;
}

.page-header p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) {
  background:
    radial-gradient(circle at 14% 12%, rgba(0, 229, 255, 0.14), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(255, 43, 214, 0.14), transparent 24%),
    linear-gradient(180deg, #090814 0%, #05040b 100%);
}

body[data-page="process"] {
  background:
    radial-gradient(circle at 18% 10%, rgba(0, 229, 255, 0.16), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(255, 43, 214, 0.12), transparent 26%),
    linear-gradient(180deg, #07101b 0%, #05040b 100%);
}

body[data-page="blog"] {
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 43, 214, 0.14), transparent 26%),
    radial-gradient(circle at 84% 8%, rgba(0, 229, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #10081a 0%, #05040b 100%);
}

body[data-page="impact"] {
  background:
    radial-gradient(circle at 20% 12%, rgba(0, 229, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(77, 255, 160, 0.12), transparent 24%),
    linear-gradient(180deg, #071217 0%, #05040b 100%);
}

body[data-page="artist"] {
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 43, 214, 0.16), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(0, 229, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #130814 0%, #05040b 100%);
}

body[data-page="tools"] {
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 229, 255, 0.16), transparent 30%),
    radial-gradient(circle at 78% 14%, rgba(139, 123, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #080d1b 0%, #05040b 100%);
}

body[data-page="quiz"] {
  background:
    radial-gradient(circle at 20% 12%, rgba(0, 229, 255, 0.14), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 43, 214, 0.14), transparent 24%),
    linear-gradient(180deg, #08101a 0%, #05040b 100%);
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .top-nav-inner {
  background:
    linear-gradient(180deg, rgba(7, 8, 20, 0.88) 0%, rgba(8, 7, 18, 0.82) 100%);
  border-color: rgba(82, 80, 132, 0.58);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.08), 0 16px 42px rgba(0, 0, 0, 0.38);
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) main.container {
  position: relative;
  padding-bottom: 4rem;
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) main.container::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 18rem;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 229, 255, 0.16), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(255, 43, 214, 0.12), transparent 26%);
  filter: blur(10px);
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .page-header {
  position: relative;
  overflow: hidden;
  margin-top: 1.4rem;
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.2rem, 3vw, 2.1rem) clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(69, 66, 111, 0.7);
  border-radius: 32px;
  background:
    linear-gradient(140deg, rgba(7, 9, 24, 0.94) 0%, rgba(8, 8, 18, 0.88) 52%, rgba(5, 5, 11, 0.84) 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 229, 255, 0.06);
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(0, 229, 255, 0.2), transparent 26%),
    radial-gradient(circle at 18% 74%, rgba(255, 43, 214, 0.16), transparent 28%);
  pointer-events: none;
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .page-header::after {
  content: "";
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  top: clamp(1rem, 2vw, 1.5rem);
  width: clamp(9rem, 20vw, 16rem);
  aspect-ratio: 1;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at 35% 35%, rgba(0, 229, 255, 0.18), transparent 45%);
  transform: rotate(12deg);
  opacity: 0.7;
  pointer-events: none;
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .page-header > * {
  position: relative;
  z-index: 1;
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .page-header h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.9;
  max-width: 11ch;
  letter-spacing: -0.04em;
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .page-header p {
  max-width: 54rem;
  color: #d6daf8;
  font-size: 1.02rem;
  line-height: 1.75;
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .section {
  position: relative;
  overflow: hidden;
  margin-top: 1.4rem;
  border-color: rgba(62, 59, 103, 0.8);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(12, 11, 28, 0.96) 0%, rgba(8, 8, 18, 0.94) 100%);
  padding: clamp(1.15rem, 2.2vw, 1.6rem);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.06), transparent 24%, transparent 78%, rgba(255, 43, 214, 0.05)),
    radial-gradient(circle at 88% 14%, rgba(0, 229, 255, 0.09), transparent 24%);
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .section > * {
  position: relative;
  z-index: 1;
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .card,
body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .list-item,
body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .quiz-form,
body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .quiz-result-card,
body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .admin-login,
body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .admin-panel {
  border-color: rgba(70, 66, 116, 0.72);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(10, 10, 24, 0.98) 0%, rgba(7, 7, 16, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 18px 40px rgba(0, 0, 0, 0.26);
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .card:hover,
body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .list-item:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(0, 229, 255, 0.34);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(0, 229, 255, 0.12);
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .thumb,
body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .embed,
body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .video-thumb {
  border-radius: 18px;
  overflow: hidden;
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .thumb.cover::after,
body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 5, 14, 0.04), rgba(5, 5, 12, 0.44));
  pointer-events: none;
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .card-copy,
body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .list-item {
  padding: 1.05rem;
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .card-copy h3,
body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .list-item h4 {
  font-size: 1.04rem;
  line-height: 1.25;
}

body:not([data-page="home"]):not([data-page="work"]):not([data-page="admin"]):not([data-page="intro"]) .footer {
  margin-top: 1.6rem;
  padding: 1.4rem 0 2.4rem;
  color: #aeb4d8;
}

body[data-page="home"] {
  --home-shutter-x: 0px;
  --home-shutter-y: 0px;
  --home-shutter-rotate: -13deg;
}

.home-shutter-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.home-shutter-mark {
  position: absolute;
  aspect-ratio: 764 / 700;
  background-image: url("assets/on-tape-shutter-transparent.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 46px rgba(0, 229, 255, 0.32)) drop-shadow(0 0 90px rgba(255, 43, 214, 0.15));
  transform: translate3d(var(--home-shutter-x), var(--home-shutter-y), 0) rotate(var(--home-shutter-rotate));
  animation: homeShutterDrift 12s ease-in-out infinite;
}

.mark-one {
  width: min(56vw, 650px);
  top: -10vh;
  right: -10vw;
  opacity: 0.16;
}

.mark-two {
  width: min(30vw, 360px);
  left: -9vw;
  top: 50vh;
  opacity: 0.1;
  transform: translate3d(calc(var(--home-shutter-x) * -0.55), calc(var(--home-shutter-y) * 0.5), 0) rotate(18deg);
  animation-duration: 15s;
  animation-delay: -4s;
}

.mark-three {
  width: min(28vw, 330px);
  right: 10vw;
  top: 88vh;
  opacity: 0.11;
  transform: translate3d(calc(var(--home-shutter-x) * 0.35), calc(var(--home-shutter-y) * -0.4), 0) rotate(-28deg);
  animation-duration: 18s;
  animation-delay: -7s;
}

.hero {
  position: relative;
  min-height: calc(100vh - 8rem);
  border: 1px solid #26234e;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  align-items: end;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0.35rem;
  padding: 0.35rem;
}

.hero-tile {
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  filter: saturate(0.95) contrast(0.95);
  transition: transform 240ms ease, filter 240ms ease;
}

.hero-tile:hover {
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.02) brightness(1.02);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(0, 229, 255, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(8, 8, 20, 0.34) 10%, rgba(4, 3, 11, 0.88) 78%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(1.3rem, 3vw, 3rem);
  display: grid;
  gap: 0.9rem;
  max-width: 860px;
  background: linear-gradient(90deg, rgba(3, 3, 10, 0.78) 0%, rgba(3, 3, 10, 0.42) 52%, rgba(3, 3, 10, 0.08) 100%);
  border-radius: 14px;
}

@keyframes homeShutterDrift {
  50% {
    transform: translate3d(calc(var(--home-shutter-x) + 14px), calc(var(--home-shutter-y) - 12px), 0) rotate(calc(var(--home-shutter-rotate) + 5deg)) scale(1.04);
  }
}

.hero h1 {
  font-size: clamp(2.2rem, 8.6vw, 5.8rem);
  max-width: 11ch;
}

.hero p {
  color: #d6d6d6;
  max-width: 58ch;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-start;
  align-content: flex-start;
}

.button {
  display: inline-block;
  position: relative;
  z-index: 0;
  align-self: flex-start;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.05rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow: hidden;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(90deg, #00d7ff 0%, #00f2ff 48%, #6df8ff 100%);
  color: #041018;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35), 0 8px 20px rgba(0, 0, 0, 0.32);
}

.button.primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.52), 0 12px 24px rgba(0, 0, 0, 0.38);
}

.button.ghost {
  border-color: #4b46a0;
  background: linear-gradient(135deg, rgba(16, 14, 36, 0.82) 0%, rgba(12, 11, 30, 0.66) 100%);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.06);
}

.button.ghost:hover {
  border-color: #00c9ff;
  color: #eafcff;
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.24), 0 0 14px rgba(0, 229, 255, 0.18);
}

.button::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -72px;
  width: 44px;
  height: 160%;
  z-index: -1;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transition: left 360ms ease;
}

.button:hover::before {
  left: calc(100% + 42px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.section {
  margin: 1rem auto 0;
  border: 1px solid #272450;
  border-radius: 18px;
  background: linear-gradient(180deg, #0f0e1f 0%, #0a0916 100%);
  padding: 1.1rem;
}

.grid {
  display: grid;
  gap: 0.9rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  border: 1px solid #2a2751;
  border-radius: 14px;
  background: #0a0915;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  border-color: #4a47a2;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(0, 229, 255, 0.16);
}

.thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2f2b58 0%, #090914 100%);
  position: relative;
}

.thumb.cover {
  background-size: cover;
  background-position: center;
  transition: transform 260ms ease, filter 260ms ease;
}

.card:hover .thumb.cover {
  transform: scale(1.04);
  filter: saturate(1.06);
}

.thumb span {
  position: absolute;
  left: 0.8rem;
  bottom: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2f2f2;
}

.card-copy {
  padding: 0.9rem;
  display: grid;
  gap: 0.45rem;
}

.card-copy h3 {
  font-size: 1rem;
}

.card-copy p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.meta {
  color: #c8ccf2;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.list {
  display: grid;
  gap: 0.8rem;
}

.list-item {
  position: relative;
  border: 1px solid #2a2750;
  border-radius: 12px;
  padding: 0.9rem;
  background: #090815;
}

.list-item h4 {
  font-size: 0.96rem;
  margin-bottom: 0.35rem;
}

.list-item p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.93rem;
}

.list-item a {
  color: var(--text);
}

.embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #2d2a57;
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-thumb {
  position: relative;
  display: block;
  border-bottom: 1px solid #242424;
  overflow: hidden;
}

.video-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.video-thumb span {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  padding: 0.32rem 0.58rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease;
}

.video-thumb:hover img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.video-thumb:hover span {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.85);
}

.split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.work-preview-shell {
  align-items: center;
}

.work-preview-embed {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 229, 255, 0.12);
}

body[data-page="work"] {
  background:
    radial-gradient(circle at 20% 12%, rgba(0, 229, 255, 0.14), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(255, 43, 214, 0.14), transparent 24%),
    linear-gradient(180deg, #080714 0%, #05040b 100%);
}

.work-3d-shell {
  perspective: 1400px;
  overflow-x: clip;
}

.work-stage {
  min-height: 128vh;
  position: relative;
}

.work-stage-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 7rem 0 3rem;
}

.work-stage-hero .work-stage-sticky {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
}

.work-stage-copy {
  max-width: 38rem;
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.work-stage-copy h1,
.work-stage-copy h2 {
  font-size: clamp(2.8rem, 7vw, 6.6rem);
  line-height: 0.92;
  max-width: 10ch;
}

.work-stage-copy.compact h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.work-stage-copy p {
  color: #d6daf8;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.work-stage-stack,
.work-panel-visual {
  position: relative;
  min-height: 72vh;
  transform-style: preserve-3d;
}

.work-float-card,
.work-panel-screen,
.work-mini-card,
.work-archive-card {
  border: 1px solid rgba(94, 94, 140, 0.42);
  border-radius: 26px;
  background: rgba(9, 8, 22, 0.84);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  transform-style: preserve-3d;
}

.work-float-card {
  position: absolute;
  overflow: hidden;
}

.work-float-main {
  inset: 6% 8% 8% 10%;
  transform: translate3d(0, var(--work-depth-shift, 0px), 120px) rotateY(-12deg) rotateX(6deg);
}

.work-float-side {
  width: 15rem;
  min-height: 12rem;
}

.work-float-side.left {
  left: 0;
  top: 9%;
  transform: translate3d(-40px, var(--work-depth-shift, 0px), -20px) rotateY(26deg) rotateX(-4deg);
}

.work-float-side.right {
  right: 0;
  bottom: 9%;
  transform: translate3d(30px, var(--work-depth-shift, 0px), 10px) rotateY(-24deg) rotateX(5deg);
}

.work-float-thumb {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(89, 89, 124, 0.32);
}

.work-float-thumb.tall {
  aspect-ratio: 16 / 9;
}

.work-float-copy {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.work-float-copy h3 {
  font-size: 1rem;
}

.work-float-copy p:not(.meta) {
  color: var(--muted);
  line-height: 1.55;
}

.work-scene-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.8rem;
  align-items: center;
}

.work-scene-panel.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.work-scene-panel.reverse .work-panel-copy {
  order: 2;
}

.work-panel-copy {
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.work-panel-copy h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  max-width: 10ch;
}

.work-panel-copy p {
  color: #d7dbf4;
  line-height: 1.7;
  max-width: 32rem;
}

.work-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.work-tag-row span {
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 999px;
  padding: 0.55rem 0.82rem;
  background: rgba(5, 8, 18, 0.7);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eefcff;
}

.work-panel-screen {
  position: absolute;
  inset: 8% 12% auto 8%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  transform: translate3d(0, var(--work-depth-shift, 0px), 100px) rotateY(-14deg) rotateX(7deg);
}

.work-panel-screen.hot {
  transform: translate3d(0, var(--work-depth-shift, 0px), 110px) rotateY(14deg) rotateX(5deg);
}

.work-mini-card {
  position: absolute;
  z-index: 2;
  width: 16rem;
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
}

.work-mini-card.top {
  top: 6%;
  right: 0;
  transform: translate3d(0, var(--work-depth-shift, 0px), 170px) rotateY(-18deg) rotateX(4deg);
}

.work-mini-card.bottom {
  left: 0;
  bottom: 14%;
  transform: translate3d(0, var(--work-depth-shift, 0px), 160px) rotateY(16deg) rotateX(-3deg);
}

.work-mini-card p:not(.meta) {
  color: #d7dbf4;
  line-height: 1.55;
}

.work-stage-archive .work-stage-sticky {
  align-items: start;
  padding-top: 10rem;
}

.work-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.work-archive-card {
  overflow: hidden;
  transform: translateY(var(--work-depth-shift, 0px));
}

.work-archive-card .work-float-copy {
  padding: 1.1rem;
}

@media (max-width: 950px) {
  .work-stage {
    min-height: auto;
  }

  .work-stage-sticky {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 7rem 0 4rem;
  }

  .work-stage-hero .work-stage-sticky,
  .work-scene-panel,
  .work-scene-panel.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .work-scene-panel.reverse .work-panel-copy {
    order: initial;
  }

  .work-stage-copy,
  .work-panel-copy {
    max-width: 42rem;
  }

  .work-stage-copy h1,
  .work-stage-copy h2,
  .work-panel-copy h2 {
    max-width: 12ch;
  }

  .work-stage-stack,
  .work-panel-visual {
    min-height: 34rem;
  }

  .work-stage-archive .work-stage-sticky {
    padding-top: 7rem;
  }
}

@media (max-width: 560px) {
  .work-stage-sticky {
    width: min(var(--max), calc(100% - 1.25rem));
    padding: 6rem 0 3rem;
  }

  .work-stage-stack {
    min-height: 27rem;
  }

  .work-panel-visual {
    min-height: 24rem;
  }

  .work-stage-copy h1,
  .work-stage-copy h2,
  .work-panel-copy h2 {
    max-width: none;
  }

  .work-panel-screen,
  .work-panel-screen.hot {
    inset: 9% 0 auto;
    transform: translate3d(0, var(--work-depth-shift, 0px), 20px) rotateY(-5deg) rotateX(2deg);
  }

  .work-mini-card {
    width: min(13rem, 62vw);
    padding: 0.8rem;
  }

  .work-mini-card.top {
    top: 0;
    transform: translate3d(0, var(--work-depth-shift, 0px), 80px) rotateY(-7deg) rotateX(2deg);
  }

  .work-mini-card.bottom {
    bottom: 0;
    transform: translate3d(0, var(--work-depth-shift, 0px), 80px) rotateY(7deg) rotateX(-2deg);
  }

  .work-float-side {
    width: 11rem;
    min-height: 9rem;
  }

  .work-float-side.left {
    transform: translate3d(-12px, var(--work-depth-shift, 0px), -10px) rotateY(12deg) rotateX(-2deg);
  }

  .work-float-side.right {
    transform: translate3d(12px, var(--work-depth-shift, 0px), 10px) rotateY(-12deg) rotateX(3deg);
  }
}

.video-preview-trigger {
  position: absolute;
  inset: 0;
  border: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #090914;
}

.video-preview-trigger::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 12, 0.1), rgba(3, 4, 11, 0.62)),
    radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.16), transparent 30%);
}

.video-preview-play {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  color: #f5fbff;
  background: rgba(5, 7, 18, 0.72);
  font-family: "Sora", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.18);
}

.stack {
  display: grid;
  gap: 0.9rem;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.quiz-form,
.quiz-result-card {
  border: 1px solid #2a2751;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(10, 9, 21, 0.98) 0%, rgba(8, 8, 18, 0.98) 100%);
  padding: 1rem;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.field span {
  color: #d7dbff;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #343163;
  border-radius: 12px;
  background: rgba(13, 12, 27, 0.94);
  color: var(--text);
  font: inherit;
  padding: 0.82rem 0.9rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8d93bf;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #00cfff;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.18), 0 0 18px rgba(0, 229, 255, 0.12);
  transform: translateY(-1px);
}

.quiz-result-card {
  position: sticky;
  top: 6.2rem;
  gap: 0.9rem;
  display: grid;
}

.quiz-placeholder {
  color: var(--muted);
  line-height: 1.6;
}

.quiz-output {
  margin: 0;
  white-space: pre-wrap;
  font: 500 0.95rem/1.65 "Manrope", "Segoe UI", sans-serif;
  color: #edf1ff;
  background: rgba(8, 10, 23, 0.95);
  border: 1px solid #302d5c;
  border-radius: 14px;
  padding: 1rem;
}

.shutter-spinner-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: center;
}

.shutter-spinner-wrap {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  border: 1px solid #2f2c62;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 229, 255, 0.18), transparent 34%),
    radial-gradient(circle at 52% 52%, rgba(255, 43, 214, 0.12), transparent 48%),
    linear-gradient(145deg, rgba(8, 7, 19, 0.92), rgba(12, 10, 30, 0.96));
  overflow: hidden;
}

.shutter-spinner-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.055) 0.8px, transparent 0.8px);
  background-size: 9px 9px;
  mask-image: radial-gradient(circle, #000 30%, transparent 72%);
}

.spinner-pointer {
  position: absolute;
  top: 1.1rem;
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 24px solid #00e5ff;
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.78));
  z-index: 3;
}

.shutter-spinner {
  position: relative;
  width: min(66vw, 260px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
  transform: rotate(0deg);
  transition: transform 3.2s cubic-bezier(0.12, 0.78, 0.08, 1);
  will-change: transform;
}

.shutter-spinner.is-spinning {
  transition: transform 3.2s cubic-bezier(0.08, 0.78, 0.08, 1);
}

.shutter-spinner img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(0, 229, 255, 0.28));
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.36);
  background:
    conic-gradient(
      from 0deg,
      rgba(0, 229, 255, 0.42) 0deg 18deg,
      transparent 18deg 44deg,
      rgba(255, 43, 214, 0.36) 44deg 62deg,
      transparent 62deg 94deg,
      rgba(255, 255, 255, 0.2) 94deg 104deg,
      transparent 104deg 360deg
    );
  box-shadow: inset 0 0 26px rgba(0, 229, 255, 0.12), 0 0 36px rgba(0, 229, 255, 0.18);
}

.spinner-ring::before,
.spinner-ring::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.spinner-ring::after {
  inset: 28px;
  border-color: rgba(255, 43, 214, 0.28);
  transform: rotate(18deg);
}

.spinner-centre {
  position: absolute;
  z-index: 2;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #041018;
  background: linear-gradient(90deg, #00d7ff, #6df8ff);
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.36);
  transform: rotate(0deg);
  transition: transform 3.2s cubic-bezier(0.12, 0.78, 0.08, 1);
  pointer-events: none;
}

.spinner-result-card {
  border: 1px solid #2d2a57;
  border-radius: 16px;
  padding: 1rem;
  background: rgba(8, 8, 18, 0.78);
  display: grid;
  gap: 0.55rem;
}

.spinner-prize-note {
  width: fit-content;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  color: #dcfaff;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(255, 43, 214, 0.08));
  font-size: 0.9rem;
}

.spinner-mode-switch {
  width: fit-content;
  display: flex;
  gap: 0.35rem;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 999px;
  padding: 0.28rem;
  background: rgba(5, 6, 16, 0.76);
  box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.08);
}

.spinner-mode-button {
  border: 0;
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  color: var(--muted);
  background: transparent;
  font-family: "Sora", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.spinner-mode-button:hover {
  color: #eafcff;
  transform: translateY(-1px);
}

.spinner-mode-button.active {
  color: #051019;
  background: linear-gradient(90deg, #00d7ff, #6df8ff);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.28);
}

.spinner-result-card h3 {
  font-size: clamp(1.3rem, 3.2vw, 2.2rem);
}

.spinner-result-card p:not(.meta) {
  color: var(--muted);
  line-height: 1.55;
}

.discount-claim {
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 14px;
  padding: 0.9rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(255, 43, 214, 0.08));
  display: grid;
  gap: 0.65rem;
}

.discount-claim[hidden] {
  display: none;
}

.discount-message {
  color: #dcfaff;
  font-size: 0.9rem;
}

.certificate-download[hidden] {
  display: none;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 3rem 0;
}

.admin-login,
.admin-panel {
  border: 1px solid #2d2a57;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 229, 255, 0.18), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(255, 43, 214, 0.16), transparent 30%),
    linear-gradient(180deg, #0f0e1f 0%, #090814 100%);
  padding: clamp(1rem, 3vw, 2rem);
}

.admin-login {
  width: min(520px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.admin-login img {
  width: 84px;
  filter: drop-shadow(0 0 22px rgba(0, 229, 255, 0.25));
}

.admin-form {
  display: grid;
  gap: 0.65rem;
}

.admin-error {
  color: #ff8fcb;
}

.admin-panel {
  display: grid;
  gap: 1rem;
}

.admin-panel[hidden],
.admin-login[hidden] {
  display: none;
}

.admin-grid {
  margin-top: 1rem;
}

.interactive-logo-panel {
  --logo-x: 50%;
  --logo-y: 50%;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: center;
  min-height: 320px;
  border-radius: 16px;
  overflow: hidden;
  padding: 1.1rem;
  background:
    radial-gradient(circle at var(--logo-x) var(--logo-y), rgba(0, 229, 255, 0.28), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 43, 214, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(8, 8, 23, 0.96), rgba(13, 10, 31, 0.96));
  border: 1px solid #2c2a5c;
}

.interactive-logo {
  position: relative;
  min-height: 250px;
  display: grid;
  place-items: center;
  isolation: isolate;
  transform-style: preserve-3d;
}

.interactive-logo::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(circle, #000 58%, transparent 70%);
  animation: logoPulse 3.2s ease-in-out infinite;
}

.interactive-logo::after {
  content: "ON-TAPE";
  position: absolute;
  bottom: 0.55rem;
  font-family: "Sora", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  color: #bdf8ff;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.58);
}

.interactive-logo img {
  width: min(48vw, 190px);
  aspect-ratio: 1;
  object-fit: contain;
  position: relative;
  z-index: 2;
  background: transparent;
  box-shadow:
    0 0 54px rgba(0, 229, 255, 0.28),
    0 24px 42px rgba(0, 0, 0, 0.48);
  filter: drop-shadow(0 0 24px rgba(0, 229, 255, 0.25));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.logo-orbit {
  position: absolute;
  width: 222px;
  height: 222px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.52);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.16);
  animation: logoOrbit 7s linear infinite;
}

.logo-orbit::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 30px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #00e5ff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.85);
}

.logo-orbit-two {
  width: 270px;
  height: 170px;
  border-color: rgba(255, 43, 214, 0.48);
  transform: rotate(-18deg);
  animation-duration: 9s;
  animation-direction: reverse;
}

.logo-orbit-two::before {
  top: 20px;
  left: 190px;
  background: #ff2bd6;
  box-shadow: 0 0 20px rgba(255, 43, 214, 0.8);
}

.interactive-logo-panel:hover .interactive-logo img {
  transform: translateZ(24px) scale(1.04) rotate(-1deg);
  box-shadow: 0 0 0 1px rgba(255, 43, 214, 0.32), 0 0 58px rgba(0, 229, 255, 0.38), 0 24px 44px rgba(0, 0, 0, 0.5);
}

@keyframes logoOrbit {
  to {
    rotate: 360deg;
  }
}

@keyframes logoPulse {
  50% {
    transform: scale(1.08);
    opacity: 0.72;
  }
}

.tool-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.tool-card {
  position: relative;
  min-height: 100%;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 48%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.tool-card:hover::before {
  transform: translateX(120%);
}

.tool-logo {
  min-height: 142px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #29264f;
  position: relative;
  overflow: hidden;
}

.tool-logo::before,
.tool-logo::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.72;
  transition: transform 260ms ease, opacity 260ms ease;
}

.tool-logo::before {
  width: 92px;
  height: 92px;
  background: rgba(255, 255, 255, 0.1);
}

.tool-logo::after {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.16);
  transform: translate(34px, -22px);
}

.tool-card:hover .tool-logo::before {
  transform: scale(1.12) rotate(12deg);
  opacity: 0.95;
}

.tool-card:hover .tool-logo::after {
  transform: translate(42px, -28px) scale(1.08);
}

.tool-logo span {
  position: relative;
  z-index: 1;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.resolve-logo {
  background:
    radial-gradient(circle at 34% 35%, #36a4ff 0%, transparent 26%),
    radial-gradient(circle at 66% 35%, #ff3d64 0%, transparent 26%),
    radial-gradient(circle at 50% 68%, #ffe74f 0%, transparent 30%),
    linear-gradient(135deg, #071428 0%, #10102a 100%);
}

.blender-logo {
  background:
    radial-gradient(circle at 44% 47%, #ffffff 0%, #ffffff 11%, transparent 12%),
    radial-gradient(circle at 44% 47%, #ff7a00 0%, #ff7a00 32%, transparent 33%),
    linear-gradient(135deg, #351300 0%, #10102a 100%);
}

.higgsfield-logo {
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 229, 255, 0.75) 0%, transparent 28%),
    radial-gradient(circle at 60% 68%, rgba(255, 43, 214, 0.62) 0%, transparent 30%),
    linear-gradient(135deg, #06051a 0%, #191139 100%);
}

.tool-chip {
  display: inline-block;
  width: fit-content;
  border: 1px solid #3d3974;
  border-radius: 999px;
  padding: 0.34rem 0.58rem;
  color: #dcfaff;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: rgba(0, 229, 255, 0.08);
}

.tool-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.tool-strip span {
  border: 1px solid #332f64;
  border-radius: 999px;
  padding: 0.62rem 0.78rem;
  color: #e8ebff;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(255, 43, 214, 0.08));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tool-strip span:hover {
  transform: translateY(-3px);
  border-color: #00d7ff;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.16);
}

.footer {
  margin: 1rem auto 2rem;
  border-top: 1px solid var(--line);
  color: #8f8f8f;
  font-size: 0.85rem;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.admin-access-link {
  color: #777d9f;
  font-size: 0.78rem;
}

.admin-access-link:hover {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

@media (max-width: 950px) {
  .grid.three,
  .grid.two,
  .tool-showcase,
  .interactive-logo-panel,
  .shutter-spinner-layout,
  .split,
  .quiz-layout,
  .quiz-grid {
    grid-template-columns: 1fr;
  }

  .quiz-result-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .top-nav-inner .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-block;
  }

  .perf-toggle {
    margin-left: auto;
  }

  .znav-launcher {
    left: 1rem;
    right: auto;
    bottom: 1rem;
  }

  .mobile-menu.open {
    display: block;
  }

  .hero {
    min-height: 75vh;
  }

  .hero-collage {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  .hero-content {
    padding: 1rem;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 11vw, 3.1rem);
  }

  .hero p {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .actions {
    gap: 0.5rem;
  }

  .button {
    padding: 0.62rem 0.9rem;
    font-size: 0.82rem;
  }
}

/* ── 3D Interactive Features ─────────────────────────────── */

/* Holographic glare on cards and list items */
.card::after,
.list-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.11) 0%,
    rgba(0, 229, 255, 0.05) 30%,
    transparent 54%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 2;
}

.card:hover::after,
.list-item:hover::after {
  opacity: 1;
}

/* Hero particle canvas */
#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Hero collage 3D tilt */
.hero-collage {
  transition: transform 200ms ease-out;
}

/* ── Cinematic Film Grain ─────────────────────────────────── */

body::after {
  content: "";
  position: fixed;
  inset: -200%;
  width: 500%;
  height: 500%;
  z-index: 99;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23g)'/%3E%3C/svg%3E");
  animation: grainFlicker 0.14s steps(1) infinite;
  will-change: transform;
}

body.performance-mode::after {
  display: none;
}

@keyframes grainFlicker {
  0%   { transform: translate(0, 0); }
  14%  { transform: translate(-6px, 4px); }
  28%  { transform: translate(4px, -5px); }
  42%  { transform: translate(-3px, 6px); }
  57%  { transform: translate(6px, -4px); }
  71%  { transform: translate(-5px, 3px); }
  85%  { transform: translate(3px, -6px); }
  100% { transform: translate(-4px, 5px); }
}

/* ── Hero Scan Lines ──────────────────────────────────────── */

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.055) 2px,
    rgba(0, 0, 0, 0.055) 4px
  );
}

body.performance-mode .hero::after {
  display: none;
}

/* ── Hero H1 Glitch Animation ─────────────────────────────── */

.hero-glitch-title {
  animation: heroGlitch 9s ease-in-out infinite;
}

@keyframes heroGlitch {
  0%, 87%, 100% {
    text-shadow: none;
    transform: translate(0);
    clip-path: none;
  }
  88% {
    text-shadow: 2px 0 #ff2bd6, -2px 0 #00e5ff;
    transform: translate(2px, 0);
  }
  89% {
    text-shadow: -2px 0 #ff2bd6, 2px 0 #00e5ff;
    transform: translate(-2px, 0);
    clip-path: polygon(0 25%, 100% 25%, 100% 55%, 0 55%);
  }
  90% {
    text-shadow: 1px 0 #ff2bd6;
    transform: translate(1px, 0);
    clip-path: none;
  }
  91% {
    text-shadow: none;
    transform: translate(0);
  }
}

body.performance-mode .hero-glitch-title {
  animation: none;
}

/* ── REC Indicator ────────────────────────────────────────── */

.hero-rec-indicator {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.38rem;
  font-family: "Sora", sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 55, 55, 0.88);
  text-shadow: 0 0 10px rgba(255, 55, 55, 0.4);
}

.hero-rec-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3333;
  box-shadow: 0 0 8px rgba(255, 51, 51, 0.75), 0 0 18px rgba(255, 51, 51, 0.35);
  animation: recPulse 1.5s ease-in-out infinite;
}

@keyframes recPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.28; transform: scale(0.82); }
}

body.performance-mode .hero-rec-dot {
  animation: none;
}

/* ── Timecode Display ─────────────────────────────────────── */

.hero-timecode {
  position: absolute;
  bottom: 1.1rem;
  right: 1.1rem;
  z-index: 4;
  font-family: "Sora", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(0, 229, 255, 0.45);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.22);
  font-variant-numeric: tabular-nums;
}

/* ── Tape Strip Marquee ───────────────────────────────────── */

.tape-strip {
  overflow: hidden;
  position: relative;
  padding: 0.7rem 0;
  margin: 1rem 0;
  border-top: 1px solid rgba(0, 229, 255, 0.12);
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.025), rgba(255, 43, 214, 0.018), rgba(0, 229, 255, 0.025));
}

.tape-strip::before,
.tape-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}

.tape-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}

.tape-strip::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%);
}

.tape-strip-track {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  white-space: nowrap;
  animation: tapeScroll 28s linear infinite;
  will-change: transform;
}

.tape-strip-track span {
  font-family: "Sora", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 229, 255, 0.48);
}

.tape-sep {
  color: rgba(255, 43, 214, 0.5) !important;
  font-size: 0.6rem !important;
}

@keyframes tapeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

body.performance-mode .tape-strip-track {
  animation-play-state: paused;
}

/* ── Custom Cursor ────────────────────────────────────────── */

body.cursor-ready {
  cursor: none;
}

body.cursor-ready a,
body.cursor-ready button,
body.cursor-ready input,
body.cursor-ready select,
body.cursor-ready textarea,
body.cursor-ready [role="button"] {
  cursor: none;
}

#cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: #00e5ff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
  mix-blend-mode: screen;
  transition: width 120ms ease, height 120ms ease, background-color 120ms ease, opacity 200ms ease;
  opacity: 0;
}

#cursor-ring {
  position: fixed;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(0, 229, 255, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  transition: width 180ms ease, height 180ms ease, border-color 180ms ease, opacity 200ms ease;
  opacity: 0;
}

body.cursor-hover #cursor-dot {
  width: 8px;
  height: 8px;
  background: #ff2bd6;
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.85);
}

body.cursor-hover #cursor-ring {
  width: 50px;
  height: 50px;
  border-color: rgba(255, 43, 214, 0.45);
}

body:not(.cursor-ready) #cursor-dot,
body:not(.cursor-ready) #cursor-ring {
  display: none;
}

/* ── Card Top-Border Glow on Hover ───────────────────────── */

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00e5ff, #ff2bd6, transparent);
  opacity: 0;
  transition: opacity 300ms ease, left 300ms ease, right 300ms ease;
  pointer-events: none;
  z-index: 3;
}

.card:hover::before {
  opacity: 1;
  left: 0;
  right: 0;
}

/* ── Z-nav overlay ─────────────────────────────────────── */
#znav-overlay {
  isolation: isolate;
}
#znav-overlay canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

body.page-flow-next::after,
body.page-flow-prev::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  animation: pageFlowFade 260ms cubic-bezier(0.18, 0.8, 0.2, 1) forwards;
}

body.page-flow-next::after {
  background:
    linear-gradient(135deg, rgba(5, 5, 11, 0.08), rgba(5, 5, 11, 0.9)),
    radial-gradient(circle at 24% 50%, rgba(0, 229, 255, 0.16), transparent 30%);
}

body.page-flow-prev::after {
  background:
    linear-gradient(225deg, rgba(5, 5, 11, 0.08), rgba(5, 5, 11, 0.9)),
    radial-gradient(circle at 76% 50%, rgba(255, 43, 214, 0.16), transparent 30%);
}

@keyframes pageFlowFade {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

body.page-flow-enter-next .top-nav,
body.page-flow-enter-next main,
body.page-flow-enter-prev .top-nav,
body.page-flow-enter-prev main {
  animation: pageFlowEnter 360ms cubic-bezier(0.18, 0.8, 0.2, 1) both;
}

body.page-flow-enter-next::before,
body.page-flow-enter-prev::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9996;
  pointer-events: none;
  animation: pageFlowEntryFade 360ms ease both;
}

body.page-flow-enter-next::before {
  background:
    linear-gradient(135deg, rgba(5, 5, 11, 0.78), rgba(5, 5, 11, 0.04)),
    radial-gradient(circle at 28% 50%, rgba(0, 229, 255, 0.12), transparent 32%);
}

body.page-flow-enter-prev::before {
  background:
    linear-gradient(225deg, rgba(5, 5, 11, 0.78), rgba(5, 5, 11, 0.04)),
    radial-gradient(circle at 72% 50%, rgba(255, 43, 214, 0.12), transparent 32%);
}

@keyframes pageFlowEnter {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes pageFlowEntryFade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.znav-launcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 18px;
  background: rgba(8, 8, 18, 0.9);
  backdrop-filter: blur(12px);
  color: #eefcff;
  padding: 0.8rem 0.95rem;
  display: grid;
  gap: 0.16rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 43, 214, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.znav-launcher span {
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.znav-launcher small {
  font-size: 0.68rem;
  color: #9ea5d3;
  letter-spacing: 0.04em;
}

.znav-launcher:hover,
.znav-launcher.active {
  transform: translateY(-2px);
  border-color: #00d7ff;
  background: rgba(9, 14, 28, 0.95);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.16), 0 16px 38px rgba(0, 0, 0, 0.42);
}

body.znav-open .znav-launcher {
  opacity: 0.35;
}

/* Cursor glow spotlight */
#cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 229, 255, 0.055) 0%, transparent 65%);
  will-change: left, top;
  transition: opacity 300ms ease;
  opacity: 0;
}

/* ── On-Tape editorial system / Plug Ins merge ─────────── */

:root {
  --bg: #05030b;
  --panel: #090711;
  --panel-soft: #0d0a16;
  --text: #f5f5f2;
  --muted: #97949f;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #00e5ff;
  --accent-soft: #00afc4;
  --accent-2: #00e5ff;
  --max: 1160px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body,
body[data-page] {
  background:
    radial-gradient(circle at 16% 8%, rgba(0, 229, 255, 0.075), transparent 28rem),
    radial-gradient(circle at 88% 26%, rgba(94, 39, 255, 0.065), transparent 32rem),
    #05030b !important;
  color: var(--text);
}

body::before {
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

body.effects-mode .home-shutter-mark {
  opacity: 0.045;
  filter: drop-shadow(0 0 44px rgba(0, 229, 255, 0.12));
}

h1,
h2,
h3,
.page-header h1,
.hero h1,
.plugin-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.045em;
}

h4,
.brand,
.button,
.nav-link {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.top-nav {
  margin-top: 1.5rem;
}

.top-nav-inner,
body .top-nav-inner {
  min-height: 58px;
  padding: 0.62rem 0.75rem 0.62rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px;
  background: rgba(6, 5, 12, 0.84) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(20px);
}

.brand {
  gap: 0.72rem;
  color: #f5f5f2;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  padding: 0.3rem;
}

.nav-links {
  gap: 0.82rem;
}

.nav-link {
  color: #9996a1;
  font-size: 0.72rem;
  font-weight: 600;
}

.nav-link::after {
  height: 1px;
  background: var(--accent);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  text-shadow: none;
}

.nav-plugin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.07);
  color: #dffcff !important;
  padding: 0.45rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-plugin-link::after {
  display: none;
}

.nav-plugin-link:hover {
  border-color: rgba(0, 229, 255, 0.55);
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent) !important;
}

.perf-toggle {
  top: 6.1rem;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(6, 5, 12, 0.88);
  color: #c7c5cc;
  font-size: 0.65rem;
  box-shadow: none;
}

.perf-toggle:hover,
.perf-toggle.active {
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent);
  box-shadow: none;
}

.hero {
  min-height: min(680px, calc(100vh - 9rem));
  margin-top: 1.5rem;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: #030306;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(3, 3, 7, 0.98) 0%, rgba(3, 3, 7, 0.87) 42%, rgba(3, 3, 7, 0.2) 76%),
    linear-gradient(180deg, transparent 45%, rgba(3, 3, 7, 0.82) 100%);
}

.hero-collage {
  left: 41%;
  opacity: 0.78;
  filter: saturate(0.74) contrast(1.06);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}

.hero-content,
body.effects-mode .hero-content {
  max-width: 700px;
  padding: clamp(1.6rem, 4vw, 4rem);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.hero .eyebrow,
.eyebrow {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-shadow: none;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.25rem, 7.4vw, 6.5rem);
  line-height: 0.92;
}

.hero p {
  max-width: 48ch;
  color: #a8a5ad;
  text-shadow: none;
}

.button {
  padding: 0.72rem 1.08rem;
  border-radius: 999px;
  font-weight: 750;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #041018;
  box-shadow: none;
}

.button.primary:hover {
  box-shadow: 0 10px 28px rgba(0, 229, 255, 0.18);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
  color: #f5f5f2;
}

.button.ghost:hover {
  border-color: rgba(0, 229, 255, 0.45);
  color: var(--accent);
  box-shadow: none;
}

.button::before {
  display: none;
}

.tape-strip {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.section,
body .section {
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.022) !important;
  box-shadow: none !important;
}

body .section::before {
  background:
    radial-gradient(circle at 88% 12%, rgba(0, 229, 255, 0.055), transparent 28rem) !important;
}

.card,
.list-item,
body .card,
body .list-item {
  border-color: rgba(255, 255, 255, 0.085) !important;
  border-radius: 18px !important;
  background: #090711 !important;
  box-shadow: none !important;
}

.card:hover,
.list-item:hover,
body .card:hover,
body .list-item:hover {
  border-color: rgba(0, 229, 255, 0.3) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24) !important;
}

.card::after,
.list-item::after {
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(0, 229, 255, 0.07),
    transparent 54%
  );
}

.page-header,
body .page-header {
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.08), transparent 26rem),
    #07060d !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26) !important;
}

body .page-header::before {
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.04), transparent 45%) !important;
}

body .page-header::after {
  display: none;
}

body .page-header h1 {
  color: #f5f5f2;
  font-size: clamp(3.3rem, 8vw, 6.5rem) !important;
  line-height: 0.9 !important;
}

body .page-header p,
.page-copy,
.card-copy p,
.list-item p {
  color: #9c99a4 !important;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #69666f;
}

/* Plug-in storefront */

.plugin-section {
  margin: 1.5rem auto 0;
  scroll-margin-top: 7rem;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.plugin-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
  padding: 0 clamp(0.25rem, 2vw, 1rem);
}

.plugin-section-heading h2 {
  font-size: clamp(3.2rem, 8vw, 6.25rem);
  line-height: 0.88;
}

.plugin-section-heading > p {
  max-width: 31rem;
  color: #9996a1;
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: right;
}

.plugin-product {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background: #090711;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.3);
}

.plugin-visual {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 38% 45%, rgba(0, 229, 255, 0.14), transparent 25rem),
    linear-gradient(145deg, #0c0a16 0%, #06040c 72%);
}

.plugin-visual-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: #5e5a65;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.plugin-orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.plugin-orbits span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9rem;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  animation: pluginZoomPulse 4.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.plugin-orbits span:nth-child(2) {
  width: 18rem;
  animation-delay: -1.6s;
}

.plugin-orbits span:nth-child(3) {
  width: 31rem;
  animation-delay: -3.2s;
}

.plugin-brand-block {
  position: relative;
  z-index: 2;
}

.plugin-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 18px;
  background: rgba(0, 229, 255, 0.09);
  color: var(--accent);
}

.plugin-icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.plugin-brand-block > p {
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.plugin-brand-block h3 {
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: clamp(4rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.plugin-description {
  display: block;
  max-width: 25rem;
  margin-top: 1.5rem;
  color: #96939d;
  font-size: 0.88rem;
  line-height: 1.7;
}

.plugin-feature-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.plugin-feature-strip span {
  display: grid;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent);
  font-size: 0.92rem;
}

.plugin-feature-strip strong {
  color: #8f8c96;
  font-size: 0.7rem;
  font-weight: 700;
}

.plugin-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.plugin-details h3 {
  font-family: "Manrope", sans-serif;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
}

.plugin-lead {
  max-width: 39rem;
  margin-top: 1.35rem;
  color: #9996a1;
  font-size: 0.96rem;
  line-height: 1.75;
}

.plugin-effect-list {
  margin: 2.25rem 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
}

.plugin-effect-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.92rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #d6d4d9;
  font-size: 0.86rem;
  font-weight: 700;
}

.plugin-effect-list li:last-child {
  border-bottom: 0;
}

.plugin-effect-list span {
  color: #595660;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.plugin-download-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.plugin-download {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.88rem 1.35rem;
}

.plugin-download svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.plugin-download-row > span {
  color: #65616b;
  font-size: 0.68rem;
  line-height: 1.6;
}

.plugin-install-note {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.022);
}

.plugin-package-icon {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.25rem;
}

.plugin-install-note p {
  color: #8c8993;
  font-size: 0.72rem;
  line-height: 1.7;
}

.plugin-install-note strong {
  color: #d8d6db;
  font-weight: 700;
}

@keyframes pluginZoomPulse {
  0%,
  100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.88);
  }
  45% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 1040px) {
  .nav-links {
    gap: 0.54rem;
  }

  .nav-link {
    font-size: 0.66rem;
  }

  .brand span {
    display: none;
  }
}

@media (max-width: 820px) {
  .top-nav {
    margin-top: 0.8rem;
  }

  .brand span {
    display: inline;
  }

  .mobile-menu {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(6, 5, 12, 0.96);
    backdrop-filter: blur(18px);
  }

  .mobile-menu .nav-plugin-link {
    margin: 0.35rem 0;
  }

  .perf-toggle {
    top: auto;
    right: 1rem;
    bottom: 1rem;
  }

  .hero {
    min-height: 660px;
  }

  .hero-collage {
    left: 0;
    top: 45%;
    opacity: 0.38;
    mask-image: linear-gradient(180deg, transparent, #000 28%);
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(3, 3, 7, 0.98) 0%, rgba(3, 3, 7, 0.72) 62%, rgba(3, 3, 7, 0.88) 100%);
  }

  .hero-content {
    align-self: start;
  }

  .plugin-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .plugin-section-heading > p {
    text-align: left;
  }

  .plugin-product {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .plugin-visual {
    min-height: 520px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--max), calc(100% - 1rem));
  }

  .top-nav-inner {
    border-radius: 14px;
  }

  .hero {
    min-height: 620px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 15vw, 4.5rem);
  }

  .plugin-section {
    padding: 3.8rem 0;
  }

  .plugin-section-heading {
    padding: 0 0.5rem;
  }

  .plugin-visual {
    min-height: 470px;
    padding: 1.25rem;
  }

  .plugin-orbits span:nth-child(3) {
    width: 24rem;
  }

  .plugin-brand-block h3 {
    font-size: 3.5rem;
  }

  .plugin-details {
    padding: 2rem 1.25rem;
  }

  .plugin-download-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .plugin-feature-strip strong {
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plugin-orbits span {
    animation: none;
  }
}

.work-archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 950px) {
  .work-archive-grid {
    grid-template-columns: 1fr;
  }
}

.recent-project-grid {
  margin-top: 1.4rem;
  gap: 1.1rem;
}

.recent-project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.recent-project-card .thumb {
  aspect-ratio: 16 / 8.7;
}

.recent-project-card .card-copy {
  flex: 1;
  align-content: start;
  padding: 1.2rem;
}

.recent-project-card .card-copy h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.recent-project-card .actions {
  margin-top: auto;
  padding-top: 0.65rem;
}

.project-date {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
