/* ════════════════════════════════════════════════════════════════
   WalkerTalks — Site Styles
   Quieter cousin of /professional-drift. Same DNA, more restraint.
   ════════════════════════════════════════════════════════════ */

:root {
  --ink: #0F0E0D;
  --ink-soft: #1A1817;
  --bone: #F5F1E8;
  --parchment: #FDFCF8;
  --primary: #C4A484;        /* tan — primary brand accent */
  --primary-hover: #A68B6F;
  --primary-soft: rgba(196,164,132,0.15);
  --primary-deep: #8C6F4F;
  --mist: #E8E2D5;
  --warm-grey: #5C554D;
  --hairline: rgba(15,14,13,0.08);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snug: cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bone);
  color: var(--ink-soft);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  scroll-behavior: smooth;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--bone); }

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease-snug); }
button { font-family: inherit; cursor: pointer; }

img { max-width: 100%; display: block; }

/* ─── TYPE ─────────────────────────────────────────────────── */
.font-display  { font-family: 'Anton', 'Impact', sans-serif; font-weight: 400;
                 text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.85; }
.font-serif    { font-family: 'Fraunces', 'Playfair Display', Georgia, serif; }
.font-serif-it { font-family: 'Fraunces', 'Playfair Display', serif; font-style: italic;
                 font-weight: 300; font-feature-settings: 'ss01'; letter-spacing: -0.025em; }
.font-body     { font-family: 'Inter', sans-serif; }

/* Eyebrow / micro-label */
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--primary);
}
.eyebrow-on-dark { color: var(--primary); }
.eyebrow-muted   { color: rgba(15,14,13,0.45); }

.hairline {
  display: inline-block;
  width: 3rem;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  opacity: 0.4;
}

/* ─── GRAIN OVERLAY ─────────────────────────────────────────── */
.grain {
  position: fixed; inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  animation: grain-shift 8s steps(8) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(2%, -2%); }
  75%  { transform: translate(-1%, 2%); }
  100% { transform: translate(0,0); }
}

/* ─── DRIFT FOG (used quietly here vs lecture page) ─────────── */
.drift-stage {
  position: absolute; inset: -10vmax;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.fog-blob {
  position: absolute;
  width: 75vmax; height: 75vmax;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform, opacity;
}
.fog-1 { background: radial-gradient(circle, rgba(196,164,132,0.32), transparent 60%);
         top: -15vmax; left: -20vmax;
         animation: drift-a 35s ease-in-out infinite alternate; }
.fog-2 { background: radial-gradient(circle, rgba(232,226,213,0.5), transparent 65%);
         top: 5vmax; right: -25vmax;
         animation: drift-b 42s ease-in-out infinite alternate; }
.fog-3 { background: radial-gradient(circle, rgba(166,139,111,0.2), transparent 70%);
         bottom: -20vmax; left: 5vmax;
         animation: drift-c 38s ease-in-out infinite alternate; }
.drift-stage.dark { mix-blend-mode: screen; }
.drift-stage.muted .fog-blob { opacity: 0.55; }

@keyframes drift-a { 0% { transform: translate(0,0) scale(1) rotate(0); }
                    100% { transform: translate(-10vw, 12vh) scale(1.1) rotate(12deg); } }
@keyframes drift-b { 0% { transform: translate(0,0) scale(1.1) rotate(0); }
                    100% { transform: translate(10vw, -10vh) scale(0.9) rotate(-8deg); } }
@keyframes drift-c { 0% { transform: translate(0,0) scale(0.95) rotate(0); }
                    100% { transform: translate(-6vw, -6vh) scale(1.15) rotate(15deg); } }

/* ─── REVEAL CELLS ──────────────────────────────────────────── */
.cell {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 0.9s var(--ease-out),
              transform 0.9s var(--ease-out),
              filter 0.7s ease-out;
  will-change: transform, opacity, filter;
}
.cell.in,
body .cell.in { opacity: 1 !important; transform: translateY(0) !important; filter: blur(0) !important; }
.cell.delay-1 { transition-delay: 0.08s; }
.cell.delay-2 { transition-delay: 0.16s; }
.cell.delay-3 { transition-delay: 0.24s; }
.cell.delay-4 { transition-delay: 0.32s; }
.cell.delay-5 { transition-delay: 0.4s; }
.cell.delay-6 { transition-delay: 0.48s; }

/* Subtle floating idle (after reveal). Kept very gentle on this page. */
.float-a.in { animation: float-a 14s ease-in-out infinite alternate 1.2s; }
.float-b.in { animation: float-b 18s ease-in-out infinite alternate 1.2s; }
.float-c.in { animation: float-c 16s ease-in-out infinite alternate 1.2s; }
@keyframes float-a { from { transform: translate(0,0); } to { transform: translate(-4px,-6px); } }
@keyframes float-b { from { transform: translate(0,0); } to { transform: translate(6px,-7px); } }
@keyframes float-c { from { transform: translate(0,0); } to { transform: translate(3px,-5px); } }

/* ─── KINETIC HEADLINE BREATHING ────────────────────────────── */
.kinetic {
  display: inline-block;
  animation: breathe 14s ease-in-out infinite;
  transform-origin: center;
}
@keyframes breathe {
  0%, 100% { transform: scale(1) translateY(0); letter-spacing: -0.04em; }
  50%      { transform: scale(1.008) translateY(-0.3vh); letter-spacing: -0.038em; }
}

/* ─── DRIFT-WORD: per-letter subtle bob ────────────────────── */
.drift-word { display: inline-flex; }
.drift-word > span {
  display: inline-block;
  animation: letter-drift 6s ease-in-out infinite;
}
.drift-word > span:nth-child(2)  { animation-delay: -0.4s; }
.drift-word > span:nth-child(3)  { animation-delay: -0.8s; }
.drift-word > span:nth-child(4)  { animation-delay: -1.2s; }
.drift-word > span:nth-child(5)  { animation-delay: -1.6s; }
.drift-word > span:nth-child(6)  { animation-delay: -2.0s; }
.drift-word > span:nth-child(7)  { animation-delay: -2.4s; }
.drift-word > span:nth-child(8)  { animation-delay: -2.8s; }
.drift-word > span:nth-child(9)  { animation-delay: -3.2s; }
.drift-word > span:nth-child(10) { animation-delay: -3.6s; }
.drift-word > span:nth-child(11) { animation-delay: -4.0s; }
.drift-word > span:nth-child(12) { animation-delay: -4.4s; }
@keyframes letter-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.05em); }
}

