@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --ink: #070907;
  --panel: #0d110f;
  --panel-soft: #111713;
  --paper: #ece9df;
  --muted: #aaa99f;
  --gold: #c59a51;
  --gold-bright: #e9c57e;
  --blue: #74b9dd;
  --line: rgba(197, 154, 81, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 100%, rgba(37, 58, 46, .22), transparent 38rem),
    var(--ink);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 30; padding: .8rem 1rem; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(3,5,4,.86), rgba(3,5,4,.08));
}
.wordmark { display: flex; align-items: center; gap: .72rem; text-decoration: none; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 1.3rem; letter-spacing: .08em; }
.wordmark span span, .footer-mark span { color: var(--gold-bright); }
.wordmark-mark { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border: 1px solid var(--gold); transform: rotate(45deg); color: var(--gold-bright); font-size: .95rem; }
.wordmark-mark::first-letter { transform: rotate(-45deg); }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
nav a { color: #d2d0c8; text-decoration: none; font-size: .78rem; text-transform: uppercase; letter-spacing: .15em; }
nav a:hover, nav a:focus-visible { color: var(--gold-bright); }
.nav-door { padding: .75rem 1rem; border: 1px solid var(--line); }

.hero { min-height: 100svh; position: relative; display: grid; align-items: end; overflow: hidden; }
.hero-art { position: absolute; inset: 0; background-image: url('/assets/ekygoblin-gateway-v1.png'); background-size: cover; background-position: 47% center; transform: scale(1.015); animation: settle 9s ease-out both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,5,4,.12) 0%, rgba(3,5,4,.28) 44%, rgba(3,5,4,.82) 73%, rgba(3,5,4,.96) 100%), linear-gradient(0deg, #070907 0%, transparent 42%); }
.hero-content { position: relative; z-index: 2; width: min(43rem, calc(100% - 2.5rem)); margin: 0 6vw 10vh auto; padding-left: 2rem; border-left: 1px solid rgba(197,154,81,.44); }
.eyebrow, .section-kicker { color: var(--gold-bright); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.pulse { display: inline-block; width: .5rem; aspect-ratio: 1; margin-right: .55rem; background: #77caa0; border-radius: 50%; box-shadow: 0 0 1rem #77caa0; }
h1, h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; line-height: .92; margin: 1.1rem 0; text-wrap: balance; }
h1 { font-size: clamp(4rem, 7.4vw, 7.6rem); letter-spacing: -.035em; }
h1 em, h2 em { color: var(--gold-bright); font-weight: 500; }
.lead { max-width: 35rem; color: #d1d0c8; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.72; }
.hero-actions, .threshold-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { min-height: 3.25rem; padding: .95rem 1.25rem; display: inline-flex; justify-content: space-between; align-items: center; gap: 1.25rem; border: 1px solid var(--line); text-decoration: none; text-transform: uppercase; letter-spacing: .11em; font-size: .71rem; font-weight: 600; transition: .25s ease; }
.button-primary { color: #0a0b09; background: linear-gradient(135deg, var(--gold-bright), #a77734); box-shadow: 0 .7rem 2.5rem rgba(155,112,44,.18); }
.button-primary:hover { transform: translateY(-2px); filter: brightness(1.09); }
.button-secondary { color: var(--paper); background: rgba(7,9,7,.58); backdrop-filter: blur(12px); }
.button-secondary:hover { border-color: var(--gold); color: var(--gold-bright); }
.door-note { color: #8d918c; font-size: .72rem; letter-spacing: .045em; margin-top: 1.15rem; }
.scroll-cue { position: absolute; z-index: 3; bottom: 1.8rem; left: 50%; width: 1.5rem; height: 2.5rem; border: 1px solid rgba(255,255,255,.23); border-radius: 2rem; }
.scroll-cue span { position: absolute; width: .22rem; height: .5rem; border-radius: 1rem; background: var(--gold-bright); left: calc(50% - .11rem); top: .48rem; animation: scroll 2s infinite; }

.section { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(5rem, 10vw, 9rem) 0; }
.purpose { border-bottom: 1px solid var(--line); }
.purpose-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.purpose h2, .roadmap h2, .threshold h2 { font-size: clamp(3rem, 6vw, 5.8rem); }
.purpose-copy { padding-top: 1.8rem; color: #b9b8af; line-height: 1.8; font-size: 1.03rem; }
.purpose-copy p:first-child { color: var(--paper); font-size: 1.16rem; }
.principles { display: grid; grid-template-columns: repeat(4,1fr); margin-top: clamp(3rem, 7vw, 6rem); border: 1px solid var(--line); }
.principles article { padding: 2rem; min-height: 14rem; border-right: 1px solid var(--line); }
.principles article:last-child { border-right: 0; }
.principles span { color: var(--gold); font-family: 'Cormorant Garamond', Georgia, serif; }
.principles h3 { margin: 3rem 0 .7rem; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.65rem; }
.principles p { color: var(--muted); font-size: .86rem; line-height: 1.65; }

.roadmap-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.roadmap h2 { margin-bottom: 0; }
.status-card { display: flex; align-items: center; gap: 1rem; min-width: 18rem; padding: 1rem 1.2rem; background: var(--panel-soft); border: 1px solid var(--line); }
.status-light { width: .65rem; aspect-ratio: 1; border-radius: 50%; background: #77caa0; box-shadow: 0 0 1.2rem #77caa0; }
.status-card small, .status-card strong { display: block; }
.status-card small { color: var(--muted); text-transform: uppercase; letter-spacing: .15em; font-size: .58rem; margin-bottom: .35rem; }
.status-card strong { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.05rem; font-weight: 600; }
.steps { list-style: none; padding: 0; margin: 4rem 0 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1rem; align-items: center; padding: 1.55rem .5rem; border-bottom: 1px solid var(--line); }
.steps > li > span { color: var(--gold); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.25rem; }
.steps h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.55rem; margin: 0 0 .3rem; }
.steps p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .87rem; }
.steps b { color: var(--gold-bright); font-size: .62rem; letter-spacing: .15em; border: 1px solid var(--line); padding: .45rem .6rem; }

.threshold { text-align: center; padding-top: 2rem; padding-bottom: 8rem; }
.threshold::before { content: ''; display: block; width: 1px; height: 7rem; background: linear-gradient(transparent, var(--gold)); margin: 0 auto 3rem; }
.threshold-glyph { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--gold-bright); margin-bottom: 1.5rem; }
.threshold-glyph span { display: block; width: 5rem; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.threshold-glyph span:last-child { transform: rotate(180deg); }
.threshold-glyph b { width: 3rem; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--gold); transform: rotate(45deg); font-family: 'Cormorant Garamond', Georgia, serif; }
.threshold h2 { max-width: 58rem; margin-left: auto; margin-right: auto; }
.threshold > p:not(.section-kicker) { max-width: 39rem; margin: 0 auto; color: var(--muted); line-height: 1.7; }
.threshold-actions { justify-content: center; }
.text-link { color: var(--gold-bright); padding: 1rem; text-decoration: none; border-bottom: 1px solid var(--line); font-size: .76rem; text-transform: uppercase; letter-spacing: .11em; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 2rem clamp(1.25rem, 4vw, 4.5rem); border-top: 1px solid var(--line); color: #777c77; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
footer p:last-child { text-align: right; }
.footer-mark { color: var(--paper); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.1rem; }

.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1.015); } }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(1rem); } }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; }
  nav a:not(.nav-door) { display: none; }
  .hero { min-height: 100svh; align-items: end; }
  .hero-art { background-position: 35% center; }
  .hero-shade { background: linear-gradient(0deg, #070907 3%, rgba(3,5,4,.78) 48%, rgba(3,5,4,.08) 100%); }
  .hero-content { width: auto; margin: 0 1.25rem 8vh; padding-left: 1rem; }
  h1 { font-size: clamp(3.5rem, 16vw, 5.6rem); }
  .purpose-grid { grid-template-columns: 1fr; gap: .5rem; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principles article:nth-child(2) { border-right: 0; }
  .principles article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .roadmap-head { align-items: start; flex-direction: column; }
  .status-card { min-width: 0; width: 100%; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer p:last-child { text-align: left; }
}

@media (max-width: 520px) {
  .nav-door { padding: .65rem .7rem; font-size: .6rem; }
  .wordmark { font-size: 1.02rem; }
  .wordmark-mark { width: 1.65rem; }
  .hero-actions .button { width: 100%; }
  .principles { grid-template-columns: 1fr; }
  .principles article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .principles article:last-child { border-bottom: 0; }
  .principles h3 { margin-top: 1.5rem; }
  .steps li { grid-template-columns: 2.4rem 1fr; }
  .steps b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
