/* 3D animation — page-specific sections (kit styles in service-page.css). */

/* Hero: a title card. The title sits low on the left, the credits on the right; the stage stays clear. */
.sv-animation .sv-hero-full-copy{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:20px;align-items:end;text-align:left;padding-bottom:56px}
.sv-animation .sv-hero-full-copy .sv-kicker{grid-column:1/9;grid-row:1}
.sv-animation .sv-hero-full h1{grid-column:1/9;grid-row:2/4;margin:14px 0 0;font-size:clamp(64px,9.4vw,150px);line-height:.92}
.sv-animation .sv-hero-full-text{grid-column:9/13;grid-row:2;margin:0 0 24px;max-width:400px;font-size:16px}
.sv-animation .sv-hero-full .sv-actions{grid-column:9/13;grid-row:3;justify-content:flex-start}
/* Film credit under the header, like a caption on the frame. */
.sv-animation-credit{position:absolute;z-index:1;top:88px;right:var(--sv-pad);display:flex;gap:8px;align-items:baseline;font:13px/1 var(--sans);color:#fff}
.sv-animation-credit span{color:rgba(255,255,255,.7)}
.sv-animation-credit i{font-style:normal;transition:rotate .5s var(--ease)}
.sv-animation-credit:hover i{rotate:45deg}

/* The turn: the scroll holds the camera. It opens the light act, so its top is an empty band. */
.sv-animation-turn{padding-top:72px}
.sv-animation-track{position:relative;height:420vh}
.sv-animation-sticky{position:sticky;top:0;height:100vh;height:100svh;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:auto 1fr auto;column-gap:20px;padding:100px var(--sv-pad) 44px;overflow:hidden}
.sv-animation-turn-head{grid-column:1/5;grid-row:1;position:relative;z-index:1}
.sv-animation-turn-head h2{font-size:clamp(40px,4.4vw,68px);line-height:1;margin:16px 0 22px}
.sv-animation-turn-head p{font:16px/1.6 var(--display);color:var(--sv-soft);max-width:350px}
/* The film's studio grey lifts to white and multiplies onto the surface: the ring stands in the
   page itself, lit while the page is light and gone dark with it. */
.sv-animation-stage{grid-column:5/13;grid-row:1/4;align-self:center;justify-self:center;margin:0;width:min(100%,calc(100svh - 70px));aspect-ratio:1;overflow:hidden;isolation:isolate;background:var(--sv-bg)}
.sv-animation-stage video{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.2);filter:brightness(1.08);mix-blend-mode:multiply}
.sv-animation-chapters{grid-column:1/5;grid-row:3;position:relative;z-index:1}
.sv-animation-progress{position:relative;height:1px;background:var(--sv-line);margin-bottom:6px}
.sv-animation-progress i{position:absolute;inset:0;background:var(--sv-fg);transform:scaleX(var(--scrub,0));transform-origin:left}
.sv-animation-chapters ol{list-style:none;margin:0 0 26px;padding:0}
.sv-animation-chapters li{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:8px;align-items:baseline;padding:9px 0;opacity:.28;transition:opacity .5s var(--ease)}
.sv-animation-chapters li span{grid-row:1/3;font:12px/1 var(--sans);color:var(--sv-muted)}
.sv-animation-chapters li b{font:400 24px/1.15 var(--serif);letter-spacing:-.02em}
.sv-animation-chapters li em{grid-column:2;font:normal 14px/1.45 var(--display);color:var(--sv-soft);max-height:0;overflow:hidden;transition:max-height .5s var(--ease)}
.sv-animation-chapters li.is-current{opacity:1}
.sv-animation-chapters li.is-current em{max-height:3em;margin-top:4px}