/* ─── CURSOR FOG (desktop only) ─────────────────────────────── */
.cursor-fog {
  position: fixed; top: 0; left: 0;
  width: 540px; height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,164,132,0.13), transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
  transition: opacity 0.6s ease;
  opacity: 0;
  filter: blur(40px);
}
body.has-cursor .cursor-fog { opacity: 1; }
.theme-dark .cursor-fog,
.section-dark .cursor-fog { mix-blend-mode: screen; }

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), background 0.4s ease,
              color 0.4s ease, box-shadow 0.5s ease, border-color 0.4s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(196,164,132,0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -12px rgba(196,164,132,0.7);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(15,14,13,0.2);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(245,241,232,0.3);
  color: var(--bone);
}
.btn-outline-light:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: rgba(15,14,13,0.55);
  padding: 1rem 0.5rem;
}
.btn-ghost:hover { color: var(--primary); }

/* ─── INPUTS ────────────────────────────────────────────────── */
.input {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(15,14,13,0.15);
  border-radius: 4px;
  background: rgba(253,252,248,0.6);
  color: var(--ink);
  outline: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  width: 100%;
}
.input::placeholder { color: rgba(15,14,13,0.35); }
.input:focus {
  border-color: var(--primary);
  background: rgba(253,252,248,1);
  box-shadow: 0 0 0 4px rgba(196,164,132,0.14);
}
.input-dark {
  background: rgba(15,14,13,0.4);
  border-color: rgba(245,241,232,0.18);
  color: var(--bone);
}
.input-dark::placeholder { color: rgba(245,241,232,0.45); }
.input-dark:focus {
  background: rgba(15,14,13,0.6);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(196,164,132,0.14);
}

textarea.input { resize: vertical; min-height: 130px; line-height: 1.5; }

/* ─── NAV ───────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.5s ease, backdrop-filter 0.5s ease,
              border-color 0.5s ease, padding 0.5s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(245,241,232,0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: var(--hairline);
  padding: 0.85rem 2rem;
}
.site-nav.on-dark.scrolled { background: rgba(15,14,13,0.78); border-bottom-color: rgba(196,164,132,0.18); }
.site-nav .logo {
  font-family: 'Fraunces', serif;
  font-feature-settings: 'ss01';
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.site-nav .logo .accent { color: var(--primary); font-style: italic; font-weight: 400; }
.site-nav.on-dark .logo { color: var(--bone); }
.site-nav .links {
  display: flex; align-items: center; gap: 2.25rem;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(15,14,13,0.55);
}
.site-nav.on-dark .links { color: rgba(245,241,232,0.55); }
.site-nav .links a:hover { color: var(--primary); }
.site-nav .links a.active { color: var(--ink); }
.site-nav.on-dark .links a.active { color: var(--bone); }

@media (max-width: 860px) {
  .site-nav .links { display: none; }
}

/* ─── HAIRLINE DIVIDER ──────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,164,132,0.45), transparent);
}

/* ─── SECTIONS ──────────────────────────────────────────────── */
.section { position: relative; padding: 8rem 0; overflow: hidden; }
.section-light { background: var(--bone); }
.section-parchment { background: var(--parchment); }
.section-mist { background: var(--mist); }
.section-dark { background: var(--ink); color: var(--bone); }
.section-dark .eyebrow-muted { color: rgba(245,241,232,0.5); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }

