/* ═══════════════════════════════════════════════════════════════════════════
   SARAH CHAMBERLAIN — THE WARM AUTHORITY
   Unified Brand Stylesheet
   Craft-forward warmth as the foundation. Editorial confidence as the voice.
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* ── DESIGN TOKENS ───────────────────────────────────────────────────────── */
:root {
  /* Color System - The Warm Authority */
  --cream:      #FFFBF5;    /* Primary background */
  --linen:      #F5E6D3;    /* Cards, surfaces */
  --copper:     #D4A574;    /* Warm midtone, borders */
  --brass:      #C4913C;    /* Primary accent, CTAs */
  --espresso:   #1E1108;    /* Headlines, dark sections */
  --violet:     #5E4F8B;    /* Surprise accent, AI sections */
  
  /* Semantic colors */
  --bg-primary:    var(--cream);
  --bg-secondary:  var(--linen);
  --text-primary:  var(--espresso);
  --text-secondary:#4A3E2F;
  --text-muted:    #8A7865;
  --accent-primary:var(--brass);
  --accent-surprise:var(--violet);
  --border-color:  var(--copper);
  --border-subtle: #E8DCC8;
  
  /* Typography - Editorial confidence */
  --font-display:  'Playfair Display', Georgia, serif;  /* High-contrast serif */
  --font-sans:     'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;  /* Humanist sans */
  --font-mono:     'DM Mono', 'Courier New', monospace;  /* Geometric mono */
  
  /* Spacing Scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  
  /* Border Radius - Subtle, warm */
  --radius-sm:  3px;
  --radius-md:  6px;
  --radius-lg:  8px;
  
  /* Shadows - Soft, warm */
  --shadow-sm: 0 2px 8px rgba(30, 17, 8, 0.06);
  --shadow-md: 0 4px 16px rgba(30, 17, 8, 0.08);
  --shadow-lg: 0 8px 24px rgba(30, 17, 8, 0.12);
}

/* ── BASE STYLES ─────────────────────────────────────────────────────────── */
html { 
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { 
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  font-weight: 400;
}

/* Linen grain texture on backgrounds */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

/* Display Headlines - "The soul is in the making" */
h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

/* Body Copy - Humanist sans, warm, readable */
p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.75;
}

p:last-child {
  margin-bottom: 0;
}

em {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--accent-primary);
}

strong {
  font-weight: 500;
  color: var(--text-primary);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-surprise);
}

/* ── NAVIGATION ──────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 251, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--border-subtle);
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
  display: block;
  line-height: 1;
}

.nav-name img {
  height: 42px;
  width: auto;
  max-width: 400px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.nav-name:hover {
  opacity: 0.8;
}

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

.nav-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--copper);
}

.nav-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  letter-spacing: 0.01em;
}

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

/* Email icon in nav */
.nav-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.nav-icon:hover {
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

/* ── HERO SECTION ────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px 60px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-title em {
  font-style: italic;
  color: var(--text-primary);
}

.hero-deck {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--accent-primary);
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #B37F2E;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--cream);
}

.btn-secondary {
  font-size: 14px;
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.btn-secondary:hover {
  color: var(--text-primary);
}

/* Hero Image Area */
.hero-image {
  background: var(--linen);
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── STATS BAR ───────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--linen);
  padding: 48px 40px;
  margin-top: 0;
}

.stats-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── SECTION HEADERS ─────────────────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-deck {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 48px;
}

/* ── FEATURED CASE STUDY ─────────────────────────────────────────────────── */
.featured-case {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.featured-image {
  background: var(--linen);
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  max-width: 520px;
}

.featured-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}

