:root {
  --background: #fff;
  --foreground: #09090b;
  --card: #fff;
  --card-foreground: #09090b;
  --popover: #fff;
  --popover-foreground: #09090b;
  --primary: #35029d;
  --primary-foreground: #fafafa;
  --secondary: #f4f4f5;
  --secondary-foreground: #18181b;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --accent: #f4f4f5;
  --accent-foreground: #18181b;
  --destructive: #ef4444;
  --destructive-foreground: #fafafa;
  --border: #e4e4e7;
  --input: #e4e4e7;
  --ring: #35029d;
  --radius: 0.5rem;
  --chart-1: oklch(64.6% 0.222 41.116);
  --chart-2: oklch(60% 0.118 184.704);
  --chart-3: oklch(39.8% 0.07 227.392);
  --chart-4: oklch(82.8% 0.189 84.429);
  --chart-5: oklch(76.9% 0.188 70.08);
  --sidebar: oklch(98.5% 0 0);
  --sidebar-foreground: oklch(14.5% 0 0);
  --sidebar-primary: oklch(20.5% 0 0);
  --sidebar-primary-foreground: oklch(98.5% 0 0);
  --sidebar-accent: oklch(97% 0 0);
  --sidebar-accent-foreground: oklch(20.5% 0 0);
  --sidebar-border: oklch(92.2% 0 0);
  --sidebar-ring: oklch(70.8% 0 0);

  --hat-white: #f8fafc;
  --hat-white-ink: #334155;
  --hat-yellow: #f5c518;
  --hat-yellow-ink: #422006;
  --hat-blue: #1d4ed8;
  --hat-blue-ink: #eff6ff;
  --hat-green: #15803d;
  --hat-green-ink: #f0fdf4;
  --hat-red: #c2410c;
  --hat-red-ink: #fff7ed;
  --hat-black: #18181b;
  --hat-black-ink: #fafafa;

  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: "Figtree", system-ui, sans-serif;
}

.dark {
  --background: #181a1b;
  --foreground: #f3f4f6;
  --card: #1d1f20;
  --card-foreground: #f3f4f6;
  --popover: #1d1f20;
  --popover-foreground: #f3f4f6;
  --primary: #894efd;
  --primary-foreground: #181a1b;
  --secondary: #222426;
  --secondary-foreground: #f3f4f6;
  --muted: #222426;
  --muted-foreground: #a9afbc;
  --accent: #222426;
  --accent-foreground: #f3f4f6;
  --destructive: #dc2828;
  --destructive-foreground: #fafafa;
  --border: #262a2b;
  --input: #262a2b;
  --ring: #894efd;
  --sidebar: oklch(20.5% 0 0);
  --sidebar-foreground: oklch(98.5% 0 0);
  --sidebar-primary: oklch(48.8% 0.243 264.376);
  --sidebar-primary-foreground: oklch(98.5% 0 0);
  --sidebar-accent: oklch(26.9% 0 0);
  --sidebar-accent-foreground: oklch(98.5% 0 0);
  --sidebar-border: oklch(26.9% 0 0);
  --sidebar-ring: oklch(43.9% 0 0);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.font-display {
  font-family: var(--font-display);
}

.font-ui {
  font-family: var(--font-ui);
}

/* Atmosphere */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(53, 2, 157, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(245, 197, 24, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 45% at 70% 90%, rgba(29, 78, 216, 0.08), transparent 55%),
    radial-gradient(ellipse 40% 35% at 15% 85%, rgba(21, 128, 61, 0.07), transparent 50%),
    linear-gradient(180deg, #faf9fc 0%, #fff 40%, #f7f5fb 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(228, 228, 231, 0.7);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.nav-title {
  display: grid;
  gap: 0.1rem;
  line-height: 1.15;
}

.nav-title-main {
  font-weight: 650;
}

.nav-byline {
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: var(--muted-foreground);
}

.nav-brand img {
  height: 28px;
  width: auto;
}

.nav-logo-vit {
  height: 34px;
}

.nav-logo-dave {
  height: 26px;
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
}

.nav-links a {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: var(--muted-foreground);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--foreground);
  background: var(--secondary);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 2rem 1.25rem 3rem;
}

.hero-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-hats {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.hero-hat-ring {
  position: absolute;
  width: min(92vw, 780px);
  height: min(92vw, 780px);
  border-radius: 50%;
  animation: orbit-spin 48s linear infinite;
}

.hero-hat {
  --hero-hat-ring: rgba(148, 163, 184, 0.52);
  position: absolute;
  width: clamp(78px, 11vw, 118px);
  aspect-ratio: 1;
  border-radius: 999px;
  overflow: hidden;
  opacity: 0.42;
  filter: saturate(1.125);
  box-shadow:
    0 0 0 3px var(--hero-hat-ring),
    0 14px 28px rgba(9, 9, 11, 0.08);
  transform-origin: center;
  animation: hat-float 6s ease-in-out infinite;
  border: none;
  background: rgba(255, 255, 255, 0.2);
}

.hero-hat[data-hat="white"] { --hero-hat-ring: rgba(148, 163, 184, 0.6); }
.hero-hat[data-hat="yellow"] { --hero-hat-ring: rgba(245, 197, 24, 0.57); }
.hero-hat[data-hat="blue"] { --hero-hat-ring: rgba(29, 78, 216, 0.52); }
.hero-hat[data-hat="green"] { --hero-hat-ring: rgba(21, 128, 61, 0.52); }
.hero-hat[data-hat="red"] { --hero-hat-ring: rgba(194, 65, 12, 0.57); }
.hero-hat[data-hat="black"] { --hero-hat-ring: rgba(24, 24, 27, 0.48); }

.hero-hat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: min(56rem, 92vw);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.79) 0%,
    rgba(255, 255, 255, 0.65) 55%,
    rgba(255, 255, 255, 0.32) 100%
  );
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 2rem 2rem 2rem 0.75rem;
}

