*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #c8a24a;
  --gold-light: #e6c877;
  --gold-deep: #a8842a;
  --gold-faint: rgba(200, 162, 74, 0.1);
  --gold-glow: rgba(200, 162, 74, 0.3);

  --ink: #0a0807;
  --paper: #f7f1e3;
  --paper-warm: #ede4cf;
  --paper-shadow: #d8cfb8;

  --leather-dark: #2a1f15;
  --leather-mid: #3d2f20;
  --leather-light: #5c4530;

  --text: #f5ede0;
  --text-soft: rgba(245, 237, 224, 0.72);
  --text-faint: rgba(245, 237, 224, 0.42);

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'IBM Plex Sans Thai', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1280px;
  --nav-h: 76px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  font-weight: 400;
  font-size: 16px;
  background-image:
    radial-gradient(ellipse 1200px 800px at 50% -200px, rgba(200, 162, 74, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 800px 600px at 100% 50%, rgba(200, 162, 74, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

::selection { background: var(--gold); color: var(--ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
img { display: block; max-width: 100%; }

/* PAPER NOISE TEXTURE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ===================== SCROLL PROGRESS ===================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--gold));
  width: 0%; z-index: 1000;
  box-shadow: 0 0 10px var(--gold-glow);
  transition: width 0.05s linear;
}

/* ===================== NAVIGATION ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(10, 8, 7, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(200, 162, 74, 0.15);
  padding: 12px 0;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--leather-dark), var(--leather-mid));
  border: 1px solid var(--gold);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 26px;
  color: var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(200, 162, 74, 0.2);
  position: relative;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 4px;
  border: 1px solid rgba(200, 162, 74, 0.3);
  border-radius: 2px;
  pointer-events: none;
}

.brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.brand-name em {
  color: var(--gold);
  font-style: italic;
}
.brand-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-top: 3px;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a::after {
  content: ''; position: absolute;
  left: 50%; bottom: 2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease), left 0.3s var(--ease);
}
.nav-links a:hover::after { width: calc(100% - 36px); left: 18px; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  text-transform: uppercase;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--ink);
  letter-spacing: 0.1em;
}

.mobile-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 4px;
}
.mobile-toggle:hover { background: rgba(200, 162, 74, 0.08); }

/* ===================== HERO — LIBRARY ATRIUM ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 80px) 0 100px;
  position: relative;
  overflow: hidden;
}

/* decorative book spines on the side */
.hero-shelf {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 20px;
  opacity: 0.4;
  pointer-events: none;
}
.hero-shelf-left { left: 0; transform: scaleX(-1); }
.hero-shelf-right { right: 0; }

.spine {
  width: 14px;
  background: linear-gradient(90deg, var(--leather-dark), var(--leather-mid), var(--leather-dark));
  border-left: 1px solid rgba(200, 162, 74, 0.2);
  border-right: 1px solid rgba(0,0,0,0.5);
  position: relative;
  border-radius: 1px;
}
.spine:nth-child(odd) { background: linear-gradient(90deg, #2a1410, #4a2419, #2a1410); }
.spine:nth-child(3n) { background: linear-gradient(90deg, #1a1f10, #303820, #1a1f10); }
.spine:nth-child(5n) { background: linear-gradient(90deg, #2a1f15, #463222, #2a1f15); }
.spine::after {
  content: '';
  position: absolute;
  top: 30%; bottom: 30%; left: 50%;
  width: 1px; height: 30px;
  background: var(--gold);
  opacity: 0.5;
}

@media (max-width: 1100px) { .hero-shelf { display: none; } }

.hero-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.1s forwards;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s var(--ease) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) { animation-delay: 0.35s; }
.hero-title em {
  font-style: italic;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-rule {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  margin: 0 auto 28px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.5s forwards;
}
.hero-rule-line {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-rule-diamond {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--gold-glow);
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.65s forwards;
}

.hero-ctas {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.8s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  opacity: 0;
  transition: opacity 0.4s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--gold-glow); letter-spacing: 0.1em; }
.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }

.btn-ghost {
  border: 1px solid rgba(200, 162, 74, 0.4);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: var(--gold-faint);
  color: var(--gold);
  letter-spacing: 0.1em;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* hero stats — embossed numbers */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid rgba(200, 162, 74, 0.2);
  padding-top: 48px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1s forwards;
}
.hero-stat {
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid rgba(200, 162, 74, 0.1);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.hero-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .hero-stat:nth-child(2) { border-right: none; }
}

/* ===================== SECTION HEADERS ===================== */
section { padding: clamp(80px, 12vw, 140px) 0; position: relative; z-index: 2; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

.section-head { text-align: center; margin-bottom: 72px; }
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-sub {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===================== LIBRARY GRID — book covers ===================== */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px 32px;
  perspective: 2000px;
}

.book-card {
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}
.book-card:hover { transform: rotateY(-8deg) translateZ(20px); }

.book-cover {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 2px 6px 6px 2px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.7),
    0 18px 36px -18px rgba(0,0,0,0.4),
    -8px 0 12px -4px rgba(0,0,0,0.5);
  background: linear-gradient(135deg, var(--leather-dark), var(--leather-mid), var(--leather-dark));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px 28px 38px;
  transition: box-shadow 0.6s;
}

/* spine effect on left */
.book-cover::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 18px;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.3) 30%,
    rgba(0,0,0,0.05) 60%,
    transparent 100%);
}

/* gilt page edge on right */
.book-cover::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 8px;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.3),
    var(--gold) 30%,
    var(--gold-light) 50%,
    var(--gold) 70%,
    rgba(0,0,0,0.3));
  opacity: 0.7;
}

.book-card:hover .book-cover {
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.8),
    0 28px 50px -18px rgba(200, 162, 74, 0.15),
    -8px 0 12px -4px rgba(0,0,0,0.5);
}

/* book-specific themes */
.book-cover-sword {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(200, 162, 74, 0.15), transparent 60%),
    linear-gradient(135deg, #1a1410 0%, #3d2818 50%, #2a1d12 100%);
  border: 1px solid rgba(200, 162, 74, 0.3);
}
.book-cover-thaillm {
  background:
    radial-gradient(ellipse at 70% 100%, rgba(80, 100, 60, 0.2), transparent 60%),
    linear-gradient(135deg, #0f1812 0%, #1a2818 50%, #142016 100%);
  border: 1px solid rgba(150, 200, 130, 0.3);
}
.book-cover-elliot {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(120, 80, 40, 0.15), transparent 60%),
    linear-gradient(135deg, #1a1208 0%, #3a2614 50%, #221608 100%);
  border: 1px solid rgba(200, 162, 74, 0.2);
}
.book-cover-rm {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(140, 50, 50, 0.2), transparent 60%),
    linear-gradient(135deg, #160a0a 0%, #2c1414 50%, #1a0e0e 100%);
  border: 1px solid rgba(200, 100, 80, 0.2);
}
.book-cover-mt5 {
  background:
    radial-gradient(ellipse at 30% 100%, rgba(60, 90, 130, 0.18), transparent 60%),
    linear-gradient(135deg, #0a0f1a 0%, #14233a 50%, #0e1828 100%);
  border: 1px solid rgba(100, 140, 200, 0.2);
}
.book-cover-coming {
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
  border: 1px dashed rgba(200, 162, 74, 0.2);
  opacity: 0.6;
}

.book-badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  padding: 4px 10px;
  background: rgba(200, 162, 74, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(200, 162, 74, 0.3);
  border-radius: 1px;
  text-transform: uppercase;
}
.book-badge.new { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.book-badge.coming { background: rgba(255,255,255,0.05); color: var(--text-faint); border-color: rgba(255,255,255,0.1); }

.book-meta-top {
  display: flex; flex-direction: column; gap: 8px;
}

.book-flourish {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 8px;
}

.book-title-block { margin: auto 0; }
.book-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.book-title em { font-style: italic; color: var(--gold-light); display: block; margin-top: 4px; }
.book-subtitle {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 300;
  line-height: 1.5;
}

.book-meta-bottom {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(200, 162, 74, 0.15);
}

.book-author {
  display: flex; align-items: center; gap: 10px;
}
.book-author-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-style: italic;
  font-size: 14px;
}
.book-author-info { line-height: 1.2; }
.book-author-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-light);
}
.book-author-role {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.book-stats {
  display: flex; gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.book-stats span { display: flex; align-items: center; gap: 4px; }
.book-stats svg { width: 12px; height: 12px; opacity: 0.7; }

/* card meta below cover */
.book-info {
  margin-top: 24px;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
}
.book-info-left { flex: 1; }
.book-info-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.book-info-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.book-read-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid var(--gold);
  transition: gap 0.3s var(--ease);
  white-space: nowrap;
}
.book-card:hover .book-read-btn { gap: 12px; }

/* ===================== AUTHOR SECTION ===================== */
.author-section {
  background: linear-gradient(180deg, transparent, rgba(200, 162, 74, 0.03) 50%, transparent);
}

.author-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) { .author-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; } }

.author-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.3;
  margin-bottom: 32px;
  position: relative;
}
.author-quote::before {
  content: '"';
  position: absolute;
  top: -40px; left: -20px;
  font-size: 140px;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  font-family: Georgia, serif;
}
.author-attribution {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.author-bio {
  padding: 48px;
  background: linear-gradient(135deg, var(--leather-dark), var(--leather-mid));
  border: 1px solid rgba(200, 162, 74, 0.2);
  border-radius: 4px;
  position: relative;
}
.author-bio::before {
  content: ''; position: absolute; inset: 8px;
  border: 1px solid rgba(200, 162, 74, 0.15);
  border-radius: 2px;
  pointer-events: none;
}

.author-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 6px;
}
.author-name em { color: var(--gold); font-style: italic; }
.author-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.author-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 14px;
}
.author-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px;
  color: var(--text-soft);
}
.author-list li::before {
  content: ''; flex-shrink: 0;
  width: 6px; height: 6px;
  background: var(--gold);
  margin-top: 8px;
  transform: rotate(45deg);
}

