/* V47 — SquareStylist-informed editorial system, original implementation.
   Normal document flow remains the default. The opening scene uses a single
   bounded sticky interval; content is never scaled or positioned over copy. */
:root{--v47-blue:#2452f5;--v47-ink:#0e1017;--v47-paper:#fff;--v47-soft:#eef2ff;--v47-muted:#495266;--v47-ease:cubic-bezier(.22,1,.36,1)}
/* The opening scene is real work, not a decorative carousel. */
.v35-home .v47-scroll-chapter{flex:none;position:relative;isolation:isolate;width:100%;height:clamp(920px,166svh,1750px);margin:clamp(72px,8vw,132px) auto 0;color:var(--v47-ink);background:var(--v47-paper)}
.v47-pin-stage{position:sticky;top:clamp(64px,8vh,84px);width:100%;height:calc(100svh - clamp(78px,10vh,100px));min-height:540px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:0 clamp(2px,2.5vw,46px);contain:layout style;overflow:visible}
.v47-chapter-heading{flex:none;max-width:1200px;width:100%;margin:0 auto 24px;display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,270px);gap:0 25px;align-items:end}
.v47-chapter-heading .v47-small-label{grid-column:1/-1;color:var(--v47-blue);font:700 10px/1.5 'Space Grotesk',Arial,sans-serif;letter-spacing:.14em;margin-bottom:12px}
.v47-chapter-heading h2{margin:0;font:700 clamp(34px,5.2vw,78px)/.92 'Space Grotesk',Arial,sans-serif;letter-spacing:-.078em;color:var(--v47-ink);overflow-wrap:normal}
.v47-chapter-heading h2 em{font:italic 400 1.1em/.9 'Instrument Serif',Georgia,serif;color:var(--v47-blue);letter-spacing:-.065em;white-space:normal}
.v47-chapter-heading p{margin:0;font:500 clamp(12px,1.22vw,16px)/1.42 'DM Sans',Arial,sans-serif;color:#313845;max-width:250px}
.v47-triptych{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(8px,2vw,29px);align-items:start;width:min(100%,1000px,calc((100svh - 295px)*2.26));max-width:1200px;margin:0 auto;min-height:0;position:relative}
.v47-card{min-width:0;display:flex;flex-direction:column;color:var(--v47-ink);text-decoration:none;transform:translate3d(0,var(--v47-y,0px),0);opacity:var(--v47-opacity,1);backface-visibility:hidden;will-change:auto;outline-offset:6px}
.v47-card:focus-visible{outline:3px solid var(--v47-blue)}
.v47-card-frame{display:block;position:relative;width:100%;aspect-ratio:3/4;overflow:hidden;background:var(--v47-soft);border:0;box-shadow:none}
.v47-card-frame img,.v47-card-frame video{width:100%;height:100%;display:block;object-fit:cover;transform:none!important;image-rendering:auto;max-width:none;max-height:none;filter:none}
.v47-card-caption{padding-top:clamp(9px,1.5vw,18px);display:flex;flex-direction:column;gap:4px}
.v47-card-caption span{color:var(--v47-muted);font:700 10px/1.4 'DM Sans',Arial,sans-serif;letter-spacing:.06em}
.v47-card-caption strong{display:flex;justify-content:space-between;gap:5px;align-items:flex-start;font:700 clamp(13px,1.55vw,22px)/1.1 'Space Grotesk',Arial,sans-serif;letter-spacing:-.048em}
.v47-card-caption b{color:var(--v47-blue);font-weight:500;flex:none}
.v47-card:is(:hover,:focus-visible) .v47-card-caption strong{color:var(--v47-blue)}
.v47-card:is(:hover,:focus-visible) .v47-card-frame img{filter:brightness(.94)!important}
.v47-chapter-foot{display:grid;grid-template-columns:1fr 1.5fr auto;align-items:center;gap:clamp(9px,2vw,30px);width:min(100%,1000px);margin:35px auto 0;padding-top:10px;flex:none}
.v47-chapter-foot>span{font:700 10px 'Space Grotesk',Arial,sans-serif;letter-spacing:.06em}
.v47-track{height:2px;background:#dce3f8;overflow:hidden}
.v47-track-progress{height:100%;width:0;display:block;background:var(--v47-blue);transform-origin:left center;transform:scaleX(var(--v47-progress,0));will-change:transform}
.v47-chapter-foot a{font:700 11px 'Space Grotesk',Arial,sans-serif;color:var(--v47-blue);text-decoration:none;white-space:nowrap;display:flex;gap:7px;align-items:center}
.v47-chapter-foot a b{font-size:20px}
/* A real video preview appears only on hover-capable devices and only after the pointer settles.
   The original poster never disappears until loaded playback succeeds. */
.v33-works .v33-work-image .v47-hover-video{position:absolute;inset:0;z-index:2;width:100%;height:100%;object-fit:cover;opacity:0;visibility:hidden;pointer-events:none;transform:none!important;transition:opacity .3s ease,visibility .3s ease}
.v33-works .v33-work-card.is-v47-previewing .v47-hover-video{opacity:1;visibility:visible}
.v33-works .v33-work-card.is-v47-previewing .v33-work-image>img{opacity:0}
.v33-works .v33-work-card .v33-work-image>img{transition:opacity .28s ease,filter .22s ease!important}
.v33-works .v33-work-cursor{z-index:3}
/* Retain brand hierarchy and a safe text contrast on every creative page. */
.v33-works .v33-work-meta p,.v33-studio-page .v33-panel p{color:#384153}
.v33-works .v33-work-card:focus-within .v33-work-meta h2{color:var(--v47-blue)}
.v33-works .v33-work-card>a:focus-visible{outline:3px solid var(--v47-blue);outline-offset:5px}
/* Expanded services display an actual visual example, not an unexplained hover widget. */
.v33-studio-page .v33-panel{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(170px,255px);align-items:start;gap:22px 40px;padding:0 clamp(18px,5.2vw,78px) 35px}
.v47-service-copy{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px 20px;min-width:0}
.v47-service-copy p{width:100%;margin:3px 0 10px}
.v47-service-preview{margin:0;max-width:255px;min-width:0;justify-self:end;width:100%}
.v47-service-preview img{aspect-ratio:3/4;display:block;width:100%;object-fit:cover;object-position:50% 40%;background:var(--v47-soft);border:0}
.v47-service-preview figcaption{padding:9px 0;color:var(--v47-blue);font:700 10px 'Space Grotesk',Arial,sans-serif;letter-spacing:.06em}
.v33-studio-page .v33-service[open] .v47-service-preview{animation:v47ServiceRise .5s var(--v47-ease) both}
@keyframes v47ServiceRise{from{opacity:.5;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
/* Keep full source media available in the project zoom while previewing at 3:4. */
.v37-project-frame img,.v37-project-frame video{image-rendering:auto;filter:none}
.v37-lightbox .v37-lightframe img{object-fit:contain!important}
/* Accessible visual micro-feedback: controls respond, no decorative thin frames. */
.v33-works .v33-work-image,.v35-home .v35-gallery-art,.v47-card-frame,.v47-service-preview{border:0!important;outline:0;box-shadow:none!important}
@media(max-width:1000px){.v47-chapter-heading{grid-template-columns:1fr}.v47-chapter-heading p{max-width:600px;margin-top:9px}.v47-triptych{width:min(100%,900px,calc((100svh - 300px)*2.24))}}
@media(max-width:760px){
  .v35-home .v47-scroll-chapter{height:140svh;margin:54px auto 0}
  .v47-pin-stage{top:66px;height:calc(100svh - 74px);min-height:0;padding:5px 0 25px;justify-content:center}
  .v47-chapter-heading{margin-bottom:18px}
  .v47-chapter-heading .v47-small-label{font-size:9px;margin-bottom:7px}
  .v47-chapter-heading h2{font-size:clamp(37px,9vw,64px)}
  .v47-chapter-heading p{font-size:12px;max-width:300px}
  .v47-triptych{gap:7px;width:100%}
  .v47-card-caption{padding-top:7px;gap:3px}
  .v47-card-caption span{font-size:8px}
  .v47-card-caption strong{font-size:clamp(10px,2.55vw,14px);line-height:1.12}
  .v47-chapter-foot{margin-top:45px;gap:9px;grid-template-columns:1fr 1.1fr auto}
  .v47-chapter-foot>span{font-size:8px}
  .v47-chapter-foot a{font-size:9px}
  .v33-studio-page .v33-panel{grid-template-columns:1fr 120px;padding:0 15px 25px 35px;gap:12px}
  .v47-service-preview{max-width:120px}
  .v47-service-preview figcaption{font-size:8px}
}
@media(max-width:430px){.v47-chapter-heading h2{font-size:clamp(31px,8.5vw,44px)}.v47-triptych{gap:6px}.v47-card-caption strong{font-size:10px}.v47-chapter-foot>span{font-size:7px;letter-spacing:0}}
@media(prefers-reduced-motion:reduce){
  .v35-home .v47-scroll-chapter{height:auto;min-height:0;margin:50px auto}
  .v47-pin-stage{position:relative;top:auto;height:auto;min-height:0;overflow:visible;padding:0}
  .v47-card{opacity:1!important;transform:none!important;will-change:auto!important}
  .v47-track-progress{transform:scaleX(1)!important}
  .v33-studio-page .v33-service[open] .v47-service-preview{animation:none!important}
  .v33-works .v47-hover-video{display:none!important}
}
/* Mobile keeps the same three-story sequence with less pinned whitespace. */
@media(max-width:760px) and (prefers-reduced-motion:no-preference){
  .v35-home .v47-scroll-chapter{height:124svh}
  .v47-pin-stage{top:75px;height:calc(100svh - 135px);min-height:0;justify-content:flex-start;padding-top:clamp(40px,9vh,78px);padding-bottom:0}
}
/* Course principle: adapt the choreography, don't pin a tiny phone screen.
   Mobile gets the same reversible staircase as a natural-flow reveal. */
@media(max-width:760px) and (prefers-reduced-motion:no-preference){
 .v35-home .v47-scroll-chapter{height:auto!important;min-height:0;margin:54px auto 42px}
 .v47-pin-stage{position:relative!important;top:auto!important;height:auto!important;min-height:0;justify-content:flex-start;padding:24px 0 26px}
 .v47-chapter-foot{margin-top:45px}
}
