/* ==========================================================================
   4711Studio · Apple Intelligence Inspired Spatial Dark UI
   Luminous Obsidian, Liquid Glass & Subtle Prismatic Light
   ========================================================================== */

:root {
  --bg: #000000;
  --bg-elevated: #0d0d10;
  --surface: #141418;
  --surface-2: #1c1c21;
  --surface-3: #24242b;
  --glass: rgba(20, 20, 24, 0.72);
  --glass-strong: rgba(12, 12, 15, 0.78);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-subtle: rgba(255, 255, 255, 0.06);

  --ink: #f5f5f7;
  --ink-secondary: #a1a1a6;
  --ink-tertiary: #6e6e73;

  --apple-blue: #2997ff;
  --apple-blue-hover: #4da9ff;
  --apple-blue-fill: #0071e3;

  --ai-blue: #58a6ff;
  --ai-violet: #b67cff;
  --ai-pink: #ff6b9e;
  --ai-amber: #ffaa64;
  --ai-gradient: linear-gradient(108deg, #60a5fa 0%, #bc82f3 36%, #f5579b 70%, #ff9f43 100%);
  --ai-gradient-soft: linear-gradient(135deg, rgba(96, 165, 250, 0.24), rgba(188, 130, 243, 0.22) 38%, rgba(245, 87, 155, 0.2) 72%, rgba(255, 159, 67, 0.2));

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 980px;
}

html {
  color-scheme: dark;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(182, 124, 255, 0.32);
  color: #ffffff;
}

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

/* Custom sleek scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); }

/* Container rhythm */
.mast-inner,
#app,
footer {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

/* ==========================================================================
   Sticky Liquid Glass Global Header (Apple.com style)
   ========================================================================== */

.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-strong);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.mast-inner {
  height: 56px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 36px);
}

.mast .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  opacity: 0.96;
  transition: opacity 0.2s var(--ease-apple);
}
.mast .brand:hover { opacity: 1; }
.mast .brand img {
  width: 132px;
  height: 23px;
  object-fit: contain;
  display: block;
}
.mast .brand span {
  display: block;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 12px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-secondary);
}

.mast nav {
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 2vw, 28px);
  height: 100%;
  margin-inline: auto;
}

.mast nav a {
  display: grid;
  align-content: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-secondary);
  position: relative;
  white-space: nowrap;
  transition: color 0.2s var(--ease-apple);
}

.mast nav a:hover { color: var(--ink); }

.mast nav a.active {
  color: var(--ink);
  font-weight: 600;
}

.mast nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  height: 2px;
  border-radius: 2px;
  background: var(--ai-gradient);
}

#searchForm {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  width: min(230px, 22vw);
  transition: border-color 0.25s var(--ease-apple), background 0.25s var(--ease-apple), box-shadow 0.25s var(--ease-apple), width 0.3s var(--ease-apple);
}

#searchForm:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
}

#searchForm:focus-within {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(182, 124, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(182, 124, 255, 0.16);
  width: min(268px, 26vw);
}

#search {
  color: var(--ink);
  font-size: 12.5px;
}

#search::placeholder { color: var(--ink-tertiary); }

#searchForm kbd {
  font: 500 10.5px var(--font-mono);
  color: var(--ink-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  padding: 0 5px;
  line-height: 1.5;
}

.mag {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--ink-tertiary);
}
.mag::after {
  width: 5px;
  height: 1.5px;
  background: var(--ink-tertiary);
}

#app {
  padding: 26px 0 88px;
  min-height: 78vh;
}

/* ==========================================================================
   Flagship Apple Intelligence Hero & Floating Cinema Stage
   ========================================================================== */

.hero.c41-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: auto;
  padding: 26px 0 10px;
  margin-bottom: 24px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.c41-hero::before { content: none; }

.hero-aurora {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 110vw);
  height: 420px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 48% 58% at 28% 42%, rgba(88, 166, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 46% 56% at 52% 38%, rgba(188, 130, 243, 0.24), transparent 72%),
    radial-gradient(ellipse 45% 55% at 74% 48%, rgba(245, 87, 155, 0.18), transparent 70%),
    radial-gradient(ellipse 35% 45% at 62% 62%, rgba(255, 159, 67, 0.14), transparent 72%);
  filter: blur(56px);
  opacity: 0.9;
  animation: auroraBreathe 12s ease-in-out infinite alternate;
}

