/* nonri.org -- aurora-gradient luxury-premium */

:root {
  --night-sky: #0A0818;
  --aurora-purple: #6040B0;
  --aurora-teal: #30A090;
  --aurora-green: #40C870;
  --aurora-pink: #C06090;
  --star-white: #F0EEF0;
  --mist-gray: #A0A0B0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--night-sky);
  color: var(--star-white);
  font-family: 'Jost', 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.8;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body { min-height: 100vh; position: relative; }

/* Aurora background -- continuously shifting */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--night-sky);
  overflow: hidden;
}
.aurora-layer {
  position: absolute;
  inset: -20%;
  background-size: 200% 200%;
  mix-blend-mode: screen;
  filter: blur(60px);
  opacity: 0.55;
  will-change: background-position, transform;
}
.aurora-layer-1 {
  background: linear-gradient(135deg, #6040B0 0%, #30A090 40%, #40C870 80%, transparent 100%);
  animation: auroraShift 22s ease-in-out infinite;
}
.aurora-layer-2 {
  background: linear-gradient(225deg, #C06090 0%, #6040B0 50%, #30A090 100%);
  animation: auroraShift 28s ease-in-out infinite reverse;
  opacity: 0.4;
}
.aurora-layer-3 {
  background: linear-gradient(45deg, #40C870 0%, #6040B0 60%, #C06090 100%);
  animation: auroraShift 34s ease-in-out infinite;
  opacity: 0.32;
}
@keyframes auroraShift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* Monogram nav button */
.monogram-nav {
  position: fixed;
  top: 28px;
  right: 32px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 8, 24, 0.55);
  border: 1px solid rgba(240, 238, 240, 0.25);
  color: var(--star-white);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  transition: transform 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}
.monogram-nav:hover {
  transform: scale(1.08);
  border-color: var(--aurora-pink);
  box-shadow: 0 0 24px rgba(192, 96, 144, 0.45);
}
.monogram-nav.is-open { transform: rotate(45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 8, 24, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }
.nav-list {
  list-style: none;
  text-align: center;
}
.nav-list li {
  margin: 18px 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 480ms ease, transform 480ms ease;
}
.nav-overlay.is-open .nav-list li { opacity: 1; transform: translateY(0); }
.nav-overlay.is-open .nav-list li:nth-child(1) { transition-delay: 60ms; }
.nav-overlay.is-open .nav-list li:nth-child(2) { transition-delay: 140ms; }
.nav-overlay.is-open .nav-list li:nth-child(3) { transition-delay: 220ms; }
.nav-overlay.is-open .nav-list li:nth-child(4) { transition-delay: 300ms; }
.nav-list a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: 0.06em;
  color: var(--star-white);
  text-decoration: none;
  padding: 8px 14px;
  position: relative;
  transition: color 320ms ease, letter-spacing 420ms ease;
}
.nav-list a:hover {
  color: var(--aurora-green);
  letter-spacing: 0.12em;
}

/* Eyebrow label */
.eyebrow-label {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist-gray);
  margin-bottom: 18px;
}

/* Aurora entrance */
.aurora-entrance {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0 24px;
}
.entrance-content {
  text-align: center;
  max-width: 720px;
  z-index: 2;
  position: relative;
}
.domain-mark {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: 0.01em;
  color: var(--star-white);
  text-shadow:
    0 0 28px rgba(96, 64, 176, 0.55),
    0 0 60px rgba(48, 160, 144, 0.35);
  opacity: 0;
  animation: domainFade 800ms ease 200ms forwards;
}
.entrance-tagline {
  margin-top: 22px;
  font-weight: 300;
  font-size: clamp(14px, 1.05vw, 17px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist-gray);
  opacity: 0;
  animation: domainFade 800ms ease 700ms forwards;
}
@keyframes domainFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.star-field {
  position: absolute;
  inset: 0 0 30% 0;
  width: 100%;
  height: 70%;
  pointer-events: none;
  z-index: 1;
}
.star-field circle {
  fill: var(--star-white);
  opacity: 0;
  animation: starFade 800ms ease forwards;
}

@keyframes starFade {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 0.85; transform: scale(1); }
}

.nature-silhouette {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 220px;
  color: rgba(240, 238, 240, 0.7);
  pointer-events: none;
  z-index: 1;
}
.nature-silhouette .hill,
.nature-silhouette .pine-trees path {
  opacity: 0;
  transform: translateY(20px);
  animation: silhouetteRise 600ms ease 900ms forwards;
}
.nature-silhouette .hill-mid { animation-delay: 1100ms; }
.nature-silhouette .pine-trees path { animation-delay: 1300ms; }
@keyframes silhouetteRise {
  to { opacity: 1; transform: translateY(0); }
}

