:root {
  --bg: #0a0b0d;
  --bg-2: #0d0f12;
  --ink: #ece9e1;
  --ink-soft: #8d877b;
  --accent: #c8a45c;
  --accent-glow: rgba(200, 164, 92, 0.35);
  --line: rgba(236, 233, 225, 0.08);
  --line-strong: rgba(236, 233, 225, 0.16);
  --wrap: 1080px;
  --font-display: "Syne", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.mono { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; }
.dim { color: var(--ink-soft); }
.accent { color: var(--accent); }

/* ---------- atmosphere ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 80%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 75% -8%, var(--accent-glow), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(80, 120, 160, 0.10), transparent 60%);
  pointer-events: none;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- ghost wordmark ---------- */
.ghost {
  position: fixed;
  bottom: -2vw;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
  overflow: hidden;
}

.ghost span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26vw;
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 233, 225, 0.05);
  display: block;
  user-select: none;
}

.scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  filter: blur(1px);
  animation: scan 7s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { top: 8%; opacity: 0; }
  10% { opacity: 1; }
  50% { top: 92%; opacity: 1; }
  60% { opacity: 0; }
}

/* ---------- topbar ---------- */
.topbar {
  position: relative;
  z-index: 2;
  padding-top: 28px;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.mark {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  font-weight: 500;
}

/* ---------- hero ---------- */
main { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.hero {
  padding: clamp(56px, 12vh, 130px) 0 clamp(48px, 8vh, 90px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  margin-bottom: 34px;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
}

.brand-line {
  max-width: 52ch;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 400;
  color: #c4bfb4;
  line-height: 1.55;
}

/* ---------- disciplines ---------- */
.disciplines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.discipline {
  background: var(--bg-2);
  padding: 34px 28px 40px;
  position: relative;
  transition: background 0.4s ease;
}

.discipline:hover { background: #12151a; }

.discipline .num {
  color: var(--accent);
  display: block;
  margin-bottom: 26px;
}

.discipline h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.discipline p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* ---------- footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  padding-bottom: 36px;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}

.pulse {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 1; box-shadow: 0 0 0 5px transparent; }
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .scan, .pulse { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  .disciplines { grid-template-columns: 1fr; }
  .ghost span { font-size: 40vw; }
  .topbar .wrap { font-size: 0.7rem; }
}