@media (max-width: 720px) {
  .hero-hat {
    opacity: 0.21;
    width: clamp(56px, 16vw, 84px);
  }

  .hero {
    align-items: end;
    padding-top: 5rem;
  }

  .hero-copy {
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.81) 22%, rgba(255, 255, 255, 0.86));
    margin: 0 -1.25rem;
    padding: 3rem 1.5rem 1.25rem;
  }

  .nav-links {
    display: none;
  }
}

.hero-hat:nth-child(1) { top: 4%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.hero-hat:nth-child(2) { top: 28%; right: 6%; animation-delay: 0.4s; }
.hero-hat:nth-child(3) { bottom: 18%; right: 16%; animation-delay: 0.8s; }
.hero-hat:nth-child(4) { bottom: 8%; left: 50%; transform: translateX(-50%); animation-delay: 1.2s; }
.hero-hat:nth-child(5) { bottom: 18%; left: 16%; animation-delay: 1.6s; }
.hero-hat:nth-child(6) { top: 28%; left: 6%; animation-delay: 2s; }

.event-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.event-vit-mark {
  height: 42px;
  width: auto;
}

.event-dave-mark {
  height: 36px;
  width: auto;
}

.event-meta .nav-divider {
  height: 28px;
}

.event-name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--foreground);
}

.event-date {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0 0 0.35rem;
  max-width: none;
  white-space: nowrap;
  background: linear-gradient(135deg, #18181b 0%, #35029d 55%, #1d4ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-byline {
  margin: 0 0 1.2rem;
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted-foreground);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.55;
  margin: 0 0 1rem;
  max-width: 42ch;
}

.hero-poem {
  display: grid;
  gap: 0.2rem;
  max-width: 28ch;
  line-height: 1.35;
}

.hero-poem span {
  display: block;
}

.hero-support {
  font-size: 1.05rem;
  color: var(--muted-foreground);
  margin: 0 0 1.75rem;
  max-width: 52ch;
  line-height: 1.75;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-ui);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: #2a017d;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--border);
  color: var(--foreground);
}

.btn-ghost:hover {
  background: #fff;
}

/* Sections */
.section {
  padding: 4.5rem 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  max-width: 58ch;
  margin: 0 0 1.25rem;
}

.section-history {
  font-size: 1.05rem;
  color: var(--muted-foreground);
  max-width: 62ch;
  margin: 0 0 2.5rem;
}

.bono-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .bono-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bono-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bono-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.bono-swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(9, 9, 11, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.bono-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.bono-item p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.98rem;
}

