/* ============================================================
   LEONARD J. HOCKETT III — LIVING WORKSHOP
   ============================================================ */

:root {
  --bg:        #070a13;
  --bg-soft:   #0a0f1a;
  --bg-card:   #0f1623;
  --fg:        #e6edf3;
  --fg-soft:   #c1c8d4;
  --muted:     #6b7280;
  --line:      rgba(255,255,255,0.06);
  --teal:      #5eead4;
  --amber:     #fbbf24;
  --indigo:    #818cf8;
  --rose:      #f472b6;
  --gradient:  linear-gradient(90deg, #5eead4 0%, #fbbf24 100%);

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; list-style: none; }

::selection { background: var(--teal); color: var(--bg); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.container.narrow { max-width: 880px; }

.section-head { text-align: center; margin: 0 auto 4rem; max-width: 720px; }
.section-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--teal);
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}
.section-lede {
  color: var(--fg-soft);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: url('../images/01-hero-backdrop.png');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: -2;
}
.hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 90%);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.85;
}
.hero-content {
  text-align: center;
  padding: 2rem;
  max-width: 1100px;
  pointer-events: none;
  user-select: none;
}
.hero-overline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--fg-soft);
  margin: 0 0 2.5rem;
  opacity: 0;
  animation: fadeInUp 1s 0.3s ease-out forwards;
}
.hero-quote {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #5eead4 0%, #f0f0f0 35%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: fadeInUp 1.4s 0.6s ease-out forwards;
}
.quote-mark {
  color: var(--teal);
  -webkit-text-fill-color: var(--teal);
  opacity: 0.7;
  font-size: 0.85em;
  margin: 0 0.05em;
}
.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--muted);
  margin: 0;
  opacity: 0;
  animation: fadeInUp 1s 1s ease-out forwards;
}
.hero-mode {
  position: absolute;
  bottom: 6rem;
  left: 2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--teal);
  opacity: 0.5;
  text-transform: uppercase;
  pointer-events: none;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeInUp 1s 1.6s ease-out forwards, breathe 3s ease-in-out infinite 2.5s;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes breathe {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%      { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ============================================================
   GENERIC SECTION BACKGROUND CANVAS
   ============================================================ */
.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ============================================================
   THESIS — with constellation background
   ============================================================ */
.thesis {
  padding: 12rem 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.thesis-inner { position: relative; z-index: 1; text-align: center; }
.thesis-headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 2.5rem;
  letter-spacing: -0.02em;
}
.thesis-lede {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--fg-soft);
  max-width: 640px;
  margin: 0 auto 5rem;
  line-height: 1.5;
}
.thesis-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 3rem 2rem;
  margin: 0 auto;
  max-width: 800px;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
}

/* ============================================================
   SPECIMEN WALL
   ============================================================ */
.specimens { padding: 0 0 10rem; background: var(--bg-soft); }
.specimens-header-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 8rem 0 4rem;
}
.specimens-header-wrap > .container { position: relative; z-index: 1; }
.specimens-header-wrap .section-head { margin-bottom: 0; }
.specimens > .container { padding-top: 4rem; }
.specimen-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 auto 4rem;
  max-width: 1080px;
}
.specimen-filters button {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg-soft);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.specimen-filters button:hover { border-color: var(--teal); color: var(--teal); }
.specimen-filters button.active { background: var(--teal); color: var(--bg); border-color: var(--teal); }
.specimen-filters .filter-count {
  background: rgba(0,0,0,0.2);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
}
.specimen-filters .active .filter-count { background: rgba(0,0,0,0.3); }

.specimen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.specimen {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  isolation: isolate;
}
.specimen:hover {
  transform: translateY(-4px);
  border-color: var(--specimen-color, var(--teal));
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5),
              0 0 0 1px var(--specimen-color, var(--teal));
}
.specimen-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0a0f1a 0%, #0f1623 100%);
  overflow: hidden;
}
.specimen-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.specimen-info {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.specimen-icon { font-size: 1.1rem; line-height: 1; }
.specimen-cat {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--specimen-color, var(--teal));
  text-transform: uppercase;
}
.specimen-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0.15rem 0 0.4rem;
  letter-spacing: -0.01em;
}
.specimen-tagline {
  color: var(--fg-soft);
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0;
  opacity: 0.85;
}
.specimen-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.specimen-levels { color: var(--specimen-color, var(--teal)); }
.specimen-arrow { transition: transform 0.3s ease; }
.specimen:hover .specimen-arrow { transform: translateX(4px); }

/* ============================================================
   CASE STUDY  (with blueprint bg canvas)
   ============================================================ */
