﻿@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');

/* =============================================================
   DESIGN TOKENS — paper-craft diorama
   Cream paper base, saturated section colors, ink for type.
   Existing variable names preserved so call sites don't break;
   their values are remapped to the new palette.
   ============================================================= */
:root {
  /* Saturated paper-craft palette */
  --c-vermillion: #d8412a;   /* hot stage red */
  --c-vermillion-2:#b32f1d;
  --c-marigold:   #f4b53e;   /* sunshine ochre */
  --c-marigold-2: #d9982a;
  --c-leaf:       #4fa84a;   /* paper grass green */
  --c-leaf-2:     #357c3a;
  --c-teal:       #2f8f8a;   /* deep paper teal */
  --c-teal-2:     #1f6967;
  --c-sky-bright: #5dadd8;   /* paper sky blue */
  --c-sky-bright-2:#3a8db8;
  --c-kraft:      #c89764;   /* kraft paper brown */
  --c-kraft-2:    #9b6a3d;
  --c-ink:        #221c14;   /* warm near-black ink */
  --c-cream:      #f7ecd3;   /* paper page base */
  --c-cream-2:    #ede0c0;   /* slightly deeper cream */

  /* Accent — re-aimed at vermillion (was green) */
  --c-accent:     var(--c-vermillion);
  --c-accent-dim: rgba(216, 65, 42, 0.14);

  /* Aliases kept so existing var(--c-blue-*) references resolve
     to warm-tinted neutrals without touching every selector. */
  --c-blue-50:  #f3ead3;
  --c-blue-100: #e8dcbb;
  --c-blue-200: #d4c39a;
  --c-blue-300: #b59d70;
  --c-blue-400: #8a7449;
  --c-blue-500: #5e4d2f;
  --c-blue-600: #3a2f1d;
  --c-blue-700: #2a2114;
  --c-blue-800: #1c160d;
  --c-blue-900: #0d0a05;

  /* Ink — warm-tinted grays */
  --c-ink-950: #0d0a05;
  --c-ink-900: #1a1308;
  --c-ink-800: #221c14;
  --c-ink-700: #3a2f1d;
  --c-ink-600: #5e4d2f;
  --c-ink-500: #8a7449;
  --c-ink-400: #b59d70;
  --c-ink-300: #d4c39a;
  --c-ink-200: #e8dcbb;
  --c-ink-100: #f3ead3;
  --c-ink-50:  #f9f1de;

  /* Re-aliased "pastel" tokens → saturated paper colors */
  --c-peach:      #f4b53e;   /* marigold */
  --c-peach-2:    #d9982a;
  --c-mint:       #4fa84a;   /* leaf green */
  --c-mint-2:     #357c3a;
  --c-lavender:   #2f8f8a;   /* teal stands in for lavender */
  --c-lavender-2: #1f6967;
  --c-rose:       #d8412a;   /* vermillion */
  --c-rose-2:     #b32f1d;
  --c-sky:        #5dadd8;   /* paper sky */
  --c-sky-2:      #3a8db8;
  --c-butter:     #f4b53e;
  --c-butter-2:   #d9982a;

  /* Surfaces */
  --c-bg:       var(--c-cream);
  --c-surface:  #fdf6e3;   /* lighter "fresh paper" for cards */
  --c-surface-2:var(--c-cream-2);
  --c-border:   rgba(34, 28, 20, 0.18);
  --c-border-2: rgba(34, 28, 20, 0.28);

  /* Paper grain — SVG noise filter as background-image.
     Use as: background-image: var(--paper-grain); blended on top of color. */
  --paper-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  --paper-grain-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch' seed='5'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  --paper-grain-dense:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");

  /* Shadows — paper-thickness layered shadows */
  --sh-xs: 0 1px 0 rgba(34, 28, 20, 0.10), 0 2px 4px rgba(34, 28, 20, 0.08);
  --sh-sm: 0 1px 0 rgba(34, 28, 20, 0.12), 0 4px 10px rgba(34, 28, 20, 0.10);
  --sh-md: 0 2px 0 rgba(34, 28, 20, 0.14), 0 10px 20px -4px rgba(34, 28, 20, 0.18);
  --sh-lg: 0 3px 0 rgba(34, 28, 20, 0.18), 0 20px 38px -10px rgba(34, 28, 20, 0.30), 0 6px 14px -6px rgba(34, 28, 20, 0.18);
  --sh-xl: 0 4px 0 rgba(34, 28, 20, 0.22), 0 32px 60px -18px rgba(34, 28, 20, 0.42), 0 10px 24px -10px rgba(34, 28, 20, 0.24);
  --sh-blue:  0 2px 0 rgba(34, 28, 20, 0.16), 0 6px 14px -4px rgba(34, 28, 20, 0.22);
  --sh-blue-2:0 3px 0 rgba(34, 28, 20, 0.20), 0 10px 22px -6px rgba(34, 28, 20, 0.30);

  /* Paper-card composite: top white highlight (paper edge) + bottom shadow.
     Apply as `box-shadow: var(--sh-paper);` on any card surface. */
  --sh-paper: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 0 rgba(34, 28, 20, 0.16), 0 12px 24px -8px rgba(34, 28, 20, 0.28);
  --sh-paper-lifted: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 0 rgba(34, 28, 20, 0.22), 0 22px 40px -12px rgba(34, 28, 20, 0.38);

  /* Radii — slight, like hand-cut paper */
  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 14px;
  --r-2xl: 18px;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Container */
  --container-w: 1200px;

  /* Type stacks */
  --ff-display: 'Inter Tight', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ff-script:  'Inter Tight', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ff-body:    'Inter Tight', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Deckle-edge paper boundary — subtle wavy line on the top, just enough
     to read as torn paper without screaming "jagged". Percent-based so the
     polygon stays inside the element on any viewport (pixel-based versions
     self-intersect on mobile where 100% < the largest fixed point). */
  --torn-top:
    polygon(
      0 4px, 5% 1px, 10% 4px, 15% 2px, 20% 4px, 25% 1px,
      30% 4px, 35% 2px, 40% 4px, 45% 1px, 50% 4px, 55% 2px,
      60% 4px, 65% 1px, 70% 4px, 75% 2px, 80% 4px, 85% 1px,
      90% 4px, 95% 2px, 100% 3px,
      100% 100%, 0 100%
    );
  /* Deckle at top AND bottom — percent-based, same mobile-safety reason */
  --torn-both:
    polygon(
      0 4px, 5% 1px, 10% 4px, 15% 2px, 20% 4px, 25% 1px,
      30% 4px, 35% 2px, 40% 4px, 45% 1px, 50% 4px, 55% 2px,
      60% 4px, 65% 1px, 70% 4px, 75% 2px, 80% 4px, 85% 1px,
      90% 4px, 95% 2px, 100% 3px,
      100% calc(100% - 4px), 95% calc(100% - 1px), 90% calc(100% - 4px),
      85% calc(100% - 2px), 80% calc(100% - 4px), 75% calc(100% - 1px),
      70% calc(100% - 4px), 65% calc(100% - 2px), 60% calc(100% - 4px),
      55% calc(100% - 1px), 50% calc(100% - 4px), 45% calc(100% - 2px),
      40% calc(100% - 4px), 35% calc(100% - 1px), 30% calc(100% - 4px),
      25% calc(100% - 2px), 20% calc(100% - 4px), 15% calc(100% - 1px),
      10% calc(100% - 4px), 5% calc(100% - 2px), 0 calc(100% - 3px)
    );
}

/* =============================================================
   RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background-color: var(--c-bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-ink-800);
  background-color: var(--c-cream);
  /* Paper fiber grain layered over the cream base */
  background-image: var(--paper-grain);
  background-repeat: repeat;
  background-size: 280px 280px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 14;
}

/* Display & body type defaults — Fraunces, optical-sized for display */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-variation-settings: "opsz" 72;
  font-optical-sizing: auto;
  /* Balance line lengths so wrapped headings don't leave orphan words. */
  text-wrap: balance;
}
h1 { font-variation-settings: "opsz" 72; }
h2 { font-variation-settings: "opsz" 60; }
h3 { font-variation-settings: "opsz" 36; }
h4 { font-variation-settings: "opsz" 18; }
p { font-family: var(--ff-body); }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }


/* =============================================================
   PAGE STRUCTURE
   ============================================================= */
#portfolio {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
}

/* Default reveal — a "lift" that combines fade, soft upward translate, and a
   tiny scale-in. Feels more dimensional than a flat fade. */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.95s var(--ease-out),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal][data-reveal-delay="1"] { --d: 90ms; }
[data-reveal][data-reveal-delay="2"] { --d: 180ms; }
[data-reveal][data-reveal-delay="3"] { --d: 270ms; }
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Sweep-in from the left — used for section eyebrows so they feel like
   they "underline" their way in instead of dropping. Preserves the
   paper-tilt rotation the eyebrows carry at rest. */
[data-reveal="left"] {
  transform: translateX(-22px) rotate(-1.2deg);
}
[data-reveal="left"].is-in {
  transform: translateX(0) rotate(-1.2deg);
}

/* Settle-from-tilt — used on large paper-card surfaces (the course player,
   etc). Subtle rotation correction reads as "placing a card down straight." */
[data-reveal="tilt"] {
  transform: translateY(28px) scale(0.965) rotate(-0.9deg);
  transform-origin: 50% 100%;
}
[data-reveal="tilt"].is-in {
  transform: translateY(0) scale(1) rotate(0deg);
}

/* Format cards: pure fade in (slide+scale default reads as "popping" when
   15 cards land at once). The per-card rotation defined on .fc-card:nth-child
   below is preserved at all times — only opacity transitions. */
.fc-card[data-reveal] {
  transition: opacity 1.1s var(--ease-out);
}


/* =============================================================
   HERO
   ============================================================= */
#hero {
  position: relative;
  padding-block: clamp(5rem, 11vw, 9rem) clamp(7rem, 16vw, 13rem);
  text-align: center;
  isolation: isolate;
}

/* Faded site wordmark, top-left of the hero.
   Letterpress-style: low opacity ink with a faint cream highlight below,
   making it read as gently pressed into the paper rather than printed on top. */
.site-wordmark {
  position: absolute;
  top: clamp(22px, 2.4vw, 32px);
  left: clamp(22px, 2.8vw, 36px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--c-ink-600);
  opacity: 0.42;
  user-select: none;
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.75);
}

.site-wordmark-name { color: var(--c-ink-700); font-weight: 700; letter-spacing: 0.12em; }
.site-wordmark-sep  { color: var(--c-ink-400); opacity: 0.7; font-weight: 700; }
.site-wordmark-role { font-weight: 500; }

@media (max-width: 640px) {
  .site-wordmark { font-size: 9.5px; gap: 7px; letter-spacing: 0.16em; }
  .site-wordmark-name { letter-spacing: 0.08em; }
}

.hero-sky {
  position: absolute;
  inset: -60px 0 0 50%;
  width: 100vw;
  margin-left: -50vw;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-sky-gradient {
  /* No sky tint — let the cream body paper show through */
  display: none;
}

/* Scattered placeholder paper cards drifting in the hero background.
   Empty (no specific content) — just faded paper rectangles to suggest
   "scattered content" without naming what it is. Desktop-only. */
.hero-sky-cloud {
  position: absolute;
  background-color: var(--c-surface);
  background-image: var(--paper-grain-light);
  background-repeat: repeat;
  background-size: 280px 280px;
  border: 1px solid rgba(34, 28, 20, 0.10);
  border-radius: var(--r-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 0 rgba(34, 28, 20, 0.10), 0 10px 22px -8px rgba(34, 28, 20, 0.22);
  opacity: 0.32;
}
/* Faint horizontal "ruled" lines to suggest a page without content */
.hero-sky-cloud::before {
  content: "";
  position: absolute;
  inset: 14% 14% 14% 14%;
  background-image:
    linear-gradient(rgba(34, 28, 20, 0.20) 1px, transparent 1px);
  background-size: 100% 14px;
  background-repeat: repeat-y;
  opacity: 0.45;
}
.hero-sky-cloud::after { content: none; }

.hero-sky-cloud--1 {
  width: 220px; height: 150px;
  top: 18%; left: 2%;
  --rot: -3.5deg;
  animation: cloud-drift 30s ease-in-out infinite;
}
.hero-sky-cloud--2 {
  width: 180px; height: 230px;
  top: 8%; right: 4%;
  --rot: 2.8deg;
  animation: cloud-drift 36s ease-in-out infinite reverse;
}
.hero-sky-cloud--3 {
  width: 160px; height: 110px;
  top: 4%; left: 38%;
  --rot: -1.5deg;
  animation: cloud-drift 40s ease-in-out infinite;
}
.hero-sky-cloud--4 {
  width: 200px; height: 140px;
  bottom: 18%; left: -2%;
  --rot: 4deg;
  animation: cloud-drift 44s ease-in-out infinite reverse;
}
.hero-sky-cloud--5 {
  width: 170px; height: 220px;
  bottom: 10%; right: 0%;
  --rot: -2.2deg;
  animation: cloud-drift 52s ease-in-out infinite;
}

/* Desktop-only — hide entirely below full-screen widths */
@media (max-width: 1199px) {
  .hero-sky-cloud { display: none; }
}

/* When the headline wraps to 3 rows, reduce hero background-card weight
   so the title stays the dominant element. */
@media (max-width: 1100px) {
  .hero-float { opacity: 0.15; }
  .hero-float--card2 { display: none; }
}

@keyframes cloud-drift {
  0%, 100% { transform: translate(0, 0) rotate(var(--rot, 0deg)); }
  50%      { transform: translate(40px, -20px) rotate(var(--rot, 0deg)); }
}

#hero-intro {
  max-width: 920px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* Handwritten script accent — Caveat — for the word "presentable" */
.hero-headline-accent {
  font-family: var(--ff-display);
  font-weight: 800;
  font-style: italic;
  font-variation-settings: "opsz" 72;
  color: var(--c-vermillion);
  /* Layered text-shadows fake a metallic vermillion: a soft top highlight,
     a darker bottom edge, and a low ambient drop. */
  text-shadow:
    0 -1px 0 rgba(255, 180, 150, 0.55),
    0 1px 0 var(--c-vermillion-2),
    0 2px 0 var(--c-vermillion-2),
    0 3px 4px rgba(34, 28, 20, 0.28);
  display: inline-block;
  letter-spacing: -0.015em;
}

#hero-headline {
  font-family: var(--ff-display);
  font-size: clamp(44px, 7.5vw, 88px);
  font-weight: 800;
  font-variation-settings: "opsz" 72;
  letter-spacing: 0.002em;
  line-height: 1.02;
  color: var(--c-ink-900);
  margin: 0 0 26px;
  /* Paper-cut 3D extrusion: solid white outline (paper edge) + offset
     cream-shadow layer behind for depth + soft drop shadow on the ground. */
  text-shadow: 0 2px 0 rgba(34, 28, 20, 0.08), 0 6px 14px rgba(34, 28, 20, 0.12);
}

.hero-headline-mobile { display: none; }

#hero-subheadline {
  font-family: var(--ff-body);
  font-size: clamp(17px, 1.45vw, 19px);
  font-weight: 400;
  color: var(--c-ink-700);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 660px;
  font-variation-settings: "opsz" 10;
  text-shadow:
    -1px -1px 0 var(--c-cream), 1px -1px 0 var(--c-cream),
    -1px 1px 0 var(--c-cream), 1px 1px 0 var(--c-cream),
    0 0 6px rgba(247, 236, 211, 0.9);
}