.featured-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.featured-link {
  font-size: 14px;
  color: var(--accent-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.featured-link:hover {
  color: var(--text-primary);
}

.featured-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.featured-link:hover::after {
  transform: translateX(4px);
}

/* ── THE CREATIVE LIFE GRID ──────────────────────────────────────────────── */
.creative-life-section {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 40px;
}

.creative-life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.identity-card {
  background: var(--linen);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  overflow: hidden;
  height: 160px;
}

.identity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: #F0E0CA;
}

.identity-card-image {
  background: var(--copper);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 12px;
  overflow: hidden;
}

.identity-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity-card-content {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.identity-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.identity-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Violet accent for AI-related cards */
.identity-card.ai-accent h3 {
  color: var(--accent-surprise);
}

/* ── PULL QUOTE ──────────────────────────────────────────────────────────── */
.pull-quote {
  max-width: 900px;
  margin: 100px auto;
  padding: 0 40px;
  text-align: center;
}

.pull-quote-text {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.pull-quote-attribution {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── CALLOUT BOXES ───────────────────────────────────────────────────────── */
.callout {
  border-left: 2px solid var(--accent-primary);
  padding: 24px 28px;
  background: var(--linen);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
}

.callout p {
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.callout em {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--accent-primary);
}

/* ── CONTAINER ───────────────────────────────────────────────────────────── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── SECTIONS ────────────────────────────────────────────────────────────── */
section {
  margin-bottom: 80px;
}

/* Thin copper rule lines */
.rule {
  height: 0.5px;
  background: var(--copper);
  margin: 80px 0;
  opacity: 0.4;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--espresso);
  color: var(--linen);
  padding: 60px 40px 40px;
  margin-top: 120px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--cream);
}

.footer-subline {
  font-size: 14px;
  color: var(--copper);
  margin-bottom: 48px;
}

.footer-links {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-links a {
  font-size: 13px;
  color: var(--linen);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 0.5px solid rgba(212, 165, 116, 0.2);
  font-size: 12px;
  color: var(--copper);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .featured-case {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .creative-life-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 24px;
    height: 52px;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .hero,
  .featured-case,
  .creative-life-section,
  .container,
  .container-wide {
    padding-left: 24px;
    padding-right: 24px;
  }
  
  .stats-bar {
    padding: 36px 24px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  
  .creative-life-grid {
    grid-template-columns: 1fr;
  }
  
  .identity-card {
    grid-template-columns: 100px 1fr;
    height: 140px;
  }
  
  .identity-card-content {
    padding: 20px 20px 20px 0;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}

/* ── FADE-IN ANIMATION ───────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── WELCOME MODAL ───────────────────────────────────────────────────────── */
.sc-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.sc-welcome-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sc-welcome-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 17, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sc-welcome-modal {
  position: relative;
  width: 100%;
  max-width: 760px;
  background: var(--cream);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(30, 17, 8, 0.3),
              0 0 0 1px rgba(212, 165, 116, 0.1) inset;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-welcome-overlay.active .sc-welcome-modal {
  transform: translateY(0) scale(1);
}

.sc-welcome-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brass), var(--copper), var(--brass));
}

.sc-welcome-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 400px;
}

.sc-welcome-photo {
  position: relative;
  overflow: hidden;
  background: var(--linen);
}

.sc-welcome-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-welcome-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(255, 251, 245, 0.3) 100%);
}

.sc-welcome-content {
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sc-welcome-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  opacity: 0;
  animation: scFadeUp 0.6s 0.3s forwards;
}

.sc-welcome-heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--espresso);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: scFadeUp 0.6s 0.45s forwards;
}

.sc-welcome-heading em {
  font-style: italic;
  color: var(--brass);
}

.sc-welcome-body {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: scFadeUp 0.6s 0.6s forwards;
}

.sc-welcome-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: scFadeUp 0.6s 0.7s forwards;
}

.sc-welcome-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: var(--linen);
  white-space: nowrap;
}

.sc-welcome-tag.accent {
  border-color: rgba(196, 145, 60, 0.3);
  color: var(--brass);
  background: rgba(196, 145, 60, 0.08);
}

.sc-welcome-tag.violet {
  border-color: rgba(94, 79, 139, 0.3);
  color: var(--violet);
  background: rgba(94, 79, 139, 0.08);
}

.sc-welcome-enter {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cream);
  background: var(--brass);
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  align-self: flex-start;
  opacity: 0;
  animation: scFadeUp 0.6s 0.8s forwards;
}

.sc-welcome-enter:hover {
  background: #B37F2E;
  transform: translateY(-1px);
}

.sc-welcome-enter::after {
  content: '→';
  font-size: 1rem;
  transition: transform 0.2s;
}

.sc-welcome-enter:hover::after {
  transform: translateX(3px);
}

.sc-welcome-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: rgba(212, 165, 116, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 2;
}

.sc-welcome-close:hover {
  background: rgba(212, 165, 116, 0.2);
}

.sc-welcome-close::before,
.sc-welcome-close::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 1.5px;
  background: var(--text-muted);
}

.sc-welcome-close::before {
  transform: rotate(45deg);
}

.sc-welcome-close::after {
  transform: rotate(-45deg);
}

@keyframes scFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal responsive */
@media (max-width: 640px) {
  .sc-welcome-inner {
    grid-template-columns: 1fr;
  }
  
  .sc-welcome-photo {
    height: 200px;
  }
  
  .sc-welcome-content {
    padding: 1.75rem 1.5rem 1.5rem;
  }
  
  .sc-welcome-heading {
    font-size: 1.5rem;
  }
  
  .sc-welcome-body {
    font-size: 0.9rem;
  }
}