/* Motion studies: a wall of loops, edges aligned, sizes varied */
.sv-animation-studies{padding:160px var(--sv-pad) 170px}
.sv-animation-studies-head{text-align:center;max-width:760px;margin:0 auto 100px}
.sv-animation-studies-head h2{font-size:clamp(40px,5.2vw,80px);line-height:1;margin:18px 0 0}
.sv-animation-wall{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:20px}
.sv-animation-study{display:flex;flex-direction:column;min-width:0;color:inherit;transition:opacity .45s var(--ease)}
.sv-animation-study-media{position:relative;flex:1 1 auto;min-height:0;border-radius:12px;overflow:hidden;background:color-mix(in srgb,currentColor 8%,transparent)}
.sv-animation-study-media:after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);pointer-events:none}
.sv-animation-study-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:scale 1.2s var(--ease)}
.sv-animation-study:hover .sv-animation-study-media video{scale:1.04}
.sv-animation-study-cap{display:grid;grid-template-columns:28px minmax(0,1fr) auto;column-gap:8px;row-gap:3px;align-items:baseline;padding-top:14px;min-height:62px}
.sv-animation-study-cap span{font:12px/1 var(--sans);color:var(--sv-muted)}
.sv-animation-study-cap b{font:400 15px/1.2 var(--sans)}
.sv-animation-study-cap em{grid-column:2;font:normal 14px/1.45 var(--display);color:var(--sv-soft)}
.sv-animation-study-cap i{grid-column:3;grid-row:1;font-style:normal;transition:rotate .5s var(--ease)}
.sv-animation-study:hover .sv-animation-study-cap i{rotate:45deg}
@media(hover:hover) and (pointer:fine){.sv-animation-wall.is-pointing:has(.sv-animation-study:hover) .sv-animation-study:not(:hover){opacity:.55}}
/* Placement: the roll-on spans two rows; the wordmark, polish and cover set the row heights. */
.sv-animation-s1{grid-column:1/6;grid-row:1/3}
.sv-animation-s2{grid-column:6/13;grid-row:1}
.sv-animation-s2 .sv-animation-study-media{flex:none;aspect-ratio:1280/554}
.sv-animation-s3{grid-column:6/10;grid-row:2}
.sv-animation-s3 .sv-animation-study-media{flex:none;aspect-ratio:3/2}
.sv-animation-s4{grid-column:10/13;grid-row:2}
.sv-animation-s5{grid-column:1/5;grid-row:3}
.sv-animation-s6{grid-column:5/13;grid-row:3}
.sv-animation-s6 .sv-animation-study-media{flex:none;aspect-ratio:16/9}