.hero-cta-row {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background-color: var(--c-vermillion);
  color: #fffaf0;
  font-family: var(--ff-display);
  font-weight: 800;
  font-variation-settings: "opsz" 24;
  font-size: 16px;
  letter-spacing: 0.02em;
  border: 1px solid var(--c-vermillion-2);
  border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 3px 0 var(--c-vermillion-2), 0 8px 16px -4px rgba(34, 28, 20, 0.32);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-shadow: 0 1px 0 rgba(0,0,0,0.18);
  transition: background-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}
.hero-cta svg {
  transition: transform 0.2s ease;
}
.hero-cta:hover svg {
  transform: translateX(4px);
}
.hero-cta:active {
  background-color: var(--c-vermillion-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 1px 0 var(--c-vermillion-2), 0 4px 10px -4px rgba(34, 28, 20, 0.24);
}

.hero-cta-meta {
  font-size: 13px;
  color: #6e6e6e;
  font-weight: 400;
}

/* Floating preview cards — paper-cut layers stuck onto the scene */
.hero-float {
  position: absolute;
  background-color: var(--c-surface);
  background-image: var(--paper-grain-light);
  background-repeat: repeat;
  background-size: 280px 280px;
  border: 1px solid rgba(34, 28, 20, 0.14);
  border-radius: var(--r-md);
  padding: 14px;
  box-shadow: var(--sh-paper);
  z-index: 1;
  will-change: transform;
  color: var(--c-ink-800);
  isolation: isolate;
}
/* Wash the card toward the body cream so it reads as "faded" while staying
   fully opaque (no see-through transparency). */
.hero-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: var(--c-bg);
  opacity: 0.75;
  pointer-events: none;
  z-index: 1;
}
.hero-float > * { position: relative; z-index: 0; }

/* Per-card rotation gives the scattered diorama feel.
   Set via --rot custom prop so the JS parallax loop can combine
   translate + rotate without one wiping the other. */
.hero-float--card1 { --rot: 2.5; }
.hero-float--card2 { --rot: -1.8; }
.hero-float--card4 { --rot: 1.6; }
.hero-float--card5 { --rot: -2.2; }
.hero-float--card6 { --rot: 1.2; }

.hero-float .hero-fc-row,
.hero-float .hero-fc-label,
.hero-float .hero-fc-mini-text { color: var(--c-ink-900); }

.hero-float .hero-fc-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero-float .hero-fc-wave > span {
  background: var(--accent);
}

.hero-float .hero-fc-mini {
  background: #ffffff;
  border-color: rgba(34, 28, 20, 0.12);
  color: var(--c-ink-900);
}
.hero-float .hero-fc-mini-icon { background: var(--accent); }
.hero-float .hero-fc-mini-check--active {
  background: var(--accent);
}

.hero-float--card1 { bottom: 18%; right: 6%; width: 210px; --phase: 0s; --accent: #d8412a; } /* vermillion */
.hero-float--card2 { top: 36%;  right: 2.5%; width: 250px; --phase: -2.3s; --accent: #4fa84a; } /* leaf */
.hero-float--card4 { top: 12%;  right: 12%; width: 200px; --phase: -1.4s; --accent: #2f8f8a; } /* teal */
.hero-float--card5 { top: 18%;  left: 3%;   width: 220px; --phase: -3.2s; --accent: #5dadd8; } /* sky */
.hero-float--card6 { top: 58%;  left: 14%;  width: 180px; --phase: -5.7s; --accent: #f4b53e; } /* marigold */

/* Format-specific tweaks for new cards */
.hero-fc-doc-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-ink-900);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.hero-fc-doc-rows { display: flex; flex-direction: column; gap: 5px; }
.hero-fc-doc-bar {
  height: 5px;
  background: var(--accent);
  border-radius: 3px;
}

.hero-fc-play {
  position: relative;
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--accent) 85%, #ffffff);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-fc-play-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
}
.hero-fc-play-time {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.65);
  font-variant-numeric: tabular-nums;
}

/* Slack thread snippet */
.hero-fc-chat {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hero-fc-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.hero-fc-chat-row--reply {
  margin-left: 16px;
}
.hero-fc-chat-avatar {
  width: 22px; height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: 8.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.hero-fc-chat-avatar--alt {
  background: color-mix(in srgb, var(--accent) 65%, #ffffff);
}
.hero-fc-chat-bubble {
  flex: 1;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px 8px 8px 2px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hero-fc-chat-channel {
  margin-top: 8px;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.55);
}

/* Fallback float when JS isn't running (reduced motion or no-JS) */
@media (prefers-reduced-motion: reduce) {
  .hero-float { transform: none; }
}

.hero-fc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink-700);
  margin-bottom: 10px;
}
.hero-fc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1a1a1a;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12);
  animation: pulse-red 2s ease-in-out infinite;
}
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(0, 0, 0, 0.05); }
}
.hero-fc-label { font-weight: 600; }

.hero-fc-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
}
.hero-fc-wave > span {
  flex: 1;
  background: #1a1a1a;
  border-radius: 2px;
  animation: wave-bar 1.2s ease-in-out infinite;
}
.hero-fc-wave > span:nth-child(1) { animation-delay: 0.0s; height: 30%; }
.hero-fc-wave > span:nth-child(2) { animation-delay: 0.1s; height: 60%; }
.hero-fc-wave > span:nth-child(3) { animation-delay: 0.2s; height: 90%; }
.hero-fc-wave > span:nth-child(4) { animation-delay: 0.3s; height: 50%; }
.hero-fc-wave > span:nth-child(5) { animation-delay: 0.4s; height: 80%; }
.hero-fc-wave > span:nth-child(6) { animation-delay: 0.5s; height: 40%; }
.hero-fc-wave > span:nth-child(7) { animation-delay: 0.6s; height: 70%; }
.hero-fc-wave > span:nth-child(8) { animation-delay: 0.7s; height: 95%; }
.hero-fc-wave > span:nth-child(9) { animation-delay: 0.8s; height: 55%; }
.hero-fc-wave > span:nth-child(10){ animation-delay: 0.9s; height: 80%; }
.hero-fc-wave > span:nth-child(11){ animation-delay: 1.0s; height: 35%; }
.hero-fc-wave > span:nth-child(12){ animation-delay: 1.1s; height: 65%; }
@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.hero-fc-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-fc-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #2a2a2a;
}
.hero-fc-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--c-blue-600);
  color: #fff;
  border-radius: 6px;
  font-size: 9px;
}
.hero-fc-mini-text { flex: 1; }
.hero-fc-mini-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: #ececec;
  color: #9a9a9a;
  border-radius: 50%;
  font-size: 10px;
}
.hero-fc-mini-check--active {
  background: #1a1a1a;
  color: #fff;
}


/* =============================================================
   SHARED SECTION ELEMENTS
   ============================================================= */
.section-eyebrow,
#services-eyebrow,
.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--c-cream);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-sm);
  color: var(--c-ink-900);
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  font-variation-settings: "opsz" 10;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 1px 0 rgba(34,28,20,0.18), 0 4px 8px -4px rgba(34,28,20,0.18);
  transform: rotate(-1.2deg);
}
.section-eyebrow-dot,
.services-eyebrow-dot,
.contact-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-dim);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--c-accent-dim); }
  50%      { box-shadow: 0 0 0 6px rgba(31, 209, 123, 0.05); }
}


/* =============================================================
   WORK SAMPLE
   ============================================================= */
#work-sample {
  position: relative;
  padding-block: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 4vw, 3.5rem);
  isolation: isolate;
}

.ws-bg {
  position: absolute;
  inset: -8px 0 0 50%;   /* extend slightly above for the torn edge */
  width: 100vw;
  margin-left: -50vw;
  z-index: -1;
  background-color: var(--c-sky-bright);
  background-image: var(--paper-grain);
  background-repeat: repeat;
  background-size: 280px 280px;
  background-blend-mode: multiply;
  overflow: hidden;
  border-radius: 0;
  clip-path: var(--torn-top);
  filter: drop-shadow(0 8px 14px rgba(34, 28, 20, 0.22));
}
/* White "paper thickness" rim along the torn top edge */
.ws-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fffaf0;
  clip-path: var(--torn-top);
  transform: translateY(-2px);
  z-index: -1;
}

#work-sample > .section-eyebrow {
  display: flex;
  justify-content: center;
  margin: 0 auto 20px;
  width: max-content;
}

#morpheus-title {
  font-family: var(--ff-display);
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 800;
  font-variation-settings: "opsz" 60;
  letter-spacing: 0.005em;
  line-height: 1.06;
  color: var(--c-ink-900);
  text-align: center;
  margin: 0 auto 14px;
  text-shadow: 0 2px 0 rgba(34, 28, 20, 0.08), 0 6px 14px rgba(34, 28, 20, 0.12);
}

#morpheus-caption {
  font-family: var(--ff-body);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 500;
  color: var(--c-ink-700);
  text-align: center;
  margin: 0 auto 88px;
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.4);
}


/* -------------------------------------------------------------
   Work-sample stages (Source → Tools → Output)
   ------------------------------------------------------------- */
.ws-stage {
  margin: 0;
}

.ws-stage + .ws-stage {
  margin-top: 56px;
}

.ws-stage-head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 28px;
  max-width: 760px;
}

/* Paper-tag style stage number — rotated, layered shadow, pulsing accent dot */
.ws-stage-num {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: var(--r-md);
  background: var(--c-surface);
  background-image: var(--paper-grain-light);
  background-repeat: repeat;
  background-size: 280px 280px;
  border: 1.5px solid rgba(34, 28, 20, 0.22);
  box-shadow: var(--sh-paper);
  transform: rotate(-3deg);
  margin-top: 4px;
}

.ws-stage-num-text {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--c-ink-900);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.7);
}

.ws-stage-eyebrow {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-700);
  background: var(--c-surface);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(34, 28, 20, 0.18);
  box-shadow: 0 1px 0 rgba(34, 28, 20, 0.10);
  transform: rotate(-1.2deg);
  margin-bottom: 12px;
}

.ws-stage-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, var(--c-vermillion));
  margin-right: 7px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.ws-stage-title h3 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--c-ink-900);
  margin: 0 0 8px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.5);
}

.ws-stage-title p {
  font-family: var(--ff-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--c-ink-700);
  margin: 0;
  max-width: 620px;
}

/* ---------------- Stage 1: Source video ---------------- */
.ws-video-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 8px 8px 12px;   /* breathing room for the tilt + shadows */
}

.ws-video {
  position: relative;
  background: var(--c-surface);
  background-image: var(--paper-grain-light);
  background-repeat: repeat;
  background-size: 280px 280px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 14px 14px 18px;       /* polaroid-style chunkier bottom */
  box-shadow: var(--sh-paper-lifted);
  transform: rotate(-0.7deg);
}

.ws-video-row > .ws-video:nth-child(2) {
  transform: rotate(0.9deg);
}

/* Decorative tape strips pinning the polaroid */
.ws-video::before,
.ws-video::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 46px;
  height: 16px;
  background: rgba(244, 181, 62, 0.55);
  border: 1px solid rgba(217, 152, 42, 0.45);
  box-shadow: 0 1px 0 rgba(34, 28, 20, 0.08);
  z-index: 2;
  pointer-events: none;
}

.ws-video::before {
  left: 16%;
  transform: rotate(-8deg);
}

.ws-video::after {
  right: 16%;
  transform: rotate(7deg);
}

.ws-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #1a1308;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* When you swap the poster div for <iframe>, it inherits the frame size */
.ws-video-frame iframe,
.ws-video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* The actual playing video fills the frame */
.ws-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background:
    radial-gradient(ellipse at center, color-mix(in srgb, var(--accent, #d8412a) 22%, transparent) 0%, transparent 62%),
    linear-gradient(135deg, #2c2218 0%, #160f06 100%);
}

/* Caption overlaid at the bottom of the video, with a soft fade for legibility */
.ws-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  background:
    linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.55) 100%);
}

.ws-video-caption {
  align-self: center;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(247, 236, 211, 0.92);
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}


