.paris-ai-film-detail-page {
  --paris-page: clamp(20px, 4.4vw, 68px);
  --paris-line: rgb(48 45 41 / .18);
  --paris-muted: #6b655d;
  --paris-paper: #eee7dd;
  --paris-ink: #302d29;
  margin: 0;
  background: #c7b9a5;
  color: var(--paris-ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.paris-ai-film-detail-page .page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.paris-ai-film-detail-page .topbar { color: #fff; }

.paris-ai-film-detail-page .project-tabs {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 64px), 1200px);
  margin: 28px auto;
  padding: 0;
  flex-wrap: wrap;
  overflow: visible;
  justify-content: flex-start;
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: #555 #141414;
  border-color: rgb(255 255 255 / .22);
  background: #141414;
  backdrop-filter: blur(14px);
}

.paris-ai-film-detail-page .project-tabs a { flex: 0 0 auto; white-space: nowrap; color: rgb(255 255 255 / .66); }
.paris-ai-film-detail-page .project-tabs a.active { color: #fff; }
.paris-ai-film-detail-page .project-tabs a.active::after { background: #fff; }

.paris-case img,
.paris-case video { display: block; width: 100%; }
.paris-case figure { margin: 0; }
.paris-case {
  width: min(1200px, 100%);
  margin: 0 auto;
  background: var(--paris-paper);
  box-shadow: 0 0 40px 12px rgb(0 0 0 / .33);
}

.paris-hero {
  position: relative;
  min-height: 540px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #b8ad9c;
  color: #fff;
}

.paris-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.paris-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .28), transparent 36%, rgb(0 0 0 / .78)); }
.paris-hero-eyebrow,
.paris-hero-meta { position: absolute; z-index: 1; left: var(--paris-page); right: var(--paris-page); display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .16em; }
.paris-hero-eyebrow { top: 164px; }
.paris-hero-meta { bottom: 28px; align-items: end; }
.paris-hero-meta div { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.paris-hero-meta button,
.paris-hero-play,
.paris-final-play { display: inline-flex; min-height: 44px; align-items: center; padding: 0 0 5px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; font-size: 9px; letter-spacing: .15em; }
.paris-hero-title { position: absolute; z-index: 1; left: var(--paris-page); right: var(--paris-page); bottom: 11%; }
.paris-hero-title p { margin: 0 0 14px; font-size: 11px; letter-spacing: .18em; }
.paris-hero-title h1 { max-width: 100%; margin: 0; color: #fff; font-size: clamp(66px, 8vw, 120px); font-weight: 400; line-height: .82; letter-spacing: -.07em; }
.paris-hero-play { position: absolute; z-index: 2; right: var(--paris-page); bottom: 11.8%; color: #fff; }

.paris-section { padding: 80px var(--paris-page); border-top: 1px solid var(--paris-line); }
.paris-section-title { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 28px; align-items: start; margin-bottom: 48px; }
.paris-section-title > p,
.paris-micro-label { margin: 0; font: 10px/1.3 "Courier New", monospace; letter-spacing: .14em; text-transform: uppercase; }
.paris-section-title h2,
.paris-frame-motion > h2,
.paris-final > h2 { margin: 0; max-width: 1080px; color: inherit; font-size: clamp(38px, 5vw, 64px); font-weight: 400; line-height: 1.18; letter-spacing: -.045em; }

.paris-concept-layout { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(48px, 8vw, 130px); align-items: start; }
.paris-concept-copy > p:nth-child(2) { margin: 28px 0 72px; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.25; letter-spacing: -.025em; }
.paris-concept-copy dl { margin: 0; border-top: 1px solid var(--paris-line); }
.paris-concept-copy dl div { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--paris-line); }
.paris-concept-copy dt { color: var(--paris-muted); font-size: 9px; letter-spacing: .14em; }
.paris-concept-copy dd { margin: 0; font-size: 11px; line-height: 1.5; }
.paris-moodboard { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: end; }
.paris-moodboard-item img { height: 100%; object-fit: cover; background: #111; }
.paris-moodboard-item-1 { grid-column: 1 / span 5; }
.paris-moodboard-item-1 img { aspect-ratio: 3 / 4; }
.paris-moodboard-item-2 { grid-column: 6 / -1; margin-bottom: 12%; }
.paris-moodboard-item-2 img { aspect-ratio: 16 / 10; }
.paris-moodboard-item-3 { grid-column: 4 / span 7; margin-top: -8%; }
.paris-moodboard-item-3 img { aspect-ratio: 16 / 9; }
.paris-moodboard figcaption,
.paris-frame-motion figcaption,
.paris-comparison-grid figcaption { margin-top: 12px; color: var(--paris-muted); font-size: 9px; letter-spacing: .12em; }

.paris-horizontal-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; margin: 0; padding: 0; overflow: visible; }
.paris-horizontal-gallery { align-items: start; }
.paris-horizontal-gallery figure:first-child { grid-row: span 2; }
.paris-horizontal-gallery figure { scroll-snap-align: start; }
.paris-development-image { background: #e4dace; }
.paris-development-image img { height: auto; }
.paris-development-image.cover img { object-fit: cover; }
.paris-development-image.contain { background: #f5f5f3; }
.paris-development-image.contain img { object-fit: contain; }
.paris-horizontal-gallery figure:hover img { transform: none; }
.paris-horizontal-gallery figcaption { display: flex; justify-content: space-between; gap: 20px; padding-top: 14px; font-size: 10px; letter-spacing: .1em; }
.paris-horizontal-gallery figcaption span { color: var(--paris-muted); }
.paris-horizontal-gallery figcaption strong { font-weight: 400; }

.paris-storyboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.paris-storyboard-grid figure { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.paris-storyboard-grid img { height: 100%; object-fit: cover; transition: transform .7s ease; }
.paris-storyboard-grid figcaption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: end; gap: 5px; padding: 22px; background: linear-gradient(0deg, rgb(0 0 0 / .82), transparent 70%); opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; font: 10px/1.3 "Courier New", monospace; letter-spacing: .1em; }
.paris-storyboard-grid figcaption strong { margin-bottom: 5px; font-size: 14px; font-weight: 400; }
.paris-storyboard-grid figure:hover img,
.paris-storyboard-grid figure:focus img { transform: scale(1.02); }
.paris-storyboard-grid figure:hover figcaption,
.paris-storyboard-grid figure:focus figcaption { opacity: 1; transform: none; }

.paris-frame-motion { background: #f2f2ef; color: #0a0a0a; }
.paris-frame-motion > h2 { margin-bottom: clamp(58px, 8vw, 110px); }
.paris-frame-motion-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.paris-frame-motion-grid figure > img,
.paris-frame-motion-grid figure > video { aspect-ratio: 16 / 9; object-fit: cover; background: #111; }
.paris-frame-motion-grid > span { font-size: 28px; }

.paris-generation-layout { display: grid; grid-template-columns: 4fr 7fr; gap: 8.33%; align-items: start; }
.paris-generation-layout > p { margin: 0; max-width: 470px; color: #c1c1bd; font-size: 18px; line-height: 1.55; }
.paris-generation-layout dl { margin: 0; border-top: 1px solid var(--paris-line); }
.paris-generation-layout dl div { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--paris-line); }
.paris-generation-layout dt { color: var(--paris-muted); font: 10px/1.4 "Courier New", monospace; letter-spacing: .14em; }
.paris-generation-layout dd { margin: 0; font-size: clamp(18px, 2vw, 28px); letter-spacing: -.02em; }
.paris-pipeline { display: grid; grid-template-columns: repeat(6, 1fr); margin: clamp(70px, 9vw, 130px) 0 0; padding: 0; border-top: 1px solid var(--paris-line); border-bottom: 1px solid var(--paris-line); list-style: none; }
.paris-pipeline li { position: relative; min-height: 110px; padding: 18px 18px 18px 0; font-size: 12px; letter-spacing: .08em; }
.paris-pipeline li:not(:last-child)::after { position: absolute; top: 50%; right: 14px; content: "→"; color: #777; }
.paris-pipeline li span { display: block; margin-bottom: 25px; color: #666; font: 9px/1 "Courier New", monospace; }

.paris-iteration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.paris-iteration-grid article > img { aspect-ratio: 16 / 9; object-fit: cover; background: #111; }
.paris-iteration-grid article > div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--paris-line); font-size: 10px; letter-spacing: .1em; }
.paris-iteration-grid strong { font-weight: 400; }
.paris-iteration-grid span { color: var(--paris-muted); }
.paris-iteration-grid .final strong { color: #fff; }

.paris-timeline { padding: clamp(28px, 4vw, 56px); border: 1px solid var(--paris-line); background: #0f0f0f; }
.paris-timeline-time { display: flex; justify-content: space-between; color: var(--paris-muted); font: 9px/1 "Courier New", monospace; }
.paris-timeline-ruler { height: 16px; margin: 12px 0 26px; border-top: 1px solid var(--paris-line); background: repeating-linear-gradient(90deg, #666 0 1px, transparent 1px 10%); }
.paris-timeline-row { display: grid; grid-template-columns: 82px 1fr; gap: 18px; align-items: center; margin: 8px 0; }
.paris-timeline-row > span,
.paris-timeline-audio > span { color: var(--paris-muted); font: 8px/1 "Courier New", monospace; }
.paris-timeline-row > div { position: relative; height: 32px; background: #171717; }
.paris-timeline-row i { position: absolute; inset-block: 0; display: block; background: #e9e9e5; }
.paris-timeline-audio { display: grid; grid-template-columns: 82px 1fr; gap: 18px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--paris-line); }
.paris-timeline-audio i { display: block; height: 18px; background: repeating-linear-gradient(90deg, #555 0 2px, transparent 2px 5px); }

.paris-final > .paris-micro-label { margin-bottom: 45px; }
.paris-final > h2 { margin-bottom: clamp(58px, 8vw, 110px); }
.paris-comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.paris-comparison-grid img { aspect-ratio: 16 / 9; object-fit: cover; }
.paris-comparison-grid figcaption { display: flex; gap: 20px; color: #eee; }
.paris-comparison-grid figcaption span { color: #666; }
.paris-final-play { display: inline-flex; margin: 70px 0 0 auto; color: #fff; font-size: 11px; }

.paris-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: clamp(80px, 11vw, 170px) var(--paris-page); border-top: 1px solid var(--paris-line); }
.paris-stats div { padding: 0 20px 0 0; }
.paris-stats strong { display: block; font-size: clamp(70px, 10vw, 150px); font-weight: 400; line-height: .86; letter-spacing: -.075em; }
.paris-stats span { display: block; margin-top: 24px; color: var(--paris-muted); font-size: 10px; letter-spacing: .15em; }

.paris-credits { display: grid; grid-template-columns: 3fr 4fr 5fr; gap: 28px; padding: clamp(88px, 11vw, 160px) var(--paris-page); border-top: 1px solid var(--paris-line); }
.paris-credits h2 { margin: 0; color: #fff; font-size: clamp(42px, 5vw, 76px); font-weight: 400; line-height: .95; letter-spacing: -.05em; }
.paris-credits dl { margin: 0; border-top: 1px solid var(--paris-line); }
.paris-credits dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--paris-line); }
.paris-credits dt { color: var(--paris-muted); font: 9px/1.4 "Courier New", monospace; letter-spacing: .12em; }
.paris-credits dd { margin: 0; font-size: 12px; line-height: 1.5; }

.paris-next { position: relative; display: block; min-height: 82svh; overflow: hidden; color: #fff; }
.paris-next > img,
.paris-next-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.paris-next > img { object-fit: cover; transition: transform 1s ease; }
.paris-next-shade { background: rgb(0 0 0 / .54); }
.paris-next > div { position: absolute; z-index: 1; left: var(--paris-page); right: var(--paris-page); bottom: 8%; }
.paris-next p { margin: 0 0 24px; font: 10px/1 "Courier New", monospace; letter-spacing: .16em; }
.paris-next h2 { margin: 0 0 38px; color: #fff; font-size: clamp(54px, 9vw, 138px); font-weight: 400; line-height: .9; letter-spacing: -.06em; }
.paris-next > div > span { padding-bottom: 6px; border-bottom: 1px solid #fff; font-size: 10px; letter-spacing: .14em; }
.paris-next:hover > img { transform: scale(1.02); }

.paris-film-modal { position: fixed; z-index: 100; inset: 0; place-items: center; padding: 58px var(--paris-page) 28px; background: rgb(0 0 0 / .96); }
.paris-film-modal:not([hidden]) { display: grid; }
.paris-film-modal video { width: min(1280px, 100%); max-height: calc(100svh - 92px); }
.paris-film-modal button { position: absolute; top: 22px; right: var(--paris-page); display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 0 5px; border: 0; border-bottom: 1px solid #fff; background: none; color: #fff; cursor: pointer; font-size: 10px; letter-spacing: .14em; }

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

@media (max-width: 900px) {
  .paris-section-title,
  .paris-concept-layout,
  .paris-generation-layout { grid-template-columns: 1fr; }
  .paris-section-title { gap: 32px; }
  .paris-concept-layout,
  .paris-generation-layout { gap: 60px; }
  .paris-storyboard-grid { grid-template-columns: repeat(2, 1fr); }
  .paris-pipeline { grid-template-columns: repeat(3, 1fr); }
  .paris-iteration-grid,
  .paris-comparison-grid { grid-template-columns: 1fr; gap: 48px; }
  .paris-credits { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 760px) {
  .paris-ai-film-detail-page { --paris-page: 18px; }
  .paris-ai-film-detail-page .page-shell { padding: 0 !important; }
  .paris-ai-film-detail-page .topbar { position: absolute; top: 8px; left: 12px; right: 12px; width: auto; transform: none; }
  .paris-ai-film-detail-page .project-tabs { position: relative; top: auto; width: calc(100% - 24px); margin: 14px auto 28px; padding: 7px; overflow-x: auto; justify-content: flex-start; border-radius: 16px; }
  .paris-ai-film-detail-page .project-tabs a { flex: 0 0 auto; min-height: 36px; padding: 8px 12px; }
  .paris-hero { min-height: 100svh; }
  .paris-hero-eyebrow { top: 116px; }
  .paris-hero-title { bottom: 17%; }
  .paris-hero-title h1 { width: 100%; max-width: none; font-size: clamp(42px, 12.2vw, 54px); line-height: .9; white-space: nowrap; }
  .paris-hero-play { right: auto; left: var(--paris-page); bottom: 11.5%; }
  .paris-hero-meta { bottom: 22px; }
  .paris-hero-meta div { display: none; }
  .paris-section { padding-top: 96px; padding-bottom: 96px; }
  .paris-section-title h2,
  .paris-frame-motion > h2,
  .paris-final > h2 { font-size: clamp(45px, 13.2vw, 62px); }
  .paris-concept-copy > p:nth-child(2) { font-size: 23px; }
  .paris-moodboard { gap: 10px; }
  .paris-moodboard-item-1 { grid-column: 1 / span 7; }
  .paris-moodboard-item-2 { grid-column: 7 / -1; }
  .paris-moodboard-item-3 { grid-column: 3 / -1; }
  .paris-horizontal-gallery { grid-auto-columns: 86vw; gap: 12px; }
  .paris-storyboard-grid { grid-template-columns: 1fr; gap: 14px; }
  .paris-storyboard-grid figcaption { opacity: 1; transform: none; background: linear-gradient(0deg, rgb(0 0 0 / .72), transparent 62%); }
  .paris-frame-motion-grid { grid-template-columns: 1fr; gap: 16px; }
  .paris-frame-motion-grid > span { transform: rotate(90deg); justify-self: center; }
  .paris-generation-layout dl div { grid-template-columns: 84px 1fr; }
  .paris-pipeline { grid-template-columns: repeat(2, 1fr); }
  .paris-pipeline li { min-height: 92px; }
  .paris-timeline { padding: 20px 12px; overflow-x: auto; }
  .paris-timeline-row,
  .paris-timeline-audio { min-width: 570px; }
  .paris-stats { grid-template-columns: repeat(2, 1fr); gap: 54px 12px; }
  .paris-stats strong { font-size: 68px; }
  .paris-next { min-height: 72svh; }
}

@media (prefers-reduced-motion: reduce) {
  .paris-reveal { opacity: 1; transform: none; }
  .paris-case *,
  .paris-case *::before,
  .paris-case *::after { transition-duration: .01ms !important; }
}

/* Paris-only palette and reflow: no clipped or horizontally scrolling content. */
body.paris-ai-film-detail-page.has-detail-backdrop { background: #c7b9a5 !important; }
.paris-ai-film-detail-page .detail-backdrop { background: #c7b9a5; filter: blur(14px) brightness(.94) saturate(.8); }
.has-detail-backdrop.paris-ai-film-detail-page .paris-section { background-color: var(--paris-paper); }
.paris-ai-film-detail-page .paris-case { color: var(--paris-ink); }
.paris-ai-film-detail-page .paris-case h2 { color: var(--paris-ink) !important; -webkit-text-fill-color: var(--paris-ink) !important; }
.paris-ai-film-detail-page .paris-next h2 { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.paris-ai-film-detail-page .paris-storyboard-grid figcaption { color: #fff; }
.paris-ai-film-detail-page .project-tabs { display: flex; flex-wrap: wrap; gap: 8px 14px; overflow: visible; padding: 14px 20px; background: #e2d8ca !important; border-color: var(--paris-line); border-radius: 0; }
.paris-ai-film-detail-page .project-tabs a { flex: 0 1 auto; min-width: 0; min-height: 44px; padding: 10px 12px; color: #625b52 !important; -webkit-text-fill-color: #625b52 !important; }
.paris-ai-film-detail-page .project-tabs a.active { color: #302d29 !important; -webkit-text-fill-color: #302d29 !important; }
.paris-ai-film-detail-page .project-tabs a.active::after { background: #947353; }
.paris-ai-film-detail-page .paris-section-title > p,
.paris-ai-film-detail-page .paris-micro-label { color: #896747; }
.paris-ai-film-detail-page .paris-frame-motion { background: #e4dace; color: var(--paris-ink); }
.paris-ai-film-detail-page .paris-generation-layout > p { color: #625b52; }
.paris-ai-film-detail-page .paris-iteration-grid .final strong,
.paris-ai-film-detail-page .paris-comparison-grid figcaption,
.paris-ai-film-detail-page .paris-final-play { color: var(--paris-ink); }
.paris-ai-film-detail-page .paris-timeline { background: #e2d8ca; overflow: visible; }
.paris-ai-film-detail-page .paris-timeline-row,
.paris-ai-film-detail-page .paris-timeline-audio { min-width: 0; grid-template-columns: 70px minmax(0, 1fr); }
.paris-ai-film-detail-page .paris-timeline-row > div { background: #c6b7a3; }
.paris-ai-film-detail-page .paris-timeline-row i { background: #766553; }
.paris-ai-film-detail-page .paris-pipeline li span { color: #625b52; }
.paris-ai-film-detail-page .paris-stats,
.paris-ai-film-detail-page .paris-credits { padding-top: 80px; padding-bottom: 80px; }
.paris-ai-film-detail-page .paris-stats strong { font-size: clamp(54px, 7vw, 96px); }
.paris-ai-film-detail-page .paris-case :is(section, figure, article, dl, dd) { min-width: 0; }
.paris-ai-film-detail-page .paris-case section[id] { scroll-margin-top: 100px; }
.paris-ai-film-detail-page .paris-case dd { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .paris-ai-film-detail-page .paris-section-title { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .paris-ai-film-detail-page .paris-horizontal-gallery { grid-template-columns: 1fr; grid-auto-flow: row; grid-auto-columns: auto; }
  .paris-ai-film-detail-page .paris-horizontal-gallery figure:first-child { grid-row: auto; }
  .paris-ai-film-detail-page .paris-section { padding-top: 56px; padding-bottom: 56px; }
  .paris-ai-film-detail-page :is(.paris-section-title h2, .paris-frame-motion > h2, .paris-final > h2) { font-size: clamp(32px, 9vw, 44px); line-height: 1.2; }
  .paris-ai-film-detail-page .paris-concept-layout { grid-template-columns: minmax(0, 1fr); }
  .paris-ai-film-detail-page .paris-hero-title h1 { font-size: clamp(36px, 10vw, 54px); white-space: normal; }
  .paris-ai-film-detail-page .paris-stats,
  .paris-ai-film-detail-page .paris-credits { padding-top: 56px; padding-bottom: 56px; }
}
