/* ============================================
   LORE MACHINE — Dark Purple Starfield Theme
   ============================================ */

@font-face {
  font-family: 'New Spirit';
  src: url('fonts/NewSpirit-Regular.woff2') format('woff2'),
       url('fonts/NewSpirit-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'New Spirit';
  src: url('fonts/NewSpirit-Medium.woff2') format('woff2'),
       url('fonts/NewSpirit-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'New Spirit';
  src: url('fonts/NewSpirit-SemiBold.woff2') format('woff2'),
       url('fonts/NewSpirit-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'New Spirit';
  src: url('fonts/NewSpirit-Bold.woff2') format('woff2'),
       url('fonts/NewSpirit-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Reset & Tokens --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #151922;
  --bg-mid: #1a1f2b;
  --bg-card: rgba(255, 30, 80, 0.04);
  --bg-card-hover: rgba(255, 30, 80, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 30, 80, 0.25);
  --pink: #FF1E50;
  --pink-bright: #FF3A6C;
  --pink-dim: #C2153D;
  --pink-glow: rgba(255, 30, 80, 0.2);
  /* Headline gradient: hot pink (L) → violet/purple (R) */
  --gradient-headline: linear-gradient(90deg, #ff3d8c 0%, #f472b6 28%, #c026d3 58%, #7c3aed 100%);
  --parchment: #f0eae0;
  --text: #d8d0c8;
  --text-mid: rgba(216, 208, 200, 0.55);
  --text-dim: rgba(216, 208, 200, 0.28);
  --heading: 'New Spirit', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
}

body.subpage {
  overflow-x: hidden;
  overflow-y: auto;
}

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

/* --- Star Field --- */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: white;
}

/* --- Texture & Ambience --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(30, 60, 160, 0.2), transparent 70%);
  top: -150px;
  left: -80px;
  animation: drift1 22s ease-in-out infinite;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 30, 80, 0.1), transparent 70%);
  bottom: -100px;
  right: -80px;
  animation: drift2 18s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(50px, 40px); }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, -30px); }
}

/* --- Page layout: min-height so content can extend and body scrolls --- */
.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 clamp(16px, 4vw, 48px);
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

.page--sub {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 32px;
}

/* --- Nav --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  flex-shrink: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: 6px;
  transition: color 0.25s ease, background 0.25s ease;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 30, 80, 0.08);
}

.btn-play {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  background: none;
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
  box-shadow: 0 0 16px var(--pink-glow), 0 2px 8px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.btn-play::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    var(--pink) 0%,
    #a855f7 25%,
    var(--pink-bright) 50%,
    #c084fc 75%,
    var(--pink) 100%
  );
  background-size: 300% 300%;
  animation: swirlGradient 4s ease infinite;
  border-radius: inherit;
}

.btn-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px var(--pink-glow), 0 0 20px rgba(168, 85, 247, 0.15), 0 4px 16px rgba(0,0,0,0.4);
}

.btn-play:hover::before {
  animation-duration: 2s;
}

/* --- Main --- */
.main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 3.5vh, 40px);
  /* min-height: 0 removed — it was clipping tall content when body couldn’t scroll */
  width: 100%;
}

/* --- Hero Split Layout --- */
.hero-split {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.hero {
  flex: 1;
  min-width: 0;
}

.hero-video {
  flex: 1;
  min-width: 0;
  max-width: min(100%, 640px);
  opacity: 0;
  animation: enter 1s var(--ease) 0.9s forwards;
}

.hero-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.hero-video-el,
.hero-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hero-video-el {
  object-fit: cover;
}

/* --- Hero Text --- */
.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: clamp(12px, 2vh, 20px);
  position: relative;
  padding: 0 24px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  min-height: 1.2em;
}

.hero-badge::before,
.hero-badge::after {
  content: '◆';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.4rem;
  color: #c026d3;
}

.hero-badge::before { left: 0; }
.hero-badge::after { right: 0; }

.cipher-text {
  display: inline;
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.cipher-char {
  display: inline-block;
  min-width: 0.55em;
  color: inherit;
  -webkit-text-fill-color: inherit;
  transition: opacity 0.15s ease, -webkit-text-fill-color 0.15s ease, color 0.15s ease;
}

.cipher-char.scrambling {
  -webkit-text-fill-color: rgba(192, 38, 211, 0.65);
  color: rgba(192, 38, 211, 0.65);
}

.hero-title {
  font-family: var(--heading);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: clamp(12px, 2vh, 20px);
  color: var(--parchment);
}

.amp {
  font-style: italic;
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent {
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(0.88rem, 1.3vw, 1.02rem);
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: clamp(20px, 3vh, 32px);
}

/* CTA: centered when hero is stacked (mobile); left when side-by-side (desktop) */
.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
}

@media (min-width: 901px) {
  .hero-cta {
    justify-content: flex-start;
  }
}

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 15px 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  position: relative;
  color: white;
  background: none;
  z-index: 0;
  overflow: hidden;
  box-shadow: 0 0 24px var(--pink-glow), 0 4px 14px rgba(0,0,0,0.3);
  /* Shorter than default .btn: ~15px + ~10px total vertical reduction */
  padding: calc(15px - 7.5px - 5px) 32px;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    var(--pink) 0%,
    #a855f7 25%,
    var(--pink-bright) 50%,
    #c084fc 75%,
    var(--pink) 100%
  );
  background-size: 300% 300%;
  animation: swirlGradient 4s ease infinite;
  border-radius: inherit;
}

@keyframes swirlGradient {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 100% 0%; }
  50%  { background-position: 100% 100%; }
  75%  { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--pink-glow), 0 0 30px rgba(168, 85, 247, 0.2), 0 8px 28px rgba(0,0,0,0.4);
}