/* Interactive mind-map */
.hat-stage {
  padding: 4.5rem 1.25rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.slide-mindmap {
  display: grid;
  height: 100%;
  min-height: 0;
}

.mindmap {
  position: relative;
  min-height: min(78vw, 620px);
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: calc(var(--radius) + 0.35rem);
  background:
    radial-gradient(circle at center, rgba(53, 2, 157, 0.06) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(250, 249, 252, 0.95));
  border: 1px solid var(--border);
  overflow: hidden;
}

.mindmap[data-shape="oval"] {
  background:
    radial-gradient(ellipse 70% 52% at center, rgba(53, 2, 157, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(250, 249, 252, 0.95));
}

.mindmap[data-shape="circle"] {
  background:
    radial-gradient(circle at center, rgba(53, 2, 157, 0.08) 0%, transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(250, 249, 252, 0.95));
}

.mindmap-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.mindmap-spoke {
  stroke: rgba(53, 2, 157, 0.18);
  stroke-width: 0.35;
  stroke-linecap: round;
  transition: stroke 0.3s ease, stroke-width 0.3s ease, opacity 0.3s ease;
}

.mindmap-spoke.is-hot {
  stroke: var(--primary);
  stroke-width: 0.7;
  opacity: 1;
}

.mindmap-spoke.is-dim {
  opacity: 0.18;
}

.mindmap-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: clamp(110px, 18vw, 150px);
  height: clamp(110px, 18vw, 150px);
  transform: translate(-50%, -50%);
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 25%, #5b21b6, #35029d 55%, #1e1b4b);
  color: #fafafa;
  box-shadow:
    0 0 0 8px rgba(53, 2, 157, 0.08),
    0 18px 40px rgba(53, 2, 157, 0.28);
  font-family: var(--font-ui);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.mindmap.is-active .mindmap-hub {
  transform: translate(-50%, -50%) scale(1.04);
}

.mindmap[data-active-hat="white"] .mindmap-hub {
  border: 2px solid rgba(148, 163, 184, 0.55);
}

.mindmap-hub-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.mindmap-hub-sub {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.mindmap-nodes {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.mindmap-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: clamp(108px, 14vw, 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  font-family: var(--font-ui);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, filter 0.3s ease;
  z-index: 1;
}

/* Bottom-half nodes: put labels above the orb so they stay in frame */
.mindmap-node[data-index="2"],
.mindmap-node[data-index="3"],
.mindmap-node[data-index="4"] {
  flex-direction: column-reverse;
}

.mindmap-node-orb {
  width: clamp(68px, 11vw, 92px);
  height: clamp(68px, 11vw, 92px);
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 3px solid color-mix(in srgb, var(--accent) 70%, #fff);
  box-shadow: 0 10px 24px rgba(9, 9, 11, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.mindmap-node-orb .hat-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mindmap-node-label {
  display: grid;
  gap: 0.08rem;
  justify-items: center;
  text-align: center;
}

.mindmap-node-role {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.mindmap-node-years {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--accent) 70%, #18181b);
}

.mindmap-node-map {
  display: block;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.mindmap-node.is-hot {
  transform: translate(-50%, -50%) scale(1.14);
  z-index: 5;
}

.mindmap-node.is-hot .mindmap-node-orb {
  transform: translateY(-4px) rotate(-4deg);
  border-color: var(--accent);
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent),
    0 18px 36px rgba(9, 9, 11, 0.16);
}

.mindmap-node.is-dim {
  opacity: 0.28;
  filter: grayscale(0.35);
}

.mindmap-panel {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 6;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-family: var(--font-ui);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@media (min-width: 860px) {
  .mindmap-panel {
    left: auto;
    right: 1.25rem;
    bottom: 1.25rem;
    width: min(300px, 34%);
  }
}

.mindmap-panel-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.mindmap-panel-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.mindmap-panel-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted-foreground);
  line-height: 1.45;
}

.mindmap-panel-cta {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 720px) {
  .mindmap {
    min-height: 520px;
  }

  .mindmap-node {
    width: 96px;
  }

  .mindmap-node-orb {
    width: 54px;
    height: 54px;
  }

  .event-vit-mark {
    height: 34px;
  }

  .nav-brand .nav-title {
    display: none;
  }
}

/* Detail pages */
.detail-hero {
  position: relative;
  min-height: 72svh;
  display: grid;
  align-content: end;
  padding: 3rem 1.25rem 2.5rem;
  overflow: hidden;
}

.detail-hero[data-hat="white"] {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 55%, #fff 100%);
  color: var(--hat-white-ink);
}

.detail-hero[data-hat="yellow"] {
  background: linear-gradient(180deg, #fef9c3 0%, #f5c518 50%, #fffbeb 100%);
  color: var(--hat-yellow-ink);
}

.detail-hero[data-hat="blue"] {
  background: linear-gradient(180deg, #1e3a8a 0%, #1d4ed8 45%, #eff6ff 100%);
  color: #eff6ff;
}

.detail-hero[data-hat="blue"] .detail-kicker,
.detail-hero[data-hat="blue"] .detail-lede {
  color: rgba(239, 246, 255, 0.82);
}

.detail-hero[data-hat="green"] {
  background: linear-gradient(180deg, #14532d 0%, #15803d 45%, #f0fdf4 100%);
  color: #f0fdf4;
}

.detail-hero[data-hat="green"] .detail-kicker,
.detail-hero[data-hat="green"] .detail-lede {
  color: rgba(240, 253, 244, 0.82);
}

.detail-hero[data-hat="red"] {
  background: linear-gradient(180deg, #7c2d12 0%, #c2410c 45%, #fff7ed 100%);
  color: #fff7ed;
}

.detail-hero[data-hat="red"] .detail-kicker,
.detail-hero[data-hat="red"] .detail-lede {
  color: rgba(255, 247, 237, 0.84);
}

.detail-hero[data-hat="black"] {
  background: linear-gradient(180deg, #09090b 0%, #27272a 50%, #f4f4f5 100%);
  color: #fafafa;
}

.detail-hero[data-hat="black"] .detail-kicker,
.detail-hero[data-hat="black"] .detail-lede {
  color: rgba(250, 250, 250, 0.78);
}

.detail-hat-figure {
  position: absolute;
  right: 4%;
  top: 10%;
  width: min(42vw, 320px);
  margin: 0;
  animation: hat-breathe 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.giant-hat-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--hat-border, #94a3b8);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--hat-border, #94a3b8) 22%, transparent),
    0 22px 48px rgba(9, 9, 11, 0.22);
  opacity: 0.92;
}

.detail-hat-caption {
  margin-top: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  opacity: 0.9;
}

.detail-hat-caption span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.8;
}

@media (max-width: 720px) {
  .detail-hat-figure {
    position: relative;
    right: auto;
    top: auto;
    width: min(56vw, 180px);
    margin: 0 0 1.25rem;
    animation: none;
  }
}

.detail-kicker {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  opacity: 0.75;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 0.85rem;
  max-width: 10ch;
}

.detail-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 28ch;
}

.detail-lede {
  margin: 0;
  max-width: 42ch;
  font-size: 1.05rem;
  opacity: 0.85;
}

.detail-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.compare {
  display: grid;
  gap: 2rem;
  margin: 2.5rem 0;
}

@media (min-width: 760px) {
  .compare {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.compare-block h2 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.compare-block p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1.05rem;
}

.hat-style-callout {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--primary);
  background: rgba(53, 2, 157, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.hat-style-callout strong {
  display: block;
  color: var(--foreground);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.insight {
  margin: 2.75rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.insight h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}

.insight p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1.08rem;
}

.detail-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
}

.detail-nav a {
  color: var(--primary);
}

.detail-nav a:hover {
  text-decoration: underline;
}

.hat-rail {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hat-rail a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 2px solid rgba(9, 9, 11, 0.12);
  transition: transform 0.2s ease;
}

.hat-rail a:hover,
.hat-rail a[aria-current="page"] {
  transform: scale(1.12);
  border-color: var(--foreground);
}

.hat-rail a[data-hat="white"] { background: #f8fafc; }
.hat-rail a[data-hat="yellow"] { background: #f5c518; }
.hat-rail a[data-hat="blue"] { background: #1d4ed8; }
.hat-rail a[data-hat="green"] { background: #15803d; }
.hat-rail a[data-hat="red"] { background: #c2410c; }
.hat-rail a[data-hat="black"] { background: #18181b; }

.site-footer {
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--muted-foreground);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes hat-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes hat-breathe {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(-4deg) scale(1.04); }
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-hat,
  .hero-hat-ring,
  .detail-hero .giant-hat,
  .detail-hat-figure,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------
   Presentation deck: one padded viewport per slide
--------------------------------------------------- */
.slide-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.detail-slide,
.journey-slide {
  --hat-border: var(--primary);
  background: var(--background);
}

.detail-slide[data-hat="white"],
.journey-slide[data-hat="white"] {
  --hat-border: #94a3b8;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 55%, #eef2ff 100%);
}

.detail-slide[data-hat="yellow"],
.journey-slide[data-hat="yellow"] {
  --hat-border: #f5c518;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 45%, #fef3c7 100%);
}

.detail-slide[data-hat="blue"],
.journey-slide[data-hat="blue"] {
  --hat-border: #1d4ed8;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 50%, #dbeafe 100%);
}

.detail-slide[data-hat="green"],
.journey-slide[data-hat="green"] {
  --hat-border: #15803d;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 50%, #dcfce7 100%);
}

.detail-slide[data-hat="red"],
.journey-slide[data-hat="red"] {
  --hat-border: #c2410c;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 50%, #ffedd5 100%);
}

.detail-slide[data-hat="black"],
.journey-slide[data-hat="black"] {
  --hat-border: #18181b;
  background: linear-gradient(135deg, #f4f4f5 0%, #fff 50%, #e4e4e7 100%);
}

.detail-slide-grid,
.journey-frame {
  height: 100%;
  border: none;
  border-radius: calc(var(--radius) + 0.35rem);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(228, 228, 231, 0.9);
}

.detail-slide-grid {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  padding: 1.1rem 1.25rem;
  box-sizing: border-box;
}

.journey-frame {
  padding: 1.35rem 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.stage-banner {
  margin: 0 0 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--hat-border) 75%, #18181b);
}

.journey-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 0.65rem;
  max-width: 28ch;
}

.journey-lead {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--muted-foreground);
  max-width: 52ch;
}

.journey-copy {
  display: grid;
  gap: 0.65rem;
}

.journey-copy p {
  margin: 0;
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 58ch;
}

.journey-points {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: grid;
  gap: 0.55rem;
  font-family: var(--font-ui);
}

.journey-points li {
  position: relative;
  padding: 0.55rem 0.75rem 0.55rem 1.7rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid color-mix(in srgb, var(--hat-border) 28%, #fff);
  font-size: 0.98rem;
  font-weight: 550;
  line-height: 1.35;
  color: var(--foreground);
}

.journey-points li::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--hat-border);
}

.journey-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-family: var(--font-ui);
}

.journey-process {
  display: grid;
  gap: 1.1rem 1.5rem;
  align-content: start;
}

@media (min-width: 960px) {
  .journey-process {
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.25fr);
    align-items: stretch;
  }
}

.process-loop {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: calc(var(--radius) + 0.15rem);
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--hat-border) 18%, transparent), transparent 45%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(244, 244, 245, 0.75));
  border: 1px solid color-mix(in srgb, var(--hat-border) 32%, #fff);
  box-shadow: 0 12px 28px rgba(9, 9, 11, 0.05);
  min-height: 0;
}

.process-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (min-width: 720px) {
  .process-track {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.process-step-btn {
  width: 100%;
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  padding: 0.65rem 0.55rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--hat-border) 22%, #fff);
  background: rgba(255, 255, 255, 0.78);
  color: var(--foreground);
  font-family: var(--font-ui);
  text-align: left;
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.process-step-btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--hat-border) 55%, #fff);
}

.process-step-num {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--primary-foreground);
  background: color-mix(in srgb, var(--hat-border) 72%, #18181b);
}

.process-step-title {
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
}

.process-step.is-done .process-step-btn {
  opacity: 0.72;
}

.process-step.is-active .process-step-btn {
  border-color: color-mix(in srgb, var(--hat-border) 70%, #18181b);
  background: color-mix(in srgb, var(--hat-border) 14%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hat-border) 18%, transparent);
  transform: translateY(-2px) scale(1.02);
  animation: process-pulse 1.4s ease-in-out infinite;
}

.process-step.is-iterate.is-active .process-step-btn {
  animation: process-pulse 1.1s ease-in-out infinite;
}

@keyframes process-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hat-border) 16%, transparent);
  }
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--hat-border) 8%, transparent);
  }
}

.process-loop-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: end;
  margin-top: -0.2rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--hat-border) 70%, #18181b);
  background: color-mix(in srgb, var(--hat-border) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--hat-border) 28%, #fff);
  opacity: 0.75;
  transition: opacity 240ms ease, transform 240ms ease;
}

.process-loop-arrow {
  display: inline-block;
  font-size: 0.95rem;
  transition: transform 480ms ease;
}

.process-loop.is-looping-back .process-loop-hint {
  opacity: 1;
  transform: translateY(-2px);
}

.process-loop.is-looping-back .process-loop-arrow {
  animation: process-spin 700ms ease;
}

@keyframes process-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.process-stage {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid color-mix(in srgb, var(--hat-border) 24%, #fff);
  min-height: 7.5rem;
}

.process-stage-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--hat-border) 70%, #71717a);
}

