@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=IBM+Plex+Mono:wght@300;400;500&family=Playfair+Display:ital,wght@0,700;0,900;1,400&family=Crimson+Pro:ital,wght@0,300;0,400;1,300&display=swap');

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

:root {
  --forge:        #0D0C08;
  --forge-mid:    #1C1A14;
  --forge-light:  #2A271E;
  --gold:         #C8991E;
  --gold-mid:     #D4A84B;
  --gold-light:   #EDD078;
  --gold-dim:     #7A5C10;
  --gold-deep:    #4A3A10;
  --rust:         #7A2E10;
  --rust-hot:     #D4522A;
  --soil:         #2E1F0F;
  --wheat:        #F2E4C4;
  --cream:        #FAF6EC;
  --steel:        #7A7D85;
  --steel-light:  #A8ACB5;
  --border:       rgba(200,153,30,0.12);
  --border-mid:   rgba(200,153,30,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Pro', Georgia, serif;
  background: var(--cream);
  color: var(--soil);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--forge); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--forge);
  border-bottom: 1px solid var(--border);
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 48px;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-disc {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-brand-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1;
}

.nav-brand-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  color: #4A3A14;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--steel-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forge);
  background: var(--gold);
  padding: 9px 20px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--gold-light); }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: var(--forge);
  padding: 120px 48px 60px;
  position: relative;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(200,153,30,0.04) 0px, rgba(200,153,30,0.04) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg, rgba(200,153,30,0.03) 0px, rgba(200,153,30,0.03) 1px, transparent 1px, transparent 80px);
  pointer-events: none;
}

.page-header-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--rust-hot);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.page-header-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--rust-hot);
}

.page-header h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  color: var(--wheat);
  line-height: 1.05;
  position: relative;
  z-index: 1;
}

.page-header h1 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold-mid);
}

.page-header-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--steel-light);
  max-width: 560px;
  line-height: 1.7;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

/* ── SECTIONS ── */
.section { position: relative; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust-hot);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  display: block;
  width: 22px; height: 1px;
  background: var(--rust-hot);
}

.section-label.gold { color: var(--gold-mid); }
.section-label.gold::before { background: var(--gold-mid); }

.section-h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-h2 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--rust-hot);
}

.section-intro {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--steel);
  max-width: 600px;
  margin-bottom: 52px;
}

/* ── DARK SECTION ── */
.dark-section { background: var(--forge); }
.dark-section .section-h2 { color: var(--wheat); }
.dark-section .section-h2 em { color: var(--gold-mid); }
.dark-section .section-intro { color: var(--steel-light); }
.dark-section .section-label { color: var(--gold-mid); }
.dark-section .section-label::before { background: var(--gold-mid); }

/* ── MARQUEE ── */
.marquee-band {
  background: var(--rust);
  height: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: flex;
  animation: marquee 32s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wheat);
  padding: 0 36px;
  opacity: 0.9;
}

.marquee-dot { color: var(--gold-light); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--forge);
  background: var(--gold);
  padding: 13px 30px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--gold-light); }

.btn-ghost {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-light);
  text-decoration: none;
  border-bottom: 1px solid var(--steel);
  padding-bottom: 2px;
  transition: all 0.2s;
}

.btn-ghost:hover { color: var(--gold-light); border-color: var(--gold); }

/* ── FOOTER ── */
footer {
  background: var(--forge);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 48px 40px;
  border-bottom: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--wheat);
  margin-bottom: 4px;
}

.footer-brand-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
}

.footer-blurb {
  font-size: 13px;
  font-weight: 300;
  color: var(--steel);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 16px;
}

.footer-contact-line {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--steel-light);
  line-height: 2;
  letter-spacing: 0.05em;
}

.footer-col-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
}

.footer-nav { display: flex; flex-direction: column; gap: 10px; }

.footer-nav a {
  font-size: 14px;
  color: var(--steel-light);
  text-decoration: none;
  transition: color 0.2s;
  font-style: italic;
}

.footer-nav a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--steel);
  letter-spacing: 0.1em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .section-inner { padding: 60px 24px; }
  .page-header { padding: 100px 24px 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 24px 32px; }
  .footer-bottom { padding: 16px 24px; flex-direction: column; gap: 8px; text-align: center; }
}

/* ── MOBILE NAV ────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(200,153,30,0.35);
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  margin-right: 8px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  transition: all 0.28s ease;
  transform-origin: center;
  pointer-events: none;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer — always in DOM, toggled via .open class */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0D0C08;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}
.mobile-nav-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 24px;
  color: var(--gold);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 72px 32px 40px;
  gap: 0;
}
.mobile-nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 300;
  color: var(--steel-light);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(200,153,30,0.10);
  transition: color 0.2s, padding-left 0.2s;
  display: block;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-link:active,
.mobile-nav-link.active { color: var(--gold); padding-left: 8px; }
.mobile-nav-cta {
  margin-top: 32px;
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0D0C08 !important;
  padding: 18px 24px !important;
  background: var(--gold);
  border: none !important;
  text-align: center;
  border-radius: 0;
}

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
}