.btn-primary:hover::before {
  animation-duration: 2s;
}

.btn-lottie {
  display: inline-block;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

/* --- Resource Cards --- */
.resources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 100%;
}

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 30, 80, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 14px;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 40px rgba(255, 30, 80, 0.04);
}

.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 3px;
}

.card-desc {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-mid);
}

.card-arrow {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}

.card:hover .card-arrow {
  color: var(--pink);
  transform: translate(3px, -3px);
}

/* --- Footer --- */
.footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--border);
}

.social-row {
  display: flex;
  gap: 8px;
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-dim);
  transition: all 0.25s ease;
}

.social-row a:hover {
  color: var(--pink);
  background: rgba(255, 30, 80, 0.06);
}

.social-row svg {
  width: 16px;
  height: 16px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.footer-meta a { transition: color 0.25s ease; }
.footer-meta a:hover { color: var(--text); }
.dot { opacity: 0.4; }

.footer--sub {
  margin-top: auto;
}

/* --- Press page --- */
.press-main {
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 0 48px;
}

.press-header {
  margin-bottom: 40px;
  text-align: center;
}

.press-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.press-title {
  font-family: var(--heading);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--parchment);
  margin-bottom: 12px;
}

.press-intro {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.4;
  margin: 0 auto;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 8px;
}

.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.press-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 22px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.press-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 48px rgba(255, 30, 80, 0.04);
  transform: translateY(-2px);
}

.press-item-thumb {
  flex: 0 0 clamp(160px, 32%, 260px);
  width: clamp(160px, 32%, 260px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 30, 80, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.4);
}

.press-item-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.press-item-body {
  flex: 1;
  min-width: 0;
}

.press-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.press-outlet {
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--parchment);
}

.press-date {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.press-excerpt {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-mid);
  margin: 0 0 16px;
}

.press-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.2s ease;
}

.press-link:hover {
  opacity: 0.85;
}

.press-link::after {
  content: '→';
  -webkit-text-fill-color: var(--pink-bright);
  color: var(--pink-bright);
  font-size: 1em;
}

.press-back {
  margin-top: 48px;
  text-align: center;
  font-size: 0.88rem;
}

.press-back a {
  color: var(--text-mid);
  transition: color 0.2s ease;
}

.press-back a:hover {
  color: var(--text);
}

/* --- News page (reuses press list layout) --- */
.news-headline {
  margin: 0 0 6px;
  line-height: 1.25;
}

.news-item-meta {
  justify-content: flex-start;
  margin-top: 0;
  margin-bottom: 12px;
}

/* --- Pro Squad page --- */
.squad-header-lede {
  margin-top: 4px;
  padding: 0 12px;
}

