﻿/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
html {
  overflow: hidden; /* single-page scroll-snap; no native scrollbar */
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
body {
  width: 100%;
  background-color: #0d0d0d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M60 0H0v60' fill='none' stroke='rgba(255,255,255, 0.8)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 60px; /* grid lines via inline SVG — no extra request */
  color: #e0e0e0;
  font-family: monospace;
}

/* ── Noise overlay ─────────────────────────────────────────────────────────── */
/* fractalNoise pseudo-element sits above everything except cursor (z-index 9998) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── Sections ───────────────────────────────────────────────────────────────── */
/* each .section = one full-viewport snap panel */
.section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 24px;
  overflow: hidden;
  position: relative;
}

/* radial vignette — darkens grid at edges so content reads clearly */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at center, #0d0d0d 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* stacking context above the ::before vignette */
.section-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ── Hero title ────────────────────────────────────────────────────────────── */
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  display: flex;
  overflow: hidden;
}
h1 .char {
  display: inline-block;
}

.hero-sub {
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* ── Section counter ───────────────────────────────────────────────────────── */
.section-counter {
  position: fixed;
  bottom: 32px;
  right: 36px;
  font-family: monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.25);
  z-index: 100;
  transition: color 0.4s;
}
.section-counter .current-num {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

/* ── Nav dots ──────────────────────────────────────────────────────────────── */
.nav-dots {
  position: fixed;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}
.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.4s, transform 0.4s;
}
.nav-dot.active {
  background: rgba(255,255,255,0.7);
  transform: scale(1.4);
}

/* ── Horizontal rule ───────────────────────────────────────────────────────── */
/* starts at scaleX(0); animated to 1 on section entry via JS */
.hr-line {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  transform: scaleX(0);
  transform-origin: center;
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 48px 56px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
  min-width: 340px;
  position: relative;
  transition: border-color 0.5s, box-shadow 0.5s;
}
/* top-border shimmer that sweeps in on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover::before {
  transform: scaleX(1);
}
.card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 16px 60px rgba(0,0,0,0.4);
}

.card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  margin-bottom: -8px;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
}

.card-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  max-width: 280px;
}

a.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  border-radius: 0;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.75rem;
  font-family: monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s, border-color 0.3s;
}
a.btn:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
a.btn .arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
a.btn:hover .arrow {
  transform: translateX(4px);
}

/* ── Custom cursor ─────────────────────────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  pointer-events: none;
  z-index: 9999;
}
.cursor::before, .cursor::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.7);
  transition: background 0.2s;
}
.cursor::before {
  width: 1.5px; height: 20px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.cursor::after {
  width: 20px; height: 1.5px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.cursor.hover::before, .cursor.hover::after {
  background: #aef;
}
.cursor.hover::before {
  height: 28px;
}
.cursor.hover::after {
  width: 28px;
}
.cursor-label {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  font-family: monospace;
  letter-spacing: 0.04em;
}