/* ===== Custom Properties ===== */
:root {
  --obsidian: #0A0A0F;
  --basalt: #12121A;
  --seam: #1A1A2E;
  --leather: #3A2518;
  --patina: #5C3D2E;
  --polar: #F0F0F5;
  --silver: #8A8FA0;
  --aurora-green: #00E89D;
  --aurora-violet: #9B5DE5;
  --aurora-cyan: #00D4FF;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Commissioner', system-ui, sans-serif;
  background: var(--obsidian);
  color: var(--polar);
  overflow-x: hidden;
  line-height: 1.75;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
}

/* ===== Aurora Background Field ===== */
.aurora-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: conic-gradient(from 0deg at 50% 50%,
    rgba(0, 232, 157, 0.04),
    rgba(155, 93, 229, 0.03),
    rgba(0, 212, 255, 0.02),
    transparent,
    rgba(0, 232, 157, 0.04)
  );
  animation: auroraRotate 45s linear infinite;
  pointer-events: none;
}
@keyframes auroraRotate {
  to { transform: rotate(360deg); }
}

/* ===== Cursor Light ===== */
.cursor-light {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 232, 157, 0.06), transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: none;
  will-change: left, top;
  display: none;
}
@media (hover: hover) {
  .cursor-light { display: block; }
}

/* ===== Fixed Wordmark ===== */
.fixed-wordmark {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 100;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--silver);
  text-decoration: none;
  transition: color 0.3s;
}
.fixed-wordmark:hover { color: var(--aurora-green); }

/* ===== Section Dots ===== */
.section-dots {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aurora-green);
  opacity: 0.4;
  transition: all 0.3s ease;
}
.dot.active {
  width: 12px;
  height: 12px;
  opacity: 1;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  overflow: hidden;
}
.hero-aurora {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 232, 157, 0.15) 0%, transparent 40%),
    linear-gradient(180deg, transparent 20%, rgba(155, 93, 229, 0.12) 50%, transparent 80%),
    linear-gradient(180deg, transparent 50%, rgba(0, 212, 255, 0.08) 80%, transparent 100%);
  background-size: 100% 200%;
  animation: auroraSweep 2.5s ease-out forwards, auroraIdle 20s ease-in-out 2.5s infinite;
}
@keyframes auroraSweep {
  0% { background-position: 0 -100%; opacity: 0; }
  100% { background-position: 0 0%; opacity: 1; }
}
@keyframes auroraIdle {
  0%, 100% { background-position: 0 0%; opacity: 0.5; }
  50% { background-position: 0 5%; opacity: 0.35; }
}
.hero-content {
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}
@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}
.hero-title {
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: 0.3em;
  line-height: 0.95;
  text-shadow: 0 0 40px rgba(0, 232, 157, 0.1);
}
.hero-tagline {
  margin-top: 1.5rem;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--silver);
  opacity: 0;
  animation: heroReveal 0.8s ease 1.2s forwards;
}

/* ===== Masonry Section ===== */
.masonry-section {
  position: relative;
  z-index: 10;
  padding: 4rem 2rem;
}
.masonry-grid {
  column-count: 3;
  column-gap: 2px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Blocks ===== */
.block {
  break-inside: avoid;
  margin-bottom: 2px;
  padding: clamp(1.5rem, 2vw, 2.5rem);
  border: 1px solid var(--seam);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

/* Field Block */
.field-block {
  background: var(--basalt);
}
.field-block:hover {
  background: #16162A;
}
.block-heading {
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.block p {
  font-weight: 400;
  color: var(--silver);
  letter-spacing: 0.01em;
}

/* Datum Block */
.datum-block {
  background-color: var(--leather);
  background-image:
    radial-gradient(circle, rgba(0,0,0,0.08) 1px, transparent 1px),
    linear-gradient(160deg, rgba(0,0,0,0.03) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.03) 75%);
  background-size: 4px 4px, 8px 8px;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.4);
  border-left: 3px solid rgba(155, 93, 229, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.datum-block.tall { min-height: 320px; }
.datum-block:hover {
  border-left-color: var(--aurora-violet);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.3), -4px 0 20px rgba(155, 93, 229, 0.1);
}
.block-label {
  font-weight: 300;
  font-size: clamp(0.7rem, 0.9vw, 0.8rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
}
.data-figure {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-variant-numeric: tabular-nums;
  color: var(--aurora-green);
  line-height: 1;
}
.data-unit {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--silver);
}
.datum-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--silver);
}

/* Signal Block */
.signal-block {
  background: var(--basalt);
  border-top: 2px solid;
  border-image: linear-gradient(90deg, var(--aurora-green), var(--aurora-violet), transparent) 1;
  padding-bottom: 1rem;
}
.signal-block:hover {
  box-shadow: 0 -4px 20px rgba(0, 232, 157, 0.15);
}
.signal-chart {
  width: 100%;
  height: 120px;
  display: block;
  margin-bottom: 0.75rem;
}

/* ===== Contact ===== */
.contact-section {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 6rem 2rem;
}
.contact-text {
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.5rem;
}
.contact-email {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--aurora-green);
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
  .masonry-grid { column-count: 2; }
}
@media (max-width: 767px) {
  .masonry-grid { column-count: 1; }
  .masonry-section { padding: 2rem 1rem; }
  .section-dots { display: none; }
  .hero-title { letter-spacing: 0.15em; }
}
