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

:root {
  --earth:      #1a110a;
  --earth-mid:  #3d2614;
  --earth-warm: #9a6a42;
  --sand:       #f0e8d8;
  --sand-dark:  #ddd0b8;
  --cream:      #faf7f2;
  --signal:     #0f6b5f;
  --teal:       #1faa96;
  --teal-light: #cce8e4;
  --ember:      #b8751e;
  --brass:      #c4922a;
  --strings:    #993556;
  --rhythm:     #3B6D11;
  --nav-h:      68px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--earth);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(26, 17, 10, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}

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

.nav-waveform { display: flex; flex-direction: column; gap: 4px; }
.nav-wave { height: 2px; background: var(--teal); border-radius: 2px; }
.nav-wave:nth-child(1) { width: 20px; }
.nav-wave:nth-child(2) { width: 28px; }
.nav-wave:nth-child(3) { width: 16px; }

.nav-brand { display: flex; flex-direction: column; gap: 1px; }
.nav-name { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; color: var(--cream); letter-spacing: 0.02em; }
.nav-tagline { font-size: 10px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 400; letter-spacing: 0.03em; color: rgba(250,247,242,0.6); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }

.nav-cta {
  background: var(--teal) !important; color: var(--earth) !important;
  padding: 9px 20px !important; font-weight: 500 !important;
  letter-spacing: 0.06em !important; text-transform: uppercase !important;
  font-size: 11px !important; transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--teal-light) !important; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--cream); transition: all 0.3s; }

/* ── FOOTER ── */
footer { background: var(--earth); border-top: 1px solid rgba(255,255,255,0.05); padding: 64px 48px 40px; }

.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; font-style: italic; color: var(--cream); margin-bottom: 12px; }
.footer-brand-desc { font-family: 'Lora', serif; font-size: 14px; line-height: 1.75; color: rgba(250,247,242,0.45); margin-bottom: 24px; }
.footer-contact-line { font-size: 13px; color: var(--teal); margin-bottom: 4px; }
.footer-col-title { font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--earth-warm); margin-bottom: 16px; }
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a { font-size: 13px; color: rgba(250,247,242,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col-links a:hover { color: var(--teal); }

.footer-bottom { max-width: 1100px; margin: 28px auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(250,247,242,0.25); }
.footer-tagline { font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); }

/* ── SHARED SECTION STYLES ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 48px; }

.section-label {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--teal); }

.section-title { font-family: 'Playfair Display', serif; font-size: clamp(32px, 4vw, 52px); font-weight: 900; line-height: 1.05; color: var(--cream); }
.section-title em { font-style: italic; color: var(--teal); }
.section-title.dark { color: var(--earth); }
.section-title.dark em { color: var(--signal); }

.page-hero { padding-top: calc(var(--nav-h) + 90px); padding-bottom: 80px; }

.page-hero-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.page-hero-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--teal); }

.page-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(42px, 6vw, 72px); font-weight: 900; line-height: 1.0; color: var(--cream); margin-bottom: 24px; }
.page-hero-title em { font-style: italic; color: var(--teal); }

.page-hero-sub { font-family: 'Lora', serif; font-size: 17px; line-height: 1.8; color: rgba(250,247,242,0.6); max-width: 580px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--earth); padding: 32px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05); gap: 20px;
  }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .container { padding: 0 24px; }
  footer { padding: 48px 24px 32px; }
  .page-hero { padding-top: calc(var(--nav-h) + 60px); }
}

/* ── CO-BRAND: IGNITED FUTURE + IAJN ── */
.nav-if-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.2px;
  line-height: 1.1;
}
.nav-if-accent { color: #c4922a; }

/* Override old nav-name — now handled by nav-if-name */
.nav-logo .nav-brand .nav-name { display: none; }

/* Tagline stays italic for IAJN product label */
.nav-tagline {
  font-family: 'Lora', serif !important;
  font-style: italic !important;
  font-size: 11px !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: rgba(250,247,242,0.45) !important;
}

/* Footer co-brand block */
.footer-cobrand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-if-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.2px;
  line-height: 1.1;
}
.footer-if-accent { color: #c4922a; }
.footer-if-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a4f2e;
  margin-top: 2px;
}
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 16px;
}
