:root {
  --bg: #050505;
  --bg-soft: #090909;
  --text: #f2f0ea;
  --text-soft: #cbc7be;
  --text-muted: #85827b;
  --accent: #c8b58b;
  --accent-bright: #ead9ae;
  --line: rgba(255, 255, 255, 0.08);
  --line-accent: rgba(200, 181, 139, 0.28);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background:
    radial-gradient(circle at 72% 16%, rgba(200, 181, 139, 0.055), transparent 32%),
    radial-gradient(circle at 12% 56%, rgba(255, 255, 255, 0.025), transparent 34%),
    linear-gradient(180deg, #050505 0%, #070707 46%, #040404 100%);
  color: var(--text-soft);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 1px solid var(--accent-bright);
  outline-offset: 3px;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

@supports (overflow: clip) {
  html,
  body,
  main {
    overflow-x: clip;
  }
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.019) 1px, transparent 1px);
  background-size: 160px 160px;
  -webkit-mask-image: radial-gradient(circle at 55% 35%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 55% 35%, #000 0%, transparent 78%);
  opacity: 0.58;
}

.wrap {
  position: relative;
  z-index: 2;
  width: min(1380px, calc(100% - 72px - var(--safe-left) - var(--safe-right)));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  padding-top: calc(34px + var(--safe-top));
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  user-select: none;
}

.brand-orbit {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-accent);
  border-radius: 50%;
}

.brand-orbit::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 15px rgba(234, 217, 174, 0.72);
}

