/* ─────────────────────────────────────────────
   AI ON THE SIDE — Brand Library system
   Cream · Bodoni · Rust · Polaroid/Waveform/Tape
   ───────────────────────────────────────────── */

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

:root {
  --ink:       #1B1D1B;   /* near-black text + dark sections */
  --ink-soft:  #2B2E2B;
  --rust:      #8A2D2B;   /* primary accent — brick/rust red */
  --rust-d:    #6E2321;
  --coral:     #C96F6C;   /* soft accent on dark backgrounds */
  --cream:     #F7F6F2;   /* primary background */
  --cream-d:   #E6E4DC;   /* alt section background / cards */
  --white:     #FFFFFF;
  --slate:     #55564F;   /* body text (warm gray) */
  --muted:     #8C8A80;   /* labels, subtle text */
  --border:    #DAD7CD;
  --display:   'Playfair Display', Georgia, serif;
  --accent:    'Lora', Georgia, serif;
  --script:    'Caveat', 'Bodoni Moda', cursive;
  --sans:      'Archivo', system-ui, sans-serif;
  --max:       1160px;
}

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 66px; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
p { color: var(--slate); margin-bottom: 1rem; }
p:last-of-type { margin-bottom: 0; }

/* ─── Typography ─── */
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.section-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.1rem;
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem 2rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  padding: 0.9rem 2rem;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.16s ease;
}
.btn-primary { background: var(--rust); color: var(--cream); }
.btn-primary:hover { background: var(--rust-d); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-outline-light { background: transparent; color: var(--cream); border: 1.5px solid rgba(247,246,242,0.45); display: inline-block; font-family: var(--sans); padding: 0.9rem 2rem; border-radius: 2px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; transition: all 0.16s; }
.btn-outline-light:hover { background: rgba(247,246,242,0.12); border-color: var(--cream); }

/* ─── Nav ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247,246,242,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 2rem;
  height: 66px; display: flex; align-items: center; gap: 2rem;
}
.nav-logo { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; color: var(--ink); margin-right: auto; }
.nav-links { list-style: none; display: flex; gap: 1.75rem; }
.nav-links a { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); transition: color 0.16s; }
.nav-links a:hover { color: var(--rust); }
.nav-cta {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust);
  border: 1.5px solid var(--rust); padding: 0.45rem 1rem;
  border-radius: 2px; white-space: nowrap; transition: all 0.16s;
}
.nav-cta:hover { background: var(--rust); color: var(--cream); }

/* ─── Hero ─── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  padding-top: 66px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--border);
}

/* Left: editorial statement */
.hero-content {
  padding: 4rem 3.5rem 4rem 2rem;
  max-width: 640px;
  margin-left: auto;
}
.hero-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 1.75rem;
  max-width: 15ch;
}
.hero h1 em {
  font-family: var(--accent);
  font-style: italic;
  font-weight: 500;
  color: var(--rust);
}
.hero-content .hero-sub {
  font-family: var(--accent);
  font-size: 1.12rem;
  color: var(--slate);
  max-width: 44ch;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Right: polaroid photo */
.hero-photo-panel {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.polaroid {
  background: var(--white);
  padding: 0.9rem 0.9rem 3.5rem;
  box-shadow: 0 30px 60px rgba(27,29,27,0.22), 0 8px 20px rgba(27,29,27,0.12);
  transform: rotate(3deg);
  max-width: 380px;
  width: 100%;
  position: relative;
  transition: transform 0.3s ease;
}
.polaroid:hover { transform: rotate(0deg); }
.polaroid img {
  width: 100%;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 12%;
  filter: grayscale(100%) contrast(1.05) brightness(0.96);
}
.polaroid-caption {
  font-family: var(--script);
  font-size: 1.5rem;
  color: var(--ink);
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1;
}
/* torn-tape accent on polaroid */
.polaroid::before {
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 120px; height: 30px;
  background: rgba(27,29,27,0.88);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* ─── Marquee ─── */
.marquee-strip {
  background: var(--ink);
  padding: 0.95rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: inline-block;
  animation: ticker 32s linear infinite;
}
.marquee-track span {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 0 0.6rem;
}
.marquee-track .dot { color: var(--coral); padding: 0 0.2rem; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── Work / What I Do ─── */
.work { background: var(--cream); }
.work-header { margin-bottom: 3.5rem; }
.work-header h2 { margin-bottom: 0; }

.pillars {
  border-top: 1px solid var(--border);
  margin-bottom: 3rem;
}
.pillar {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background 0.16s;
}
.pillar:hover { background: var(--cream-d); margin: 0 -2rem; padding: 3.5rem 2rem; }
.pillar-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 2.5rem;
  color: var(--rust);
  line-height: 1;
  padding-top: 0.2rem;
}
.pillar-label { font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; display: block; }
.pillar-body h3 { font-size: 1.6rem; margin-bottom: 0.9rem; }
.pillar-body p { font-size: 0.98rem; margin-bottom: 1rem; max-width: 62ch; }
.pillar-link { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust); transition: letter-spacing 0.18s; }
.pillar-link:hover { letter-spacing: 0.16em; }

/* Top episodes mini-list */
.pillar-episodes { margin: 1.5rem 0 1.75rem; max-width: 62ch; border-top: 1px solid var(--border); }
.episodes-label {
  font-family: var(--sans); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin: 1rem 0 0.25rem;
}
.episode-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--border);
  transition: padding-left 0.16s;
}
.episode-row:hover { padding-left: 0.4rem; }
/* mini polaroid: white frame, photo, handwritten name */
.ep-photo-wrap {
  position: relative;
  flex: none;
  background: var(--white);
  padding: 4px 4px 1px;
  box-shadow: 0 3px 10px rgba(27,29,27,0.22);
  transform: rotate(-2deg);
  transition: transform 0.2s ease;
}
.episode-row:nth-child(odd) .ep-photo-wrap { transform: rotate(2deg); }
.episode-row:hover .ep-photo-wrap { transform: rotate(0deg) scale(1.06); }
.ep-photo {
  width: 52px; height: 52px;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.06);
}
.ep-name {
  display: block;
  font-family: var(--script);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
  color: var(--ink);
}
/* black tape strip, echoing the hero polaroid */
.ep-photo-wrap::after {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%) rotate(-5deg);
  width: 30px; height: 10px;
  background: rgba(27,29,27,0.88);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.episode-row:nth-child(odd) .ep-photo-wrap::after { transform: translateX(-50%) rotate(5deg); }
