/* Onyx Studio - /work/south-of-midnight/ page styles. Loaded after site.css and case.css. */

/* ---- South of Midnight additions ---- */
/* Hero without reel yet: the poster still carries the slow push-in */
.chero .tag{ position:absolute; right:var(--gutter); top:96px; font-size:12px; padding:5px 8px; background:rgba(0,0,0,.6); border:1px dashed var(--pink-soft); color:#fff; z-index:2; }
/* Gallery slots awaiting hi-res stills: same size as a still, so the final images drop straight in */
.gallery figure .m.phd{ position:relative; display:grid; place-items:center; background:var(--surface); border:1px dashed rgba(252,149,194,.45); }
.gallery figure .m.phd span{ font:600 clamp(14px,1.2vw,18px) var(--display); letter-spacing:.1em; text-transform:uppercase; color:var(--dim); text-align:center; padding:0 20px; }
.gallery figure .m.phd span b{ display:block; color:var(--pink-soft); font-weight:600; margin-bottom:6px; }
@media (max-width:760px){ .gallery figure .m.phd{ height:auto; aspect-ratio:16/9; } }
/* Three testimonial slides instead of four press slides */
.press{ height:480vh; }
.figs .solid.ph{ border:0; }
.strip.on .body{ opacity:1; transform:none; pointer-events:auto; transition:opacity .4s ease .5s, transform .5s ease .5s; }
.strip .body .t{ display:block; font-size:clamp(28px,2.8vw,44px); line-height:1; letter-spacing:-.01em; margin-bottom:12px; }
.strip .body .d{ display:block; color:rgba(255,255,255,.86); }
.strip .body .s{ display:block; margin:12px 0 18px; color:var(--pink-soft); font-size:13px; }
@media (max-width:760px){
  .services{ height:auto; } .services .stick{ position:relative; height:auto; padding:100px var(--gutter) 60px; }
  .services .intro{ flex-wrap:wrap; } .services .intro p{ margin-left:0; }
  .strips{ flex-direction:column; } .strip{ flex:none; height:80px; transition:height .7s cubic-bezier(.7,0,.2,1); } .strip.on{ height:460px; }
  .strip .lab{ writing-mode:horizontal-tb; transform:none; bottom:28px; }
}
.resolve .stick{ position:sticky; top:0; height:100dvh; overflow:hidden; display:grid; grid-template-columns:repeat(var(--cols),1fr); padding:0 var(--gutter); align-items:center; }
@media (max-width:760px){ .resolve{ height:220vh; } .resolve .stick{ grid-template-columns:1fr; align-content:center; gap:40px; } .resolve .copy,.resolve .view{ grid-column:1; } }
.voices{ height:700vh; }
.steps .stick{ position:sticky; top:0; height:100dvh; padding:112px var(--gutter) 36px; display:flex; flex-direction:column; justify-content:center; overflow:hidden; }
.steps .gtext .solid{ font-size:calc(var(--glyphBig) * .8); }
@media (max-width:760px){
  .steps{ height:auto; } .steps .stick{ position:relative; height:auto; padding:100px var(--gutter) 60px; }
  .steps .intro h2,.steps .intro p{ grid-column:1 / -1; } .steps .intro p{ margin-top:16px; }
  .steps ol{ grid-template-columns:1fr; gap:40px; } .rail{ display:none; }
}
.gridfx{ position:absolute; inset:0; pointer-events:none; z-index:2; }
/* Contact */
.contact{ position:relative; height:240dvh; }
.layer{ position:absolute; inset:0; }
.buildlink:hover .solid,.buildlink:focus-visible .solid{ color:#fff; transform:translateX(-8px); }
@media (max-width:760px){ .layer.ghost .gtext{ left:var(--gutter); right:var(--gutter); top:110px; } .layer.ghost .solid{ text-align:left; font-size:clamp(72px,24vw,140px); } }
.layer.ghost .solid{ text-align:right; }
.layer.front .row{ display:flex; gap:14px; flex-wrap:wrap; margin-top:30px; align-items:center; }
@media (prefers-reduced-motion: reduce){
  .grow,.resolve,.steps,.services{ height:auto !important; }
  .grow .stick,.resolve .stick,.steps .stick,.services .stick{ position:relative; height:auto; }
  .grow .stick,.resolve .stick{ height:100dvh; } .grow .frame{ clip-path:none; } .grow .art img{ opacity:1; } #growCvs{ display:none; } .grow .cap,.grow .shade{ opacity:1; }
  .resolve .final{ opacity:1; } .steps li .q,.steps li p{ opacity:1; }
}
/* Case hero */
.chero{ position:relative; height:100dvh; min-height:600px; overflow:hidden; isolation:isolate; }
.back{ position:absolute; left:var(--gutter); top:96px; font-size:14px; color:rgba(255,255,255,.8); }
.gallery figure img{ width:108%; max-width:none; height:100%; object-fit:cover; margin-left:-4%; display:block; }
@media (max-width:760px){ .gallery .pin{ height:auto; display:block; padding:0 0 24px; } .gallery .rail2{ flex-direction:column; padding:0; width:auto; gap:10px; } .gallery figure{ width:100%; } .gallery figure .m{ height:auto; aspect-ratio:16/9; } .gallery figure img{ width:100%; margin:0; } .gallery figcaption{ padding:0 var(--gutter); } }
/* Full-bleed band: the still holds the screen, already in place, drifting slightly; the copy lists out over it */
.band{ position:relative; height:220vh; }
/* Tech art: sightline HUD */
.scope{ position:relative; height:240vh; }
/* Press sweep */
.press{ height:600vh; }
/* Outro */
.outro{ position:relative; min-height:100dvh; overflow:hidden; isolation:isolate; display:grid; align-content:end; padding:140px var(--gutter) clamp(48px,8vh,90px); }
.outro .gtext .solid{ font-size:calc(var(--glyphBig) * .62); }
@media (prefers-reduced-motion: reduce){ .scope,.band{ height:auto; } .scope .stick,.band .stick{ position:relative; min-height:100dvh; } }
@media (max-width:760px){ .band{ height:170vh; } .band .copy .body{ font-size:15px; } }
.figs .gtext .solid{ font-size:calc(var(--glyphBig) * .8); }
/* How we worked: at the foot of the page, in normal flow (no slide-under), shorter hold */
.landing{ margin-top:0; height:320vh; }
.landing .stick{ z-index:auto; }
.landing ol{ grid-template-columns:repeat(4,1fr); }
.landing .intro .num{ grid-column:1 / -1; font:600 16px var(--display); letter-spacing:.08em; color:var(--pink); margin-bottom:12px; }
.landing .intro h2{ grid-column:1 / -1; }
.landing .intro p{ grid-column:2 / span 4; color:var(--text); font-size:clamp(16px,1.2vw,19px); margin-top:18px; }
.landing .gtext .solid{ font-size:calc(var(--glyphBig) * .5); }
.landing li h3{ font-size:clamp(20px,1.6vw,26px); }
.landing li p{ font-size:15px; }
@media (max-width:760px){ .landing{ height:auto; } .landing ol{ grid-template-columns:1fr; } .landing .intro p{ grid-column:1 / -1; } }
/* VFX reel slot under Creating magic: the loop holds the screen, already in place with a slight drift; a small caption and a pause control only */
.reel{ position:relative; height:180vh; }
.reel .stick{ position:sticky; top:0; height:100dvh; overflow:hidden; isolation:isolate; background:var(--bg); }
.reel .bgm{ position:absolute; inset:-6% 0; z-index:-2; }
.reel .bgm video{ width:100%; height:100%; object-fit:cover; display:block; }
.reel .stick::after{ content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(0deg,rgba(0,0,0,.72),rgba(0,0,0,0) 32%),linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,0) 16%); }
.reel .cap{ position:absolute; left:var(--gutter); right:var(--gutter); bottom:clamp(28px,6vh,64px); display:flex; align-items:flex-end; gap:20px; }
.reel .cap p{ font-size:14px; color:rgba(255,255,255,.82); max-width:46ch; }
.reel .cap b{ display:block; font:600 16px var(--display); letter-spacing:.08em; text-transform:uppercase; color:var(--pink); margin-bottom:6px; }
.reel .cap .acts{ margin-left:auto; display:flex; align-items:center; gap:10px; flex:none; }
.reel .cap button{ background:rgba(0,0,0,.4); border:1px solid rgba(255,255,255,.35); color:#fff; font:500 13px var(--body); padding:9px 12px; cursor:pointer; }
.reel .cap button:hover{ border-color:#fff; }
@media (max-width:760px){ .reel{ height:auto; } .reel .stick{ position:relative; height:auto; } .reel .bgm{ position:relative; inset:auto; z-index:auto; aspect-ratio:16/9; overflow:hidden; } .reel .stick::after{ display:none; } .reel .cap{ position:static; padding:14px var(--gutter) 6px; align-items:center; flex-wrap:wrap; gap:12px; } .reel .cap p{ font-size:13px; } }
@media (prefers-reduced-motion: reduce){ .reel{ height:auto; } .reel .stick{ position:relative; } }