.brand-orbit::after {
  content: "";
  position: absolute;
  top: 8px;
  left: -3px;
  width: 24px;
  height: 4px;
  border-top: 1px solid rgba(200, 181, 139, 0.5);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.brand-name {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 300;
  letter-spacing: 0.09em;
  line-height: 1;
}

.brand-name small {
  margin-left: 4px;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.language-switch button {
  width: 42px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: color 300ms ease, background 300ms ease;
}

.language-switch button:hover {
  color: var(--text-soft);
}

.language-switch button.active {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.hero {
  display: grid;
  overflow: visible;
  grid-template-columns: minmax(370px, 0.78fr) minmax(520px, 1.22fr);
  align-items: center;
  gap: 18px;
  min-height: calc(100vh - 82px);
  min-height: calc(100svh - 82px - var(--safe-top));
  padding-block: 34px 64px;
}

.hero > * {
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 610px;
  padding-left: clamp(0px, 2vw, 32px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

h1 {
  max-width: 9.4ch;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(62px, 7vw, 106px);
  font-weight: 300;
  letter-spacing: -0.042em;
  line-height: 0.91;
  text-wrap: balance;
}

h1 em {
  color: var(--accent-bright);
  font-weight: 300;
}

.hero-lead {
  max-width: 555px;
  margin-top: 34px;
  color: var(--text-soft);
  font-size: clamp(15px, 1.1vw, 16px);
  font-weight: 300;
  letter-spacing: 0.012em;
  line-height: 1.9;
}

.registration-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.24em;
  line-height: 1.5;
  text-transform: uppercase;
}

.registration-note::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(200, 181, 139, 0.6);
}

.astrolabe-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 760px;
  isolation: isolate;
  perspective: 1400px;
}

.astrolabe-stage::before {
  content: "";
  position: absolute;
  width: min(780px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 181, 139, 0.11), rgba(200, 181, 139, 0.025) 42%, transparent 70%);
  filter: blur(20px);
  animation: halo-breathe 8s ease-in-out infinite alternate;
}

.astrolabe {
  position: relative;
  width: min(820px, 100%);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 900ms var(--ease);
  filter:
    drop-shadow(0 0 24px rgba(200, 181, 139, 0.08))
    drop-shadow(0 0 90px rgba(200, 181, 139, 0.04));
}

.astrolabe svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.outer-dial,
.inner-dial,
.orbit-a,
.orbit-b,
.orbit-c,
.orbit-d,
.needle,
.core {
  /* Explicit SVG geometry makes rotation consistent in Firefox, Chromium and WebKit. */
  transform-box: view-box;
  transform-origin: 400px 400px;
}

.outer-dial {
  animation: rotate-slow 140s linear infinite;
}

.inner-dial {
  animation: rotate-reverse 96s linear infinite;
}

.orbit-a {
  animation: rotate-slow 44s linear infinite;
}

.orbit-b {
  animation: rotate-reverse 58s linear infinite;
}

.orbit-c {
  animation: rotate-slow 72s linear infinite;
}

.orbit-d {
  animation: rotate-reverse 110s linear infinite;
}

.needle {
  animation: needle-drift 17s ease-in-out infinite alternate;
}

.light-flow {
  fill: none;
  stroke: url(#goldStroke);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 100 2100;
  animation: flow 8s var(--ease) infinite;
  filter: url(#lineGlow);
}

.light-flow.flow-2 {
  stroke-dasharray: 145 2100;
  animation-delay: -2.8s;
  animation-duration: 11s;
}

.light-flow.flow-3 {
  stroke-dasharray: 72 2100;
  animation-delay: -5s;
  animation-duration: 7s;
}

.light-flow.flow-4 {
  stroke-dasharray: 180 2100;
  animation-delay: -1.4s;
  animation-duration: 14s;
}

.core {
  animation: core-pulse 4.6s ease-in-out infinite alternate;
}

.hero-index {
  position: absolute;
  right: 0;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero-index::before {
  content: "";
  width: 72px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.principles {
  position: relative;
  z-index: 2;
  padding-block: 38px 142px;
}

.principle-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle {
  min-height: 248px;
  padding: 42px 40px 38px;
  border-right: 1px solid var(--line);
}

.principle:last-child {
  border-right: 0;
}

.principle-number {
  margin-bottom: 62px;
  color: rgba(200, 181, 139, 0.58);
  font-size: 9px;
  letter-spacing: 0.26em;
}

.principle h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(29px, 2.5vw, 33px);
  font-weight: 300;
  line-height: 1.05;
}

.principle p {
  max-width: 34ch;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}

.statement {
  position: relative;
  z-index: 2;
  overflow-x: hidden;
  display: grid;
  place-items: center;
  min-height: 78vh;
  min-height: 78svh;
  padding-block: 100px 140px;
  text-align: center;
}

@supports (overflow: clip) {
  .statement {
    overflow-x: clip;
  }
}

.statement::before {
  content: "";
  position: absolute;
  width: min(740px, 76vw);
  aspect-ratio: 1;
  border: 1px solid rgba(200, 181, 139, 0.08);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 48px rgba(255, 255, 255, 0.008),
    inset 0 0 0 49px rgba(255, 255, 255, 0.025),
    0 0 120px rgba(200, 181, 139, 0.025);
}

.statement-inner {
  position: relative;
  z-index: 1;
  max-width: 940px;
}

.statement-mark {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 34px;
  border: 1px solid var(--line-accent);
  border-radius: 50%;
}

.statement-mark::before,
.statement-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.statement-mark::before {
  inset: 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.statement-mark::after {
  inset: 32px;
  background: var(--accent-bright);
  box-shadow: 0 0 18px rgba(234, 217, 174, 0.65);
}

.statement h2 {
  max-width: 13ch;
  margin-inline: auto;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(50px, 6.2vw, 90px);
  font-weight: 300;
  letter-spacing: -0.036em;
  line-height: 0.98;
  text-wrap: balance;
}

.statement p {
  max-width: 52ch;
  margin: 30px auto 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.9;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding-bottom: calc(34px + var(--safe-bottom));
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-status::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(200, 181, 139, 0.55);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.language-fade {
  transition: opacity 180ms ease, transform 180ms ease;
}

.language-fade.changing {
  opacity: 0;
  transform: translateY(4px);
}

body.is-paused .outer-dial,
body.is-paused .inner-dial,
body.is-paused .orbit-a,
body.is-paused .orbit-b,
body.is-paused .orbit-c,
body.is-paused .orbit-d,
body.is-paused .needle,
body.is-paused .light-flow,
body.is-paused .core,
body.is-paused .astrolabe-stage::before {
  animation-play-state: paused;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes flow {
  0% { stroke-dashoffset: 2100; opacity: 0; }
  10% { opacity: 1; }
  88% { opacity: 0.9; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes needle-drift {
  0% { transform: rotate(-10deg); }
  100% { transform: rotate(13deg); }
}

@keyframes core-pulse {
  0% { transform: scale(0.94); opacity: 0.72; }
  100% { transform: scale(1.07); opacity: 1; }
}

@keyframes halo-breathe {
  0% { transform: scale(0.95); opacity: 0.62; }
  100% { transform: scale(1.04); opacity: 1; }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    padding-top: 48px;
  }

  .hero-copy {
    max-width: 760px;
    padding-left: 0;
  }

  h1 {
    max-width: 11ch;
  }

  .astrolabe-stage {
    min-height: auto;
    margin-top: -18px;
  }

  .astrolabe {
    width: min(740px, 100%);
  }

  .hero-index {
    display: none;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(1380px, calc(100% - 32px - var(--safe-left) - var(--safe-right)));
  }

  .site-header {
    padding-top: calc(20px + var(--safe-top));
  }

  .brand-name {
    font-size: 22px;
  }

  .hero {
    padding-block: 58px 36px;
  }

  h1 {
    max-width: 10.5ch;
    font-size: clamp(55px, 16.5vw, 78px);
  }

  .kicker {
    margin-bottom: 24px;
    font-size: 9px;
    letter-spacing: 0.28em;
  }

  .kicker::before {
    width: 34px;
  }

  .hero-lead {
    max-width: 42ch;
    margin-top: 28px;
    font-size: 14px;
    line-height: 1.85;
  }

  .registration-note {
    max-width: 32ch;
    margin-top: 24px;
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .astrolabe-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    margin-top: 26px;
    overflow: hidden;
  }

  .astrolabe {
    flex: 0 0 auto;
    width: min(112vw, 660px);
    max-width: none;
  }

  @supports (width: 100dvw) {
    .astrolabe-stage {
      width: 100dvw;
      max-width: 100dvw;
      margin-inline: calc(50% - 50dvw);
    }

    .astrolabe {
      width: min(112dvw, 660px);
    }
  }

  .page-grid {
    opacity: 0.34;
    background-size: 96px 96px;
  }

  .principles {
    padding-block: 24px 90px;
  }

  .principle-rail {
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: 0;
    padding: 34px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .principle-number {
    margin-bottom: 26px;
  }

  .principle p {
    max-width: 38ch;
  }

  .statement {
    min-height: 70vh;
    min-height: 70svh;
    padding-block: 80px 110px;
  }

  .statement::before {
    width: min(560px, 124vw);
  }

  .statement h2 {
    max-width: 10.5ch;
    font-size: clamp(46px, 13.8vw, 68px);
  }

  .statement p {
    max-width: 38ch;
    font-size: 13px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    line-height: 1.6;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: min(1380px, calc(100% - 24px - var(--safe-left) - var(--safe-right)));
  }

  .language-switch button {
    width: 38px;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(51px, 16vw, 66px);
  }

  .astrolabe-stage {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
  }

  .astrolabe {
    width: min(114vw, 600px);
  }

  @supports (width: 100dvw) {
    .astrolabe-stage {
      width: 100dvw;
      max-width: 100dvw;
      margin-inline: calc(50% - 50dvw);
    }

    .astrolabe {
      width: min(114dvw, 600px);
    }
  }
}

@media (min-width: 1121px) and (max-height: 820px) {
  .hero {
    min-height: auto;
    padding-block: 30px 70px;
  }

  .astrolabe-stage {
    min-height: 650px;
  }

  .astrolabe {
    width: min(690px, 100%);
  }

  h1 {
    font-size: clamp(62px, 6vw, 92px);
  }
}

@media (hover: none), (pointer: coarse) {
  .language-switch button:hover {
    color: var(--text-muted);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .language-switch {
    background: var(--bg-soft);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/*
 * The astrolabe is the page's primary content, not a decorative enhancement.
 * Its animation intentionally remains active even when the operating system
 * requests reduced motion.
 */