.ep-num { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 0.95rem; color: var(--rust); flex: none; }
.ep-main { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.ep-title { font-family: var(--accent); font-size: 0.95rem; color: var(--ink); line-height: 1.45; transition: color 0.16s; }
.ep-title:hover { color: var(--rust); }
.ep-guest { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.02em; color: var(--muted); }
.ep-guest a { color: var(--rust); font-weight: 600; transition: opacity 0.16s; }
.ep-guest a:hover { opacity: 0.75; text-decoration: underline; }
.ep-arrow { display: inline-block; font-size: 0.9rem; color: var(--rust); opacity: 0; transition: opacity 0.16s, transform 0.16s; }
.episode-row:hover .ep-arrow { opacity: 1; transform: translateX(3px); }

/* ─── Blueprint (dark) ─── */
.blueprint { background: var(--ink); }
.blueprint .section-label { color: var(--coral); }
.blueprint h2 { color: var(--cream); font-size: clamp(2rem, 3.8vw, 3.2rem); }
.blueprint-intro { font-family: var(--accent); font-style: italic; color: rgba(247,246,242,0.55); font-size: 1.05rem; margin-bottom: 3.5rem; margin-top: -0.5rem; }
.blueprint-grid { border-top: 1px solid rgba(247,246,242,0.12); }
.blueprint-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 2rem;
  padding: 2.75rem 0;
  border-bottom: 1px solid rgba(247,246,242,0.12);
  align-items: start;
}
.blueprint-num { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.7rem; color: var(--coral); padding-top: 0.2rem; }
.blueprint-item h3 { color: var(--cream); font-size: 1.35rem; margin-bottom: 0.6rem; }
.blueprint-item p { color: rgba(247,246,242,0.6); font-size: 0.96rem; margin: 0; }

