:root {
  --black: #0a0a0b;
  --ink: #0e0e10;
  --text: #ece7dc;
  --muted: #857f70;
  --muted-2: #5c584d;
  --gold: #d8b25f;
  --gold-soft: #ecd49a;
  --line: rgba(216, 178, 95, 0.16);
  --line-faint: rgba(236, 231, 220, 0.07);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
}

body {
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(216, 178, 95, 0.26); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}
.index-row:focus-visible { outline-offset: -2px; }

/* ---------- Atmosphere: drifting gold aura + film grain ---------- */
.aura {
  position: fixed;
  inset: -30vh -10vw auto;
  height: 90vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 50% at 70% 26%, rgba(216, 178, 95, 0.16), transparent 62%),
    radial-gradient(40% 44% at 22% 40%, rgba(216, 178, 95, 0.07), transparent 60%);
  filter: blur(14px);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); opacity: 0.85; }
  100% { transform: translate3d(4%, 3%, 0) scale(1.12); opacity: 1; }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Shell ---------- */
.top,
.stage,
.base {
  position: relative;
  z-index: 2;
  width: min(1040px, 90vw);
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0 0;
}

.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.8rem;
  color: #241c08;
  background: linear-gradient(150deg, var(--gold-soft), var(--gold));
}
.wordmark-text {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  font-weight: 500;
  color: var(--muted);
  padding-left: 2px;
}

.top-contact {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.4s ease, border-color 0.4s ease;
}
.top-contact:hover { color: var(--gold-soft); border-color: var(--line); }

/* ---------- Stage ---------- */
.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(56px, 9vh, 104px);
  padding: clamp(64px, 12vh, 150px) 0 72px;
}

.kicker {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--gold);
  letter-spacing: 0.02em;
}
.kicker span {
  color: var(--muted);
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-left: 10px;
  vertical-align: middle;
}

.statement {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 12vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.028em;
}
.statement span { display: block; }
.statement em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-soft);
}

.sub {
  margin: 34px 0 0;
  max-width: 32ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--muted);
}

/* ---------- Network index ---------- */
.index-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-faint);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.index-count { color: var(--muted-2); letter-spacing: 0.16em; }

.index-list { list-style: none; margin: 0; padding: 0; }
.index-list li { border-bottom: 1px solid var(--line-faint); }

.index-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: baseline;
  gap: 24px;
  padding: 26px 8px 26px 4px;
  position: relative;
  transition: padding-left 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.index-row::before {
  content: '';
  position: absolute;
  left: -4px; right: -4px; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(216, 178, 95, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.index-row:hover { padding-left: 18px; }
.index-row:hover::before { opacity: 1; }

.row-no {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  transition: color 0.4s ease;
}
.index-row:hover .row-no { color: var(--gold); }

.row-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.4s ease;
}
.index-row:hover .row-name { color: var(--gold-soft); }
.row-native {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  margin-left: 8px;
  font-weight: 400;
}

.row-note {
  justify-self: end;
  text-align: right;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  color: var(--muted);
  transition: color 0.4s ease;
}
.index-row:hover .row-note { color: var(--text); }

.row-go {
  font-size: 1rem;
  color: var(--muted-2);
  transform: translate(-4px, 0);
  transition: color 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.index-row:hover .row-go { color: var(--gold); transform: translate(2px, -2px); }

.index-more {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted-2);
}
.index-more a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.35s ease;
}
.index-more a:hover { color: var(--gold-soft); }

/* ---------- Footer ---------- */
.base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0 34px;
  margin-top: 40px;
  border-top: 1px solid var(--line-faint);
  font-size: 0.76rem;
  color: var(--muted-2);
}
.base p { margin: 0; }
.base-motto { font-family: var(--serif); font-style: italic; color: var(--muted); }
.base a { color: var(--muted); transition: color 0.35s ease; }
.base a:hover { color: var(--gold-soft); }

/* ---------- Entrance ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
}
body.ready .reveal {
  opacity: 1;
  transform: none;
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 120ms + 80ms);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .stage { gap: 52px; padding-top: 56px; }
  .index-row {
    grid-template-columns: auto 1fr auto;
    gap: 14px 16px;
    padding: 20px 2px;
  }
  .row-note {
    grid-column: 2 / 3;
    justify-self: start;
    text-align: left;
    font-size: 0.8rem;
  }
  .row-go { grid-row: 1 / 2; grid-column: 3 / 4; }
  .sub { max-width: none; }
  .base { justify-content: flex-start; gap: 6px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .aura { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .index-row, .row-go { transition: none; }
}
