@charset "UTF-8";
@font-face { font-family: 'Schoolbell'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/schoolbell.ttf') format('truetype'); }
:root {
  --paper: 0;
  --card-height: min(52vh, 29.3vw);
  --card-width: calc(var(--card-height) * .75);
  --spring: cubic-bezier(.2, 1.45, .35, 1);
  --ease: cubic-bezier(.22, .7, .24, 1);
}
* { box-sizing: border-box; }
html { scrollbar-width: none; overscroll-behavior: none; background: #000; }
html::-webkit-scrollbar { display: none; }
/* Clip horizontal overflow without creating a second vertical scroll container. */
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: #000; color: #000; overflow-x: hidden; overflow-x: clip; }
button { font: inherit; border: 0; padding: 0; color: inherit; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 1px dashed currentColor; outline-offset: 10px; }
img { display: block; user-select: none; }
svg { display: block; }
#canvas-bg { position: fixed; inset: 0; background: #000; z-index: 0; }
#site-header { position: fixed; inset: 0 0 auto; z-index: 40; pointer-events: none; height: 145px; color: white; }
.home-button { position: absolute; top: 5vh; left: 4.17vw; width: clamp(65px, 4.7vw, 110px); opacity: 0; pointer-events: none; }
.home-button img { width: 100%; height: auto; }
#site-header nav { position: absolute; right: 3.55vw; top: 6.8vh; display: flex; gap: 3.2vw; align-items: center; pointer-events: auto; }
.nav-button { width: clamp(82px, 5.4vw, 125px); padding: 3px 0; }
.nav-button.contacts { width: clamp(79px, 5.05vw, 120px); }
.nav-button img { width: 100%; height: auto; }
#site-header img { filter: invert(1); }
.wiggle:hover img, .wiggle:focus-visible img, .wiggle:hover svg, .wiggle:focus-visible svg { animation: scribble-wiggle .65s ease-in-out infinite; }
.wiggle:active { scale: .96; transition: scale .15s var(--spring); }
@keyframes scribble-wiggle {
  0%,100% { transform: translate(0,0) rotate(0); }
  20% { transform: translate(.5px,-.8px) rotate(-1.2deg); }
  43% { transform: translate(-.5px,.5px) rotate(.9deg); }
  66% { transform: translate(.6px,.3px) rotate(-.65deg); }
  83% { transform: translate(-.3px,-.4px) rotate(.45deg); }
}
#cover { position: fixed; inset: 0; z-index: 5; pointer-events: none; color: #fff; }
#cover-brand { position: absolute; left: 50%; top: 52%; transform: translate(-50%,-50%); }
.brand-button { display: flex; flex-direction: column; align-items: center; width: clamp(240px, 15.5vw, 370px); pointer-events: auto; }
.brand-button img { filter: invert(1); height: auto; }
.cover-dinosaur { width: 66.67%; margin-bottom: 5vh; }
.cover-wordmark { width: 100%; }
.brand-button:hover .cover-wordmark { animation-delay: -.22s; }
#scroll-cue { position: absolute; left: calc(50% - 18px); bottom: 4.3vh; width: 36px; height: 48px; color: #fff; pointer-events: auto; }
#scroll-cue svg { width: 100%; height: 100%; animation: cue-bounce 1.8s ease-in-out infinite; }
#scroll-cue path { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes cue-bounce { 0%,100% { transform: translateY(-4px); } 50% { transform: translateY(4px); } }
/* This is a visual mask, not a scroll container. WebKit can latch Magic Mouse
   momentum onto a fixed overflow:hidden layer instead of the document. Keep
   native wheel/touch scrolling on the document that drives our animation.
   clip-path provides the same mask on browsers without overflow:clip. */
#scroll-viewport { position: fixed; inset: 0; overflow: visible; clip-path: inset(0); z-index: 2; }
@supports (overflow: clip) {
  #scroll-viewport { overflow: clip; clip-path: none; }
}
#scroll-surface { position: absolute; width: 100%; top: 0; left: 0; will-change: transform; }
.cover-space { height: 100vh; }
#projects { position: relative; margin: 16vh 0 0 16.3vw; width: 63.7vw; }
.project-card { position: absolute; text-align: left; overflow: visible; }
.project-card { --blur-padding: 104px; }
/* Reserve the blur's full paint bounds. Filtering a tight box containing a
   clipped, scaling photo and an animated SVG can leave stale WebKit edge tiles.
   The photo owns a stable padded filter surface; labels and ink are siblings. */
.project-effects { position: absolute; inset: calc(-1 * var(--blur-padding)); overflow: hidden; contain: paint; isolation: isolate; pointer-events: none; }
.project-visual { position: absolute; inset: 0; filter: blur(0px); }
.project-card.is-render-active { will-change: transform; }
.project-card.is-render-active:not(.has-cached-blur) .project-visual { will-change: filter; }
.project-blur-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
/* Add the two weighted, premultiplied images without darkening halfway through
   a blend. Isolation confines blending to this photo's padded paint bounds. */
.has-cached-blur .project-visual { filter: none; }
.has-cached-blur .project-visual, .project-blur-layer { mix-blend-mode: plus-lighter; }
.project-crop { position: absolute; inset: var(--blur-padding); overflow: hidden; background: #fff; }
.project-photo { width: 100%; height: 100%; object-fit: cover; transition: transform .48s var(--spring), opacity .3s ease; }
.project-card.is-preview .project-photo, .project-card:focus-visible .project-photo { transform: scale(1.12); opacity: .48; }
.project-label { position: absolute; inset: 0; z-index: 2; padding: 0 12%; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(5px); transition: opacity .2s ease, transform .35s var(--spring); color: #000; }
.project-label strong { font-size: clamp(21px,1.9vw,40px); font-weight: 750; letter-spacing: -.025em; line-height: 1.08; }
.project-label span { font-size: clamp(14px,1.2vw,25px); margin-top: 4px; line-height: 1.2; }
.project-card.is-preview .project-label, .project-card:focus-visible .project-label { opacity: 1; transform: translateY(0); }
.scribble-frame { position: absolute; left: -5.4%; top: -4%; width: 110.8%; height: 108%; overflow: visible; z-index: 3; pointer-events: none; }
.scribble-frame path { fill: none; stroke: #080808; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .5s cubic-bezier(.35,.05,.6,1), opacity .12s; }
.project-card.is-preview .scribble-frame path, .project-card:focus-visible .scribble-frame path { stroke-dashoffset: 0; opacity: 1; }
#footer { position: relative; margin: 20vh 2.2vw 0; height: 11.6vh; min-height: 100px; padding: 3.05vh 1.55vw 0; }
.footer-rule { position: absolute; top: 0; left: 0; right: 0; border-top: 1px solid #cecece; }
#footer-home img { width: clamp(90px,5.45vw,125px); height: auto; }
#gallery { position: fixed; inset: 0; z-index: 30; color: #fff; background: #000; opacity: 0; visibility: hidden; transition: opacity .32s ease, visibility .32s; }
#gallery.is-open { opacity: 1; visibility: visible; }
.gallery-image-boundary { position: absolute; left: 14.3vw; width: 61.2vw; top: 0; height: 100%; overflow: hidden; }
.gallery-image { position: absolute; left: 50%; top: 0; height: 100%; width: auto; max-width: none; opacity: 0; visibility: hidden; transform: translateX(-50%); backface-visibility: hidden; }
/* Only the explicit slide/fade animation owns opacity. A hidden outgoing image
   must disappear immediately before its offscreen transform is reset. */
.gallery-image.active { opacity: 1; visibility: visible; }
.gallery-navigation { position: absolute; left: 5.25vw; bottom: 8.4vh; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gallery-arrow { width: 40px; height: 46px; transition: transform .25s var(--spring); }
.gallery-arrow:active { transform: scale(.86); }
.gallery-arrow svg { width: 100%; height: 100%; }
.gallery-arrow path { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#gallery-counter { position: absolute; top: calc(100% + 14px); white-space: nowrap; font-size: 10px; letter-spacing: .06em; color: #777; }
.gallery-information { position: absolute; right: 3.8vw; bottom: 7.3vh; width: 16vw; max-height: 65vh; overflow-y: auto; scrollbar-width: none; font-size: clamp(12px,.73vw,16px); line-height: 1.12; }
.gallery-information h1 { font-size: clamp(19px,1.25vw,28px); line-height: 1.2; font-weight: 500; margin: 0 0 7px; }
.gallery-information p { margin: 0; }
.project-facts { margin-top: 7.8vh; }
.project-facts p + p { margin-top: 5px; }
.project-description { margin-top: 24px !important; }
.info-step { opacity: 0; transform: translateY(9px); transition: opacity .35s ease, transform .45s var(--spring); }
.gallery-information.revealed .info-step { opacity: 1; transform: translateY(0); }
.gallery-information.revealed .info-step:nth-child(2) { transition-delay: 70ms; }
.gallery-information.revealed .info-step:nth-child(3) { transition-delay: 140ms; }
.gallery-information.revealed .info-step:nth-child(4) { transition-delay: 210ms; }
#gallery-back { position: absolute; left: 4.17vw; top: calc(5vh + clamp(65px,4.7vw,110px) * .73 + clamp(48px,5.7vh,76px)); color: #d8d8d8; font-family: 'Schoolbell', 'Comic Sans MS', cursive; font-size: clamp(14px,.83vw,17px); line-height: 1.02; text-align: left; letter-spacing: .01em; transition: color .2s; }
.back-lettering { display: inline-block; }
.back-lettering > span { display: block; }
.back-circle { position: absolute; left: -14px; top: -11px; width: calc(100% + 28px); height: calc(100% + 22px); overflow: visible; pointer-events: none; }
.back-circle path { stroke: currentColor; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .45s cubic-bezier(.35,.05,.6,1), opacity .12s; }
#gallery-back:hover .back-circle path, #gallery-back:focus-visible .back-circle path { stroke-dashoffset: 0; opacity: 1; }
#gallery-back:hover .back-lettering, #gallery-back:focus-visible .back-lettering { animation: scribble-wiggle .65s ease-in-out infinite; }
#gallery-back:hover { color: #fff; }
#transition-veil { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 50; transition: opacity .22s ease; }
#transition-veil.active { opacity: 1; pointer-events: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.no-script { position: fixed; inset: 45% 10%; color: white; z-index: 100; text-align: center; }
@media (max-width: 1250px) {

 .gallery-information { right: 3vw; width: 18vw; line-height: 1.25; }
 .gallery-image-boundary { left: 13vw; width: 62vw; }
 .project-facts { margin-top: 5vh; }
 .project-description { margin-top: 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
}

a.home-button,a.nav-button,a.project-card{display:block;text-decoration:none;color:inherit;-webkit-tap-highlight-color:transparent}a:focus-visible{outline:1px dashed currentColor;outline-offset:10px}.photo-caption{font-size:14px;line-height:1.5}