.process-stage-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.process-stage-detail {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted-foreground);
  max-width: 48ch;
}

.process-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.process-controls button {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hat-border) 40%, #fff);
  background: #fff;
  color: var(--foreground);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.process-controls button:hover {
  border-color: color-mix(in srgb, var(--hat-border) 70%, #18181b);
}

.process-toggle[aria-pressed="true"] {
  background: color-mix(in srgb, var(--hat-border) 82%, #18181b);
  border-color: transparent;
  color: #fafafa;
}

.journey-evidence {
  display: grid;
  gap: 1rem 1.35rem;
  align-content: start;
}

@media (min-width: 980px) {
  .journey-evidence {
    grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

.evidence-cases {
  display: grid;
  gap: 0.65rem;
}

.evidence-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid color-mix(in srgb, var(--hat-border) 28%, #fff);
  color: inherit;
  text-decoration: none;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.evidence-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--hat-border) 55%, #fff);
  box-shadow: 0 10px 22px rgba(9, 9, 11, 0.06);
}

.evidence-meta {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--hat-border) 72%, #71717a);
}

.evidence-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.evidence-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted-foreground);
}

.evidence-link {
  margin-top: 0.15rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

.journey-chips li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hat-border) 16%, #fff);
  border: 1px solid color-mix(in srgb, var(--hat-border) 45%, #fff);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--foreground);
}