.squad-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.squad-lede {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-mid);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.squad-name {
  font-family: var(--heading);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 10px;
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.squad-item .press-excerpt {
  margin-bottom: 14px;
}

.squad-link-interview::after {
  content: '→';
}

@media (max-width: 680px) {
  .press-item {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .press-item-thumb {
    width: 100%;
    flex: none;
    max-width: none;
  }

  .press-intro {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.45;
  }
}

/* --- About page --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.about-main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 0 48px;
}

.about-hero {
  position: relative;
  text-align: center;
  padding: clamp(24px, 5vw, 56px) 0 clamp(32px, 4vw, 48px);
}

.about-eyebrow {
  position: relative;
}

.about-title {
  position: relative;
  font-family: var(--heading);
  font-size: clamp(2.1rem, 5.2vw, 3.65rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--parchment);
  margin-top: 10px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.about-title-accent {
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-manifesto {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 6px 40px;
}

.about-lead {
  font-size: clamp(1.06rem, 2.2vw, 1.38rem);
  line-height: 1.62;
  color: var(--parchment);
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.about-lead strong {
  font-weight: 600;
  color: var(--parchment);
}

.about-body {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.75;
  color: var(--text-mid);
}

.about-lore-mark {
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.92em;
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-use {
  position: relative;
  padding: 44px 0 20px;
  border-top: 1px solid var(--border);
}

.about-use::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 420px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink), #a855f7, transparent);
  opacity: 0.85;
  border-radius: 2px;
}

.about-use-header {
  text-align: center;
  margin-bottom: clamp(26px, 4vw, 38px);
}

.about-use-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.about-use-title {
  font-family: var(--heading);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 700;
  color: var(--parchment);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.about-case-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.about-case {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 18px 18px 16px;
  background: rgba(255, 30, 80, 0.035);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.about-case:hover {
  border-color: rgba(255, 30, 80, 0.28);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.32),
    0 0 60px rgba(255, 30, 80, 0.07);
  transform: translateY(-4px);
}

.about-case-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 14px;
  background: rgba(255, 30, 80, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-case-body {
  flex: 1;
  min-width: 0;
}

.about-case-label {
  display: block;
  font-family: var(--heading);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.about-case-desc {
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--text-mid);
  margin: 0;
}

.about-anim {
  opacity: 0;
  transform: translateY(26px);
  animation: enter 0.85s var(--ease) forwards;
}

.about-anim-delay-1 { animation-delay: 0.1s; }
.about-anim-delay-2 { animation-delay: 0.2s; }

.about-case-grid .about-case {
  opacity: 0;
  transform: translateY(22px);
  animation: enter 0.75s var(--ease) forwards;
}

.about-case-grid .about-case:nth-child(1) { animation-delay: 0.28s; }
.about-case-grid .about-case:nth-child(2) { animation-delay: 0.34s; }
.about-case-grid .about-case:nth-child(3) { animation-delay: 0.4s; }
.about-case-grid .about-case:nth-child(4) { animation-delay: 0.46s; }
.about-case-grid .about-case:nth-child(5) { animation-delay: 0.52s; }
.about-case-grid .about-case:nth-child(6) { animation-delay: 0.58s; }

@media (max-width: 680px) {
  .about-case-grid {
    grid-template-columns: 1fr;
  }

  .about-title {
    max-width: none;
  }

  .about-case-icon {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }
}

/* --- Entrance Animations --- */
.hero-badge, .hero-title, .hero-sub, .hero-cta,
.card, .social-row, .footer-meta {
  opacity: 0;
  transform: translateY(20px);
  animation: enter 0.7s var(--ease) forwards;
}

.hero-badge    { animation-delay: 0.1s; }
.hero-title    { animation-delay: 0.25s; }
.hero-sub      { animation-delay: 0.4s; }
.hero-cta      { animation-delay: 0.5s; }
.card:nth-child(1) { animation-delay: 0.6s; }
.card:nth-child(2) { animation-delay: 0.7s; }
.card:nth-child(3) { animation-delay: 0.8s; }
.social-row    { animation-delay: 0.9s; }
.footer-meta   { animation-delay: 0.95s; }

@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .main {
    justify-content: flex-start;
    padding-top: clamp(8px, 2vh, 20px);
    gap: clamp(20px, 4vh, 32px);
  }

  .hero-split {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-video {
    max-width: 100%;
    order: 2;
  }

  .hero {
    text-align: center;
    order: 1;
  }

  .resources {
    order: 3;
  }
}

@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    gap: 10px 12px;
    row-gap: 12px;
    align-items: center;
  }

  .nav-links { display: none; }

  .nav-logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo-img { height: 26px; }

  .btn-play {
    flex-shrink: 0;
    padding: 7px 16px;
    font-size: 0.75rem;
  }

  .hero-badge {
    padding: 0 12px;
    max-width: 100%;
  }

  .resources {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card { padding: 14px 16px; }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero-cta .btn {
    width: auto;
    max-width: none;
  }

  .hide-mobile { display: none; }
}

@media (max-height: 650px) {
  .hero-sub { display: none; }
  .main { gap: 16px; }
  .hero-badge { margin-bottom: 10px; }
}