.case-study {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 8rem 0;
  background: var(--bg);
}
.case-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 0 4rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.case-study--reverse .case-art { order: 2; }
.case-art {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7),
              0 0 0 1px var(--line);
}
.case-art img { width: 100%; height: auto; display: block; }
.case-body p { font-size: 1.05rem; line-height: 1.65; color: var(--fg-soft); margin: 0 0 1.25rem; }
.case-body em { color: var(--teal); font-style: normal; font-weight: 500; }
.case-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
}
.case-bullets { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.case-bullets li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2rem;
  color: var(--fg-soft);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.5;
}
.case-bullets li:last-child { border-bottom: 1px solid var(--line); }
.case-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-family: var(--font-mono);
}
.case-link { margin-top: 2rem; }
.case-link a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 0.15rem;
  transition: opacity 0.2s ease;
}
.case-link a:hover { opacity: 0.7; }

/* ============================================================
   COMIC SECTION
   ============================================================ */
.comic-section {
  padding: 8rem 0 10rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 50%, var(--bg) 100%);
}
.comic-frame {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}
.comic-frame::before {
  content: '';
  position: absolute;
  inset: -2rem -2rem 0 -2rem;
  background: radial-gradient(ellipse at top, rgba(251, 191, 36, 0.08) 0%, transparent 60%);
  z-index: -1;
}
.comic-frame img {
  border-radius: 4px;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.9),
              0 0 0 1px rgba(255,255,255,0.05);
}

/* ============================================================
   LEADERSHIP / BLUEPRINT
   ============================================================ */
.leadership { padding: 8rem 0; background: var(--bg-soft); }
.blueprint-frame {
  max-width: 1280px;
  margin: 4rem auto 6rem;
  padding: 0 2rem;
}
.blueprint-frame img {
  border-radius: 8px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7),
              0 0 0 1px var(--line);
}
.principles {
  display: grid;
  gap: 1.25rem;
  margin: 0;
}
.principles li {
  padding: 1.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--teal);
  border-radius: 0 8px 8px 0;
  color: var(--fg-soft);
  font-size: 1rem;
  line-height: 1.55;
}
.principles strong {
  color: var(--fg);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* ============================================================
   QUOTE WALL — RIVERS
   ============================================================ */
.quotes {
  padding: 8rem 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.quote-rivers {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  height: 720px;
  position: relative;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.quote-river {
  position: relative;
  overflow: hidden;
}
.quote-river-track {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: river var(--duration, 60s) linear infinite;
  will-change: transform;
}
.quote-rivers:hover .quote-river-track { animation-play-state: paused; }
@keyframes river {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.quote-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--fg);
  margin: 0 0 1rem;
}
.quote-attr {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--teal);
  text-transform: uppercase;
}
.quote-year {
  color: var(--muted);
  margin-left: 0.5rem;
}

@media (max-width: 900px) {
  .quote-rivers { grid-template-columns: 1fr; height: 500px; }
  .quote-rivers > .quote-river:nth-child(2),
  .quote-rivers > .quote-river:nth-child(3) { display: none; }
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: 12rem 0;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse at center, rgba(94, 234, 212, 0.06) 0%, transparent 60%),
    var(--bg);
}
.cta-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 1.5rem 0 2rem;
  letter-spacing: -0.02em;
}
.cta-body {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--fg-soft);
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.65;
}
.cta-actions { margin: 3rem 0; }
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  color: var(--fg);
  padding: 1.25rem 2.5rem;
  border: 1px solid rgba(230, 237, 243, 0.35);
  border-radius: 2px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s ease, border-color 0.4s ease, transform 0.2s ease;
}
.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.6, 0, 0.2, 1);
  z-index: -1;
}
.cta-button svg {
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1);
}
.cta-button:hover {
  color: var(--bg);
  border-color: var(--fg);
  transform: translateY(-1px);
}
.cta-button:hover::before { transform: translateX(0); }
.cta-button:hover svg { transform: translateX(4px); }
.cta-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 600px;
  margin: 4rem auto 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--fg-soft);
  margin: 0 0 0.5rem;
}
.footer-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.footer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .case-study { padding: 5rem 0; }
  .case-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.5rem;
  }
  .case-study--reverse .case-art { order: 0; }
  .thesis { padding: 6rem 0; }
  .thesis-stats { gap: 2rem 1rem; }
  .specimens { padding: 4rem 0 6rem; }
  .specimen-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
  .leadership, .comic-section { padding: 5rem 0; }
  .cta { padding: 6rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .quote-river-track { animation: none; }
  .hero-canvas { display: none; }
}
