/* Light digital spaces with a separate palette for each section. */
.section {
  --title-from: #007f9f;
  --title-to: #7252cc;
  --section-accent: #00a8c5;
  position: relative;
  isolation: isolate;
  border-top: 1px solid #e3ddef;
}
.section.surface-a {
  background-color: #fff;
  background-image: radial-gradient(ellipse at 0 35%, #c9f5fa8c, transparent 38%), radial-gradient(ellipse at 100% 80%, #ece0fb99, transparent 42%);
}
.section.surface-b {
  background-color: #f9f7ff;
  background-image:
    radial-gradient(ellipse at 100% 22%, #ddcefa9c, transparent 46%),
    radial-gradient(ellipse at 0 80%, #d6f6faad, transparent 45%),
    radial-gradient(ellipse at 50% 50%, #fff, #fff0 70%);
}
.space-field { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.space-flow, .space-dust { position: absolute; inset: -4%; background-position: center; background-repeat: no-repeat; background-size: 100% 100%; }
.space-flow { background-image: url('assets/digital-space.svg'); animation: space-drift 18s ease-in-out infinite alternate; animation-play-state: paused; }
.space-dust { background-image: url('assets/digital-particles.svg'); animation: space-float 12s ease-in-out infinite alternate; animation-play-state: paused; }
.surface-b .space-field { transform: scaleX(-1); }
.surface-b .space-flow { filter: hue-rotate(16deg); animation-delay: -9s; }
.surface-b .space-dust { animation-delay: -6s; }
#concept { --space-base: #fff; --space-rgb: 235, 78, 94; }
#schedule { --space-base: #fff2f8; --space-rgb: 229, 87, 157; }
#music { --space-base: #fff; --space-rgb: 38, 164, 108; }
#movie { --space-base: #eff6ff; --space-rgb: 61, 136, 228; }
#member { --space-base: #fff; --space-rgb: 238, 192, 20; }
.section.space-themed {
  background-color: var(--space-base);
  background-image:
    radial-gradient(ellipse at 0 28%, rgba(var(--space-rgb), .095), transparent 44%),
    radial-gradient(ellipse at 100% 80%, rgba(var(--space-rgb), .075), transparent 42%);
  border-top-color: rgba(var(--space-rgb), .18);
}
.section.space-themed:is(#concept, #music, #member) { background-image: none; }
.space-themed .space-flow {
  background: rgb(var(--space-rgb));
  -webkit-mask: url('assets/section-digital-space.svg') center / 100% 100% no-repeat;
  mask: url('assets/section-digital-space.svg') center / 100% 100% no-repeat;
  filter: none;
  animation-duration: 28s;
}
.space-themed .space-dust {
  background: rgb(var(--space-rgb));
  -webkit-mask: url('assets/digital-particles.svg') center / 100% 100% no-repeat;
  mask: url('assets/digital-particles.svg') center / 100% 100% no-repeat;
  animation-duration: 22s;
}
.space-visible .space-flow, .space-visible .space-dust { animation-play-state: running; }
.page-idle .space-flow, .page-idle .space-dust { animation-play-state: paused; }
.hero > .space-field { z-index: 0; }
.hero::after { display: none; }
/* Shared section/hero palette: one source for all five title gradients. */
:root {
  --brand-red-from: #971d38; --brand-red-highlight: #de4b50; --brand-red-to: #bd2641;
  --brand-pink-from: #8c2268; --brand-pink-highlight: #d84e9b; --brand-pink-to: #b22f88;
  --brand-green-from: #0b6b45; --brand-green-highlight: #3a9a58; --brand-green-to: #18734e;
  --brand-blue-from: #153a9f; --brand-blue-highlight: #3487cf; --brand-blue-to: #2756b4;
  --brand-yellow-from: #edc000; --brand-yellow-highlight: #ffe65b; --brand-yellow-to: #ffd21a;
  --brand-red-gradient: linear-gradient(115deg, var(--brand-red-from) 0%, var(--brand-red-highlight) 48%, var(--brand-red-to) 100%);
  --brand-pink-gradient: linear-gradient(115deg, var(--brand-pink-from) 0%, var(--brand-pink-highlight) 48%, var(--brand-pink-to) 100%);
  --brand-green-gradient: linear-gradient(115deg, var(--brand-green-from) 0%, var(--brand-green-highlight) 48%, var(--brand-green-to) 100%);
  --brand-blue-gradient: linear-gradient(115deg, var(--brand-blue-from) 0%, var(--brand-blue-highlight) 48%, var(--brand-blue-to) 100%);
  --brand-yellow-gradient: linear-gradient(115deg, var(--brand-yellow-from) 0%, var(--brand-yellow-highlight) 48%, var(--brand-yellow-to) 100%);
}
/* Keep the hero wordmark static in the original black artwork. */
.hero-logo {
  position: relative;
  display: block;
  width: 82%;
  max-width: 1250px;
  margin: auto;
}
.hero-logo .official-wordmark {
  width: 100%;
  max-width: none;
  opacity: 1;
  animation: none;
  filter: none;
  mix-blend-mode: normal;
}
@media(max-width:640px) {
  .hero-logo { width: 100%; }
}
.concept-image-placeholder, .video {
  background-image: url('assets/digital-space.svg'), radial-gradient(ellipse at 10% 10%, #e1f9fc, transparent 65%), linear-gradient(130deg, #f6faff, #eee5fb 65%, #faeaf5);
  background-size: cover, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
}
@keyframes space-drift { from { transform: translate3d(-1%, 0, 0) scale(1); } to { transform: translate3d(1%, -1%, 0) scale(1.035); } }
@keyframes space-float { from { transform: translate3d(0, 8px, 0); opacity: .55; } to { transform: translate3d(9px, -12px, 0); opacity: .9; } }
#concept, header nav a[href$="#concept"] { --title-from: var(--brand-red-from); --title-highlight: var(--brand-red-highlight); --title-to: var(--brand-red-to); --section-accent: #e35061; }
#schedule, header nav a[href$="#schedule"] { --title-from: var(--brand-pink-from); --title-highlight: var(--brand-pink-highlight); --title-to: var(--brand-pink-to); --section-accent: #df65b0; }
#music, header nav a[href$="#music"] { --title-from: var(--brand-green-from); --title-highlight: var(--brand-green-highlight); --title-to: var(--brand-green-to); --section-accent: #42b478; }
#movie, header nav a[href$="#movie"] { --title-from: var(--brand-blue-from); --title-highlight: var(--brand-blue-highlight); --title-to: var(--brand-blue-to); --section-accent: #469de0; }
#member, header nav a[href$="#member"] { --title-from: var(--brand-yellow-from); --title-highlight: var(--brand-yellow-highlight); --title-to: var(--brand-yellow-to); --section-accent: #ffda28; }
#contact, header nav a[href$="#contact"] { --title-from: #9a409c; --title-to: #5463c7; --section-accent: #b16cd7; }
.section h2 {
  position: relative;
  display: table;
  padding-bottom: 16px;
  text-shadow: none;
  line-height: 1.08;
}
.section h2 .title-text {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  filter: drop-shadow(1px 1px 0 #fff);
}
.section h2 .title-text,
.concept #concept-heading {
  color: var(--title-from);
  background: linear-gradient(115deg, var(--title-from) 0%, var(--title-highlight, var(--title-to)) 48%, var(--title-to) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section .section-label > span { color: var(--title-from); }
#member .section-label > span { color: #756100; }
.section .section-label::before { background: var(--section-accent); }
.section::before {
  content: '';
  position: absolute;
  inset-inline: var(--content-gutter); top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--section-accent), var(--title-to), transparent);
  opacity: .45;
  pointer-events: none;
}
.section::after {
  content: '';
  position: absolute;
  inset-inline: var(--content-gutter); top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--section-accent), #fff, var(--title-to), transparent);
  box-shadow: 0 0 12px var(--section-accent);
  transform-origin: left;
  opacity: 0;
  pointer-events: none;
}
.js-motion .reveal.visible .section-label { animation: none; }
.section-enter h2 .title-text { animation: title-signal .62s ease-out both; }
.section-enter::after { animation: area-signal .9s ease-out both; }
header nav a:is(:hover, :focus-visible, [aria-current="location"]) { color: var(--title-from); }
header nav a:is(:hover, :focus-visible, [aria-current="location"]) .nav-label {
  background: linear-gradient(115deg, var(--title-from) 0%, var(--title-highlight, var(--title-to)) 48%, var(--title-to) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
header nav a::after { background: linear-gradient(115deg, var(--title-from) 0%, var(--title-highlight, var(--title-to)) 48%, var(--title-to) 100%); }
header nav .nav-contact:is(:hover, :focus-visible, [aria-current="location"]) { border-color: var(--title-to); }
nav a[aria-current="location"]::after { transform: scaleX(1); }
header nav .nav-contact:is(:hover, [aria-current="location"])::after { display: none; }
@keyframes title-signal {
  0% { opacity: .5; transform: translateX(-6px); filter: drop-shadow(3px 0 0 #52d8e859); }
  45% { opacity: 1; transform: translateX(1px); filter: drop-shadow(-2px 0 0 #f57bc65c); }
  100% { opacity: 1; transform: translateX(0); filter: drop-shadow(1px 1px 0 #fff); }
}
@keyframes area-signal {
  0% { opacity: 0; transform: scaleX(.04); }
  25% { opacity: .8; }
  75% { opacity: .65; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

/* Crosshair pointer with separate glowing dots along the traveled route. */
.pointer-fx { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 1000; }
.digital-cursor { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; }
.digital-cursor.is-visible { opacity: 1; }
.cursor-brackets {
  position: absolute; left: -13px; top: -13px;
  width: 26px; height: 26px;
  background:
    linear-gradient(#00869f,#00869f) top left/8px 1px no-repeat,
    linear-gradient(#00869f,#00869f) top left/1px 8px no-repeat,
    linear-gradient(#00869f,#00869f) bottom left/8px 1px no-repeat,
    linear-gradient(#00869f,#00869f) bottom left/1px 8px no-repeat,
    linear-gradient(#db49a2,#db49a2) top right/8px 1px no-repeat,
    linear-gradient(#db49a2,#db49a2) top right/1px 8px no-repeat,
    linear-gradient(#db49a2,#db49a2) bottom right/8px 1px no-repeat,
    linear-gradient(#db49a2,#db49a2) bottom right/1px 8px no-repeat;
  filter: drop-shadow(0 0 3px #fff);
  transition: transform .18s ease-out;
}
.cursor-center { position: absolute; width: 5px; height: 5px; left: -2.5px; top: -2.5px; background: #326779; box-shadow: 0 0 0 1px #fff, 0 0 6px #31bfd780; }
.digital-cursor.is-link .cursor-brackets { transform: rotate(45deg) scale(1.25); }
.digital-cursor.is-link .cursor-center { background: #c53d95; }
.digital-cursor.is-pressed .cursor-brackets { transform: scale(.8); }
.cursor-dot {
  position: absolute; left: 0; top: 0;
  width: var(--dot-size, 8px); height: var(--dot-size, 8px);
  transform-origin: center;
  border-radius: 50%; background: var(--dot-color, #67e8f9);
  box-shadow: 0 0 var(--dot-size, 8px) var(--dot-color, #67e8f9), 0 0 calc(var(--dot-size, 8px) * 2) var(--dot-color, #67e8f9);
  opacity: 0; pointer-events: none;
}
@media(min-width:641px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .digital-pointer-active, .digital-pointer-active * { cursor: none !important; }
  .digital-pointer-active iframe { cursor: auto !important; }
  .digital-pointer-active input, .digital-pointer-active textarea, .digital-pointer-active [contenteditable="true"] { cursor: text !important; }
}
@media(max-width:640px) {
  .section h2 { font-size: clamp(36px, 9vw, 49px); padding-bottom: 13px; }
  .space-flow { background-size: auto 100%; opacity: .65; animation: none; }
  .space-dust { background-size: auto 100%; animation: none; }
}
@media(max-width:640px), (hover:none), (pointer:coarse), (prefers-reduced-motion:reduce) {
  .pointer-fx { display: none; }
}
@media(prefers-reduced-motion:reduce) {
  .section-enter h2 .title-text, .section-enter::after { animation: none; }
  .section::after { display: none; }
  .space-flow, .space-dust { animation: none; }
}
@media(forced-colors:active) {
  header nav a:is(:hover, :focus-visible, [aria-current="location"]) { color: LinkText; }
  header nav a:is(:hover, :focus-visible, [aria-current="location"]) .nav-label { background: none; -webkit-text-fill-color: currentColor; }
  .section h2 .title-text, .concept #concept-heading { color: CanvasText; -webkit-text-fill-color: CanvasText; background: none; }
  .pointer-fx { display: none; }
  .space-field { display: none; }
  .digital-pointer-active, .digital-pointer-active * { cursor: auto !important; }
}