@keyframes auroraBreathe {
  0% { opacity: 0.78; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

.c41-hero .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.c41-hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px 6px 12px;
  margin: 0 0 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #e4e4e9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ai-spark {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--ai-gradient);
  box-shadow: 0 0 12px rgba(188, 130, 243, 0.7);
  flex: none;
}

.c41-hero h1 {
  color: var(--ink);
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.042em;
  margin: 0 0 16px;
}

.c41-hero h1 .ai-gradient {
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.c41-hero .hero-intro {
  color: var(--ink-secondary);
  font-size: clamp(16px, 1.45vw, 18.5px);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -0.01em;
  max-width: 680px;
  margin: 0 0 24px;
  text-wrap: balance;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.c41-hero .btn,
.hero-secondary {
  min-height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.22s var(--ease-apple), background 0.22s var(--ease-apple), box-shadow 0.22s var(--ease-apple), border-color 0.22s var(--ease-apple);
}

.c41-hero .btn {
  background: #f5f5f7;
  color: #050507;
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.14);
}

.c41-hero .btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(188, 130, 243, 0.28);
}

.hero-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

/* Floating Cinema Frame with Apple Intelligence Prismatic Rim */
.c41-stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 320px;
  max-height: clamp(320px, 46vh, 455px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0a0b0e;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.c41-stage-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(125deg, rgba(96, 165, 250, 0.55), rgba(188, 130, 243, 0.52), rgba(245, 87, 155, 0.45), rgba(255, 159, 67, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
  opacity: 0.72;
}

.c41-scene,
.c41-scene img,
.c41-scene video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.c41-scene { z-index: 1; }

.c41-scene img,
.c41-scene video {
  display: block;
  object-fit: cover;
  object-position: center 48%;
}

.c41-scene video {
  opacity: 0;
  transition: opacity 0.45s var(--ease-apple);
  pointer-events: none;
}

.c41-scene video.ready { opacity: 1; }

.c41-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 32%, transparent 64%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.hero-meta {
  position: absolute;
  bottom: 20px;
  left: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(12, 12, 16, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: left;
  text-shadow: none;
}

.hero-meta b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.hero-meta span {
  font-size: 12px;
  color: var(--ink-secondary);
}

.hero-pause {
  position: absolute;
  bottom: 20px;
  right: 22px;
  z-index: 3;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 12, 16, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--ink);
  font: 13px var(--font-mono);
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease-apple), transform 0.2s var(--ease-apple);
}

.hero-pause[hidden] { display: none; }
.hero-pause:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.06);
}

/* ==========================================================================
   Apple Bento Metrics Band
   ========================================================================== */

.library-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 64px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.library-band a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  min-width: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #17171c 0%, #111115 100%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.26s var(--ease-apple), border-color 0.26s var(--ease-apple), background 0.26s var(--ease-apple);
}

.library-band a + a { border-left: 1px solid var(--border); }

.library-band a:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, #1d1d24 0%, #141419 100%);
}

.library-band a > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.library-band b {
  font: 600 clamp(28px, 2.8vw, 38px)/1.05 var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 10%, #a8a8b3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.library-band a:nth-child(1) b {
  background: linear-gradient(110deg, #7cc4ff 0%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.library-band a:nth-child(2) b {
  background: linear-gradient(110deg, #c084fc 0%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.library-band a:nth-child(3) b {
  background: linear-gradient(110deg, #f472b6 0%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.library-band span {
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 500;
}

.library-band svg {
  color: var(--ink-tertiary);
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease-apple), color 0.25s var(--ease-apple);
}

.library-band a:hover svg {
  color: var(--ink);
  transform: translateX(3px);
}

/* ==========================================================================
   Section Headers & Typography
   ========================================================================== */

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 48px 0 22px;
}

.section-title h2,
.listing h2 {
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
}

.section-title > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--apple-blue);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s;
}

.section-title > a:hover {
  color: var(--apple-blue-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-title > a svg { width: 15px; height: 15px; }

.muted { color: var(--ink-secondary); font-size: 13.5px; }
.tiny { color: var(--ink-tertiary); font-size: 12px; }

/* ==========================================================================
   Portfolio & Feature Cards (Dark Titanium Bento Cards)
   ========================================================================== */

.c41-front-portfolio { margin: 0 0 64px; }

.print-grid,
.c41-program-grid,
.c41-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.print-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s var(--ease-apple), border-color 0.3s var(--ease-apple), box-shadow 0.3s var(--ease-apple);
}

.print-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(188, 130, 243, 0.16);
}

