/* ============================================================
   FAAV v2.0.60 — Wild Dreams "Wide Editorial" page styles
   Ported from the approved variation (2026-07-16).
   Page-scoped: everything hangs off .wrap; chrome stays in main.css.
   Canvas peaks at 1920px. Tokens --ink/--grey come from main.css;
   --line/--r/--ease are page-local (variation values).
   ============================================================ */

.wrap {
  --line: rgba(19, 19, 17, 0.12);
  --r: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  /* clear the fixed site header (same clearance as .proj-hero) */
  padding: calc(var(--edge) * 0.65 + 3.2rem) clamp(1.2rem, 2.5vw, 3rem) 0;
  line-height: 1.6;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vh, 6rem) 0 3rem; }
.kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); margin-bottom: 1.6rem; }
.hero h1 { font-weight: 700; font-size: clamp(3rem, 8.5vw, 9rem); line-height: 0.98; letter-spacing: -0.03em; max-width: 11em; }
.standfirst { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 4vw, 5.5rem); margin-top: 3.4rem; align-items: end; }
.standfirst p { font-size: clamp(1.1rem, 1.55vw, 1.5rem); line-height: 1.55; max-width: 32em; color: var(--ink-soft); }
.factlist { display: flex; gap: clamp(1.5rem, 3vw, 3.25rem); justify-content: flex-end; flex-wrap: wrap; }
.fact small { display: block; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); margin-bottom: 0.3rem; }
.fact strong { font-size: 0.95rem; font-weight: 700; }

/* ---------- Film block (full-bleed Mux loop → Vimeo lightbox) ---------- */
.film-block { width: 100vw; margin-left: calc(50% - 50vw); padding: 3rem 0 0; }
.film { position: relative; aspect-ratio: 16 / 9; border-radius: 0; overflow: hidden; background: #0d0f0d; cursor: pointer; }
/* cover recipe as in main.css .screen mux-video: translate centering,
   transform kept free for the hover zoom */
.film mux-video {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  transition: transform 1.2s var(--ease);
}
.film:hover mux-video { transform: scale(1.025); }
.film-play { position: absolute; inset: 0; border: 0; background: linear-gradient(to top, rgba(13, 15, 13, 0.25), transparent 40%); cursor: pointer; display: flex; align-items: flex-end; padding: clamp(1.2rem, 2.5vw, 3rem); }
.film-play span { display: inline-flex; align-items: center; gap: 0.9rem; background: #fff; border-radius: 100px; padding: 0.95rem 1.7rem; font-family: inherit; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); transition: transform 0.4s var(--ease); }
.film:hover .film-play span { transform: translateY(-4px); }
.film-play svg { width: 9px; height: 11px; }

/* ---------- Story rows ---------- */
.story { padding: clamp(6rem, 12vh, 11rem) 0 0; }
.story-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 4vw, 5rem); align-items: start; }
/* same scale as .feature-title h2 so sections 01-06 read as one system */
.story h2 { font-weight: 700; font-size: clamp(2rem, 4vw, 4.5rem); letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 1.4rem; max-width: 11em; }
.story .step { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); margin-bottom: 1.2rem; }
.story p { color: var(--ink-soft); max-width: 34em; }
.story p + p { margin-top: 1em; }

/* ---------- Carousels ---------- */
.carousel { position: relative; min-width: 0; }
/* Slides are stacked in one grid cell and crossfaded. Every slide is a
   16/10 box (see .slide img / .boat-carousel .slide / .study), so the stack
   has a stable height and nothing jumps between frames. */
.track { display: grid; border-radius: var(--r); overflow: hidden; cursor: grab; touch-action: pan-y; }
.track.dragging { cursor: grabbing; }
.slide {
  grid-area: 1 / 1;
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
  transition: opacity var(--fade-dur, 2200ms) cubic-bezier(0.4, 0, 0.2, 1);
}
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.slide.cover img { object-fit: cover; }
.boat-carousel .slide { aspect-ratio: 16 / 10; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); }
.boat-carousel .slide img { grid-column: 3 / 11; grid-row: 2 / 8; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; object-position: center bottom; }
.c-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.count { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: var(--grey); font-variant-numeric: tabular-nums; }
.c-btns { display: flex; gap: 0.5rem; }
.c-btns button { width: 38px; height: 38px; padding: 0; line-height: 1; border: none; background: none; cursor: pointer; font-size: 1.05rem; color: var(--grey); transition: color 0.3s; }
.c-btns button:hover { color: var(--ink); }

/* ---------- Quote ---------- */
.quote { padding: clamp(7rem, 14vh, 12rem) 0; text-align: center; }
.quote blockquote { font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 4.5rem); letter-spacing: -0.02em; line-height: 1.15; max-width: 22em; margin: 0 auto; }
.quote cite { display: block; font-style: normal; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); margin-top: 2.2rem; }