/* ===================== PHILOSOPHY ===================== */
.philosophy {
  text-align: center;
  padding: clamp(60px, 8vw, 100px) 0;
  background:
    radial-gradient(ellipse at center, rgba(200, 162, 74, 0.06), transparent 70%);
}
.philosophy-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 64px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 32px;
  opacity: 0.6;
}
.philosophy-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.4;
  max-width: 720px;
  margin: 0 auto 24px;
}
.philosophy-trans {
  font-size: 15px;
  color: var(--text-soft);
  max-width: 480px;
  margin: 0 auto;
}

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid rgba(200, 162, 74, 0.15);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.footer-brand-text {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 16px;
  line-height: 1.7;
  font-style: italic;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text-soft);
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
  position: relative;
}
.footer-col a:hover { color: var(--gold); padding-left: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(200, 162, 74, 0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
}

/* ===================== RISK DISCLAIMER ===================== */
.risk-bar {
  padding: 24px 0;
  background: rgba(200, 60, 60, 0.04);
  border-top: 1px solid rgba(200, 60, 60, 0.15);
  border-bottom: 1px solid rgba(200, 60, 60, 0.15);
}
.risk-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.6;
}
.risk-icon {
  flex-shrink: 0;
  color: rgba(220, 80, 80, 0.8);
  width: 18px; height: 18px;
  margin-top: 2px;
}
.risk-content strong { color: rgba(220, 80, 80, 0.9); margin-right: 8px; }

/* ===================== MOBILE NAV ===================== */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
}
.mobile-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10, 8, 7, 0.98);
  backdrop-filter: blur(20px);
  padding: 24px;
  transform: translateY(-150%);
  transition: transform 0.4s var(--ease);
  z-index: 99;
  border-bottom: 1px solid rgba(200, 162, 74, 0.2);
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer a {
  display: block;
  padding: 16px 8px;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid rgba(200, 162, 74, 0.1);
}
.mobile-drawer a:last-child { border-bottom: none; }
.mobile-drawer a:hover { color: var(--gold); padding-left: 16px; }

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Histats counter — hidden site-wide (tracking script still runs) */
#histats_counter {
  display: none !important;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}