.journey-continue {
  margin: auto 0 0;
  padding-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.journey-media {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .journey-media {
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.15fr);
    align-items: center;
  }
}

.journey-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 16px 36px rgba(9, 9, 11, 0.1);
}

.journey-figure img,
.journey-figure video {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(46vh, 360px);
  object-fit: contain;
  background: #0b0b0f;
}

.journey-figure-shot img {
  max-height: min(58vh, 520px);
  object-fit: contain;
  object-position: top center;
  background: #f4f4f5;
}

.journey-compare {
  display: grid;
  gap: 1rem 1.35rem;
  align-content: start;
}

@media (min-width: 1100px) {
  .journey-compare {
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.35fr);
    align-items: stretch;
  }
}

.compare-pair {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  min-height: 0;
}

@media (min-width: 720px) {
  .compare-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-pane {
  margin: 0;
  display: grid;
  gap: 0.45rem;
  padding: 0.65rem;
  border-radius: calc(var(--radius) + 0.1rem);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid color-mix(in srgb, var(--hat-border) 28%, #fff);
  min-height: 0;
}

.compare-pane.is-before {
  border-color: color-mix(in srgb, #c2410c 35%, #fff);
}

.compare-pane.is-after {
  border-color: color-mix(in srgb, #15803d 40%, #fff);
}

.compare-pane-label {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--hat-border) 70%, #71717a);
}

.compare-pane img {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(42vh, 340px);
  object-fit: contain;
  object-position: top center;
  border-radius: calc(var(--radius) - 0.1rem);
  background: #121316;
}

.compare-pane figcaption {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 550;
  line-height: 1.35;
  color: var(--muted-foreground);
}

.journey-then-now {
  display: grid;
  gap: 0.85rem 1.25rem;
  align-content: start;
}

@media (min-width: 980px) {
  .journey-then-now {
    grid-template-columns: minmax(200px, 0.72fr) minmax(0, 1.4fr);
    align-items: stretch;
  }
}

.then-now-copy .then-now-controls {
  margin-top: 0.85rem;
}

.then-now-board {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border-radius: calc(var(--radius) + 0.15rem);
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--hat-border) 16%, transparent), transparent 42%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(244, 244, 245, 0.78));
  border: 1px solid color-mix(in srgb, var(--hat-border) 30%, #fff);
  box-shadow: 0 12px 28px rgba(9, 9, 11, 0.05);
  min-height: 0;
}

.then-now-columns {
  display: grid;
  grid-template-columns: 1fr 2.25rem 1fr;
  gap: 0.45rem;
  align-items: center;
  padding: 0 0.15rem;
}

.then-now-col-head {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
}

.then-now-col-head.is-then {
  color: #7c2d12;
  background: color-mix(in srgb, #c2410c 14%, #fff);
  border: 1px solid color-mix(in srgb, #c2410c 28%, #fff);
}

.then-now-col-head.is-now {
  color: #14532d;
  background: color-mix(in srgb, #15803d 14%, #fff);
  border: 1px solid color-mix(in srgb, #15803d 28%, #fff);
}

.then-now-grid {
  display: grid;
  gap: 0.45rem;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 0.15rem;
}

.then-now-pair {
  display: grid;
  grid-template-columns: 1fr 2.25rem 1fr;
  gap: 0.45rem;
  align-items: stretch;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  opacity: 0.72;
  transition: opacity 220ms ease, transform 220ms ease;
}

.then-now-pair.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.then-now-pair.is-pulse .then-now-cell {
  animation: then-now-glow 700ms ease;
}

@keyframes then-now-glow {
  0% {
    box-shadow: 0 0 0 0 transparent;
  }
  40% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hat-border) 18%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.then-now-cell {
  display: grid;
  gap: 0.28rem;
  align-content: center;
  min-height: 4.4rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--hat-border) 18%, #fff);
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 200ms ease, background 200ms ease;
}

.then-now-cell.is-then {
  border-color: color-mix(in srgb, #c2410c 22%, #fff);
  background: linear-gradient(160deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.88));
}

.then-now-cell.is-now {
  border-color: color-mix(in srgb, #15803d 24%, #fff);
  background: linear-gradient(160deg, rgba(240, 253, 244, 0.95), rgba(255, 255, 255, 0.88));
}

.then-now-pair.is-active .then-now-cell.is-then {
  border-color: color-mix(in srgb, #c2410c 55%, #fff);
  box-shadow: 0 8px 18px rgba(194, 65, 12, 0.08);
}

.then-now-pair.is-active .then-now-cell.is-now {
  border-color: color-mix(in srgb, #15803d 55%, #fff);
  box-shadow: 0 8px 18px rgba(21, 128, 61, 0.1);
}

.then-now-metric-label {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.then-now-metric-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--foreground);
}

.then-now-divider {
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--hat-border) 70%, #71717a);
  font-weight: 700;
  font-size: 1rem;
}

.then-now-pair.is-active .then-now-divider {
  color: color-mix(in srgb, var(--hat-border) 85%, #18181b);
  transform: scale(1.15);
}

.then-now-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.then-now-controls button {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hat-border) 35%, #fff);
  background: #fff;
  color: var(--foreground);
  cursor: pointer;
}

.then-now-controls button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--hat-border) 82%, #18181b);
  border-color: transparent;
  color: #fafafa;
}

@media (max-width: 720px) {
  .then-now-columns,
  .then-now-pair {
    grid-template-columns: 1fr;
  }

  .then-now-divider {
    display: none;
  }

  .then-now-columns span {
    display: none;
  }
}

.journey-video figcaption {
  margin: 0;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1.35;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--border);
}

.journey-video.is-theater {
  position: fixed;
  inset: 0;
  z-index: 200;
  margin: 0;
  border: none;
  border-radius: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: #000;
  box-shadow: none;
}

.journey-video.is-theater video {
  max-height: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.journey-video.is-theater figcaption {
  background: rgba(9, 9, 11, 0.92);
  color: #fafafa;
  border-top-color: rgba(255, 255, 255, 0.12);
}

body.video-theater-open {
  overflow: hidden;
}

body.video-theater-open .site-nav {
  opacity: 0;
  pointer-events: none;
}

.journey-punchline {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--hat-border);
}

.reflect-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin: 0 0 1rem;
}

@media (min-width: 860px) {
  .reflect-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .reflect-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.reflect-grid .reflect-card p {
  font-size: 0.82rem;
  line-height: 1.35;
}

.reflect-card {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--hat-border) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--hat-border) 35%, #fff);
}