/* ─── Connect ─── */
.connect { background: var(--cream-d); border-top: 1px solid var(--border); }
.connect-top { margin-bottom: 3.5rem; }
.connect-text h2 { margin-bottom: 1rem; }
.connect-text p { max-width: 52ch; margin-bottom: 2rem; }
.connect-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.connect-top { margin-bottom: 0; }

/* ─── Footer ─── (mirrors Brand Library footer bar motif) */
footer { background: var(--ink); padding: 2.5rem 2rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-bar {
  display: flex; align-items: center; gap: 1.5rem;
  border-top: 3px solid var(--cream);
  padding-top: 1.1rem;
}
.footer-label { font-family: var(--sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; color: #9B9D96; }
.footer-wave { display: flex; align-items: flex-end; gap: 3px; flex: 1; }
.footer-wave span { width: 3px; background: var(--cream); }
.footer-wave span:nth-child(1)  { height: 7px; }
.footer-wave span:nth-child(2)  { height: 14px; }
.footer-wave span:nth-child(3)  { height: 20px; }
.footer-wave span:nth-child(4)  { height: 10px; }
.footer-wave span:nth-child(5)  { height: 17px; background: var(--coral); }
.footer-wave span:nth-child(6)  { height: 23px; }
.footer-wave span:nth-child(7)  { height: 12px; }
.footer-wave span:nth-child(8)  { height: 18px; }
.footer-wave span:nth-child(9)  { height: 8px; }
.footer-wave span:nth-child(10) { height: 16px; background: var(--coral); }
.footer-wave span:nth-child(11) { height: 22px; }
.footer-wave span:nth-child(12) { height: 11px; }
.footer-wave span:nth-child(13) { height: 18px; }
.footer-wave span:nth-child(14) { height: 8px; }
.footer-podcast { font-family: var(--sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.18em; color: var(--coral); white-space: nowrap; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 1.4rem; flex-wrap: wrap; }
.footer-logo { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--cream); }
.footer-icons { display: flex; align-items: center; gap: 1.15rem; }
.footer-icons a { color: rgba(247,246,242,0.6); display: inline-flex; transition: color 0.16s, transform 0.16s; }
.footer-icons a:hover { color: var(--coral); transform: translateY(-2px); }
.footer-copy { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.04em; color: rgba(247,246,242,0.4); }

@media (max-width: 640px) {
  .footer-bar { flex-wrap: wrap; gap: 0.75rem; }
  .footer-wave { order: 3; width: 100%; flex: none; }
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { max-width: 100%; padding: 3rem 2rem 2rem; margin: 0; }
  .hero-photo-panel { padding: 1rem 2rem 4rem; }
  .polaroid { max-width: 320px; transform: rotate(2deg); }
}

@media (max-width: 640px) {
  .section-inner { padding: 4.5rem 1.25rem; }
  .nav-links { display: none; }
  .nav-cta { font-size: 0.64rem; padding: 0.4rem 0.75rem; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.2rem); }
  .hero-ctas { flex-direction: column; }
  .pillar { grid-template-columns: 1fr; gap: 0.75rem; }
  .pillar-num { font-size: 1.8rem; }
  .blueprint-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .footer-row { flex-direction: column; gap: 1rem; text-align: center; justify-content: center; }
  .connect-ctas { flex-direction: column; }
}