/* Mission panels */
main { position: relative; z-index: 1; }

.mission-panel,
.aspiration-map,
.closing-panel {
  width: 100%;
  padding: 80px 24px;
  display: grid;
  place-items: center;
}
.panel-inner {
  width: 100%;
  max-width: 720px;
  position: relative;
  padding-left: 28px;
  border-left: 2px solid transparent;
  background:
    linear-gradient(var(--night-sky), var(--night-sky)) padding-box,
    linear-gradient(180deg, var(--aurora-purple), var(--aurora-teal), var(--aurora-green), var(--aurora-pink)) border-box;
  background-size: 100% 100%, 100% 300%;
  background-repeat: no-repeat;
  animation: borderShift 8s linear infinite;
}
@keyframes borderShift {
  0%   { background-position: 0 0, 0 0%; }
  100% { background-position: 0 0, 0 200%; }
}
.panel-inner > * { background: transparent; }

.mission-panel,
.aspiration-map,
.closing-panel,
.nature-story {
  opacity: 0.5;
  transition: opacity 400ms ease, box-shadow 400ms ease, transform 400ms ease;
}
.mission-panel.in-view,
.aspiration-map.in-view,
.closing-panel.in-view,
.nature-story.in-view {
  opacity: 1;
}

.panel-headline {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 52px);
  letter-spacing: 0.01em;
  color: var(--star-white);
  margin-bottom: 22px;
  line-height: 1.18;
}
.panel-body {
  color: var(--mist-gray);
  margin-bottom: 14px;
  max-width: 60ch;
}
.panel-body:last-child { margin-bottom: 0; }

.mission-panel:hover .panel-inner {
  box-shadow: 0 0 48px rgba(96, 64, 176, 0.25);
}

/* Stats */
.stat-row {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px 28px;
}
.stat {
  position: relative;
  transition: transform 320ms ease;
}
.stat-number,
.stat-suffix {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4vw, 64px);
  color: var(--star-white);
  display: inline-block;
  line-height: 1.05;
}
.stat-suffix {
  color: var(--aurora-green);
  margin-left: 2px;
}
.stat-label {
  margin-top: 10px;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist-gray);
}
.stat:hover .stat-number,
.stat:hover .stat-suffix {
  animation: statPulse 480ms ease;
  text-shadow: 0 0 28px rgba(64, 200, 112, 0.55);
}
@keyframes statPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Nature story (full-bleed) */
.nature-story {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 80px 24px;
  overflow: hidden;
}
.nature-landscape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  will-change: transform;
}
.nature-landscape:hover .mountains path,
.nature-landscape:hover .forest path {
  filter: drop-shadow(0 0 6px rgba(96, 64, 176, 0.6));
}
.story-overlay {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 36px 28px;
  background: rgba(10, 8, 24, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-left: 2px solid transparent;
  background-clip: padding-box;
}
.story-overlay::before {
  content: "";
  position: absolute;
  left: -2px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--aurora-purple), var(--aurora-teal), var(--aurora-green), var(--aurora-pink));
  background-size: 100% 300%;
  animation: borderShift 8s linear infinite;
}

/* Constellation */
.constellation-wrap {
  margin-top: 36px;
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 540;
}
.constellation {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.constellation-stars circle {
  fill: var(--star-white);
  filter: drop-shadow(0 0 4px rgba(240, 238, 240, 0.6));
  cursor: pointer;
  transition: r 320ms ease, filter 320ms ease, fill 320ms ease;
}
.constellation-stars circle.is-active {
  fill: var(--aurora-green);
  filter: drop-shadow(0 0 14px rgba(64, 200, 112, 0.95));
}
.constellation-stars circle:hover {
  filter: drop-shadow(0 0 18px rgba(192, 96, 144, 0.95));
}
.constellation-lines line {
  stroke: rgba(240, 238, 240, 0.35);
  stroke-width: 0.5;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  transition: stroke-dashoffset 1200ms ease, stroke 600ms ease;
}
.constellation-lines line.is-drawn { stroke-dashoffset: 0; }
.constellation-lines line.is-active { stroke: rgba(64, 200, 112, 0.7); }
.constellation-labels text {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--mist-gray);
}

/* Closing */
.closing-panel { padding: 100px 24px 120px; }
.closing-inner { text-align: left; }

/* Footer */
.site-footer {
  padding: 48px 24px 64px;
  border-top: 1px solid rgba(240, 238, 240, 0.08);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-mark {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--star-white);
}
.footer-meta {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist-gray);
}

/* Responsive */
@media (max-width: 720px) {
  .panel-inner { padding-left: 20px; }
  .stat-row { gap: 28px 18px; }
  .footer-inner { justify-content: center; text-align: center; }
}
