/* ==========================================================================
   INNER PAGES: shared opening section, current-page nav, cursor label
   ========================================================================== */

/* nav: the page you are on */
.nav__links a[aria-current="page"]{background:rgba(255,255,255,.14)}
.nav.is-compact .nav__links a[aria-current="page"],.nav[data-on="paper"] .nav__links a[aria-current="page"],.nav[data-on="light"] .nav__links a[aria-current="page"]{background:rgba(27,29,33,.07)}

/* ---------- hero ---------- */
.wh{position:relative;background:var(--blue);color:var(--white);min-height:100vh;min-height:100svh;padding:calc(var(--nav-h) + clamp(20px,4vh,48px)) var(--m) clamp(26px,4.4vh,52px);display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:auto 1fr auto;column-gap:var(--g);overflow:hidden}
.wh__crumb{grid-column:1 / span 6;grid-row:1;align-self:start}
.wh__crumb ol{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.wh__crumb li+li::before{content:"/";margin-right:10px;opacity:.55}
.wh__crumb a{text-decoration:underline;text-decoration-color:rgba(255,255,255,.4);text-underline-offset:4px;transition:text-decoration-color .3s}
.wh__crumb a:hover{text-decoration-color:var(--white)}
.wh__crumb [aria-current]{opacity:.8}

/* the preview: one project at a time, in the same 10px frame as the homepage showreel */
.wh__preview{grid-column:7 / -1;grid-row:1 / span 2;justify-self:end;align-self:start;width:min(100%,clamp(300px,36vw,600px));margin-top:clamp(4px,1vh,12px)}
.wh__frame{position:relative;display:block;aspect-ratio:16/10;border-radius:10px;overflow:hidden;clip-path:inset(0 round 10px);background:var(--ink);isolation:isolate}
.wh__shot{position:absolute;inset:0;clip-path:inset(0 0 0 100%);transition:clip-path 1.1s var(--ease-io)}
.wh__shot img{width:100%;height:100%;object-fit:cover;transform:scale(1.08);transition:transform 4.5s linear}
.wh__shot.is-on{clip-path:inset(0 0 0 0);z-index:2}
.wh__shot.is-on img{transform:scale(1)}
.wh__shot.is-prev{clip-path:inset(0 0 0 0);z-index:1;transition:none}
.wh__frame::after{content:"";position:absolute;inset:0;z-index:3;border-radius:10px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);pointer-events:none}
.wh__cap{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px}
.wh__cap .tnum{min-width:6ch}
.wh__cap .wh__fn{flex:1}
.wh__go{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}

.wh__h1{grid-column:1 / -1;grid-row:3;display:flex;flex-direction:column-reverse;margin:clamp(22px,4vh,44px) 0 0 -.04em}
.wh__l1{display:block;font-size:clamp(5rem,26.6vw,34rem);line-height:.8;color:var(--ink);white-space:nowrap;margin-top:-.02em}
.wh__l2{display:block;font-size:clamp(2.1rem,5.4vw,6.8rem);line-height:.86;color:var(--white);margin-bottom:clamp(4px,.8vh,10px)}
/* the answer sits in the open space beside the preview, level with its foot */
.wh__foot{grid-column:1 / span 6;grid-row:2;align-self:end;display:flex;flex-direction:column;align-items:flex-start;gap:clamp(18px,3vh,30px);padding-right:clamp(12px,3vw,48px)}
.wh__ans{font-size:clamp(1.05rem,1.5vw,1.6rem);line-height:1.3;font-weight:500;max-width:34ch;text-wrap:balance}
.wh__side{display:flex;align-items:center;gap:22px;color:rgba(255,255,255,.88)}
.wh__side .hero__scroll{display:inline-flex}

/* cursor label over the pictures */
.cur{position:fixed;left:0;top:0;z-index:70;pointer-events:none;will-change:transform}
.cur__in{display:grid;place-items:center;width:108px;height:108px;margin:-54px 0 0 -54px;border-radius:50%;background:var(--blue);color:var(--white);font-family:var(--f-meta);font-weight:700;font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;text-align:center;line-height:1.2;transform:scale(0);transition:transform .5s var(--ease)}
.cur.is-on .cur__in{transform:scale(1)}
@media (hover:hover) and (pointer:fine){html.anim [data-cur]{cursor:none}}

/* small screens */
@media (max-width:1100px){.wh__preview{width:min(100%,clamp(260px,40vw,520px))}}
@media (max-width:899px){
  .wh{grid-template-rows:auto auto auto auto;padding-top:calc(var(--nav-h) + 22px)}
  .wh__foot{grid-column:1 / -1;grid-row:4;margin-top:26px;padding-right:0}
  .wh__h1{grid-row:3}
  .wh__crumb{grid-column:1 / -1}
  .wh__preview{grid-column:1 / -1;grid-row:2;width:100%;justify-self:stretch;margin-top:22px}
  .wh__h1{margin-top:44px}
  .wh__side .hero__scroll{display:none}
}
@media (prefers-reduced-motion:reduce){.wh__shot,.wh__shot img{transition:none}}

/* hero fits the first screen: the headline and the preview size to the window's height as well as its width */
@media (min-width:900px){
  .wh{height:100vh;height:100svh;min-height:560px}
  .wh__l1{font-size:min(26.6vw,29vh,29svh)}
  .wh__l2{font-size:min(5.4vw,7.5vh,7.5svh)}
  .wh__h1{margin-top:clamp(14px,2.4vh,30px)}
  .wh__preview{width:min(100%,36vw,calc(111vh - 345px),calc(111svh - 345px));min-width:260px}
}

/* nav: inside the services section */
.nav__dd.is-cur>button{background:rgba(255,255,255,.14);border-radius:999px}
.nav.is-compact .nav__dd.is-cur>button,.nav[data-on="paper"] .nav__dd.is-cur>button,.nav[data-on="light"] .nav__dd.is-cur>button{background:rgba(27,29,33,.07)}
.nav__panel a[aria-current="page"]{color:var(--blue)}
.menu__links a[aria-current="page"]{text-decoration:underline;text-underline-offset:.12em;text-decoration-thickness:2px}

/* proper line breaks: no orphans (a script also keeps the last two words of every block together) */
p,li,dd,figcaption,blockquote,cite{text-wrap:pretty}

:where(img[width][height]){height:auto}