/* ---------------- Stage 2: Tools grid ---------------- */
.ws-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 8px 8px 14px;   /* breathing room for tilt + shadows */
}

.ws-tool {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  background-image: var(--paper-grain-light);
  background-repeat: repeat;
  background-size: 280px 280px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-paper);
  overflow: hidden;
}

/* Accent rule along the top edge of every card */
.ws-tool::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent, var(--c-vermillion));
  z-index: 2;
  opacity: 0.85;
}

.ws-tool-mock {
  padding: 16px 14px 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent, #d8412a) 6%, transparent) 0%, transparent 100%),
    rgba(34, 28, 20, 0.02);
  border-bottom: 1px dashed rgba(34, 28, 20, 0.18);
}

.ws-tool-chrome {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 0 13px;
  border-bottom: 1px dashed rgba(34, 28, 20, 0.14);
  margin-bottom: 13px;
}

.ws-tool-chrome-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--accent, var(--c-vermillion));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 rgba(34, 28, 20, 0.22), 0 3px 6px -2px rgba(34, 28, 20, 0.25);
  transform: rotate(-4deg);
}

/* Brand-specific overrides preserved for character */
.ws-tool-chrome-mark--claude    { background: #cc785c; }
.ws-tool-chrome-mark--gpt       { background: #10a37f; }
.ws-tool-chrome-mark--teachable { background: #467dd2; }

.ws-tool-chrome-name {
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink-900);
  letter-spacing: 0.01em;
}

/* Chat mock (Claude + ChatGPT) */
.ws-tool-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 178px;
}

.ws-tool-bubble {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  max-width: 90%;
  text-wrap: balance;
}

.ws-tool-bubble--user {
  align-self: flex-end;
  background: #fff;
  color: var(--c-ink-800);
  border: 1px solid var(--c-border);
  border-bottom-right-radius: 3px;
}

.ws-tool-bubble--ai {
  align-self: flex-start;
  background: #fff;
  color: var(--c-ink-800);
  border: 1px solid var(--c-border);
  border-bottom-left-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 94%;
}

.ws-tool-attach {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: rgba(34, 28, 20, 0.05);
  border: 1px solid var(--c-border);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--c-ink-700);
  width: max-content;
}

.ws-tool-outline-row {
  display: block;
  font-size: 12.5px;
  color: var(--c-ink-700);
  padding: 2px 0;
}

.ws-tool-outline-row--active {
  color: var(--c-vermillion);
  font-weight: 600;
}

.ws-tool-typing {
  display: inline-flex;
  gap: 4px;
  margin-top: 4px;
  align-items: center;
  height: 8px;
}

.ws-tool-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-ink-400);
  animation: ws-tool-typing 1.2s infinite ease-in-out;
}

.ws-tool-typing span:nth-child(2) { animation-delay: 0.15s; }
.ws-tool-typing span:nth-child(3) { animation-delay: 0.30s; }

@keyframes ws-tool-typing {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.4; }
  30%           { transform: translateY(-3px); opacity: 1;   }
}

.ws-tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ws-tool-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(47, 143, 138, 0.10);
  color: var(--c-teal-2);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(47, 143, 138, 0.25);
}

/* Teachable editor mock */
.ws-tool-editor {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 178px;
}

.ws-tool-editor-head {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--c-ink-600);
  padding-bottom: 6px;
  margin-bottom: 2px;
}

.ws-tool-mod {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--c-border);
  font-size: 12.5px;
  color: var(--c-ink-800);
}

.ws-tool-mod--active {
  background: rgba(70, 125, 210, 0.08);
  border-color: rgba(70, 125, 210, 0.35);
  box-shadow: 0 0 0 1px rgba(70, 125, 210, 0.15);
}

.ws-tool-mod-handle {
  color: var(--c-ink-400);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -1px;
  cursor: grab;
}

.ws-tool-mod-name {
  flex: 1;
  font-weight: 500;
}

.ws-tool-mod-count {
  font-size: 11px;
  color: var(--c-ink-600);
  background: rgba(34, 28, 20, 0.06);
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
}

.ws-tool-info {
  padding: 16px 18px 18px;
  position: relative;
}

.ws-tool-info h4 {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--c-ink-900);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ws-tool-info h4::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, var(--c-vermillion));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #d8412a) 20%, transparent);
}

.ws-tool-info p {
  font-family: var(--ff-body);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--c-ink-700);
  margin: 0;
}


/* Teachable course player mock */
.tb-player {
  background-color: var(--c-surface);
  background-image: var(--paper-grain-light);
  background-repeat: repeat;
  background-size: 280px 280px;
  border: 1px solid rgba(34, 28, 20, 0.18);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-paper-lifted);
  margin: 0;
  font-family: inherit;
}

.tb-topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  background: #2a2a2a;
  color: #ffffff;
}

.tb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tb-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #ffffff;
  color: #2a2a2a;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.tb-brand-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.tb-course-name {
  font-size: 13px;
  font-weight: 500;
  color: #cccccc;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 12px;
  color: #cccccc;
}

.tb-progress-bar {
  display: inline-block;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.tb-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: #ffffff;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.tb-progress-text {
  font-weight: 500;
  color: #ffffff;
}

.tb-autoplay {
  display: none;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 4px 10px 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cccccc;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tb-player.is-autoplaying .tb-autoplay {
  display: inline-flex;
}

.tb-autoplay-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  animation: tb-autoplay-pulse 2s ease-out infinite;
}

@keyframes tb-autoplay-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(255, 255, 255, 0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0   rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .tb-autoplay-dot { animation: none; }
}

.tb-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: 760px;
}

.tb-sidebar {
  background: #f7f8fa;
  border-right: 1px solid #e5e7eb;
  padding: 18px 0 8px;
}

.tb-sidebar-header {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 0 20px 12px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 4px;
}

.tb-section {
  padding: 12px 0 8px;
  border-bottom: 1px solid #e5e7eb;
}

.tb-section:last-child {
  border-bottom: 0;
}

.tb-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.tb-section-meta {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}

.tb-lessons {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tb-lesson {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  font-size: 13px;
  color: #4b5563;
  border-left: 3px solid transparent;
  margin-left: -3px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.tb-lesson:hover {
  background: #eef0f4;
}

.tb-lesson--active:hover {
  background: #f0f0f0;
}

.tb-lesson:focus-visible {
  outline: 2px solid #000;
  outline-offset: -2px;
}

.tb-lesson-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #9ca3af;
  position: relative;
}

.tb-lesson-icon svg {
  width: 100%;
  height: 100%;
}

.tb-lesson-icon .tb-icon-circle,
.tb-lesson-icon .tb-icon-check,
.tb-lesson-icon .tb-icon-play {
  display: none;
}

.tb-lesson .tb-icon-circle { display: block; }
.tb-lesson--done .tb-icon-circle { display: none; }
.tb-lesson--done .tb-icon-check { display: block; color: var(--c-leaf); }
.tb-lesson--active .tb-icon-circle,
.tb-lesson--active .tb-icon-check { display: none; }
.tb-lesson--active .tb-icon-play { display: block; }

.tb-lesson-title {
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-lesson-duration {
  font-size: 11px;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}

.tb-lesson--done .tb-lesson-icon {
  color: #000;
}

.tb-lesson--done .tb-lesson-title {
  color: #6b7280;
}

.tb-lesson--active {
  background: #f0f0f0;
  border-left-color: #000;
}

.tb-lesson--active .tb-lesson-icon {
  color: #000;
}

.tb-lesson--active .tb-lesson-title {
  color: #222;
  font-weight: 600;
}

.tb-lesson--active .tb-lesson-duration {
  color: #000;
}

.tb-main {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #ffffff;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}

/* Fade only the media + lesson info during lesson swaps; the action buttons
   (and their top divider) stay visible the whole time. */
.tb-main > .tb-diagram,
.tb-main > .tb-video,
.tb-main > .tb-file,
.tb-main > .tb-annot,
.tb-main > .tb-lesson-info {
  transition: opacity 0.28s ease;
}
.tb-main--fading > .tb-diagram,
.tb-main--fading > .tb-video,
.tb-main--fading > .tb-file,
.tb-main--fading > .tb-annot,
.tb-main--fading > .tb-lesson-info {
  opacity: 0;
}

.tb-video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 540px;
  width: 100%;
  background: #0a0a0a;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tb-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Bottom shade so the controls stay legible over a bright frame */
.tb-video::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

.tb-play {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0a0a0a;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.tb-play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.tb-play:hover {
  background: #ffffff;
  transform: scale(1.05);
}

.tb-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 14px 16px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.tb-timecode {
  flex-shrink: 0;
}

.tb-video-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.tb-video-fill {
  width: 38%;
  height: 100%;
  background: #ffffff;
}

.tb-video-fs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tb-video-fs svg {
  width: 100%;
  height: 100%;
}

.tb-diagram {
  aspect-ratio: 16 / 9;
  max-width: 540px;
  width: 100%;
  background-color: #1f1f1f;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.tb-diagram-svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.tb-file {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 540px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px 20px;
}

.tb-file-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 64px;
  background: #ececec;
  color: #222;
  border-radius: 6px;
  flex-shrink: 0;
}

.tb-file-thumb svg {
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
}

.tb-file-ext {
  position: absolute;
  bottom: 8px;
  font-size: 9px;
  font-weight: 800;
  color: #222;
  letter-spacing: 0.05em;
}

.tb-file-meta {
  flex: 1;
  min-width: 0;
}

.tb-file-name {
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-file-sub {
  font-size: 12px;
  color: #6b7280;
}

.tb-file-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #1a1a1a;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.tb-file-dl:hover {
  background: #222;
}

.tb-file-dl svg {
  width: 14px;
  height: 14px;
}

.tb-glossary {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 0;
}

.tb-glossary-row {
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.tb-glossary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tb-glossary-term {
  font-size: 14px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 4px;
}

.tb-glossary-def {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.tb-legend {
  margin: 0;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px 16px;
  font-size: 13px;
}

.tb-legend-row {
  display: contents;
}

.tb-legend-label {
  font-weight: 700;
  color: #0a0a0a;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.tb-legend-desc {
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

.tb-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tb-lesson-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tb-lesson-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.tb-lesson-heading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  margin: 0 0 4px;
}

.tb-lesson-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tb-lesson-subhead {
  font-size: 13px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0;
  letter-spacing: -0.005em;
}

.tb-lesson-body {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.tb-lesson-notes {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

.tb-lesson-notes li {
  padding-left: 2px;
}

.tb-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.tb-btn--primary {
  background: #2a2a2a;
  color: #fff;
}

.tb-btn--primary:hover {
  background: #404040;
}

.tb-btn--ghost {
  background: transparent;
  color: #6b7280;
}

.tb-btn--ghost:hover {
  color: #1f2937;
  background: #f3f4f6;
}

/* =============================================================
   SERVICES
   ============================================================= */
#services {
  position: relative;
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 4rem);
  isolation: isolate;
}

.services-bg {
  position: absolute;
  inset: -8px 0 0 50%;
  width: 100vw;
  margin-left: -50vw;
  z-index: -1;
  background-color: var(--c-sky-bright);
  background-image: var(--paper-grain);
  background-repeat: repeat;
  background-size: 280px 280px;
  background-blend-mode: multiply;
  overflow: hidden;
  border-radius: 0;
  clip-path: var(--torn-top);
  filter: drop-shadow(0 8px 14px rgba(34, 28, 20, 0.22));
}
.services-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fffaf0;
  clip-path: var(--torn-top);
  transform: translateY(-2px);
  z-index: -1;
}

#services-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

#services-eyebrow { /* uses .section-eyebrow shared style */ }

#services-heading {
  font-family: var(--ff-display);
  font-size: clamp(34px, 4.9vw, 60px);
  font-weight: 800;
  font-variation-settings: "opsz" 60;
  letter-spacing: 0.005em;
  line-height: 1.06;
  color: var(--c-ink-900);
  margin: 0;
  text-shadow: 0 2px 0 rgba(34, 28, 20, 0.08), 0 6px 14px rgba(34, 28, 20, 0.12);
}
.services-heading-accent {
  font-family: var(--ff-display);
  font-weight: 800;
  font-style: italic;
  font-variation-settings: "opsz" 60;
  color: var(--c-vermillion);
  text-shadow:
    0 -1px 0 rgba(255, 180, 150, 0.55),
    0 1px 0 var(--c-vermillion-2),
    0 2px 0 var(--c-vermillion-2),
    0 3px 4px rgba(34, 28, 20, 0.28);
  display: inline-block;
}

#services-lead {
  font-family: var(--ff-body);
  font-size: clamp(16px, 1.45vw, 18px);
  color: var(--c-ink-900);
  max-width: 620px;
  margin: 0;
  line-height: 1.6;
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.45);
}

/* Intake marquee */
#services-intake {
  position: relative;
  margin: 56px 0 0;
  padding: 24px 0;
  background-color: var(--c-surface);
  background-image: var(--paper-grain-light);
  background-repeat: repeat;
  background-size: 280px 280px;
  border: 1px solid rgba(34, 28, 20, 0.18);
  border-radius: var(--r-md);
  box-shadow: var(--sh-paper);
}
.services-intake-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: #1a1a1a;
  color: #fff;

  border-radius: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: absolute;
  top: -12px; left: 24px;
  z-index: 2;
}
.services-intake-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  animation: dot-pulse 1.8s ease-in-out infinite;
}

.services-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.services-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.intake-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--c-cream);
  border: 1px solid rgba(34, 28, 20, 0.20);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-800);
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 1px 0 rgba(34,28,20,0.10);
}
.intake-chip-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 2px 6px;
  background: #f0f0f0;
  color: #1a1a1a;
  border-radius: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
}

