/* ═══════════════════════════════════════════════
   Talana Design — Shared Styles
   Dark editorial portfolio
═══════════════════════════════════════════════ */

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

:root {
  --bg:           #070C18;
  --surface:      #0D1425;
  --surface-2:    #131D33;
  --surface-3:    #1A2640;
  --border:       rgba(255,255,255,0.09);
  --text:         #F0EBF8;
  --text-muted:   #C4CBDB;
  --text-dim:     #3A4560;
  --accent:       #A259FF;
  --accent-light: rgba(162,89,255,0.12);
  --accent-glow:  rgba(162,89,255,0.06);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1440px;
  --pad-x: clamp(1.5rem, 5vw, 5rem);
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  justify-content: space-between;
  transition: background 0.4s var(--ease-out), border-bottom 0.4s;
}

.nav.scrolled {
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-logo em {
  font-style: normal;
  color: var(--accent);
}

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

.nav-links a {
  font-size: 1.14rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

@media (max-width: 768px) {
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.8rem; }
  .nav-links .nav-cta { display: none; }
}

.nav-links a:hover { color: var(--text); }

.nav-links .nav-cta {
  color: var(--accent);
  font-weight: 500;
}

/* ─── FOOTER ─── */
.footer {
  padding: 4rem var(--pad-x) 3rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-logo em { font-style: normal; color: var(--accent); }

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ─── ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.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; }

/* ─── UTILITIES ─── */
.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.2em 0.75em;
  border-radius: 2px;
}

.tag-accent {
  color: var(--accent);
  border-color: rgba(201,168,76,0.25);
  background: var(--accent-light);
}

.section-label {
  font-size: 0.895rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 1rem 0;
}

/* ─── QUOTE SECTION ─── */
.quote-section {
  padding: 8rem var(--pad-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '\201C';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 40vw;
  color: var(--surface-2);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.quote-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  max-width: 900px;
  margin: 0 auto;
}

.quote-text em {
  color: var(--accent);
  font-style: italic;
}

.quote-attr {
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── SCROLL HINT ─── */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.4; }
}

/* ─── CASE STUDY FONT OVERRIDES ─── */
.cs-body { font-size: 20px !important; }
.cs-step-desc { font-size: 20px !important; }
.cs-result-label { font-size: 20px !important; }
.cs-overview-value { font-size: 20px !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .footer {
    grid-template-columns: 1fr;
  }
  .footer-links {
    justify-content: flex-start;
  }
  .nav-links .nav-cta-label { display: none; }
}
