:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --ink: #f4f1ea;
  --muted: #b7b0a4;
  --gold: #c9a227;
  --gold-2: #e3c15a;
  --red: #b42318;
  --red-2: #d32f2f;
  --line: rgba(255,255,255,.08);
  --shadow: 0 24px 60px rgba(0,0,0,.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  position: relative;
}
#binary-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .7;
}
header, section, footer { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,10,10,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .04em; }
.brand img { height: 54px; width: auto; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav-links a:hover { color: var(--gold-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 4px; border: 0; cursor: pointer;
  letter-spacing: .03em;
}
.btn:hover { background: var(--red-2); }
.btn-gold { background: var(--gold); color: #111; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; border: 1px solid var(--gold); color: var(--gold-2); }

.hero {
  min-height: 92vh;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(201,162,39,.12), transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55));
  text-align: center; padding: 60px 20px 80px;
}
.hero img {
  width: min(520px, 86vw);
  margin: 0 auto 28px;
  opacity: 0;
  animation: logoFadeIn 1.8s ease-out forwards;
}
@keyframes logoFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.kicker { color: var(--gold); letter-spacing: .28em; text-transform: uppercase; font-size: 13px; font-weight: 700; }
.hero h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(32px, 5vw, 58px); line-height: 1.15; margin: 10px 0 16px; }
.lede { color: var(--muted); max-width: 640px; margin: 0 auto 28px; font-size: 18px; }

section { padding: 88px 0; }
.section-dark { background: rgba(17,17,17,.72); }
section:not(.hero):not(.section-dark) { background: rgba(10,10,10,.55); }
.section-title { font-family: "Playfair Display", Georgia, serif; font-size: clamp(28px, 4vw, 44px); margin: 8px 0 16px; }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 22px; margin: 10px 0 8px; font-family: "Playfair Display", Georgia, serif; }
.card p { color: var(--muted); }
.icon { font-size: 28px; color: var(--gold); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.muted { color: var(--muted); }
.article-list article { padding: 22px 0; border-bottom: 1px solid var(--line); }
.article-list h3 { margin-bottom: 6px; }
.meta { font-size: 13px; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-family: "Playfair Display", Georgia, serif; font-size: 42px; margin: 10px 0 18px; }
.prose h2 { font-family: "Playfair Display", Georgia, serif; margin: 28px 0 10px; }
.prose p, .prose li { color: #ddd6c8; margin-bottom: 14px; }
.prose ul { padding-left: 22px; }

form { display: grid; gap: 12px; }
input, textarea, select {
  width: 100%; background: #0d0d0d; color: var(--ink);
  border: 1px solid var(--line); padding: 12px 14px; font: inherit;
}
footer { border-top: 1px solid var(--line); padding: 40px 0 28px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .grid-4, .grid-3, .grid-2, .split { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