/* ---------- Feature sections (12-col grid) ---------- */
.feature-section { padding: clamp(7rem, 14vh, 12rem) 0 0; }
.feature-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); align-items: end; margin-bottom: clamp(3rem, 7vh, 6rem); }
.feature-title { grid-column: 1 / 7; }
.feature-title .step { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); margin-bottom: 1.2rem; }
.feature-title h2 { font-weight: 700; font-size: clamp(2rem, 4vw, 4.5rem); letter-spacing: -0.025em; line-height: 1.05; max-width: 11em; }
.feature-copy { grid-column: 8 / 13; color: var(--ink-soft); max-width: 34em; }

/* ---------- Before/after comparisons ---------- */
.compare-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); row-gap: clamp(3rem, 7vh, 6rem); }
.compare-card { min-width: 0; }
.compare-card:first-child { grid-column: 1 / 11; }
.compare-card:last-child { grid-column: 3 / 13; }
.comparison { --split: 50%; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: #fff; isolation: isolate; }
.comparison img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.compare-before { position: absolute; inset: 0; z-index: 2; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare-range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparison:focus-within { outline: 2px solid var(--ink); outline-offset: 4px; }
.compare-divider { position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--split); width: 2px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(19, 19, 17, 0.12); }
.compare-handle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.1rem; box-shadow: 0 8px 30px rgba(19, 19, 17, 0.15); }
.compare-label { position: absolute; z-index: 3; top: 1rem; padding: 0.55rem 0.75rem; border-radius: 100px; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(8px); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.compare-label.before { left: 1rem; }
.compare-label.after { right: 1rem; }
.compare-card figcaption, .lottie-card figcaption { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); margin-top: 0.9rem; }

/* ---------- Lottie cards (character + BTS collage) ---------- */
.character-motion-grid, .bts-motion-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.character-card:first-child { grid-column: 2 / 6; }
.character-card:last-child { grid-column: 8 / 12; }
.lottie-frame { position: relative; overflow: hidden; border-radius: var(--r); background: #fff; }
.lottie-frame svg { display: block; width: 100% !important; height: 100% !important; }
.character-frame { aspect-ratio: 9 / 14; }
.bts-motion-grid { row-gap: clamp(4rem, 5vw, 6rem); } /* tightened with collage v2 */
.bts-motion-grid .lottie-card { min-width: 0; width: 100%; }
/* Collage v2 — ported from the Claude Design arrange session (2026-07-18):
   the baked pixel transforms decode as a re-rowing, re-expressed here as
   responsive grid placements instead of fixed offsets.
   Row 1: 01 large left + 03 square right (centered) · Row 2: 04 square left
   (centered) + 05 large right (≈1.7×). Study 02 (tall portrait) was cut. */
.bts-1 { grid-column: 1 / 9; grid-row: 1; justify-self: start; max-width: 1040px; }
/* the two squares ride ~12% right of their tracks (feedback round: "push
   them a little"); the spare columns beside them absorb the offset, so no
   overlap at any width */
.bts-3 { grid-column: 9 / 12; grid-row: 1; justify-self: start; align-self: center; max-width: 420px; translate: 12% 0; }
.bts-4 { grid-column: 1 / 5; grid-row: 2; justify-self: end; align-self: center; max-width: 420px; translate: 12% 0; }
.bts-5 { grid-column: 6 / 13; grid-row: 2; justify-self: start; align-self: end; max-width: 1040px; }
.bts-1 .lottie-frame, .bts-5 .lottie-frame { aspect-ratio: 16 / 9; }
.bts-3 .lottie-frame, .bts-4 .lottie-frame { aspect-ratio: 1; }

/* ---------- Life Cycle — six styleframe compare sliders, even 2-up grid ---------- */
/* (Wild Dreams' .compare-grid staggers two cards; Life Cycle needs a uniform
   grid, so it opts out of the first/last placement rules.) */
.lc-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); row-gap: clamp(3rem, 7vh, 6rem); }
.lc-compare-grid .compare-card:first-child,
.lc-compare-grid .compare-card:last-child { grid-column: auto; }

/* ---------- Life Cycle — animation study video grid ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.video-card { min-width: 0; }
.video-frame { position: relative; overflow: hidden; border-radius: var(--r); background: #fff; aspect-ratio: 16 / 9; }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Credits accordion ---------- */
.credits { border-top: 1px solid var(--line); margin-top: clamp(6rem, 12vh, 9rem); }
.cred-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; padding: 2rem 0; font-family: inherit; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.cred-toggle .sign { font-size: 1.2rem; line-height: 1; transition: transform 0.6s var(--ease); }
.credits.open .cred-toggle .sign { transform: rotate(45deg); }
.cred-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 1.1s var(--ease); }
.credits.open .cred-panel { grid-template-rows: 1fr; }
.cred-inner { overflow: hidden; }
.cred-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; max-width: 1100px; padding: 1rem 0 clamp(4rem, 8vh, 7rem); }
.cred small { display: block; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); margin-bottom: 0.4rem; }
.cred strong { font-size: 1rem; font-weight: 700; }