/* Funnel */
#services-funnel {
  position: relative;
  margin: 0;
  padding: 0;
  height: 80px;
}
#services-funnel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.services-funnel-shape {
  fill: rgba(0, 0, 0, 0.04);
  stroke: rgba(0, 0, 0, 0.18);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}
.services-funnel-line { display: none; }
.services-funnel-label {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;

  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 0;
}

#services #features-grid { margin-top: 32px; }

#services-outro {
  text-align: center;
  margin: 56px auto 0;
  max-width: 620px;
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--c-ink-900);
  line-height: 1.65;
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.4);
}


/* =============================================================
   Format card grid (rendered inside #services)
   ============================================================= */

#features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}


/* ─── Card shell ────────────────────────────────────────────── */

.fc-card {
  position: relative;
  background-color: var(--c-surface);
  background-image: var(--paper-grain-light);
  background-repeat: repeat;
  background-size: 280px 280px;
  border: 1px solid rgba(34, 28, 20, 0.14);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-paper-lifted);
}
/* Diorama-style crooked tilt — same paper-craft language as the contact card */
.fc-card:nth-child(3n + 1) { transform: rotate(-1.4deg); }
.fc-card:nth-child(3n + 2) { transform: rotate(0.9deg); }
.fc-card:nth-child(3n + 3) { transform: rotate(-0.7deg); }

/* Rotating accent per card — saturated paper-craft palette */
.fc-card:nth-child(6n + 1) { --accent: var(--c-vermillion) !important; }
.fc-card:nth-child(6n + 2) { --accent: var(--c-leaf) !important; }
.fc-card:nth-child(6n + 3) { --accent: var(--c-teal) !important; }
.fc-card:nth-child(6n + 4) { --accent: var(--c-sky-bright-2) !important; }
.fc-card:nth-child(6n + 5) { --accent: var(--c-kraft-2) !important; }
.fc-card:nth-child(6n + 6) { --accent: var(--c-marigold-2) !important; }

/* =============================================================
   Looping content animations — multi-layer choreography
   ============================================================= */

/* ─── Generic bar: typing-in width sweep + opacity pulse ─── */
@keyframes fc-bar-type {
  0%   { transform: scaleX(0.2); opacity: 0.35; }
  18%  { transform: scaleX(1);   opacity: 1; }
  55%  { transform: scaleX(1);   opacity: 0.75; }
  70%  { transform: scaleX(1);   opacity: 1; }
  100% { transform: scaleX(0.2); opacity: 0.35; }
}
.fcp-bar {
  transform-origin: left center;
  animation: fc-bar-type 12s ease-in-out infinite;
}
.fcp-rows .fcp-bar:nth-child(2) { animation-delay: -0.35s; }
.fcp-rows .fcp-bar:nth-child(3) { animation-delay: -0.7s; }
.fcp-rows .fcp-bar:nth-child(4) { animation-delay: -1.05s; }
.fcp-rows .fcp-bar:nth-child(5) { animation-delay: -1.4s; }

/* ═════════════════════════════════════════════════════
   1. VIDEO TUTORIAL — scan line + play button rings + progress
   ═════════════════════════════════════════════════════ */
.fcp-video-screen { position: relative; overflow: hidden; }
.fcp-video-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  animation: fc-video-scan 9s linear infinite;
  pointer-events: none;
}
@keyframes fc-video-scan {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes fc-play-pulse-ring {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(255,255,255,0.35), 0 0 0 0 rgba(255,255,255,0.18); }
  50%      { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(255,255,255,0.18), 0 0 0 12px rgba(255,255,255,0.06); }
}
.fcp-play-btn { animation: fc-play-pulse-ring 5.4s ease-in-out infinite; }
@keyframes fc-video-progress {
  0%   { width: 0%; }
  85%  { width: 100%; }
  90%  { width: 100%; }
  100% { width: 0%; }
}
.fcp-progress-fill { animation: fc-video-progress 16s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes fc-timecode-tick {
  0%, 90%  { opacity: 1; }
  95%      { opacity: 0.4; }
  100%     { opacity: 1; }
}
.fcp-timecode { animation: fc-timecode-tick 2.3s steps(1, end) infinite; }

/* ═════════════════════════════════════════════════════
   2. WRITTEN GUIDE — title cursor + section header drift
   ═════════════════════════════════════════════════════ */
.fcp-article-title { position: relative; display: inline-block; }
.fcp-article-title::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-left: 2px;
  vertical-align: middle;
  background: currentColor;
  animation: fc-cursor-blink 2.3s steps(1, end) infinite;
}
@keyframes fc-cursor-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes fc-article-sub-glow {
  0%, 100% { color: #000; letter-spacing: 0.08em; }
  50%      { color: #555; letter-spacing: 0.12em; }
}
.fcp-article-sub { animation: fc-article-sub-glow 9s ease-in-out infinite; }

/* ═════════════════════════════════════════════════════
   3. SLIDE DECK — header shimmer + bullets reveal + num pulse
   ═════════════════════════════════════════════════════ */
.fcp-slide-header { position: relative; overflow: hidden; }
.fcp-slide-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: fc-slide-shimmer 7.2s ease-in-out infinite;
}
@keyframes fc-slide-shimmer {
  0%, 30% { transform: translateX(-100%); }
  70%     { transform: translateX(100%); }
  100%    { transform: translateX(100%); }
}
@keyframes fc-bullet-rise {
  0%, 8%    { opacity: 0; transform: translate(-6px, 4px); }
  18%, 88%  { opacity: 1; transform: translate(0, 0); }
  96%, 100% { opacity: 0; transform: translate(-6px, 4px); }
}
.fcp-slide-bullets > .fcp-bullet { animation: fc-bullet-rise 12s ease-in-out infinite; }
.fcp-slide-bullets > .fcp-bullet:nth-child(1) { animation-delay: 0s; }
.fcp-slide-bullets > .fcp-bullet:nth-child(2) { animation-delay: 0.5s; }
.fcp-slide-bullets > .fcp-bullet:nth-child(3) { animation-delay: 1s; }
@keyframes fc-dot-tick {
  0%, 15%, 100% { transform: scale(1);   background: rgba(0,0,0,0.3); }
  22%, 30%      { transform: scale(1.5); background: #1a1a1a; }
}
.fcp-bullet .fcp-dot { animation: fc-dot-tick 12s ease-in-out infinite; }
.fcp-slide-bullets > .fcp-bullet:nth-child(1) .fcp-dot { animation-delay: 0s; }
.fcp-slide-bullets > .fcp-bullet:nth-child(2) .fcp-dot { animation-delay: 0.5s; }
.fcp-slide-bullets > .fcp-bullet:nth-child(3) .fcp-dot { animation-delay: 1s; }
@keyframes fc-slide-num-pulse {
  0%, 80%, 100% { transform: scale(1); }
  88%           { transform: scale(1.15); }
}
.fcp-slide-num { display: inline-block; animation: fc-slide-num-pulse 12s ease-in-out infinite; transform-origin: right; }

/* ═════════════════════════════════════════════════════
   4. QUICK REFERENCE — file floats, PDF rings, arrow drops
   ═════════════════════════════════════════════════════ */
@keyframes fc-file-float {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  25%      { transform: translateY(-3px) rotate(-1deg); }
  50%      { transform: translateY(-4px) rotate(0deg); }
  75%      { transform: translateY(-2px) rotate(1deg); }
}
.fcp-file-card { animation: fc-file-float 12s ease-in-out infinite; }
@keyframes fc-pdf-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0.18), 0 0 0 0 rgba(0,0,0,0.08); }
  50%      { box-shadow: 0 0 0 4px rgba(0,0,0,0.12), 0 0 0 8px rgba(0,0,0,0.04); }
}
.fcp-file-ext { animation: fc-pdf-ring 5.4s ease-in-out infinite; }
@keyframes fc-download-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  70%           { transform: translateY(-3px); }
  85%           { transform: translateY(1px); }
}
.fcp-download-btn { animation: fc-download-bounce 6.3s ease-in-out infinite; }
@keyframes fc-arrow-drop {
  0%, 55%, 100% { transform: translateY(0);    opacity: 1; }
  70%           { transform: translateY(3px);  opacity: 0.4; }
  72%           { transform: translateY(-4px); opacity: 0; }
  85%           { transform: translateY(0);    opacity: 1; }
}
.fcp-download-btn svg { animation: fc-arrow-drop 6.3s ease-in-out infinite; }

/* ═════════════════════════════════════════════════════
   5. PROCESS DIAGRAM — data packet travels through the flow
   ═════════════════════════════════════════════════════ */
.fcp-flow { position: relative; }
.fcp-flow:not(.fcp-flow--sub)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.12);
  animation: fc-flow-travel 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}
@keyframes fc-flow-travel {
  0%        { left: 5%;  opacity: 0; transform: scale(0.6); }
  10%       { left: 5%;  opacity: 1; transform: scale(1); }
  45%       { left: 50%; opacity: 1; transform: scale(1.25); }
  85%       { left: 95%; opacity: 1; transform: scale(1); }
  95%, 100% { left: 95%; opacity: 0; transform: scale(0.6); }
}
@keyframes fc-flow-box-light {
  0%, 100% { background: rgba(0,0,0,0.07); transform: scale(1); }
  50%      { background: rgba(0,0,0,0.18); transform: scale(1.04); }
}
.fcp-flow > .fcp-flow-box:not(.fcp-flow-box--accent) {
  animation: fc-flow-box-light 9s ease-in-out infinite;
}
.fcp-flow > .fcp-flow-box:nth-of-type(1) { animation-delay: 0s; }
.fcp-flow > .fcp-flow-box:nth-of-type(3) { animation-delay: -2s; }
@keyframes fc-flow-accent-breathe {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0,0,0,0.3); }
  50%      { transform: scale(1.06); box-shadow: 0 0 0 4px rgba(0,0,0,0.12); }
}
.fcp-flow-box--accent { animation: fc-flow-accent-breathe 6s ease-in-out infinite; }
@keyframes fc-flow-arrow-pull {
  0%, 100% { transform: translateX(-3px); opacity: 0.4; }
  50%      { transform: translateX(3px);  opacity: 1; }
}
.fcp-flow-arrow { animation: fc-flow-arrow-pull 3.6s ease-in-out infinite; }
.fcp-flow-arrow:nth-of-type(2) { animation-delay: -0.8s; }
@keyframes fc-flow-connector-pulse {
  0%, 100% { transform: scaleX(0.5); opacity: 0.5; }
  50%      { transform: scaleX(1);   opacity: 1; }
}
.fcp-flow-connector { transform-origin: left; animation: fc-flow-connector-pulse 5.4s ease-in-out infinite; }
.fcp-flow--sub .fcp-flow-connector:nth-child(4) { animation-delay: -1.2s; }

/* ═════════════════════════════════════════════════════
   6. KNOWLEDGE CHECK — wrong options shake, correct rings out
   ═════════════════════════════════════════════════════ */