.reflect-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.reflect-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

.journey-placeholder .journey-title {
  max-width: 18ch;
}

.placeholder-badge {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  background: var(--secondary);
  border: 1px dashed var(--border);
}

.journey-end-nav {
  margin-top: auto;
  width: 100%;
}

.detail-slide-side .detail-hat-figure {
  position: relative;
  right: auto;
  top: auto;
  width: min(46vw, 160px);
  margin: 0 0 0.75rem;
  animation: none;
  pointer-events: none;
}

.detail-slide-side .giant-hat-img {
  opacity: 1;
  border-width: 5px;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--hat-border) 24%, transparent),
    0 12px 28px rgba(9, 9, 11, 0.16);
}

.detail-slide-side .detail-hat-caption {
  text-align: left;
}

.detail-slide-side .detail-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.4rem;
}

.detail-slide-side .detail-subtitle,
.detail-slide-side .detail-lede {
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  max-width: 36ch;
}

.detail-slide-side .detail-kicker {
  margin-bottom: 0.45rem;
}

.detail-slide-side .hat-style-callout {
  margin-top: 0.75rem;
  padding: 0.65rem 0.8rem;
}

.intro-heading {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 20ch;
}

.intro-bridge {
  margin: 1.1rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--hat-border);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: color-mix(in srgb, var(--hat-border) 8%, #fff);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--foreground);
  max-width: 46ch;
}

