/* ============================================================
   CONSCIOUS FUTURES STUDIO — Design System
   conscious-futures-studio.com
   ============================================================ */

/* Fonts loaded via <link> tags in each HTML file for maximum reliability */

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:         #F5F1E8;
  --bg-warm:    #EDE6D3;
  --bg-dark:    #1A1A18;
  --ink:        #1A1A18;
  --ink-soft:   #3A3833;
  --ink-mute:   #7A756E;
  --line:       rgba(26, 26, 24, 0.12);
  --accent:     #2D4A3E;
  --accent-lt:  #3D6554;
  --gold:       #C8A14D;
  --paper:      #FDFBF5;
  --radius:     3px;
  --nav-h:      72px;
  --max-w:      1380px;
  --pad-x:      2.5rem;
  --pad-section: 7rem;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  line-height: 0.93;
  letter-spacing: -0.025em;
}

.display em,
h1 em, h2 em, h3 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.serif {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  letter-spacing: -0.015em;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  text-decoration: none;
  border: none;
  transition: background 0.22s ease, color 0.22s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
}
.btn-dark:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-light {
  background: var(--bg);
  color: var(--ink);
}
.btn-light:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 241, 232, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.nav.scrolled {
  background: rgba(245, 241, 232, 0.98);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; }

.nav-links a.active {
  font-weight: 500;
}

.nav-cta {
  padding: 0.55rem 1.2rem;
  background: var(--ink);
  color: var(--bg) !important;
  border-radius: 999px;
  font-size: 0.84rem;
  opacity: 1 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent) !important; }

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem var(--pad-x) 2rem;
  z-index: 199;
  flex-direction: column;
  gap: 1rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

/* ============================================================
   TICKER / MARQUEE
   ============================================================ */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-warm);
  padding: 1.25rem 0;
}

.ticker-label {
  padding: 0 var(--pad-x);
  color: var(--ink-mute);
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ticker-track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: marquee 45s linear infinite;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--ink-soft);
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}
.ticker-track span::after {
  content: "✺";
  color: var(--accent);
  font-style: normal;
  font-size: 1.1rem;
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 5rem var(--pad-x) 2.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo img {
  height: 28px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(245, 241, 232, 0.55);
  max-width: 30ch;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.45);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: rgba(245, 241, 232, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 241, 232, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(245, 241, 232, 0.42);
}

.footer-social {
  display: flex;
  gap: 1.25rem;
}
.footer-social a {
  color: rgba(245, 241, 232, 0.42);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--gold); }

/* ============================================================
   PAGE HERO (shared across inner pages)
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) var(--pad-x) 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.page-hero-eyebrow {
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  max-width: 18ch;
  margin-bottom: 2rem;
}

.page-hero p {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ============================================================
   EMAIL CAPTURE FORM (shared)
   ============================================================ */
.email-form {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 0.4rem;
  max-width: 440px;
}

.email-form input {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  font-family: 'Inter Tight', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
}
.email-form input::placeholder { color: var(--ink-mute); }

.email-form button {
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  transition: background 0.2s;
}
.email-form button:hover { background: var(--accent); }

/* Light variant */
.email-form.light input { color: var(--bg); }
.email-form.light input::placeholder { color: rgba(245,241,232,0.5); }
.email-form.light { border-bottom-color: rgba(245,241,232,0.5); }
.email-form.light button { background: var(--bg); color: var(--ink); }
.email-form.light button:hover { background: var(--gold); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.22s; }
[data-reveal-delay="3"] { transition-delay: 0.36s; }
[data-reveal-delay="4"] { transition-delay: 0.5s; }
[data-reveal-delay="5"] { transition-delay: 0.64s; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1100px) {
  :root { --pad-x: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 1.25rem;
    --pad-section: 4.5rem;
  }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