@keyframes fc-option-wrong {
  0%, 18%, 100% { transform: translateX(0);    border-color: #ddd; background: #fff; }
  6%            { transform: translateX(-2px); border-color: #000; background: #f4f4f4; }
  10%           { transform: translateX(2px); }
  14%           { transform: translateX(0); }
}
.fcp-option:not(.fcp-option--correct) {
  animation: fc-option-wrong 10s ease-in-out infinite;
}
.fcp-options > .fcp-option:nth-child(1) { animation-delay: 0s; }
.fcp-options > .fcp-option:nth-child(3) { animation-delay: -2.2s; }
@keyframes fc-option-correct-ring {
  0%, 60%, 100% { box-shadow: inset 3px 0 0 #c0c0c0, 0 0 0 0 rgba(0,0,0,0.12);  transform: scale(1); }
  70%           { box-shadow: inset 3px 0 0 #c0c0c0, 0 0 0 6px rgba(0,0,0,0.04); transform: scale(1.02); }
  85%           { box-shadow: inset 3px 0 0 #c0c0c0, 0 0 0 10px rgba(0,0,0,0);    transform: scale(1.02); }
}
.fcp-option--correct { animation: fc-option-correct-ring 10s ease-in-out infinite; }

/* ═════════════════════════════════════════════════════
   7. SCENARIO — multi-layer ring pulse + prompt highlight
   ═════════════════════════════════════════════════════ */
@keyframes fc-scenario-rings {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0.25), 0 0 0 0 rgba(0,0,0,0.12), 0 0 0 0 rgba(0,0,0,0.06); }
  50%      { box-shadow: 0 0 0 3px rgba(0,0,0,0.18), 0 0 0 7px rgba(0,0,0,0.08), 0 0 0 12px rgba(0,0,0,0.03); }
}
.fcp-scenario-badge { animation: fc-scenario-rings 6.3s ease-in-out infinite; }
@keyframes fc-scenario-prompt-pulse {
  0%, 100% { transform: translateY(0);    background: rgba(0,0,0,0.05); }
  50%      { transform: translateY(-1px); background: rgba(0,0,0,0.1); }
}
.fcp-scenario-prompt { animation: fc-scenario-prompt-pulse 8s ease-in-out infinite; }

/* ═════════════════════════════════════════════════════
   8. SOP — sequential step with ring halo + bar choreography
   ═════════════════════════════════════════════════════ */
@keyframes fc-sop-step-active {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0,0,0,0.3);    background: rgba(0,0,0,0.5); }
  25%      { transform: scale(1.2);  box-shadow: 0 0 0 5px rgba(0,0,0,0.12); background: #1a1a1a; }
  50%      { transform: scale(1.08); box-shadow: 0 0 0 9px rgba(0,0,0,0);    background: #1a1a1a; }
}
.fcp-sop-num { animation: fc-sop-step-active 10s ease-in-out infinite; }
.fcp-sop-step:nth-child(1) .fcp-sop-num { animation-delay: 0s; }
.fcp-sop-step:nth-child(2) .fcp-sop-num { animation-delay: -1.5s; }
.fcp-sop-step:nth-child(3) .fcp-sop-num { animation-delay: -3s; }
.fcp-sop-step:nth-child(1) .fcp-sop-text .fcp-bar { animation-delay: 0s; }
.fcp-sop-step:nth-child(2) .fcp-sop-text .fcp-bar { animation-delay: -1.5s; }
.fcp-sop-step:nth-child(3) .fcp-sop-text .fcp-bar { animation-delay: -3s; }

/* ═════════════════════════════════════════════════════
   9. KNOWLEDGE BASE — breadcrumb stepper + tags float
   ═════════════════════════════════════════════════════ */
@keyframes fc-kb-crumb-step {
  0%, 30%, 100% { opacity: 0.45; transform: translateY(0); }
  40%, 70%      { opacity: 1;    transform: translateY(-1px); }
}
.fcp-kb-crumb > span:not(.fcp-kb-sep) {
  display: inline-block;
  animation: fc-kb-crumb-step 11s ease-in-out infinite;
}
.fcp-kb-crumb > span:nth-child(1) { animation-delay: 0s; }
.fcp-kb-crumb > span:nth-child(3) { animation-delay: -1.6s; }
.fcp-kb-crumb > span:nth-child(5) { animation-delay: -3.2s; }
@keyframes fc-kb-sep-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
.fcp-kb-sep { animation: fc-kb-sep-pulse 3.6s ease-in-out infinite; }
.fcp-kb-sep:nth-of-type(2) { animation-delay: -0.8s; }
@keyframes fc-tag-bob {
  0%, 100% { transform: translateY(0)    rotate(0);     box-shadow: 0 0 0 0 rgba(0,0,0,0.08); }
  30%      { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
  60%      { transform: translateY(0)    rotate(1deg); }
}
.fcp-kb-tag { display: inline-block; animation: fc-tag-bob 7.5s ease-in-out infinite; }
.fcp-kb-tag:nth-child(2) { animation-delay: -1.7s; }

/* ═════════════════════════════════════════════════════
   10. SCREEN RECORDING — REC double-blink + cursor path + chrome
   ═════════════════════════════════════════════════════ */
@keyframes fc-rec-blink {
  0%, 32%   { opacity: 1;   transform: scale(1); }
  40%, 48%  { opacity: 0.2; transform: scale(0.85); }
  56%       { opacity: 1;   transform: scale(1.2); }
  64%, 100% { opacity: 0.4; transform: scale(1); }
}
.fcp-screenrec-rec-dot { animation: fc-rec-blink 3.6s ease-in-out infinite; }
@keyframes fc-cursor-path {
  0%   { transform: translate(0, 0)      rotate(0deg); }
  18%  { transform: translate(12px, -8px) rotate(-5deg); }
  35%  { transform: translate(22px, 4px)  rotate(2deg); }
  52%  { transform: translate(8px, 14px)  rotate(-3deg); }
  70%  { transform: translate(-6px, 10px) rotate(5deg); }
  88%  { transform: translate(-10px, -4px) rotate(-2deg); }
  100% { transform: translate(0, 0)      rotate(0deg); }
}
.fcp-screenrec-cursor { animation: fc-cursor-path 20s ease-in-out infinite; }
@keyframes fc-chrome-blink {
  0%, 92%, 100% { opacity: 1; }
  96%           { opacity: 0.4; }
}
.fcp-screenrec-chrome .fcp-screenrec-dot { animation: fc-chrome-blink 11s ease-in-out infinite; }
.fcp-screenrec-chrome .fcp-screenrec-dot:nth-child(2) { animation-delay: -1.6s; }
.fcp-screenrec-chrome .fcp-screenrec-dot:nth-child(3) { animation-delay: -3.2s; }
@keyframes fc-time-tick {
  0%, 88%, 100% { color: rgba(255,255,255,0.85); text-shadow: none; }
  92%           { color: #fff; text-shadow: 0 0 4px rgba(255,255,255,0.5); }
}
.fcp-screenrec-time { animation: fc-time-tick 2.3s steps(1, end) infinite; }

/* ═════════════════════════════════════════════════════
   11. GLOSSARY — sequential spotlight on each term + def
   ═════════════════════════════════════════════════════ */
@keyframes fc-gloss-spotlight {
  0%, 20%, 100% { color: #555; transform: translateX(0) scale(1); }
  40%, 60%      { color: #000; transform: translateX(3px) scale(1.04); }
}
.fcp-gloss-term { display: inline-block; transform-origin: left; animation: fc-gloss-spotlight 10s ease-in-out infinite; }
.fcp-gloss-row:nth-child(1) .fcp-gloss-term { animation-delay: 0s; }
.fcp-gloss-row:nth-child(2) .fcp-gloss-term { animation-delay: -1.5s; }
.fcp-gloss-row:nth-child(3) .fcp-gloss-term { animation-delay: -3s; }
@keyframes fc-gloss-def {
  0%, 20%, 100% { opacity: 0.55; transform: translateX(0); }
  40%, 60%      { opacity: 1;    transform: translateX(2px); }
}
.fcp-gloss-def { display: inline-block; animation: fc-gloss-def 10s ease-in-out infinite; }
.fcp-gloss-row:nth-child(1) .fcp-gloss-def { animation-delay: 0s; }
.fcp-gloss-row:nth-child(2) .fcp-gloss-def { animation-delay: -1.5s; }
.fcp-gloss-row:nth-child(3) .fcp-gloss-def { animation-delay: -3s; }

/* ═════════════════════════════════════════════════════
   12. FAQ — toggle swap with overshoot + row emphasis
   ═════════════════════════════════════════════════════ */
@keyframes fc-faq-toggle-swap {
  0%, 30%, 100% { transform: rotate(0deg)   scale(1); }
  45%, 55%      { transform: rotate(135deg) scale(1.2); }
  70%           { transform: rotate(180deg) scale(1); }
}
.fcp-faq-toggle { display: inline-block; transform-origin: center; animation: fc-faq-toggle-swap 9s ease-in-out infinite; }
.fcp-faq-row:nth-child(2) .fcp-faq-toggle { animation-delay: -1.3s; }
.fcp-faq-row:nth-child(3) .fcp-faq-toggle { animation-delay: -2.6s; }
@keyframes fc-faq-row-emphasize {
  0%, 40%, 100% { opacity: 0.7; transform: translateX(0); }
  55%, 75%      { opacity: 1;   transform: translateX(3px); }
}
.fcp-faq-row { animation: fc-faq-row-emphasize 9s ease-in-out infinite; }
.fcp-faq-row:nth-child(2) { animation-delay: -1.3s; }
.fcp-faq-row:nth-child(3) { animation-delay: -2.6s; }

/* ═════════════════════════════════════════════════════
   13. LESSON PLAN — items step through, icons rotate, count pulses
   ═════════════════════════════════════════════════════ */
@keyframes fc-module-item-active {
  0%, 25%, 100% { opacity: 0.5; transform: translateX(0); }
  40%, 60%      { opacity: 1;   transform: translateX(3px); }
}
.fcp-module-item { animation: fc-module-item-active 9.5s ease-in-out infinite; }
.fcp-module-item:nth-child(1) { animation-delay: 0s; }
.fcp-module-item:nth-child(2) { animation-delay: -1.4s; }
.fcp-module-item:nth-child(3) { animation-delay: -2.8s; }
@keyframes fc-module-icon-spin {
  0%, 25%, 100% { transform: scale(1)    rotate(0); }
  40%, 60%      { transform: scale(1.15) rotate(8deg); }
}
.fcp-module-icon { display: inline-flex; animation: fc-module-icon-spin 9.5s ease-in-out infinite; }
.fcp-module-item:nth-child(1) .fcp-module-icon { animation-delay: 0s; }
.fcp-module-item:nth-child(2) .fcp-module-icon { animation-delay: -1.4s; }
.fcp-module-item:nth-child(3) .fcp-module-icon { animation-delay: -2.8s; }
@keyframes fc-module-count {
  0%, 80%, 100% { transform: scale(1); }
  90%           { transform: scale(1.15); }
}
.fcp-module-count { display: inline-block; animation: fc-module-count 6.8s ease-in-out infinite; }

/* ═════════════════════════════════════════════════════
   14. INFOGRAPHIC — stat pulse + wavy bar choreography
   ═════════════════════════════════════════════════════ */
@keyframes fc-stat-pulse {
  0%, 100% { transform: scale(1);    text-shadow: 0 0 0 rgba(0,0,0,0); }
  50%      { transform: scale(1.06); text-shadow: 0 2px 12px rgba(0,0,0,0.18); }
}
.fcp-info-stat { display: inline-block; animation: fc-stat-pulse 7.5s ease-in-out infinite; }
@keyframes fc-info-bar-wave {
  0%   { transform: scaleY(0.3);  opacity: 0.55; }
  20%  { transform: scaleY(1);    opacity: 1; }
  35%  { transform: scaleY(0.65); }
  55%  { transform: scaleY(0.9); }
  75%  { transform: scaleY(0.45); }
  100% { transform: scaleY(0.3);  opacity: 0.55; }
}
.fcp-info-bar { transform-origin: bottom; animation: fc-info-bar-wave 7.5s ease-in-out infinite; }
.fcp-info-bars > .fcp-info-bar:nth-child(1) { animation-delay: 0s; }
.fcp-info-bars > .fcp-info-bar:nth-child(2) { animation-delay: -0.3s; }
.fcp-info-bars > .fcp-info-bar:nth-child(3) { animation-delay: -0.6s; }
.fcp-info-bars > .fcp-info-bar:nth-child(4) { animation-delay: -0.9s; }
@keyframes fc-info-label-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
.fcp-info-label { animation: fc-info-label-pulse 7.5s ease-in-out infinite; animation-delay: -1.5s; }

/* ═════════════════════════════════════════════════════
   15. ANNOTATED SCREENSHOT — markers ring out, pills drift, dots blink
   ═════════════════════════════════════════════════════ */
@keyframes fc-marker-rings {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    box-shadow: 0 0 0 0 rgba(0,0,0,0.3),  0 0 0 0 rgba(0,0,0,0.15); }
  50%      { transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 0 0 5px rgba(0,0,0,0.15), 0 0 0 11px rgba(0,0,0,0.04); }
}
.fcp-annot-marker { animation: fc-marker-rings 6s ease-in-out infinite; }
.fcp-annot-marker:nth-of-type(2) { animation-delay: -0.8s; }
.fcp-annot-marker:nth-of-type(3) { animation-delay: -1.6s; }
@keyframes fc-pill-drift {
  0%, 100% { transform: translateX(0);   opacity: 0.7; }
  50%      { transform: translateX(3px); opacity: 1; }
}
.fcp-annot-pill { animation: fc-pill-drift 7.2s ease-in-out infinite; }
.fcp-annot-pill--b { animation-delay: -1s; }
.fcp-annot-pill--c { animation-delay: -2s; }
.fcp-annot-chrome .fcp-annot-dot { animation: fc-chrome-blink 10s ease-in-out infinite; }
.fcp-annot-chrome .fcp-annot-dot:nth-child(2) { animation-delay: -1.5s; }
.fcp-annot-chrome .fcp-annot-dot:nth-child(3) { animation-delay: -3s; }

@media (prefers-reduced-motion: reduce) {
  #features-grid *,
  #features-grid *::before,
  #features-grid *::after { animation: none !important; }
}

/* All format-card animations disabled — cards are fully static. */
.fc-card,
.fc-card *,
.fc-card *::before,
.fc-card *::after {
  animation: none !important;
}

.fc-preview {
  flex: 1;
  padding: 20px;
  background: #f7f8f9;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  position: relative;
}

.fc-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-top: 1px solid #e8e8e8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #000000;
  background: #ffffff;
}

.fc-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent, #000000);
}


/* ─── Shared preview primitives ─────────────────────────────── */

.fcp-bar {
  height: 8px;
  background: color-mix(in srgb, var(--accent, #000) 28%, transparent);
  border-radius: 4px;
  flex-shrink: 0;
}

.fcp-label-tiny {
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaaaaa;
}

.fcp-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fcp-center {
  align-items: center;
  justify-content: center;
}


/* ─── Video Lesson ──────────────────────────────────────────── */

.fcp-video-screen {
  background: #e8e8e8;
  border-radius: 5px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.fcp-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, #1a1a1a);
}

.fcp-timecode {
  position: absolute;
  bottom: 7px;
  right: 9px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
}

.fcp-progress-bar {
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.fcp-progress-fill {
  height: 100%;
  background: var(--accent, #000000);
  border-radius: 2px;
}


/* ─── Written Content ───────────────────────────────────────── */

.fcp-article-title {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #000000;
  margin-bottom: 4px;
}

.fcp-article-sub {
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent, #000000);
  margin-top: 6px;
  margin-bottom: 2px;
}


/* ─── Slide Deck ────────────────────────────────────────────── */

.fcp-slide-bg {
  background: #ebebeb;
  align-items: center;
  justify-content: center;
}

.fcp-slide {
  width: 100%;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.fcp-slide-header {
  height: 22px;
  background: var(--accent, #000000);
}

.fcp-slide-body {
  padding: 10px 12px;
}

.fcp-slide-title {
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #000000;
  margin-bottom: 8px;
}

.fcp-slide-bullets {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fcp-bullet {
  display: flex;
  align-items: center;
  gap: 5px;
}

.fcp-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent, rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

.fcp-slide-num {
  font-family: inherit;
  font-size: 8px;
  color: #aaaaaa;
  text-align: right;
  margin-top: 8px;
}


/* ─── Downloadable Resource ─────────────────────────────────── */

.fcp-file-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px 20px;
  width: 100%;
  max-width: 180px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.fcp-file-icon {
  position: relative;
  color: var(--accent, #000000);
}

.fcp-file-ext {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: inherit;
  font-size: 7px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent, #000000);
  border-radius: 2px;
  padding: 1px 3px;
}

.fcp-file-name {
  font-family: inherit;
  font-size: 9px;
  color: #555555;
  text-align: center;
  line-height: 1.4;
}

.fcp-download-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  color: var(--accent, #000000);
  border: 1px solid var(--accent, #000000);
  border-radius: 3px;
  padding: 4px 10px;
}


/* ─── Interactive Diagram ───────────────────────────────────── */

.fcp-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.fcp-flow {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fcp-flow-box {
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  color: #000000;
  background: color-mix(in srgb, var(--accent, #000) 18%, transparent);
  border-radius: 3px;
  padding: 4px 8px;
  white-space: nowrap;
}

.fcp-flow-box--accent {
  background: var(--accent, #000000);
  color: #ffffff;
}

.fcp-flow-arrow {
  font-size: 10px;
  color: #aaaaaa;
  line-height: 1;
}

.fcp-flow--sub {
  opacity: 0.45;
}

.fcp-flow-node {
  font-family: inherit;
  font-size: 8px;
  color: #777777;
  padding: 3px 7px;
  border: 1px solid #dddddd;
  border-radius: 3px;
}

.fcp-flow-connector {
  width: 14px;
  height: 1px;
  background: #cccccc;
}


/* ─── Knowledge Check ───────────────────────────────────────── */

.fcp-question {
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  color: #000000;
  line-height: 1.45;
  margin-bottom: 4px;
}

.fcp-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fcp-option {
  font-family: inherit;
  font-size: 9px;
  color: #555555;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 4px;
  padding: 5px 8px;
}

.fcp-option--correct {
  border-color: #c0c0c0;
  color: #000000;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #c0c0c0;
}


/* ─── Scenario / Case Study ─────────────────────────────────── */

.fcp-scenario-badge {
  display: inline-block;
  font-family: inherit;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent, #000000);
  border: 1px solid var(--accent, #000000);
  border-radius: 3px;
  padding: 2px 6px;
  margin-bottom: 6px;
}

.fcp-scenario-text {
  font-family: inherit;
  font-size: 9.5px;
  color: #333333;
  line-height: 1.55;
  margin-bottom: 8px;
}

.fcp-scenario-prompt {
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  color: #000000;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  padding: 6px 8px;
}


/* ─── SOP / Process Doc ─────────────────────────────────────── */

.fcp-sop-label {
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent, #000000);
  margin-bottom: 6px;
}

.fcp-sop-steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fcp-sop-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.fcp-sop-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent, #000000);
  color: #ffffff;
  font-family: inherit;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fcp-sop-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 4px;
}


/* ─── Knowledge Base Article ────────────────────────────────── */

.fcp-kb-crumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 8px;
  font-weight: 500;
  color: #999999;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
}

.fcp-kb-sep {
  color: #cccccc;
}

.fcp-kb-current {
  color: var(--accent, #000000);
  font-weight: 700;
}

.fcp-kb-tags {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.fcp-kb-tag {
  font-family: inherit;
  font-size: 7.5px;
  font-weight: 600;
  color: var(--accent, #000000);
  background: color-mix(in srgb, var(--accent, #000) 14%, transparent);
  border-radius: 999px;
  padding: 2px 7px;
}


/* ─── Screen Recording ──────────────────────────────────────── */

.fcp-screenrec {
  width: 100%;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.fcp-screenrec-chrome {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f0f0f0;
  padding: 5px 8px;
  border-bottom: 1px solid #e0e0e0;
}

.fcp-screenrec-chrome .fcp-screenrec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cccccc;
}

.fcp-screenrec-chrome .fcp-screenrec-dot:nth-child(1),
.fcp-screenrec-chrome .fcp-screenrec-dot:nth-child(2),
.fcp-screenrec-chrome .fcp-screenrec-dot:nth-child(3) { background: #c0c0c0; }

.fcp-screenrec-body {
  position: relative;
  height: 72px;
  background: #e8e8e8;
}

.fcp-screenrec-rec {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  padding: 3px 6px;
}

.fcp-screenrec-rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #dc2626);
  animation: fcp-rec-blink 1.4s ease-in-out infinite;
}

@keyframes fcp-rec-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.fcp-screenrec-time {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 8px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
}

.fcp-screenrec-cursor {
  position: absolute;
  bottom: 14px;
  left: 50%;
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}


/* ─── FAQ ───────────────────────────────────────────────────── */

.fcp-faq-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-block: 6px;
}

.fcp-faq-row:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.fcp-faq-q {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 600;
  color: #000000;
  line-height: 1.4;
}

.fcp-faq-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent, #000000);
}

.fcp-faq-a {
  margin-top: 5px;
  margin-left: 19px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fcp-faq-row--open {
  background: rgba(0, 0, 0, 0.02);
  margin-inline: -10px;
  padding-inline: 10px;
  border-radius: 4px;
}


/* ─── Lesson Plan / Course Module ───────────────────────────── */

.fcp-module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.fcp-module-eyebrow {
  font-family: inherit;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent, #000000);
}

.fcp-module-count {
  font-family: inherit;
  font-size: 8px;
  font-weight: 500;
  color: #999999;
}

.fcp-module-title {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #000000;
  margin-bottom: 6px;
}

.fcp-module-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fcp-module-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fcp-module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent, #000000);
  background: color-mix(in srgb, var(--accent, #000) 14%, transparent);
}

.fcp-module-icon--video { padding-left: 1px; }
.fcp-module-icon--doc   { font-size: 10px; }


/* ─── Infographic ───────────────────────────────────────────── */

.fcp-infographic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding-block: 2px;
}

.fcp-info-stat {
  font-family: inherit;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent, #000000);
}

.fcp-info-label {
  font-family: inherit;
  font-size: 8.5px;
  font-weight: 500;
  color: #555555;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 6px;
}

.fcp-info-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
  width: 100%;
  max-width: 110px;
}

.fcp-info-bar {
  flex: 1;
  height: var(--h, 50%);
  background: var(--accent, #000000);
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
}

.fcp-info-bar:nth-child(1) { opacity: 0.35; }
.fcp-info-bar:nth-child(2) { opacity: 0.55; }
.fcp-info-bar:nth-child(3) { opacity: 0.75; }
.fcp-info-bar:nth-child(4) { opacity: 1; }


/* ─── Annotated Screenshot ──────────────────────────────────── */

.fcp-annot {
  width: 100%;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.fcp-annot-chrome {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f0f0f0;
  padding: 5px 8px;
  border-bottom: 1px solid #e0e0e0;
}

.fcp-annot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cccccc;
}

.fcp-annot-body {
  position: relative;
  height: 90px;
  background: #fafafa;
  padding: 10px;
}

.fcp-annot-pill {
  position: absolute;
  height: 8px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent, #000) 22%, transparent);
}

.fcp-annot-pill--a { top: 14px; left: 12px; width: 38%; }
.fcp-annot-pill--b { top: 38px; left: 12px; width: 60%; }
.fcp-annot-pill--c { top: 62px; left: 12px; width: 30%; }

.fcp-annot-marker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent, #000000);
  color: #ffffff;
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px #ffffff, 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: translate(-50%, -50%);
}


/* ─── Glossary / Terms ──────────────────────────────────────── */

.fcp-gloss-label {
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent, #000000);
  margin-bottom: 4px;
}

.fcp-gloss-rows {
  display: flex;
  flex-direction: column;
}

.fcp-gloss-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  padding-block: 7px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  align-items: baseline;
}

.fcp-gloss-row:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.fcp-gloss-term {
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  color: #000000;
}

.fcp-gloss-def {
  font-family: inherit;
  font-size: 8.5px;
  color: #666666;
  line-height: 1.4;
}


/* =============================================================
   Features Showcase — living preview animations
   ============================================================= */

/* Card entry */
#features-grid.has-anims .fc-card {
  opacity: 0;
  transform: translateY(20px);
}

#features-grid.has-anims .fc-card.is-animating {
  animation: fc-card-entry 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fc-card-entry {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger fade-up of direct preview children */
#features-grid.has-anims .fc-preview > * {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

#features-grid.has-anims .fc-card.is-animating .fc-preview > * {
  opacity: 1;
  transform: translateY(0);
}

#features-grid.has-anims .fc-card.is-animating .fc-preview > *:nth-child(1) { transition-delay: 0.18s; }
#features-grid.has-anims .fc-card.is-animating .fc-preview > *:nth-child(2) { transition-delay: 0.28s; }
#features-grid.has-anims .fc-card.is-animating .fc-preview > *:nth-child(3) { transition-delay: 0.38s; }
#features-grid.has-anims .fc-card.is-animating .fc-preview > *:nth-child(4) { transition-delay: 0.48s; }
#features-grid.has-anims .fc-card.is-animating .fc-preview > *:nth-child(5) { transition-delay: 0.58s; }

/* Bars sweep in from left */
#features-grid.has-anims .fcp-bar,
#features-grid.has-anims .fcp-progress-fill {
  transform-origin: left center;
  transform: scaleX(0);
}

#features-grid.has-anims .fc-card.is-animating .fcp-bar,
#features-grid.has-anims .fc-card.is-animating .fcp-progress-fill {
  transform: scaleX(1);
  transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s;
}

/* Video card: play-button pulse */
#features-grid.has-anims .fc-card.is-animating .fcp-play-btn {
  animation: fc-play-pulse 1.4s 0.6s ease-in-out;
}

@keyframes fc-play-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

/* Slide deck: bullets slide in */
#features-grid.has-anims .fcp-slide-bullets > .fcp-bullet {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#features-grid.has-anims .fc-card.is-animating .fcp-slide-bullets > .fcp-bullet {
  opacity: 1;
  transform: translateX(0);
}

#features-grid.has-anims .fc-card.is-animating .fcp-slide-bullets > .fcp-bullet:nth-child(1) { transition-delay: 0.5s; }
#features-grid.has-anims .fc-card.is-animating .fcp-slide-bullets > .fcp-bullet:nth-child(2) { transition-delay: 0.6s; }
#features-grid.has-anims .fc-card.is-animating .fcp-slide-bullets > .fcp-bullet:nth-child(3) { transition-delay: 0.7s; }

/* Downloadable: file card lifts in */
#features-grid.has-anims .fcp-file-card {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#features-grid.has-anims .fc-card.is-animating .fcp-file-card {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* Interactive Diagram: flow boxes fade in sequentially */
#features-grid.has-anims .fcp-flow > * {
  opacity: 0;
  transition: opacity 0.35s ease;
}

#features-grid.has-anims .fc-card.is-animating .fcp-flow > * {
  opacity: 1;
}

#features-grid.has-anims .fc-card.is-animating .fcp-flow > *:nth-child(1) { transition-delay: 0.45s; }
#features-grid.has-anims .fc-card.is-animating .fcp-flow > *:nth-child(2) { transition-delay: 0.55s; }
#features-grid.has-anims .fc-card.is-animating .fcp-flow > *:nth-child(3) { transition-delay: 0.65s; }
#features-grid.has-anims .fc-card.is-animating .fcp-flow > *:nth-child(4) { transition-delay: 0.75s; }
#features-grid.has-anims .fc-card.is-animating .fcp-flow > *:nth-child(5) { transition-delay: 0.85s; }

#features-grid.has-anims .fc-card.is-animating .fcp-flow--sub > * {
  transition-delay: 1s !important;
}

/* Knowledge Check: options stagger + correct flashes */
#features-grid.has-anims .fcp-options > .fcp-option {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#features-grid.has-anims .fc-card.is-animating .fcp-options > .fcp-option {
  opacity: 1;
  transform: translateX(0);
}

#features-grid.has-anims .fc-card.is-animating .fcp-options > .fcp-option:nth-child(1) { transition-delay: 0.45s; }
#features-grid.has-anims .fc-card.is-animating .fcp-options > .fcp-option:nth-child(2) { transition-delay: 0.55s; }
#features-grid.has-anims .fc-card.is-animating .fcp-options > .fcp-option:nth-child(3) { transition-delay: 0.65s; }

#features-grid.has-anims .fc-card.is-animating .fcp-option--correct {
  animation: fc-option-correct 1.4s 0.95s ease-out;
}

@keyframes fc-option-correct {
  0%, 100% { background-color: #ffffff; }
  30%      { background-color: rgba(225, 29, 72, 0.14); }
}

/* Scenario: badge drops in */
#features-grid.has-anims .fcp-scenario-badge {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#features-grid.has-anims .fc-card.is-animating .fcp-scenario-badge {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

/* SOP: numbered steps stagger */
#features-grid.has-anims .fcp-sop-steps > .fcp-sop-step {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#features-grid.has-anims .fc-card.is-animating .fcp-sop-steps > .fcp-sop-step {
  opacity: 1;
  transform: translateX(0);
}

#features-grid.has-anims .fc-card.is-animating .fcp-sop-steps > .fcp-sop-step:nth-child(1) { transition-delay: 0.5s; }
#features-grid.has-anims .fc-card.is-animating .fcp-sop-steps > .fcp-sop-step:nth-child(2) { transition-delay: 0.65s; }
#features-grid.has-anims .fc-card.is-animating .fcp-sop-steps > .fcp-sop-step:nth-child(3) { transition-delay: 0.8s; }

/* Screen Recording: cursor drifts in */
#features-grid.has-anims .fcp-screenrec-cursor {
  opacity: 0;
  transform: translate(-12px, 8px);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#features-grid.has-anims .fc-card.is-animating .fcp-screenrec-cursor {
  opacity: 1;
  transform: translate(0, 0);
  transition-delay: 0.5s;
}

/* FAQ: rows stagger */
#features-grid.has-anims .fc-preview > .fcp-faq-row {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#features-grid.has-anims .fc-card.is-animating .fc-preview > .fcp-faq-row {
  opacity: 1;
  transform: translateY(0);
}

#features-grid.has-anims .fc-card.is-animating .fc-preview > .fcp-faq-row:nth-child(1) { transition-delay: 0.5s; }
#features-grid.has-anims .fc-card.is-animating .fc-preview > .fcp-faq-row:nth-child(2) { transition-delay: 0.62s; }
#features-grid.has-anims .fc-card.is-animating .fc-preview > .fcp-faq-row:nth-child(3) { transition-delay: 0.74s; }

/* Lesson Plan: module items stagger */
#features-grid.has-anims .fcp-module-items > .fcp-module-item {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#features-grid.has-anims .fc-card.is-animating .fcp-module-items > .fcp-module-item {
  opacity: 1;
  transform: translateX(0);
}

#features-grid.has-anims .fc-card.is-animating .fcp-module-items > .fcp-module-item:nth-child(1) { transition-delay: 0.5s; }
#features-grid.has-anims .fc-card.is-animating .fcp-module-items > .fcp-module-item:nth-child(2) { transition-delay: 0.62s; }
#features-grid.has-anims .fc-card.is-animating .fcp-module-items > .fcp-module-item:nth-child(3) { transition-delay: 0.74s; }

/* Infographic: stat scales in, bars grow */
#features-grid.has-anims .fcp-info-stat {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#features-grid.has-anims .fc-card.is-animating .fcp-info-stat {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.35s;
}

#features-grid.has-anims .fcp-info-bars > .fcp-info-bar {
  transform-origin: bottom center;
  transform: scaleY(0);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#features-grid.has-anims .fc-card.is-animating .fcp-info-bars > .fcp-info-bar {
  transform: scaleY(1);
}

#features-grid.has-anims .fc-card.is-animating .fcp-info-bars > .fcp-info-bar:nth-child(1) { transition-delay: 0.55s; }
#features-grid.has-anims .fc-card.is-animating .fcp-info-bars > .fcp-info-bar:nth-child(2) { transition-delay: 0.65s; }
#features-grid.has-anims .fc-card.is-animating .fcp-info-bars > .fcp-info-bar:nth-child(3) { transition-delay: 0.75s; }
#features-grid.has-anims .fc-card.is-animating .fcp-info-bars > .fcp-info-bar:nth-child(4) { transition-delay: 0.85s; }

/* Annotated Screenshot: markers pop in sequence */
#features-grid.has-anims .fcp-annot-marker {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#features-grid.has-anims .fc-card.is-animating .fcp-annot-marker {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#features-grid.has-anims .fc-card.is-animating .fcp-annot-marker:nth-of-type(1) { transition-delay: 0.55s; }
#features-grid.has-anims .fc-card.is-animating .fcp-annot-marker:nth-of-type(2) { transition-delay: 0.7s; }
#features-grid.has-anims .fc-card.is-animating .fcp-annot-marker:nth-of-type(3) { transition-delay: 0.85s; }

/* Glossary: rows stagger */
#features-grid.has-anims .fcp-gloss-rows > .fcp-gloss-row {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#features-grid.has-anims .fc-card.is-animating .fcp-gloss-rows > .fcp-gloss-row {
  opacity: 1;
  transform: translateY(0);
}

#features-grid.has-anims .fc-card.is-animating .fcp-gloss-rows > .fcp-gloss-row:nth-child(1) { transition-delay: 0.45s; }
#features-grid.has-anims .fc-card.is-animating .fcp-gloss-rows > .fcp-gloss-row:nth-child(2) { transition-delay: 0.55s; }
#features-grid.has-anims .fc-card.is-animating .fcp-gloss-rows > .fcp-gloss-row:nth-child(3) { transition-delay: 0.65s; }

/* Respect users with reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  #features-grid.has-anims .fc-card,
  #features-grid.has-anims .fc-preview > *,
  #features-grid.has-anims .fcp-bar,
  #features-grid.has-anims .fcp-progress-fill,
  #features-grid.has-anims .fcp-slide-bullets > .fcp-bullet,
  #features-grid.has-anims .fcp-file-card,
  #features-grid.has-anims .fcp-flow > *,
  #features-grid.has-anims .fcp-options > .fcp-option,
  #features-grid.has-anims .fcp-scenario-badge,
  #features-grid.has-anims .fcp-sop-steps > .fcp-sop-step,
  #features-grid.has-anims .fcp-screenrec-cursor,
  #features-grid.has-anims .fc-preview > .fcp-faq-row,
  #features-grid.has-anims .fcp-gloss-rows > .fcp-gloss-row,
  #features-grid.has-anims .fcp-module-items > .fcp-module-item,
  #features-grid.has-anims .fcp-info-stat,
  #features-grid.has-anims .fcp-info-bars > .fcp-info-bar {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  #features-grid.has-anims .fcp-annot-marker {
    opacity: 1 !important;
    transform: translate(-50%, -50%) !important;
    transition: none !important;
    animation: none !important;
  }
}


/* =============================================================
   CONTACT
   ============================================================= */
#contact {
  position: relative;
  padding-block: clamp(4rem, 7vw, 6rem) clamp(4rem, 8vw, 6rem);
  isolation: isolate;
}
/* Full-width leaf-green paper sheet behind the contact card */
#contact::before {
  content: "";
  position: absolute;
  inset: -8px 50% 0 50%;
  width: 100vw;
  margin-left: -50vw;
  z-index: -1;
  background-color: var(--c-leaf);
  background-image: var(--paper-grain);
  background-repeat: repeat;
  background-size: 280px 280px;
  background-blend-mode: multiply;
  clip-path: var(--torn-top);
  filter: drop-shadow(0 3px 5px rgba(34, 28, 20, 0.14));
}
#contact::after {
  content: "";
  position: absolute;
  inset: -8px 50% 0 50%;
  width: 100vw;
  margin-left: -50vw;
  z-index: -2;
  background: #fffaf0;
  clip-path: var(--torn-top);
  transform: translateY(-2px);
}