.print-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  background: #0a0a0d;
  border-bottom: 1px solid var(--border-subtle);
}

.print-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-apple);
}

.print-tile:hover .print-thumb img { transform: scale(1.03); }

.c41-motion-tile .print-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-apple);
}

.c41-motion-tile .print-thumb video.ready { opacity: 1; }

.print-time,
.c41-motion-tile .print-time {
  z-index: 2;
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(12, 12, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font: 500 12px/1.2 var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.print-time svg { width: 12px; height: 12px; }

.print-copy {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.print-copy small,
.program-title small,
.screening-title small {
  font: 600 11.5px/1.4 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.print-copy h2 {
  margin: 2px 0 0;
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.28;
  color: var(--ink);
}

.print-copy p,
.screening-title p {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--ink-secondary);
}

/* Motion Showcase Reference Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 0;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.28s var(--ease-apple), border-color 0.28s var(--ease-apple), box-shadow 0.28s var(--ease-apple);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.feature-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d0d11;
  overflow: hidden;
}

.feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-apple);
}

.feature-card:hover .feature-image img { transform: scale(1.03); }

.feature-image i {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(12, 12, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature-image i svg { width: 14px; height: 14px; }
.feature-placeholder { display: grid; place-items: center; height: 100%; color: var(--ink-tertiary); }

.feature-copy { padding: 16px 18px 20px; }
.feature-copy small {
  color: var(--apple-blue);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.feature-copy h3 {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
  margin: 5px 0 6px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.feature-copy p {
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Category Grid, Skill Cards, Controls & Buttons
   ========================================================================== */

.catgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cat {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: transform 0.22s var(--ease-apple), border-color 0.22s var(--ease-apple), background 0.22s var(--ease-apple);
}

.cat:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.cat.on {
  background: rgba(41, 151, 255, 0.1);
  border-color: rgba(41, 151, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(41, 151, 255, 0.25);
}

.cat i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--p);
  color: var(--c);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex: none;
}

.cat b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.cat small { font-size: 12px; color: var(--ink-secondary); }
.cat .chev { color: var(--ink-tertiary); margin-left: auto; }

.listing { margin-top: 44px; }

.listhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.listhead h2 small {
  font: 500 12px var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  color: var(--ink-secondary);
  vertical-align: middle;
  margin-left: 10px;
}

/* Global Buttons & Pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: var(--radius-pill);
  background: #f5f5f7;
  color: #050507;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 18px;
  transition: background 0.2s var(--ease-apple), transform 0.2s var(--ease-apple);
}

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

.subtle,
.toolbar select,
.pager button {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.2s var(--ease-apple), border-color 0.2s var(--ease-apple);
}

.toolbar select {
  border-radius: 10px;
  padding: 7px 12px;
  background-color: var(--surface-2);
  color: var(--ink);
}

.subtle:hover,
.pager button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.subtle.active,
.groupbar a.active {
  background: #f5f5f7;
  color: #050507;
  border-color: #f5f5f7;
}

.groupbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.groupbar a {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  transition: all 0.2s var(--ease-apple);
}

.groupbar a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

/* Skill Grid Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-width: 0;
  transition: transform 0.25s var(--ease-apple), border-color 0.25s var(--ease-apple), box-shadow 0.25s var(--ease-apple);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

.thumb {
  aspect-ratio: 16 / 9;
  background: #0d0d11;
  border-bottom: 1px solid var(--border-subtle);
}

.thumb .mediaicon {
  background: rgba(12, 12, 16, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border-radius: 50%;
}

.paper {
  background:
    radial-gradient(circle at 50% 0%, rgba(188, 130, 243, 0.08), transparent 68%),
    #121217;
  color: var(--ink-tertiary);
}

.status {
  font-size: 10.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-secondary);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}

.status.made {
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
}
.status.made::before { background: #34d399; }

.status.ext {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}

.card-body { padding: 14px 16px 16px; }
.card-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 8px 0 6px;
  letter-spacing: -0.015em;
}
.card-body p {
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.cardfoot {
  border-top: 1px solid var(--border-subtle);
  color: var(--ink-tertiary);
  padding-top: 10px;
}

.pager { margin: 34px 0 12px; color: var(--ink-secondary); }

.empty,
.notice {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
}

/* ==========================================================================
   Motion Showcase Workbench (#/motion/:id)
   ========================================================================== */

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--apple-blue);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 14px;
  transition: opacity 0.2s;
}
.crumb:hover { opacity: 0.82; }

