:root {
  --void: #05060B;
  --starlight: #EAE7E1;
  --dust: #8B9099;
  --sun: #BFA06A;
  --rule: #1D2029;
  color-scheme: dark;
}

[data-app="vndck"] { --c: #BFA06A; }
[data-app="clubcom"] { --c: #72DFA7; }
[data-app="findyourcareer"] { --c: #E08A3C; }
[data-app="mokaru"] { --c: #8FA3C8; }

* { box-sizing: border-box; }

/* The background sits on html so the fixed space canvas (z-index -1) shows through body. */
html { background: var(--void); }
html.no-gl { background: radial-gradient(ellipse at 50% 45%, #2A2214 0%, #0B0B10 38%, var(--void) 70%) fixed; }

body {
  margin: 0;
  color: var(--starlight);
  font: 1rem/1.7 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.space {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

a {
  color: var(--starlight);
  text-decoration-color: var(--sun);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
a:hover { color: var(--sun); }
a:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 2px; }

p { margin: 0 0 1.25rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Homepage: the render fills the window. Each scene below is one camera shot;
   scrolling from scene to scene moves the camera and brings in that card. */
.home { padding: 0; }

.scene {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 2.5rem 6vw;
}

/* Invisible hit areas that JS keeps on top of the sun and planets. */
.system { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.target {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  visibility: hidden;
}
.system.ready .target { visibility: visible; }
.system.ready .target.hidden { visibility: hidden; }
.target:focus-visible { outline: 1.5px solid rgba(234, 231, 225, .75); outline-offset: 2px; }
.no-gl .system, html:not(.js) .system { display: none; }

.card {
  position: relative;
  z-index: 2;
  width: min(24rem, 100%);
  padding: 1.5rem 1.5rem 1.4rem;
  border: 1px solid rgba(234, 231, 225, .12);
  border-radius: 16px;
  background: rgba(8, 9, 14, .62);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.card h2 {
  margin: 0 0 .5rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  color: color-mix(in srgb, var(--c) 35%, var(--starlight));
  outline: none;
}
.card p, .card address {
  margin: 0 0 1.1rem;
  font-size: .9375rem;
  font-style: normal;
  line-height: 1.6;
  color: rgba(234, 231, 225, .82);
}
.card > :last-child { margin-bottom: 0; }
.visit { font-size: .9375rem; }
.card .links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

/* A card rises in once the camera has arrived at its planet, and leaves quickly
   when the camera moves on. JS sets .in-view. */
.js:not(.no-gl) .card {
  opacity: 0;
  translate: 0 28px;
  pointer-events: none;
  transition: opacity .3s ease, translate .3s ease;
}
.js:not(.no-gl) .scene.in-view .card,
.js:not(.no-gl) .card:focus-within {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
  transition: opacity .8s ease, translate 1s cubic-bezier(.2, .8, .2, 1);
}

/* "Scroll to explore" with a bouncing chevron, shown after the opening shot. */
.cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  translate: -50% 0;
  color: rgba(234, 231, 225, .88);
  font-size: .9375rem;
  letter-spacing: .03em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .8);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s, color .3s;
}
.cue svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cue:hover { color: var(--starlight); }
.ready .cue { opacity: 1; pointer-events: auto; }
.scrolled .cue { opacity: 0; pointer-events: none; }
.no-gl .cue, html:not(.js) .cue { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .smooth { scroll-behavior: smooth; }
  .cue svg { animation: bounce 1.8s cubic-bezier(.45, 0, .55, 1) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .js:not(.no-gl) .card { translate: none; transition: opacity .3s; }
}
@keyframes bounce { 50% { translate: 0 6px; } }

/* On phones the subject sits in the top half and the card along the bottom. */
@media (max-width: 40rem) {
  .scene { align-items: flex-end; padding: 1rem 1rem 1.5rem; }
  .card { width: 100%; }
}

/* Subpages: a readable column, smaller wordmark as a link home, the page title takes the h1. */
.sub { padding: 14vh 1.5rem 3rem; }
.sub main, .sub footer { max-width: 36rem; margin-left: auto; margin-right: auto; }
.wordmark { margin: 0 0 3rem; font-size: 1.5rem; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.wordmark a { text-decoration: none; }
.muted { color: var(--dust); }
.sub h1 { margin: 0 0 .5rem; font-size: 2rem; font-weight: 600; line-height: 1.2; }
.sub h2 { margin: 2.5rem 0 1rem; font-size: 1.125rem; font-weight: 600; }
.sub ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.sub footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: .8125rem;
  color: var(--dust);
}
.sub footer a { color: var(--dust); }