.detail-block h2,
.compare-compact h2,
.insight-compact h2 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.4rem;
}

.detail-block p,
.compare-compact p,
.insight-compact p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.92rem;
  line-height: 1.45;
}

.detail-slide-nav {
  margin-top: auto;
  padding-top: 0.75rem;
}

.detail-slide-nav .detail-nav {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
}

.compare-compact {
  margin: 0.85rem 0;
}

.insight-compact {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 960px) and (min-height: 680px) {
  html:has(body.deck),
  body.deck {
    height: 100%;
    max-height: 100%;
  }

  body.deck {
    overflow: hidden;
  }

  body.deck .site-nav {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    border-radius: calc(var(--radius) + 0.15rem);
    border: 1px solid rgba(228, 228, 231, 0.9);
    box-shadow: 0 10px 30px rgba(9, 9, 11, 0.06);
  }

  body.deck .deck-main {
    height: 100svh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
  }

  body.deck .slide {
    box-sizing: border-box;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: calc(4.25rem + 0.75rem) 1.75rem 1.25rem !important;
    margin: 0 !important;
    max-width: none !important;
    display: flex;
    flex-direction: column;
  }

  body.deck .slide > .slide-inner,
  body.deck .slide > .detail-slide-grid,
  body.deck .slide > .hero-copy {
    flex: 1 1 auto;
    min-height: 0;
  }

  body.deck .hero {
    align-items: center;
    justify-content: flex-end;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  body.deck .hero-copy {
    padding: 2.25rem 2.25rem 2.25rem 1rem;
  }

  body.deck .hero-brand {
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    margin-bottom: 0.25rem;
    white-space: nowrap;
  }

  body.deck .hero-byline {
    margin-bottom: 0.85rem;
  }

  body.deck .hero-headline {
    font-size: clamp(1.15rem, 2.1vw, 1.5rem);
    margin-bottom: 0.75rem;
    line-height: 1.55;
    max-width: 46ch;
  }

  body.deck .hero-poem {
    gap: 0.28rem;
    line-height: 1.32;
    max-width: 26ch;
  }

  body.deck .hero-support {
    font-size: 0.98rem;
    margin-bottom: 1.1rem;
    line-height: 1.75;
    max-width: 54ch;
  }

  body.deck .event-meta {
    margin-bottom: 0.85rem;
  }

  body.deck .slide-framework .section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0.55rem;
  }

  body.deck .slide-framework .section-lead {
    font-size: 0.98rem;
    margin-bottom: 1rem;
    max-width: 70ch;
  }

  body.deck .slide-framework .bono-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem 1.25rem;
    flex: 1;
  }

  body.deck .slide-framework .bono-item {
    padding: 0.7rem 0;
  }

  body.deck .slide-framework .bono-swatch {
    width: 1.35rem;
    height: 1.35rem;
    margin-bottom: 0.45rem;
  }

  body.deck .slide-framework .bono-item h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }

  body.deck .slide-framework .bono-item p {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  body.deck .hat-stage {
    max-width: none;
    margin: 0;
    padding: 0 !important;
  }

  body.deck .slide-mindmap {
    display: grid;
    height: 100%;
    min-height: 0;
  }

  body.deck .mindmap {
    min-height: 0;
    height: 100%;
    margin: 0;
    border-radius: calc(var(--radius) + 0.15rem);
  }

  body.deck .mindmap-hub {
    width: clamp(84px, 11vw, 120px);
    height: clamp(84px, 11vw, 120px);
  }

  body.deck .mindmap-hub-title {
    font-size: clamp(1rem, 2vw, 1.3rem);
  }

  body.deck .mindmap-hub-sub {
    font-size: 0.6rem;
    margin-top: 0.2rem;
  }

  body.deck .mindmap-node {
    width: clamp(100px, 11.5vw, 132px);
    gap: 0.22rem;
  }

  body.deck .mindmap-node-orb {
    width: clamp(52px, 7vw, 72px);
    height: clamp(52px, 7vw, 72px);
  }

  body.deck .mindmap-node-role {
    font-size: clamp(0.8rem, 1.25vw, 0.95rem);
  }

  body.deck .mindmap-node-years {
    font-size: 0.66rem;
  }

  body.deck .mindmap-node-map {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }

  @media (orientation: landscape) {
    body.deck .mindmap-node {
      width: clamp(108px, 12vw, 140px);
    }
  }

  @media (orientation: portrait) {
    body.deck .mindmap-hub {
      width: clamp(92px, 18vw, 130px);
      height: clamp(92px, 18vw, 130px);
    }
  }

  body.deck.deck-detail {
    overflow: hidden;
  }

  body.deck.deck-detail .deck-main {
    overflow-y: auto;
    scroll-snap-type: y mandatory;
  }

  #journey-root {
    display: contents;
  }

  body.deck .journey-slide > .journey-frame {
    flex: 1 1 auto;
    min-height: 0;
  }

  body.deck .journey-process,
  body.deck .journey-evidence {
    height: 100%;
    min-height: 0;
  }

  body.deck .process-loop {
    min-height: 0;
    align-content: start;
  }

  body.deck .process-stage {
    min-height: 6.5rem;
  }

  body.deck .process-step-title {
    font-size: 0.68rem;
  }

  body.deck .journey-figure-shot img {
    max-height: min(62vh, 560px);
  }

  body.deck .journey-compare {
    height: 100%;
    min-height: 0;
  }

  body.deck .journey-then-now {
    height: 100%;
    min-height: 0;
  }

  body.deck .then-now-grid {
    max-height: min(58vh, 460px);
  }

  body.deck .then-now-cell {
    min-height: 3.8rem;
    padding: 0.55rem 0.7rem;
  }

  body.deck .then-now-metric-value {
    font-size: clamp(0.85rem, 1.3vw, 1rem);
  }

  body.deck .compare-pane img {
    max-height: min(48vh, 380px);
  }

  body.deck .evidence-cases {
    min-height: 0;
    overflow: auto;
  }

  body.deck .evidence-card h3 {
    font-size: 0.95rem;
  }

  body.deck .evidence-card p {
    font-size: 0.8rem;
  }

  body.deck .detail-slide-grid {
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 1.5rem 2rem;
    height: 100%;
  }

  body.deck .detail-slide-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  body.deck .detail-slide-main .journey-points {
    flex: 0 1 auto;
  }

  body.deck .detail-slide-main .intro-bridge {
    margin-top: 1rem;
  }

  body.deck .detail-block p,
  body.deck .compare-compact p,
  body.deck .insight-compact p {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  body.deck .deck-footer {
    display: none;
  }

  body.deck .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 960px) and (min-height: 680px) and (max-height: 780px) {
  body.deck .detail-block p,
  body.deck .compare-compact p,
  body.deck .insight-compact p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  body.deck .slide-framework .bono-item p {
    font-size: 0.8rem;
  }

  body.deck .hero-brand {
    font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  }
}

@media (max-width: 720px) {
  .hero-brand {
    white-space: normal;
    max-width: 12ch;
  }
}
