/* ═══════════════════════════════════════════════════════════
   NOEZYS — style.css
   V1 · Single-page experience · March 2026
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg-deep:       #04080F;
  --bg-mid:        #070D1A;
  --accent-blue:   #3A7BFF;
  --accent-blue-dim: rgba(58, 123, 255, 0.15);
  --accent-gold:   #C9A84C;
  --accent-gold-dim: rgba(201, 168, 76, 0.12);
  --text-primary:  #F0F3FA;
  --text-secondary:#8A96B4;
  --text-tertiary: #4A5570;
  --divider:       rgba(255, 255, 255, 0.06);

  --font-display:  'Calibri', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-body:     'Calibri', 'Segoe UI', 'Helvetica Neue', sans-serif;

  --reading-width: 720px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-deep);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-blue-dim);
  color: var(--text-primary);
}

/* ── Canvas ─────────────────────────────────────────────── */
#cosmos {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   BLOCK 1 — HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  will-change: transform, opacity;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 32px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(68px, 10vw, 140px);
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  margin: 0;
}

.hero__subtitle-born {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(42px, 6.2vw, 87px);
  color: var(--text-secondary);
  line-height: 1.1;
  margin-top: -4px;
}

.hero__divider {
  width: 60px;
  height: 1px;
  background: var(--divider);
  margin: 36px 0;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-dot {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-tertiary);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 0.8; transform: translateY(8px); }
}

/* Hero load animations */
.anim-hero {
  opacity: 0;
  transform: translateY(12px);
}

.anim-hero.visible {
  animation: heroFadeUp var(--anim-duration, 1.2s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--anim-delay, 0s);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════════════════════
   SECTIONS — shared
   ══════════════════════════════════════════════════════════ */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(100px, 12vh, 180px) 24px;
}

.section__inner {
  max-width: var(--reading-width);
  margin: 0 auto;
}

.section__label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 40px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 52px);
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 36px;
}

.section__body {
  color: var(--text-secondary);
  max-width: var(--reading-width);
}

.section__body p {
  margin-bottom: 20px;
}

.section__body p:last-child {
  margin-bottom: 0;
}

/* ── Section divider ────────────────────────────────────── */
.section + .section::before {
  content: '';
  display: block;
  width: 100%;
  max-width: var(--reading-width);
  height: 1px;
  background: var(--divider);
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ══════════════════════════════════════════════════════════
   BLOCK 2 — ORIGIN
   ══════════════════════════════════════════════════════════ */
.section--origin .section__accent-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  margin-bottom: 40px;
}

.gold-italic {
  color: var(--accent-gold);
  font-style: italic;
  font-family: var(--font-display);
}

.section__body-emphasis {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  color: var(--text-primary);
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════════════
   BLOCK 3 — THE SHIFT
   ══════════════════════════════════════════════════════════ */
.shift__lines {
  margin-bottom: 40px;
}

.shift__line {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.6;
  margin-bottom: 8px;
}

.shift__line--muted {
  color: var(--text-secondary);
}

.shift__line--primary {
  color: var(--text-primary);
}

/* Shift lines reveal animation */
.reveal-line {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-line.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════════════════════════
   BLOCK 4 — MISSION & VISION
   ══════════════════════════════════════════════════════════ */
.section__mission-statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 36px;
}

/* ══════════════════════════════════════════════════════════
   BLOCK 5 — VALUES & SIGNATURE
   ══════════════════════════════════════════════════════════ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 80px;
}

.value-card {
  position: relative;
  border: 1px solid var(--divider);
  border-radius: 2px;
  padding: 36px 28px 40px;
  transition: border-color 0.4s ease;
  overflow: hidden;
}

.value-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
}

.value-card__number {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.value-card__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.2;
}

.value-card__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(13px, 1.3vw, 15px);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Gold underline animation on hover */
.value-card__line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.value-card:hover .value-card__line {
  transform: scaleX(1);
}

/* Signature */
.signature {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--text-secondary);
  line-height: 1.6;
}

.signature__brand {
  color: var(--text-primary);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--divider);
}

.footer p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .values-grid {
    gap: 16px;
  }

  .value-card {
    padding: 28px 22px 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: clamp(72px, 10vh, 120px) 20px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero__scroll-hint {
    bottom: -80px;
  }

  .hero__eyebrow {
    margin-bottom: 24px;
  }

  .hero__divider {
    margin: 24px 0;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .section {
    padding: 64px 16px;
  }

  .hero__subtitle {
    max-width: 90vw;
    font-size: 14px;
  }

  .value-card {
    padding: 24px 20px 28px;
  }

  .signature {
    font-size: 16px;
  }
}

/* ══════════════════════════════════════════════════════════
   ACCESSIBILITY — prefers-reduced-motion
   ══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .anim-hero {
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-line {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-dot {
    animation: none;
    opacity: 0.5;
  }

  .value-card__line {
    transition: none;
  }
}
