/* Onyx Studio - / page styles. Loaded after site.css. */

.hero .lede{ position:absolute; left:var(--gutter); bottom:clamp(32px,7vh,72px); max-width:calc(100% - 2 * var(--gutter) - min(300px,32vw)); font-size:clamp(40px,5.4vw,92px); line-height:1; letter-spacing:-.03em; color:#fff; }
.hero .lede span{ display:inline-block; }
/* The page's main heading is the small descriptive line; the slogan under it is the visual headline. */
.hero .lede .topic{ font-size:18px; line-height:1.3; letter-spacing:0; font-weight:400; color:var(--pink); margin-bottom:14px; }
.hero .lede .slogan{ font-weight:500; }
@media (max-width:760px){ .hero .lede{ max-width:none; right:var(--gutter); font-size:min(8.2vw,40px); } .hero .now{ display:none; } }
/* One step of a stepped section: the scroll distance between two of its states (see Steps in site.js) */
:root{ --stepL:80vh; }
/* Figures: three, with the certification as a plain line under the rail */
/* The statement and the figures are one stop (see home.js): less space above the statement so both fit one screen on a desktop */
@media (min-width:761px){ .statement{ padding-top:clamp(104px,13vh,150px); } }
.figs ol{ grid-template-columns:repeat(3,1fr); }
.figs .iso{ margin-top:clamp(18px,1.8vw,26px); color:var(--muted); font-size:15px; }
.figs .iso b{ color:var(--text); font-weight:600; }
@media (max-width:760px){ .figs ol{ grid-template-columns:1fr 1fr; } .figs .iso{ margin-top:30px; } }
/* Grow: one screen; the picture opens by itself */
.grow{ height:100dvh; position:relative; }
.grow .art .soft{ position:absolute; inset:0; width:100%; height:100%; opacity:0; filter:brightness(1.2); }
.case .media video.over{ position:absolute; top:-2px; left:0; height:calc(100% + 4px); }
/* once a card's reel is playing, its still steps out so sub-pixel rounding can never show a sliver of it */
.case .media img{ transition:opacity .3s; }
.case .media.vplay img:not(.glogo){ opacity:0; }
/* disciplines: one muted line at the bottom of each card */
.case .meta .disc{ grid-column:1; grid-row:3; margin:4px 0 0; color:var(--muted); font-size:13px; line-height:1.4; letter-spacing:.01em; }
.case .meta > .btn{ grid-column:2; grid-row:2 / 4; align-self:end; }
@media (max-width:760px){ .case .meta .disc{ grid-row:auto; } .case .meta > .btn{ grid-column:1; grid-row:auto; justify-self:start; margin-top:8px; } }
/* Game logos: official artwork, unaltered colours, sitting on the footage bottom-left */
.case .media::after{ content:""; position:absolute; inset:0; z-index:1; pointer-events:none; background:radial-gradient(120% 90% at 0% 100%,rgba(0,0,0,.55) 0%,rgba(0,0,0,0) 45%); }
.case .media img.glogo{ position:absolute; z-index:2; left:clamp(14px,1.6vw,24px); bottom:clamp(12px,1.4vw,22px); width:auto; max-width:46%; margin:0; object-fit:contain; height:var(--lh,40px); filter:drop-shadow(0 2px 10px rgba(0,0,0,.45)); }
.g-bf6{ --lh:clamp(16px,1.7vw,26px); }
.g-som{ --lh:clamp(44px,4.6vw,72px); }
.g-judas{ --lh:clamp(22px,2.2vw,34px); }
.g-ja3{ --lh:clamp(44px,4.6vw,72px); }
.g-cod{ --lh:clamp(36px,3.8vw,58px); }
.hero .now .hl{ display:block; height:var(--lh,36px); width:auto; max-width:100%; margin:0 0 10px; transition:opacity .2s; filter:drop-shadow(0 2px 10px rgba(0,0,0,.45)); }
.hero .now .hl.g-bf6{ --lh:22px; }
.hero .now .hl.g-som{ --lh:66px; }
.hero .now .hl.g-judas{ --lh:28px; }
.hero .now .hl.g-ja3{ --lh:66px; }
.hero .now .hl.g-cod{ --lh:46px; }
/* Services */
.services{ position:relative; height:calc(100dvh + 3 * var(--stepL)); }
.strip{ transition-duration:.8s; }
/* Selected work: held for one step per project */
@media (min-width:761px){ .work{ height:calc(100dvh + 4 * var(--stepL)); } .work .pin{ position:sticky; top:0; }
  /* Carousel look (see home.js): the neighbours at each side are dimmed and dissolve into the page at the screen edge */
  .work .pin::before,.work .pin::after{ content:""; position:absolute; top:190px; bottom:0; width:clamp(28px,4.5vw,84px); z-index:2; pointer-events:none; }
  .work .pin::before{ left:0; background:linear-gradient(90deg,#000,rgba(0,0,0,0)); }
  .work .pin::after{ right:0; background:linear-gradient(270deg,#000,rgba(0,0,0,0)); }
  .case.side{ cursor:pointer; } .case.side .meta{ pointer-events:none; } .case.ghost{ pointer-events:none; }
}
/* Values: title screen, three values, and the sweep away. Testimonials: two, and the sweep away (the title is not a step) */
.values{ height:calc(100dvh + 4 * var(--stepL)); }
.voices{ height:calc(100dvh + 2 * var(--stepL)); }
.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{ bottom:28px; font-size:16px; }
  /* Open card on a phone: the text covers the lower half of the picture, so the shade starts higher and is strongest from the bottom-left corner out */
  .strip.on::after{ background:linear-gradient(180deg,rgba(0,0,0,0) 20%,rgba(0,0,0,.7) 56%,rgba(0,0,0,.92) 100%), radial-gradient(120% 80% at 0% 100%,rgba(0,0,0,.7),rgba(0,0,0,0) 75%); }
}
.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; } }
/* transparent sweep layers must never block clicks on what sits beneath them */
.values .stick,.voices .stick{ pointer-events:none; }
.values .slide,.voices .slide{ pointer-events:auto; }
/* Engagement: a plain section one screen tall (it used to hold the screen for four); the values sweep uncovers it */
.steps{ height:auto; }
/* Engagement steps are numbered: 01, 02, 03 in white ahead of each pink title. The number is drawn by the stylesheet, so the
   title's own text (and what a screen reader says) is unchanged; --n is its opacity, set by home.js as the step comes in. */
.steps.heads ol{ counter-reset:step; }
.steps.heads li{ counter-increment:step; --n:1; }
.steps.heads li h3{ max-width:13ch; }
.steps.heads li h3::before{ content:counter(step,decimal-leading-zero) "\00a0"; color:#fff; opacity:var(--n); }
.steps .stick{ position:relative; min-height:100dvh; padding:112px var(--gutter) 36px; display:flex; flex-direction:column; justify-content:center; overflow:hidden; }
@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; }
.gridfx .gn{ display:none; }
/* every row has one fixed height (half a column width); logos scale inside their box, so no logo can stretch a row */
.logos{ --lcols:5; position:relative; display:grid; grid-template-columns:repeat(var(--lcols),minmax(0,1fr)); grid-auto-rows:calc((100vw - 2 * var(--gutter)) / var(--lcols) / 2); border-top:1px solid var(--line-strong); border-left:1px solid var(--line-strong); }
.logos div{ position:relative; display:flex; align-items:center; justify-content:center; padding:clamp(8px,1.4vw,22px); overflow:hidden; border-right:1px solid var(--line-strong); border-bottom:1px solid var(--line-strong); min-width:0; }
.logos img{ max-height:min(46px,100%); max-width:76%; width:auto; object-fit:contain; filter:grayscale(1) brightness(1.6); opacity:.72; transition:filter .3s, opacity .3s; }
.logos img.tall{ max-height:min(62px,100%); }
.logos img.badge{ max-height:min(74px,100%); }
.logos img.wide{ max-height:min(60px,100%); }
.logos img.wide.tall{ max-height:min(76px,100%); }
.logos img.mono{ filter:brightness(0) invert(1); opacity:.72; }
.logos div:hover img.mono{ filter:brightness(0) invert(1); opacity:1; }
.logos img.colour{ filter:none; opacity:.85; }
.logos div:hover img.colour{ opacity:1; }
/* once the drawn grid is active, its own nodes replace the static corner squares (no double squares) */
.logos.fx::before,.logos.fx::after,.logos.fx div::before,.logos.fx div::after{ display:none; }
.logos div.bigcell{ padding:clamp(4px,.6vw,8px); }
.logos img.big{ max-height:80%; max-width:72%; }
/* drawn grid replaces the static borders, so a short last row gets lines only around its own boxes */
.logos.fx{ border:0; }
.logos.fx > div{ border:0; }
.gridfx .gb{ position:absolute; background:var(--line-strong); }
.logos .word{ }
/* last row: the remaining logos, then a quiet count that fills the rest of the row */
/* the next section starts flush under the wall and would cover the wall's last line and the lower half of its corner squares */
.clients{ padding-bottom:4px; }
@media (max-width:900px){ .logos{ --lcols:4; } }
@media (max-width:520px){ .logos{ --lcols:2; } }
/* Contact */
.contact{ position:relative; height:220dvh; }
/* #contact target: the section starts 200dvh up, hidden under the testimonials, so links land here instead: the testimonials' last stop, where they have swept away and this screen shows */
.contact .cmark{ position:absolute; left:0; top:calc(100dvh + 2px); width:1px; height:1px; pointer-events:none; }
.layer{ position:absolute; inset:0; }
.layer.front{ pointer-events:none; }
.layer.front h2,.layer.front .row{ pointer-events:auto; }
.buildlink{ pointer-events:auto; display:block; cursor:pointer; }
.buildlink .solid{ transition:color .25s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.buildlink .solid{ position:relative; }
.buildlink .solid .arr{ position:absolute; right:0; left:auto; top:100%; bottom:auto; font-size:.42em; line-height:1; margin-top:.08em; opacity:0; transform:translateY(-10px); transition:opacity .25s, transform .35s cubic-bezier(.2,.7,.2,1); }
.buildlink:hover .solid,.buildlink:focus-visible .solid{ color:#fff; }
.buildlink:hover .solid .arr,.buildlink:focus-visible .solid .arr{ opacity:1; transform:none; color:var(--pink); }
@media (max-width:760px){ .layer.ghost .solid{ text-align:left; font-size:clamp(72px,24vw,140px); } }
.layer.ghost .solid{ text-align:right; }
/* "Let's build" keeps its place below the nav. At the very end of the page the footer pushes the pinned screen up by its own height,
   and the lettering used to ride up with it, under the header. The link is now sticky inside its layer, so it holds while the screen moves.
   overflow:clip (unlike hidden) does not make the pinned screen a scroll container; browsers without it keep the old behaviour. */
.contact .cstick{ overflow:clip; }
.buildlink{ position:sticky; top:max(110px,14vh); width:fit-content; margin:max(110px,14vh) var(--gutter) 0 auto; }
.layer.ghost .gtext{ position:relative; top:auto; right:auto; }
@media (max-width:760px){ .buildlink{ top:110px; width:auto; margin:110px var(--gutter) 0; } }
.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,.work{ height:auto !important; }
  .work .pin{ position:relative; overflow-x:auto; }   /* no stepping without motion: the projects scroll sideways instead */
  .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; }
}
