/* ============================================================
   EDANTRA OS — BASE.CSS
   Design system · Reset · Typography · Nav · Footer · Buttons · Reveals
   ============================================================ */

/* ─── 1. CUSTOM PROPERTIES ─── */
:root {
  --black:         #0C0C0E;
  --off-white:     #F3F1EB;
  --warm-white:    #FAF8F4;
  --mid:           #5A5855;
  --border:        rgba(12,12,14,0.11);
  --border-strong: rgba(12,12,14,0.22);
  --accent:        #C8FF00;
  --accent-soft:   rgba(200,255,0,0.10);

  --serif:   'EB Garamond', Georgia, serif;
  --sans:    'Archivo', sans-serif;
  --display: 'Bebas Neue', sans-serif;

  --nav-h:   58px;
  --page-px: 48px;
  --max-w:   1440px;
}

/* ─── 2. RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--black);
  background: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a   { color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ─── 3. LAYOUT ─── */
.s-inner { max-width: var(--max-w); margin: 0 auto; }
.px-page { padding-left: var(--page-px); padding-right: var(--page-px); }
section  { border-bottom: 1px solid var(--border); }

/* ─── 4. TYPOGRAPHY ─── */

/* Section label */
.sec-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 64px;
}

/* Eyebrow / small cap label */
.t-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}

/* Display headings — Bebas Neue */
.t-display-xl {
  font-family: var(--display);
  font-size: clamp(72px, 11vw, 172px);
  font-weight: 400;
  line-height: 0.90;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.t-display-lg {
  font-family: var(--display);
  font-size: clamp(58px, 7.5vw, 116px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.t-display-md {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  line-height: 0.94;
  text-transform: uppercase;
}

/* Serif italic — EB Garamond */
.t-serif-xl { font-family: var(--serif); font-size: clamp(48px, 6.3vw, 98px);  font-weight: 400; font-style: italic; line-height: 1;    text-transform: none; }
.t-serif-lg { font-family: var(--serif); font-size: clamp(32px, 3.8vw, 54px);  font-weight: 400; font-style: italic; line-height: 1.15; }
.t-serif-md { font-family: var(--serif); font-size: 20px;                       font-weight: 400; font-style: italic; line-height: 1.6;  }

/* Body */
.t-body-lg { font-size: 18px; font-weight: 400; line-height: 1.8; }
.t-body    { font-size: 15px; font-weight: 400; line-height: 1.72; }
.t-body-sm { font-size: 13px; font-weight: 400; line-height: 1.6; }

/* ─── 5. BUTTONS ─── */

/* Primary — filled dark */
.btn-dark {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--off-white);
  background: var(--black);
  padding: 15px 34px;
  text-decoration: none;
  border: 1px solid var(--black);
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
}
.btn-dark:hover { background: transparent; color: var(--black); }

/* Ghost — text link */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.btn-ghost:hover { color: var(--black); }

/* Underline arrow link */
.link-arrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: gap 0.2s;
}
.link-arrow::after { content: '→'; }
.link-arrow:hover  { gap: 16px; }

/* Nav CTA button */
.nav-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--black);
  border: 1px solid var(--border-strong);
  padding: 9px 20px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-btn:hover { background: var(--black); color: var(--off-white); }

/* ─── 6. NAV ─── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-px);
  background: rgba(243,241,235,0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--black); }

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--black); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.nav-email {
  font-size: 12px;
  font-weight: 400;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-email:hover { color: var(--black); }

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  height: 1px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Fullscreen mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--off-white);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px var(--page-px) 48px;
}
.nav-overlay.is-open { display: flex; }

.nav-overlay-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.nav-overlay-links a {
  font-family: var(--display);
  font-size: clamp(48px, 14vw, 80px);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  line-height: 1;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  transition: color 0.2s;
  display: block;
}
.nav-overlay-links a:first-child { border-top: 1px solid var(--border); }
.nav-overlay-links a:hover { color: var(--mid); }

.nav-overlay-meta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-overlay-meta a,
.nav-overlay-meta span {
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-overlay-meta a:hover { color: var(--black); }

/* ─── 7. FOOTER ─── */
.site-footer {
  background: var(--black);
  padding: 52px var(--page-px);
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-white);
  text-decoration: none;
}
.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--off-white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  line-height: 1.9;
}
.footer-bottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.65); }

.footer-tagline {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: rgba(255,255,255,0.30);
  text-align: right;
  line-height: 1.72;
}

/* ─── 8. REVEAL ANIMATIONS ─── */
/* Active class .visible added by js/reveal.js IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delay modifiers — apply alongside .reveal */
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.30s; }

/* Fade only variant */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-fade.visible { opacity: 1; }

/* ─── 9. LIVE BADGE ─── */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.badge-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-live 1.8s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ─── 10. RESPONSIVE ─── */
@media (max-width: 820px) {
  :root { --page-px: 20px; }

  .nav-links,
  .nav-email { display: none; }
  .nav-hamburger { display: flex; }
}
