/* ─── FONT FACES ─────────────────────────────────────────
   Populated automatically by ../download-fonts.sh
   Run that script once before deploying.
   ───────────────────────────────────────────────────── */
/* FONT_FACE_START */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-300-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/jost-200.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/jost-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jost-400.woff2') format('woff2');
}
/* FONT_FACE_END */

/* ─── CSS Custom Properties ─────────────────────────── */
@property --wave-hue {
  syntax: '<angle>';
  inherits: false;
  initial-value: 210deg;
}
@property --shimmer-pos {
  syntax: '<percentage>';
  inherits: false;
  initial-value: -40%;
}

:root {
  --nav-height: 80px;
  --ink:        #0a0f1c;
  --deep:       #0d1b2a;
  --mid:        #112233;
  --surface:    #152840;
  --foam:       #e8f4f8;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --teal:       #2dd4bf;
  --mist:       rgba(232,244,248,0.06);
  --font-head:  'Cormorant Garamond', Georgia, serif;
  --font-body:  'Jost', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--foam);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── Canvas Ocean ──────────────────────────────────── */
#ocean-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* ─── Overlay vignette ──────────────────────────────── */
.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 40%,
    rgba(10,15,28,0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ─── NAV ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  background: linear-gradient(to bottom, rgba(10,15,28,0.85) 0%, transparent 100%);
  backdrop-filter: blur(2px);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-anchor {
  width: 36px; height: 36px;
  opacity: 0.7;
}
.nav-tagline {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(232,244,248,0.4);
}
.nav-compass {
  width: 36px; height: 36px;
  opacity: 0.7;
  animation: compass-spin 20s linear infinite;
}
@keyframes compass-spin {
  to { transform: rotate(360deg); }
}

/* ─── HERO ──────────────────────────────────────────── */
#hero {
  position: relative;
  z-index: 10;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--nav-height) 2rem 2rem;
}

.hero-inner {
  animation:
    hero-rise  1.8s  0s    cubic-bezier(0.16,1,0.3,1) both,
    hero-pulse 4s    3.5s  ease-in-out                infinite;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-pulse {
  0%, 100% { transform: translateY(0);    }
  50%      { transform: translateY(-8px); }
}

.hero-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
  animation: hero-rise 1.8s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(4.5rem, 12vw, 11rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.01em;
  padding-bottom: 0.18em;
  margin-bottom: 1.8rem;
  background:
    linear-gradient(
      90deg,
      transparent calc(var(--shimmer-pos) - 12%),
      rgba(255,252,220,0.82) var(--shimmer-pos),
      transparent calc(var(--shimmer-pos) + 12%)
    ),
    linear-gradient(
      160deg,
      var(--foam) 0%,
      var(--gold-light) 40%,
      var(--foam) 70%,
      rgba(232,244,248,0.5) 100%
    );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hero-rise 1.8s 0.05s cubic-bezier(0.16,1,0.3,1) both,
             shimmer-sweep 7s 2.5s linear infinite;
}
@keyframes shimmer-sweep {
  0%     { --shimmer-pos: -40%; animation-timing-function: ease-in-out; }
  25%    { --shimmer-pos: 140%; }
  25.01% { --shimmer-pos: -40%; }
  100%   { --shimmer-pos: -40%; }
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(232,244,248,0.45);
  margin-bottom: 3.5rem;
  animation: hero-rise 1.8s 0.3s cubic-bezier(0.16,1,0.3,1) both;
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}
.hero-ctas .hero-cta:nth-child(2) {
  animation-delay: 0.6s;
}
.hero-cta {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 1rem 2.4rem;
  min-width: 12rem;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
  animation: hero-rise 1.8s 0.45s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.76,0,0.24,1);
}
.hero-cta:hover { color: var(--ink); }
.hero-cta:hover::before { transform: translateX(0); }
.hero-cta span { position: relative; z-index: 1; }

/* scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  animation: hero-rise 2s 1s both;
}
.scroll-indicator span {
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--foam), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 0.9; transform: scaleY(1.1); }
}

/* ─── SECTIONS ──────────────────────────────────────── */
section {
  position: relative;
  z-index: 10;
  padding: 8rem 3rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── COMPASS SECTION ───────────────────────────────── */
#compass-section {
  background: linear-gradient(to bottom, transparent, rgba(13,27,42,0.8), transparent);
}
.compass-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
@media (max-width: 768px) {
  .compass-layout { grid-template-columns: 1fr; gap: 3rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-cta  { width: 100%; max-width: 280px; min-width: 0; }
}
.compass-text .label {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
}
.compass-text h2 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.compass-text h2 em { font-style: italic; color: var(--gold-light); }
.compass-text p {
  color: rgba(232,244,248,0.5);
  line-height: 1.8;
  font-size: 0.9rem;
  max-width: 420px;
}
.big-compass-wrap {
  display: flex;
  justify-content: center;
}
.big-compass {
  width: min(380px, 80vw);
  height: min(380px, 80vw);
  animation: compass-spin 40s linear infinite;
  filter: drop-shadow(0 0 30px rgba(201,168,76,0.15));
}

/* ─── HORIZON CARDS ─────────────────────────────────── */
#horizon {
  background: rgba(13,27,42,0.4);
}
.horizon-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 0.8rem;
}
.horizon-title em { font-style: italic; color: var(--gold-light); }
.horizon-sub {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(232,244,248,0.35);
  margin-bottom: 4rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5px;
}
.card {
  background: var(--mist);
  border: 1px solid rgba(232,244,248,0.07);
  padding: 2.8rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s, transform 0.4s;
}
.card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.card:hover {
  background: rgba(201,168,76,0.05);
  transform: translateY(-4px);
}
.card:hover::after { transform: scaleX(1); }
.card-icon {
  width: 40px; height: 40px;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}
.card h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  color: var(--foam);
}
.card p {
  font-size: 0.82rem;
  color: rgba(232,244,248,0.4);
  line-height: 1.7;
}

/* ─── MARQUEE ───────────────────────────────────────── */
.marquee-wrap {
  position: relative;
  z-index: 10;
  overflow: hidden;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(232,244,248,0.08);
  border-bottom: 1px solid rgba(232,244,248,0.08);
  background: rgba(10,15,28,0.5);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(232,244,248,0.3);
  white-space: nowrap;
}
.marquee-dot {
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.6;
}

/* ─── FOOTER ────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 10;
  padding: 5rem 3rem 3rem;
  text-align: center;
  border-top: 1px solid rgba(232,244,248,0.07);
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(232,244,248,0.15);
  margin-bottom: 1rem;
}
.footer-coords {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: rgba(232,244,248,0.2);
  text-transform: uppercase;
}
.footer-copy {
  margin-top: 3rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(232,244,248,0.15);
}

/* ─── Scroll-driven fade-in ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