/* ---------- Next project card ---------- */
.next { display: block; position: relative; border-radius: var(--r); overflow: hidden; margin-bottom: clamp(3rem, 6vh, 5rem); }
.next img { width: 100%; height: 50vh; object-fit: cover; transition: transform 1.4s var(--ease); }
.next:hover img { transform: scale(1.03); }
.next-inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.4rem; background: linear-gradient(to top, rgba(19, 19, 17, 0.45), transparent 55%); }
.next-inner small { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: #fff; opacity: 0.85; margin-bottom: 0.6rem; }
.next-inner strong { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; color: #fff; }

/* Reveal system (.rv) now lives in main.css §8b — shared site-wide. */

/* The site hides the native cursor on a/button only (main.css §3);
   extend that to this page's interactive non-button surfaces so the
   custom ink cursor stays the only pointer. */
@media (hover: hover) and (pointer: fine) {
  .film, .track, .track.dragging, .compare-range { cursor: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .standfirst { grid-template-columns: 1fr; }
  /* The four facts read as ONE full-bleed line: a FIXED four-track grid spanning
     the whole column, so FORMAT / TECHNIQUE / YEAR / STUDIO land on the same x in
     English and French and on both project pages. (space-between would fill the
     width too, but every language would put the columns somewhere different.)
     Track ratios follow the longest value in each column — Technique carries
     "Animation traditionnelle", by far the widest string on either side. */
  .factlist {
    display: grid;
    grid-template-columns: 1.6fr 2.6fr 0.85fr 0.95fr;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    width: 100%;
  }
  .fact { min-width: 0; }
  .fact strong { white-space: nowrap; }
  /* French runs far longer here ("Animation traditionnelle" vs "Cel Animation"),
     so its values scale with the viewport to fit those same tracks. EN sizing is
     approved and untouched. */
  [lang="fr-CA"] .fact strong { font-size: clamp(0.56rem, 3.1vw, 0.95rem); }
  [lang="fr-CA"] .fact small { letter-spacing: 0.12em; }
  .story-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-head, .compare-grid, .character-motion-grid, .bts-motion-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature-title, .feature-copy { grid-column: 1 / 5; }
  .feature-copy { margin-top: 1rem; }
  .compare-card:first-child, .compare-card:last-child { grid-column: 1 / 5; }
  .lc-compare-grid { grid-template-columns: 1fr; }
  .lc-compare-grid .compare-card:first-child, .lc-compare-grid .compare-card:last-child { grid-column: auto; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .character-motion-grid { gap: 0.75rem; }
  .character-card:first-child { grid-column: 1 / 3; }
  .character-card:last-child { grid-column: 3 / 5; }
  .bts-motion-grid { row-gap: clamp(3rem, 10vw, 5rem); }
  .bts-motion-grid .lottie-card { grid-row: auto; margin-top: 0; width: auto; justify-self: stretch; }
  .bts-1 { grid-column: 1 / 5; }
  /* the two squares pair up side by side on one row */
  .bts-3 { grid-column: 1 / 3; translate: 0 0; }
  .bts-4 { grid-column: 3 / 5; left: 0; translate: 0 0; }
  .bts-5 { grid-column: 1 / 5; }
  .compare-handle { width: 42px; height: 42px; }
}

@media (max-width: 520px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* Sub-360 screens only (narrower than any current iPhone): the fact tracks get
   tight enough that the FR LABELS — not the values — clip, "TECHNIQUE" and
   "STUDIO" being the long ones. Compress the FR labels just here so 360+ keeps
   labels identical in both languages. */
@media (max-width: 359px) {
  [lang="fr-CA"] .fact small { font-size: 0.52rem; letter-spacing: 0.06em; }
}

@media (prefers-reduced-motion: reduce) {
  /* Stacked slides: only the active one may show, so this cuts the fade
     rather than revealing every frame at once. */
  .slide { transition: none; will-change: auto; }
  .cred-panel, .cred-toggle .sign { transition: none; }
}

/* ---------- Life Cycle additions (same framework; LC-only content types:
   pan-framed slides, grayscale value slide, placeholder sketch SVGs,
   ultrawide figure section). Ported from the LC variation. ---------- */
.slide.pan img { object-fit: cover; }
.slide.pan-l img { object-position: 0% 50%; }
.slide.pan-c img { object-position: 50% 50%; }
.slide.pan-r img { object-position: 100% 50%; }
.slide.value img { filter: grayscale(1) contrast(1.08); }
.slide .study { width: 100%; aspect-ratio: 16 / 10; display: block; background: #fff; }
.study path, .study circle, .study ellipse, .study line {
  fill: none;
  stroke: #3a3a38;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.study .lt { stroke: #b9b6af; stroke-width: 1.4; }
.study .cap { font-family: Gilroy, sans-serif; font-size: 11px; letter-spacing: 0.18em; fill: var(--grey); stroke: none; text-transform: uppercase; }
.wide-intro { max-width: 34em; margin-bottom: 3rem; }
.wide figure { border-radius: var(--r); overflow: hidden; margin: 0; }
.wide figure img { width: 100%; display: block; }
.wide figcaption { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); margin-top: 0.9rem; }