.contact-card {
  position: relative;
  background-color: var(--c-surface);
  background-image: var(--paper-grain-light);
  background-repeat: repeat;
  background-size: 280px 280px;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--sh-paper-lifted);
  transform: rotate(-0.6deg);
}

.contact-card-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.contact-card-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 15%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 15%, transparent 85%);
}

/* Drifting raw-material chips — paper-card layers */
.cc-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  background-color: var(--c-surface);
  background-image: var(--paper-grain-light);
  background-repeat: repeat;
  background-size: 280px 280px;
  border: 1px solid rgba(34, 28, 20, 0.10);
  border-radius: var(--r-md);
  box-shadow: var(--sh-paper);
  opacity: 0.96;
  animation: cc-chip-drift var(--d, 24s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}

@keyframes cc-chip-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(12px, -10px) rotate(1.2deg); }
  50%      { transform: translate(-6px, 8px) rotate(-0.8deg); }
  75%      { transform: translate(-14px, -4px) rotate(0.6deg); }
}

/* Voice memo chip */
.cc-chip--voice { --chip-accent: #ef8e5f; }
.cc-chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--chip-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--chip-accent) 18%, transparent);
}
.cc-chip-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}
.cc-chip-wave > span {
  width: 2px;
  background: var(--chip-accent);
  border-radius: 1px;
}
.cc-chip-wave > span:nth-child(1) { height: 6px; }
.cc-chip-wave > span:nth-child(2) { height: 10px; }
.cc-chip-wave > span:nth-child(3) { height: 14px; }
.cc-chip-wave > span:nth-child(4) { height: 8px; }
.cc-chip-wave > span:nth-child(5) { height: 12px; }
.cc-chip-wave > span:nth-child(6) { height: 6px; }
.cc-chip-wave > span:nth-child(7) { height: 10px; }
.cc-chip-wave > span:nth-child(8) { height: 5px; }