/* ─── LECTURE CARD ──────────────────────────────────────────── */
.lecture-card {
  position: relative;
  background: rgba(253,252,248,0.6);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 2.5rem 2.5rem 2.25rem;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s ease,
              border-color 0.5s ease, background 0.5s ease;
  overflow: hidden;
  min-height: 460px;
  display: flex; flex-direction: column;
}
.lecture-card.is-live { background: var(--ink); color: var(--bone); border-color: rgba(196,164,132,0.22); }
.lecture-card.is-live .lecture-card-meta { color: rgba(245,241,232,0.55); }
.lecture-card.is-live .lecture-card-desc { color: rgba(245,241,232,0.7); }
.lecture-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 80px -30px rgba(15,14,13,0.25);
  border-color: rgba(196,164,132,0.4);
}
.lecture-card.is-live:hover { box-shadow: 0 50px 90px -25px rgba(0,0,0,0.55); }

.lecture-card-status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.lecture-card-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(196,164,132,0.18);
  animation: pulse 2.6s ease-in-out infinite;
}
.lecture-card-status.upcoming .dot { background: rgba(196,164,132,0.5); animation: none; box-shadow: none; }
.lecture-card-status.tba .dot { background: rgba(15,14,13,0.2); animation: none; box-shadow: none; }
.lecture-card.is-live .lecture-card-status.tba .dot { background: rgba(245,241,232,0.25); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(196,164,132,0.18); }
  50% { box-shadow: 0 0 0 8px rgba(196,164,132,0.06); }
}
.lecture-card-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  color: rgba(15,14,13,0.18);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  position: absolute;
  top: 1.5rem; right: 2rem;
}
.lecture-card.is-live .lecture-card-num { color: rgba(196,164,132,0.25); }
.lecture-card-title {
  font-family: 'Anton', 'Impact', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 0.95;
  margin: 0 0 0.35rem;
}
.lecture-card-subtitle {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.lecture-card-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(15,14,13,0.65);
  margin-bottom: 2rem;
  flex-grow: 1;
}
.lecture-card-meta {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(15,14,13,0.45);
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  margin-bottom: 1.25rem;
}
.lecture-card.is-live .lecture-card-meta { border-top-color: rgba(196,164,132,0.18); }
.lecture-card-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--primary);
  transition: gap 0.4s var(--ease-out), color 0.4s ease;
}
.lecture-card-cta:hover { gap: 1rem; color: var(--primary); }
.lecture-card.is-tba { opacity: 0.7; }
.lecture-card.is-tba:hover { transform: none; box-shadow: none; cursor: default; opacity: 0.85; }

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding: 5rem 0 3rem;
  position: relative;
}
.site-footer .eyebrow { color: rgba(245,241,232,0.45); }
.site-footer a:hover { color: var(--primary); }

/* ─── REDUCE MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cell { opacity: 1; transform: none; filter: none; }
}

/* ─── MOBILE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .fog-blob { width: 100vmax; height: 100vmax; opacity: 0.5; }
  .cursor-fog { display: none; }
  .container, .container-wide, .container-narrow { padding: 0 1.25rem; }
}

/* ─── EDITORIAL VARIATION ───────────────────────────────────── */
/* When data-direction="editorial" is set on <body>, the page reads
   more typographic/restrained: reduced fog, sharper hairlines,
   serif-led headlines instead of Anton.                          */
body[data-direction="editorial"] .drift-stage { opacity: 0.5; }
body[data-direction="editorial"] .lecture-card { border-radius: 0; padding-left: 0; padding-right: 0;
  background: transparent; border: none; border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline); padding: 2.5rem 0; min-height: auto;
}
body[data-direction="editorial"] .lecture-card.is-live {
  background: transparent; color: var(--ink);
  border-top: 1px solid var(--primary); border-bottom: 1px solid var(--hairline);
}
body[data-direction="editorial"] .lecture-card.is-live .lecture-card-meta { color: rgba(15,14,13,0.45); border-top-color: var(--hairline); }
body[data-direction="editorial"] .lecture-card.is-live .lecture-card-desc { color: rgba(15,14,13,0.65); }
body[data-direction="editorial"] .lecture-card.is-live .lecture-card-num { color: rgba(15,14,13,0.18); }
body[data-direction="editorial"] .lecture-card:hover { transform: none; box-shadow: none; border-color: var(--primary); }
body[data-direction="editorial"] .lecture-card.is-tba:hover { border-color: var(--hairline); }
body[data-direction="editorial"] .lecture-card-num { top: 0; right: 0; font-size: 80px; }