/* Launch films: one screen, three reels, played in turn. Ends the dark act with an empty band. */
.sv-animation-films{padding:40px var(--sv-pad) 150px}
.sv-animation-films-head{max-width:1163px;margin:0 auto 54px}
.sv-animation-films-head h2{font-size:clamp(40px,4.6vw,70px);line-height:1;margin:18px 0 0}
.sv-animation-player{max-width:1163px;margin:0 auto}
.sv-animation-screen{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#000}
.sv-animation-screen video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .7s var(--ease)}
.sv-animation-screen video.is-active{opacity:1}
.sv-animation-reels{list-style:none;margin:26px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.sv-animation-reels li{display:grid;gap:14px;align-content:start}
.sv-animation-reels li .sv-link{justify-self:start;font-size:13px;color:var(--sv-muted)}
.sv-animation-reels button{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:8px;row-gap:6px;align-items:baseline;width:100%;padding:20px 0 0;border:0;background:none;color:inherit;text-align:left;opacity:.42;transition:opacity .4s var(--ease)}
.sv-animation-reels button[aria-pressed="true"]{opacity:1}
@media(hover:hover) and (pointer:fine){.sv-animation-reels button:hover{opacity:1}}
.sv-animation-bar{position:absolute;left:0;right:0;top:0;height:2px;background:var(--sv-line);overflow:hidden}
.sv-animation-bar b{position:absolute;inset:0;background:var(--sv-fg);transform:scaleX(0);transform-origin:left}
.sv-animation-reels button span{font:12px/1 var(--sans);color:var(--sv-muted)}
.sv-animation-reels button strong{font:400 26px/1.1 var(--serif);letter-spacing:-.02em}
.sv-animation-reels button em{grid-column:2;font:normal 14px/1.45 var(--display);color:var(--sv-soft)}

/* Close: on narrow screens the last line breaks as "We’ll make / it move.", never leaving "move." alone. */
.sv-animation-keep{white-space:nowrap}

/* Short desktop viewports (1280×720 and similar): the pinned turn still fits. */
@media(min-width:761px) and (max-height:800px){
 .sv-animation-sticky{padding-top:86px;padding-bottom:26px}
 .sv-animation-turn-head h2{font-size:clamp(36px,3.6vw,52px);margin:12px 0 14px}
 .sv-animation-turn-head p{font-size:15px;line-height:1.5}
 .sv-animation-chapters li{padding:5px 0}
 .sv-animation-chapters li b{font-size:20px}
 .sv-animation-chapters ol{margin-bottom:14px}
}
@media(max-width:900px){
 .sv-animation .sv-hero-full h1{grid-column:1/13;grid-row:2}
 .sv-animation .sv-hero-full-text{grid-column:1/8;grid-row:3;margin-top:22px}
 .sv-animation .sv-hero-full .sv-actions{grid-column:1/13;grid-row:4}
}
@media(max-width:760px){
 .sv-animation .sv-hero-full-media{bottom:auto;height:64svh}
 .sv-animation .sv-hero-full-media:after{background:linear-gradient(180deg,rgba(13,13,13,.4) 0%,rgba(13,13,13,0) 26%,rgba(13,13,13,0) 58%,#0d0d0d 100%)}
 .sv-animation .sv-hero-full-copy{display:block;padding-bottom:72px}
 .sv-animation .sv-hero-full h1{font-size:54px;margin:12px 0 16px}
 .sv-animation .sv-hero-full-text{margin:0 0 24px;font-size:15px}

 .sv-animation-turn{padding-top:0}
 .sv-animation-track{height:340vh}
 .sv-animation-sticky{display:flex;flex-direction:column;padding:84px var(--sv-gutter) 26px}
 .sv-animation-turn-head h2{font-size:36px;margin:10px 0 12px}
 .sv-animation-turn-head p{font-size:14px;line-height:1.5}
 .sv-animation-stage{width:min(100%,46svh);margin:auto}
 .sv-animation-chapters ol{margin-bottom:14px}
 @media(max-height:700px){.sv-animation-stage{width:min(100%,38svh)}}
 .sv-animation-chapters li{display:none}
 .sv-animation-chapters li.is-current{display:grid}

 .sv-animation-studies{padding:110px var(--sv-gutter) 110px}
 .sv-animation-studies-head{margin-bottom:56px}
 .sv-animation-studies-head h2{font-size:40px}
 .sv-animation-wall{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 12px}
 .sv-animation-study{grid-column:1/3;grid-row:auto}
 .sv-animation-s3,.sv-animation-s4{grid-column:auto}
 .sv-animation-wall .sv-animation-study-media{flex:none;aspect-ratio:var(--ar)}
 .sv-animation-study-cap{grid-template-columns:22px minmax(0,1fr) auto;min-height:0}

 .sv-animation-films{padding-bottom:110px}
 .sv-animation-films-head h2{font-size:38px}
 .sv-animation-reels{grid-template-columns:1fr;gap:22px;margin-top:18px}
 .sv-animation-reels li{gap:10px}
 .sv-animation-reels li .sv-link{margin-left:36px}
 .sv-animation-reels button{padding-top:16px}
 .sv-animation-reels button strong{font-size:22px}
}
@media(prefers-reduced-motion:reduce){
 .sv-animation-track{height:auto}
 .sv-animation-sticky{position:relative;height:auto;min-height:100svh}
 .sv-animation-stage video{transform:none}
 .sv-animation-chapters li{opacity:1;display:grid}
 .sv-animation-chapters li em{max-height:none;margin-top:4px}
 .sv-animation-progress{display:none}
}
/* Pause / play for the launch films. */
.sv-animation-screen{position:relative}
.sv-animation-toggle{position:absolute;z-index:3;left:16px;bottom:16px;padding:9px 14px;border-radius:999px;font:13px/1 var(--sans);color:#fff;background:#0d0d0db3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.sv-animation-toggle:hover{background:#0d0d0d}