.motion-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 6px 0 28px;
}

.motion-header p {
  margin: 0 0 6px;
  font: 600 12px/1.3 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.motion-header h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--ink);
}

/* Apple Segmented Control */
.motion-header nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(16px);
}

.motion-header nav a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: all 0.22s var(--ease-apple);
}

.motion-header nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.motion-header nav [aria-current] {
  background: #f5f5f7;
  color: #050507;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.motion-player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(276px, 29%);
  gap: 20px;
  align-items: start;
}

.motion-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #0f0f13;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(188, 130, 243, 0.08);
}

.motion-stage video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000000;
}

.motion-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(22, 22, 27, 0.96) 0%, rgba(16, 16, 20, 0.98) 100%);
  border-top: 1px solid var(--border);
}

.motion-caption h2 {
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
  color: var(--ink);
}

.motion-caption p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.motion-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.motion-caption a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: rgba(41, 151, 255, 0.14);
  border: 1px solid rgba(41, 151, 255, 0.32);
  white-space: nowrap;
  color: var(--apple-blue-hover);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease-apple);
}

.motion-caption a:hover {
  background: rgba(41, 151, 255, 0.24);
  border-color: rgba(41, 151, 255, 0.52);
  color: #ffffff;
}

.motion-caption a .icon { width: 14px; height: 14px; }

.motion-caption .c41-music button {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  min-height: 36px;
  padding: 6px 14px;
  transition: all 0.25s var(--ease-apple);
}

.motion-caption .c41-music button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.motion-caption .c41-music button[aria-pressed="true"] {
  background: var(--ai-gradient);
  border-color: transparent;
  color: #050507;
  font-weight: 600;
  box-shadow: 0 0 22px rgba(188, 130, 243, 0.42);
}

/* Clip Chooser Rail */
.motion-chooser {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.motion-chooser > h2 {
  margin: 0;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  letter-spacing: -0.01em;
}

.motion-chooser ol {
  max-height: min(68vh, 560px);
  overflow: auto;
  margin: 0;
  list-style: none;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.motion-chooser li + li { border-top: 0; }

.motion-chooser button {
  width: 100%;
  min-height: 60px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background 0.2s var(--ease-apple), border-color 0.2s var(--ease-apple);
}

.motion-chooser button img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #09090c;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.motion-chooser button span {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
}

.motion-chooser button small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-tertiary);
  font-weight: 500;
}

.motion-chooser button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.motion-chooser button[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.14), rgba(188, 130, 243, 0.14));
  border-color: rgba(188, 130, 243, 0.38);
  box-shadow: inset 3px 0 0 #bc82f3;
}

.motion-case-link { margin: 20px 0 0; }

/* ==========================================================================
   Originals Program, Screening Detail & Case Notes
   ========================================================================== */

.program-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  margin: 8px 0 34px;
  padding: 0 0 22px;
}

.program-title h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin: 0;
  color: var(--ink);
}

.program-title p {
  font-size: 15px;
  color: var(--ink-secondary);
  margin: 0;
}

.screening-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(188, 130, 243, 0.12) 50%, rgba(245, 87, 155, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  color: var(--ink);
  margin: 24px 0;
}

.screening-strip small { color: var(--ink-secondary); }
.screening-strip a { color: var(--apple-blue-hover); font-weight: 500; }

details.c41-program-archive {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 52px;
}

.c41-program-archive summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 22px;
  transition: color 0.2s;
}
.c41-program-archive summary:hover { color: var(--ink); }