/* PDF doc chip */
.cc-chip--doc { --chip-accent: #7a6ce0; }
.cc-chip-doc-icon {
  background: var(--chip-accent);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 5px;
  border-radius: 3px;
}
.cc-chip-doc-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 50px;
}
.cc-chip-doc-lines > span {
  height: 3px;
  background: color-mix(in srgb, var(--chip-accent) 45%, transparent);
  border-radius: 2px;
}
.cc-chip-doc-lines > span:nth-child(1) { width: 100%; }
.cc-chip-doc-lines > span:nth-child(2) { width: 80%; }
.cc-chip-doc-lines > span:nth-child(3) { width: 60%; }

/* Video chip */
.cc-chip--video { --chip-accent: #4f9be0; }
.cc-chip-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--chip-accent);
  color: #fff;
  font-size: 9px;
  padding-left: 2px;
}
.cc-chip-time {
  font-size: 11px;
  font-weight: 600;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--chip-accent);
}

/* Chat chip */
.cc-chip--chat { --chip-accent: #3fb98a; }
.cc-chip-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--chip-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}
.cc-chip-bubble {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  width: 44px;
}
.cc-chip-bubble > span {
  height: 3px;
  background: color-mix(in srgb, var(--chip-accent) 45%, transparent);
  border-radius: 2px;
}
.cc-chip-bubble > span:nth-child(1) { width: 100%; }
.cc-chip-bubble > span:nth-child(2) { width: 70%; }

/* Slide chip */
.cc-chip--slide { --chip-accent: #d9a233; }
.cc-chip-slide-bar {
  display: inline-block;
  width: 18px; height: 16px;
  background: var(--chip-accent);
  border-radius: 3px;
}
.cc-chip-slide-bullets {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 40px;
}
.cc-chip-slide-bullets > span {
  height: 2.5px;
  background: color-mix(in srgb, var(--chip-accent) 50%, transparent);
  border-radius: 2px;
}
.cc-chip-slide-bullets > span:nth-child(1) { width: 100%; }
.cc-chip-slide-bullets > span:nth-child(2) { width: 75%; }
.cc-chip-slide-bullets > span:nth-child(3) { width: 55%; }

/* Audio/REC chip */
.cc-chip--audio { --chip-accent: #e16e9a; }
.cc-chip-rec-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--chip-accent);
  animation: cc-rec-pulse 1.6s ease-in-out infinite;
}
.cc-chip-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--chip-accent);
}
@keyframes cc-rec-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-chip { animation: none; }
  .cc-chip-rec-dot { animation: none; }
}

@media (max-width: 768px) {
  .cc-chip { display: none; }
}

.contact-card-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact-eyebrow {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: #000;
}
.contact-eyebrow-dot {
  background: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-dim);
}

#contact-heading {
  font-family: var(--ff-display);
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 800;
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--c-ink-900);
  margin: 0;
  text-shadow: 0 2px 0 rgba(34, 28, 20, 0.08), 0 6px 14px rgba(34, 28, 20, 0.12);
}
#contact-body {
  font-size: clamp(15px, 1.4vw, 17px);
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}

.contact-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

#contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background-color: var(--c-vermillion);
  color: #fffaf0;
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 800;
  font-variation-settings: "opsz" 18;
  letter-spacing: 0.02em;
  border: 1px solid var(--c-vermillion-2);
  border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 3px 0 var(--c-vermillion-2), 0 8px 16px -4px rgba(34, 28, 20, 0.32);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-shadow: 0 1px 0 rgba(0,0,0,0.18);
  transition: background-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}
#contact-email-link svg {
  transition: transform 0.2s ease;
}
#contact-email-link:hover svg {
  transform: translateX(4px);
}
#contact-email-link:active {
  background-color: var(--c-vermillion-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 var(--c-vermillion-2), 0 4px 10px -4px rgba(34, 28, 20, 0.24);
}

.contact-meta {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 400;
}

.contact-phone-line {
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 400;
}

.contact-phone-line a {
  color: var(--c-ink-900);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 28, 20, 0.3);
  padding-bottom: 1px;
  margin-left: 4px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact-phone-line a:hover {
  color: var(--c-vermillion);
  border-bottom-color: var(--c-vermillion);
}

.contact-checklist {
  margin-top: 20px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.contact-checklist li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(0, 0, 0, 0.75);
  font-weight: 400;
}
.contact-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}


/* =============================================================
   FOOTER
   ============================================================= */
#site-footer {
  position: relative;
  margin-top: 0;
  background-color: #1a1a1a;
  background-image: var(--paper-grain-dense);
  background-repeat: repeat;
  background-size: 280px 280px;
  background-blend-mode: screen;
  color: var(--c-cream);
  border-top: 1px solid rgba(34, 28, 20, 0.4);
  padding: 60px 0 28px;
  isolation: isolate;
}
#site-footer::before {
  content: "";
  position: absolute;
  inset: -8px 0 auto 0;
  height: 36px;
  background-color: #1a1a1a;
  background-image: var(--paper-grain-dense);
  background-repeat: repeat;
  background-size: 280px 280px;
  clip-path: var(--torn-top);
  filter: drop-shadow(0 6px 10px rgba(34, 28, 20, 0.25));
  pointer-events: none;
}
#site-footer .footer-col-heading,
#site-footer #footer-name { color: var(--c-cream); }
#site-footer .footer-tag,
#site-footer .footer-col li { color: rgba(247, 236, 211, 0.78); }
#site-footer .footer-col a:hover { color: var(--c-marigold); }
#site-footer .footer-mark {
  background: var(--c-marigold);
  box-shadow: var(--sh-paper);
}
#site-footer .footer-mark-glyph {
  color: var(--c-ink-900);
  font-family: var(--ff-display);
}