.screening-title h1 {
  font-size: clamp(28px, 3.8vw, 50px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.screening {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.screening video { background: #000000; }
.screening aside { background: var(--surface); border-left: 1px solid var(--border); }
.screening aside h2 { color: var(--ink); }
.screening aside > p { color: var(--ink-tertiary); }
.screening li + li { border-top: 1px solid var(--border-subtle); }
.screening li button { color: var(--ink-secondary); border-radius: 8px; padding: 9px 8px; }
.screening li button:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
.screening li time { color: var(--ink-tertiary); font-family: var(--font-mono); }
.screening button[aria-current="true"] {
  color: var(--ink);
  background: rgba(188, 130, 243, 0.18);
}
.screening button[aria-current="true"] time { color: #d8b4fe; }

.screening-foot details {
  border-top: 1px solid var(--border);
  color: var(--ink-secondary);
}

.c41-case-notes .facts { margin: 14px 0; }
.c41-motion-notes { list-style: none; margin: 16px 0 0; padding: 0; }
.c41-motion-notes li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.c41-motion-notes li > div { display: grid; gap: 4px; justify-items: start; }
.c41-motion-notes time { font-variant-numeric: tabular-nums; margin-right: 0.6em; color: var(--ink-secondary); }
.c41-motion-notes small { color: var(--ink-tertiary); padding-left: 4px; }

/* ==========================================================================
   Collections, Official Films, Skill Detail & Specs
   ========================================================================== */

.pagehead {
  border-bottom: 1px solid var(--border);
  padding: 8px 0 26px;
}

.pagehead h1,
.detail h1 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.pagehead p { color: var(--ink-secondary); font-size: 15px; }

.collections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.collection {
  padding: 34px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(ellipse at 92% 10%, rgba(96, 165, 250, 0.45), transparent 58%),
    radial-gradient(ellipse at 10% 90%, rgba(188, 130, 243, 0.28), transparent 58%),
    #11131d;
  transition: transform 0.28s var(--ease-apple), border-color 0.28s var(--ease-apple);
}

.collection:nth-child(2) {
  background:
    radial-gradient(ellipse at 92% 14%, rgba(244, 114, 182, 0.38), transparent 60%),
    radial-gradient(ellipse at 12% 90%, rgba(251, 146, 60, 0.26), transparent 60%),
    #19121a;
}

.collection:hover {
  transform: translateY(-3px);
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
}

.sceneList { gap: 14px; }

.scene {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  color: var(--ink);
  transition: transform 0.22s var(--ease-apple), border-color 0.22s var(--ease-apple);
}

.scene:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.scene small { color: var(--apple-blue); font-weight: 500; }
.scene .scenecover { background: #0a0a0d; border-radius: 10px; }

/* Official Films Panel */
.film-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.film-heading {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.film-heading h2 { color: var(--ink); }
.film-heading small { color: var(--ink-tertiary); }
.film-heading a { color: var(--apple-blue); }

.film-row {
  color: var(--ink);
  border-top: 1px solid var(--border-subtle);
}

.film-row:hover { background: rgba(255, 255, 255, 0.04); }
.film-row i { background: rgba(255, 255, 255, 0.1); color: var(--ink); }
.film-row small,
.film-row time { color: var(--ink-secondary); }

.paired-film {
  background: rgba(41, 151, 255, 0.08);
  color: var(--apple-blue-hover);
  border-top: 1px solid var(--border-subtle);
}
.paired-film:hover { background: rgba(41, 151, 255, 0.14); }

.more-films summary {
  border-top: 1px solid var(--border-subtle);
  color: var(--ink-secondary);
}

/* Skill / Scene Detail Page */
.stage {
  border-radius: var(--radius-lg);
  background: #0c0c10;
  border: 1px solid var(--border);
}

.detail p { color: var(--ink-secondary); line-height: 1.65; }
.slug {
  font: 12px/1.6 var(--font-mono);
  color: var(--ink-tertiary);
}

.facts {
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.facts div { border-bottom: 1px solid var(--border-subtle); padding: 18px 20px 18px 0; }
.facts dt { color: var(--ink); font-size: 13px; font-weight: 600; }
.facts dd { color: var(--ink-secondary); font-size: 13.5px; }

.slidebar button {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

/* Lightbox Dialog */
#viewer {
  background: rgba(12, 12, 16, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.85);
}
#viewer::backdrop {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(12px);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  color: var(--ink-tertiary);
  font-size: 12.5px;
  padding: 28px 0 42px;
}

footer a { color: var(--ink-secondary); transition: color 0.2s; }
footer a:hover { color: var(--ink); text-decoration: none; }

/* ==========================================================================
   Responsive Design (Tablet & Mobile)
   ========================================================================== */

@media (max-width: 1040px) {
  .mast-inner,
  #app,
  footer {
    width: min(100% - 40px, 1240px);
  }
  .mast-inner { gap: 16px; }
  .mast nav { gap: 14px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .mast-inner,
  #app,
  footer {
    width: calc(100% - 32px);
  }
  .mast-inner {
    height: auto;
    min-height: 0;
    padding: 12px 0 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 12px;
  }
  .mast .brand { gap: 8px; }
  .mast .brand img { width: 108px; height: 19px; }
  .mast .brand span { padding-left: 8px; font-size: 11px; }
  #searchForm {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none;
    padding: 5px 10px;
  }
  #searchForm:focus-within { width: 100%; }
  .mast nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-inline: 0;
    width: 100%;
    height: 40px;
    gap: 0;
    justify-content: space-between;
    overflow-x: auto;
  }
  .mast nav a { font-size: 12.5px; }

  #app { padding: 24px 0 56px; }
  .hero.c41-hero { padding: 22px 0 8px; margin-bottom: 20px; }
  .c41-hero .hero-copy { margin-bottom: 26px; }
  .c41-hero .hero-kicker { font-size: 11.5px; margin-bottom: 16px; }
  .c41-hero h1 { font-size: clamp(38px, 10.5vw, 56px); margin-bottom: 14px; }
  .c41-hero .hero-intro { font-size: 14.5px; margin-bottom: 22px; }
  .c41-hero .btn,
  .hero-secondary { min-height: 42px; padding: 0 18px; font-size: 13.5px; }

  .c41-stage-frame {
    aspect-ratio: 16 / 10;
    min-height: 230px;
    border-radius: 20px;
  }
  .hero-meta {
    left: 12px;
    bottom: 12px;
    padding: 6px 12px;
    gap: 6px;
  }
  .hero-meta b { font-size: 12px; }
  .hero-meta span { font-size: 11px; }
  .hero-pause { right: 12px; bottom: 12px; width: 32px; height: 32px; }

  .library-band { gap: 8px; margin-bottom: 42px; }
  .library-band a { padding: 14px 12px; border-radius: 16px; flex-direction: column; align-items: flex-start; gap: 5px; }
  .library-band b { font-size: 24px; }
  .library-band span { font-size: 11px; white-space: nowrap; }
  .library-band svg { display: none; }

  .print-grid,
  .c41-program-grid,
  .c41-home-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .motion-player-grid { grid-template-columns: 1fr; gap: 14px; }
  .motion-header { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .motion-stage { border-radius: 18px; }
  .motion-caption { padding: 14px 16px; }
  .motion-chooser { border-radius: 16px; }
  .motion-chooser ol { max-height: 300px; }

  .program-title { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 22px; }
  .collections { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .print-grid,
  .c41-program-grid,
  .c41-home-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .motion-controls {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }
  .motion-caption {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-aurora { animation: none; }
  .apple-reveal { opacity: 1 !important; transform: none !important; }
  .apple-route-in { animation: none !important; }
}

/* ==========================================================================
   Apple Spatial Micro-Interactions & Motion Choreography
   ========================================================================== */

.library-band a,
.print-tile,
.feature-card,
.cat,
.card,
.collection,
.scene {
  position: relative;
}

.library-band a::after,
.print-tile::after,
.feature-card::after,
.cat::after,
.card::after,
.collection::after,
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.085),
    rgba(188, 130, 243, 0.04) 38%,
    transparent 68%
  );
  transition: opacity 0.35s var(--ease-apple);
  z-index: 3;
}

.apple-lit::after { opacity: 1; }

.c41-stage-frame {
  will-change: transform;
  transition: transform 0.14s linear;
}

/* Route entrance */
@keyframes appleRouteIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.apple-route-in {
  animation: appleRouteIn 0.36s var(--ease-apple) both;
}

/* Scroll reveal */
.apple-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.988);
  transition:
    opacity 0.62s var(--ease-apple) var(--reveal-delay, 0ms),
    transform 0.68s var(--ease-apple) var(--reveal-delay, 0ms),
    border-color 0.28s var(--ease-apple),
    box-shadow 0.28s var(--ease-apple);
}

.apple-reveal.apple-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Motion player crossfade & hairline prismatic playhead */
.motion-stage video {
  transition: opacity 0.26s var(--ease-apple);
}

.motion-stage video.is-switching {
  opacity: 0.35;
}

.motion-progress {
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.motion-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ai-gradient);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* Tactile press feedback */
.btn:active,
.hero-secondary:active,
.subtle:active,
.motion-header nav a:active,
.motion-chooser button:active {
  transform: scale(0.975);
}

/* Keyboard shortcut hint bar inside chooser */
.kbd-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
  color: var(--ink-tertiary);
}

.kbd-hint span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kbd-hint kbd {
  font: 500 10px var(--font-mono);
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink-secondary);
}

@media (max-width: 780px) {
  .kbd-hint { display: none; }
}