.footer-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-mark {
  width: 44px; height: 44px;
  background: var(--c-marigold);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 0 var(--c-marigold-2);
  transform: rotate(-3deg);
}
.footer-mark-glyph {
  color: var(--c-ink-900);
  font-family: var(--ff-display);
  font-weight: 800;
  font-variation-settings: "opsz" 24;
  font-size: 22px;
  letter-spacing: 0;
}
#footer-name {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 800;
  font-variation-settings: "opsz" 18;
  color: var(--c-cream);
  margin: 0;
  letter-spacing: 0.01em;
}
.footer-tag {
  font-family: var(--ff-body);
  font-size: 14px;
  color: rgba(247, 236, 211, 0.78);
  margin: 0;
  max-width: 320px;
  line-height: 1.55;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col-heading {
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 700;
  font-variation-settings: "opsz" 10;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-marigold);
  margin: 0 0 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li {
  font-family: var(--ff-body);
  font-size: 14px;
  color: rgba(247, 236, 211, 0.78);
  font-weight: 500;
}
.footer-col a {
  transition: color 0.2s ease;
  position: relative;
}
.footer-col a:hover { color: var(--c-accent); }
.footer-col a::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease-out);
}
.footer-col a:hover::after { width: 100%; }

.footer-bottom {
  max-width: var(--container-w);
  margin: 40px auto 0;
  padding: 24px clamp(1rem, 4vw, 2.5rem) 0;
  border-top: 1px solid rgba(247, 236, 211, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(247, 236, 211, 0.55);
  flex-wrap: wrap;
}
.footer-bottom-sep { color: var(--c-ink-300); }


/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 980px) {
  /* Course player: keep the sidebar+main layout, just shrink the whole thing */
  .tb-player { zoom: 0.78; }
  /* Tool cards collapse to two columns at tablet width */
  .ws-tools-grid { grid-template-columns: 1fr 1fr; }
  .ws-tools-grid > .ws-tool:nth-child(3) { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  /* Headline now wraps to 2 rows — dial back the hero background cards
     so they don't compete with the title at this size */
  .hero-float { transform: scale(0.8); transform-origin: top left; opacity: 0.5; }
  .hero-float--card2 { transform: scale(0.8); transform-origin: top right; }
  .hero-float--card4 { transform: scale(0.8); transform-origin: top right; }
  .hero-float--card5 { transform: scale(0.8); transform-origin: bottom right; }
  .hero-float--card6 { transform: scale(0.8); transform-origin: top left; }
}

@media (max-width: 640px) {
  /* Hide every background hero card on mobile — sky placeholders and floats */
  .hero-sky-cloud,
  .hero-float { display: none; }

  .hero-headline-desktop { display: none; }
  .hero-headline-mobile { display: inline; }
  .hero-subheadline-lead { display: none; }

  /* Smaller work-sample heading on mobile */
  #morpheus-title { font-size: 28px; margin-bottom: 10px; }
  #morpheus-caption { font-size: 13px; margin-bottom: 56px; padding: 0 4px; }

  /* Stage layout: tighter spacing + single-column tool stack */
  .ws-stage-head { gap: 14px; margin-bottom: 22px; }
  .ws-stage-num { width: 48px; height: 48px; }
  .ws-stage-num-text { font-size: 18px; }
  .ws-stage-eyebrow { font-size: 10px; padding: 3px 8px; }
  .ws-stage-title h3 { font-size: 20px; }
  .ws-stage-title p { font-size: 13.5px; }
  .ws-tools-grid { grid-template-columns: 1fr; gap: 22px; padding: 4px; }
  .ws-tools-grid > .ws-tool:nth-child(3) { grid-column: auto; }
  .ws-stage + .ws-stage { margin-top: 40px; }
  .ws-video-row { grid-template-columns: 1fr; gap: 18px; padding: 4px; }
  .ws-video { padding: 10px 10px 14px; }
  .ws-video::before, .ws-video::after { width: 38px; height: 14px; }
  .ws-video-play { width: 52px; height: 52px; }
  .ws-video-caption { font-size: 12.5px; padding: 0 12px; text-align: center; }

  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .contact-checklist {
    flex-direction: column;
    align-items: flex-start;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }

  /* Course player: hide sidebar + non-essential topbar UI, render media at natural mobile size */
  .tb-player { zoom: 1; }
  .tb-brand-name { display: none; }
  .tb-progress { display: none; }
  .tb-sidebar { display: none; }
  /* Body grows with content; min-height on .tb-main is set in JS to the tallest lesson */
  .tb-body { grid-template-columns: 1fr; height: auto; }

  .tb-btn {
    padding: 8px 14px;
    font-size: 12px;
    min-height: 0;
  }
  .tb-btn svg { width: 13px; height: 13px; }

  /* Page-level scroll instead of internal scroll, so the section can size to its tallest lesson */
  .tb-main { padding: 18px 20px 20px; gap: 16px; overflow: visible; }
  .tb-course-name { font-size: 12px; }
  .tb-lesson-eyebrow { font-size: 10px; letter-spacing: 0.07em; }
  .tb-lesson-heading { font-size: 19px; }
  .tb-lesson-subhead { font-size: 12px; }
  .tb-lesson-body, .tb-lesson-notes { font-size: 13px; line-height: 1.55; }
  .tb-legend, .tb-glossary-term, .tb-glossary-def { font-size: 12.5px; }
  .tb-legend-label { font-size: 11px; }

  #features-grid { grid-template-columns: 1fr 1fr; }
  #features-grid .fc-card--hide-narrow { display: none; }
}

@media (max-width: 420px) {
  .tb-player { zoom: 1; }
  .tb-btn { padding: 7px 11px; font-size: 11px; }
  .tb-lesson-heading { font-size: 17px; }
}


/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}


/* =============================================================
   Floating About widget — fixed bottom-right
   ============================================================= */
#about-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
}
#about-widget summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  outline: none;
}
#about-widget summary::-webkit-details-marker { display: none; }

.about-widget-trigger {
  position: relative;
  display: inline-flex;
}
.about-widget-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--c-marigold);
  background-image: var(--paper-grain-light);
  background-repeat: repeat;
  background-size: 280px 280px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 3px 0 var(--c-marigold-2), 0 10px 22px -6px rgba(34, 28, 20, 0.30);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

.about-widget-avatar-glyph {
  font-family: var(--ff-display);
  font-weight: 800;
  font-variation-settings: "opsz" 60;
  font-size: 56px;
  line-height: 1;
  color: var(--c-ink-900);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.35);
}

#about-widget summary:hover .about-widget-avatar,
#about-widget[open] .about-widget-avatar {
  transform: scale(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 4px 0 var(--c-marigold-2), 0 14px 30px -8px rgba(34, 28, 20, 0.35);
}

.about-widget-card {
  position: fixed;
  top: 50%;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.25s var(--ease-out), transform 0.3s var(--ease-out);
}
#about-widget[open] .about-widget-card {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.about-widget-card-inner {
  background-color: var(--c-surface);
  background-image: var(--paper-grain-light);
  background-repeat: repeat;
  background-size: 280px 280px;
  border: 1px solid rgba(34, 28, 20, 0.14);
  border-radius: var(--r-xl);
  padding: 0;
  box-shadow: var(--sh-paper-lifted);
  width: clamp(420px, 50vw, 760px);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.about-widget-eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 12px;
  background-color: var(--c-cream);
  background-image: var(--paper-grain-light);
  background-repeat: repeat;
  background-size: 280px 280px;
  border: 1px solid rgba(34, 28, 20, 0.22);
  border-radius: var(--r-sm);
  color: var(--c-ink-900);
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  font-variation-settings: "opsz" 14;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 1px 0 rgba(34,28,20,0.18);
  margin-bottom: 14px;
}
.about-widget-name {
  margin: 0 0 6px;
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 800;
  font-variation-settings: "opsz" 24;
  color: var(--c-ink-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.about-widget-status-text {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--c-ink-600);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.about-widget-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-vermillion);
  box-shadow: 0 0 0 2px rgba(216, 65, 42, 0.18);
  animation: about-status-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes about-status-dot-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.85; }
  50%      { transform: scale(1.2); opacity: 1; }
}
.about-widget-bio {
  margin: 0 0 16px;
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--c-ink-700);
  line-height: 1.6;
}

.about-widget-cover {
  background-color: var(--c-marigold);
  background-image: var(--paper-grain);
  background-repeat: repeat;
  background-size: 280px 280px;
  flex: 0 0 42%;
  overflow: hidden;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-widget-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(34, 28, 20, 0.45);
}

.about-widget-placeholder-label {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(34, 28, 20, 0.55);
}
.about-widget-card-body {
  flex: 1;
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
}
.about-widget-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.about-widget-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background-color: var(--c-vermillion);
  color: #fffaf0;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 14px;
  font-variation-settings: "opsz" 18;
  letter-spacing: 0.01em;
  border: 1px solid var(--c-vermillion-2);
  border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 3px 0 var(--c-vermillion-2), 0 8px 16px -4px rgba(34, 28, 20, 0.32);
  transition: background-color 0.2s ease;
}
.about-widget-email svg { flex-shrink: 0; }
.about-widget-meta {
  font-size: 13px;
  color: var(--c-ink-700);
  font-family: var(--ff-body);
}

@media (max-width: 640px) {
  #about-widget { bottom: 16px; right: 16px; }
  .about-widget-avatar { width: 64px; height: 64px; }
  .about-widget-avatar-glyph { font-size: 38px; }
  .about-widget-card-inner {
    width: min(calc(100vw - 32px), 420px);
    aspect-ratio: auto;
    flex-direction: column;
  }
  .about-widget-cover {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    width: 100%;
  }
  .about-widget-card-body { padding: 14px 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .about-widget-status-dot,
  .about-widget-avatar,
  .about-widget-card { animation: none; transition: none; }
}

/* Backdrop dim when the About widget is open */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
  z-index: 40;
}
body:has(#about-widget[open])::before {
  opacity: 1;
  pointer-events: auto;
}

/* Annotated image lesson (Teachable course) */
.tb-annot {
  position: relative;
  max-width: 420px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
}
.tb-annot-img {
  width: 100%;
  height: auto;
  display: block;
}
.tb-annot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.tb-annot-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.tb-annot-row-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.tb-annot-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.45;
}
.tb-annot-row-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a1a;
}
.tb-annot-row-desc {
  font-size: 13px;
  color: #4a4a4a;
}

/* =============================================================
   FORMAT-CARD ANIMATION SLOWDOWN
   Overrides the inner-preview animation durations to be ~1.7× slower
   so the looping motion feels more leisurely.
   ============================================================= */
#features-grid .fcp-bar                    { animation-duration: 13.6s; }
#features-grid .fcp-video-screen::before   { animation-duration: 10.2s; }
#features-grid .fcp-play-btn               { animation-duration: 6.1s; }
#features-grid .fcp-progress-fill          { animation-duration: 17.9s; }
#features-grid .fcp-timecode               { animation-duration: 2.6s; }
#features-grid .fcp-article-sub            { animation-duration: 10.2s; }
#features-grid .fcp-slide-header::after    { animation-duration: 8.2s; }
#features-grid .fcp-slide-bullets > .fcp-bullet { animation-duration: 13.6s; }
#features-grid .fcp-bullet .fcp-dot        { animation-duration: 13.6s; }
#features-grid .fcp-slide-num              { animation-duration: 13.6s; }
#features-grid .fcp-file-card              { animation-duration: 13.3s; }
#features-grid .fcp-file-ext               { animation-duration: 6.1s; }
#features-grid .fcp-download-btn           { animation-duration: 7.1s; }
#features-grid .fcp-download-btn svg       { animation-duration: 7.1s; }
#features-grid .fcp-flow > .fcp-flow-box   { animation-duration: 10.2s; }
#features-grid .fcp-flow-box--accent       { animation-duration: 6.8s; }
#features-grid .fcp-flow-arrow             { animation-duration: 4.1s; }
#features-grid .fcp-flow-connector         { animation-duration: 6.1s; }
#features-grid .fcp-option:not(.fcp-option--correct) { animation-duration: 11.2s; }
#features-grid .fcp-option--correct        { animation-duration: 11.2s; }
#features-grid .fcp-scenario-badge         { animation-duration: 7.1s; }
#features-grid .fcp-scenario-prompt        { animation-duration: 9.2s; }
#features-grid .fcp-sop-num                { animation-duration: 11.6s; }
#features-grid .fcp-kb-crumb               { animation-duration: 12.2s; }
#features-grid .fcp-kb-sep                 { animation-duration: 4.1s; }
#features-grid .fcp-kb-tag                 { animation-duration: 8.5s; }
#features-grid .fcp-screenrec-rec-dot      { animation-duration: 4.1s; }
#features-grid .fcp-screenrec-cursor       { animation-duration: 23s; }
#features-grid .fcp-screenrec-chrome .fcp-screenrec-dot { animation-duration: 12.8s; }
#features-grid .fcp-screenrec-time         { animation-duration: 2.6s; }
#features-grid .fcp-gloss-term             { animation-duration: 11.6s; }
#features-grid .fcp-gloss-def              { animation-duration: 11.6s; }
#features-grid .fcp-faq-toggle             { animation-duration: 10.2s; }
#features-grid .fcp-faq-row                { animation-duration: 10.2s; }
#features-grid .fcp-module-item            { animation-duration: 10.7s; }
#features-grid .fcp-module-icon            { animation-duration: 10.7s; }
#features-grid .fcp-module-count           { animation-duration: 7.7s; }
#features-grid .fcp-info-stat              { animation-duration: 8.5s; }
#features-grid .fcp-info-bar               { animation-duration: 8.5s; }
#features-grid .fcp-info-label             { animation-duration: 8.5s; }
#features-grid .fcp-annot-marker           { animation-duration: 6.8s; }
#features-grid .fcp-annot-pill             { animation-duration: 8.2s; }
#features-grid .fcp-annot-chrome .fcp-annot-dot { animation-duration: 11.6s; }


