@font-face {
  font-family: "Geist";
  src: url("/fonts/GeistVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: block;
}

:root {
  --ink: #000;
  --soft: #6b6b6b;
  --faint: #bdbdbd;
  --line: #e4e4e4;
  --ground: #fff;
  --ease: cubic-bezier(0.25, 0.68, 0.2, 1);
  --move: cubic-bezier(0.55, 0, 0, 1);
  --side: 40px;
}
@media (max-width: 720px) { :root { --side: 16px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ground); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--ground); color: var(--ink);
  font-family: "Geist", sans-serif; font-weight: 350; font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ------------------------------------------------------------------ nav */

.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 40; height: 96px; padding: 0 var(--side);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 450; }
.brand img { width: 34px; height: 34px; }
.burger { display: flex; align-items: center; gap: 14px; font-size: 17px; padding: 8px 0 8px 12px; position: relative; }
.burger__lines { display: flex; flex-direction: column; gap: 4px; width: 26px; }
.burger__lines i { display: block; height: 1.5px; background: var(--ink); transform-origin: center; }
.burger__label { display: inline-grid; overflow: hidden; height: 1.5em; }
.burger__label span { grid-area: 1 / 1; transition: transform 0.6s var(--ease); }
.burger__label span + span { transform: translateY(110%); }
.burger[data-open="true"] .burger__label span:first-child { transform: translateY(-110%); }
.burger[data-open="true"] .burger__label span + span { transform: none; }

/* while the menu is open the bar stays on top of it, wherever the page was scrolled to */
.menu-open .nav { position: fixed; }

/* the menu: a white sheet that wipes down over the page */
.menu {
  position: fixed; inset: 0; z-index: 30; background: var(--ground);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  display: grid; grid-template-rows: 1fr auto; padding: 140px var(--side) 40px;
}
.menu__links { list-style: none; align-self: start; }
.menu__links a { display: block; font-weight: 100; font-size: clamp(44px, 7vw, 96px); line-height: 1.12; letter-spacing: -0.01em; }
.menu__links a span { display: inline-block; transition: transform 0.6s var(--ease); }
.menu__links a:hover span { transform: translateX(24px); }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; font-size: 16px; color: var(--soft); border-top: 1px solid var(--line); padding-top: 20px; }

/* ------------------------------------------------------------------ type */

.h1 { font-weight: 100; letter-spacing: -0.015em; line-height: 0.98; }
.h1 .w { display: inline-block; }
.h1 .char { display: inline-block; }
.lead { font-size: 22px; line-height: 1.45; max-width: 31ch; }
.small { font-size: 16px; color: var(--soft); max-width: 40ch; }
@media (max-width: 720px) { .lead { font-size: 19px; } .small { font-size: 15px; } }

/* a button whose label rolls up letter by letter (Osmo's css character stagger) */
.pill {
  display: inline-flex; align-items: center; height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 17px; font-weight: 400; white-space: nowrap;
}
.roll { display: inline-flex; overflow: hidden; line-height: 1.4; }
.roll span { display: inline-block; white-space: pre; text-shadow: 0 1.4em currentColor; transition: transform 0.55s var(--ease); transition-delay: calc(var(--i) * 14ms); }
a:hover .roll span, button:hover .roll span { transform: translateY(-1.4em); }

/* ------------------------------------------------------------------ the film */

.film { position: relative; overflow: hidden; }
.film video, .film img { width: 100%; height: 100%; object-fit: cover; }
.film__cap { position: absolute; left: var(--side); bottom: 24px; color: #fff; font-size: 15px; display: flex; gap: 24px; }
.film__cap b { font-weight: 450; }

/* ------------------------------------------------------------------ what comes next */

.next { min-height: 110vh; padding: 120px var(--side); }
.next p { font-size: 16px; color: var(--faint); }

/* ------------------------------------------------------------------ the iridescent accent (irid.js) */

[data-irid="glass"] { color: #fff; background: var(--film, #000); }
[data-irid="pearl"] { color: #000; background: var(--film, #e7e7ea); }
[data-irid="rim"] { color: #fff; border: 1.5px solid transparent; background: var(--fill, #000) padding-box, var(--film, #777) border-box; }
[data-irid="line"] { background: var(--film, #fff); }

/* ------------------------------------------------------------------ glass buttons (glass.js) */

.glass { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: transparent; white-space: nowrap; }
.glass__canvas { position: absolute; left: -24px; top: -24px; width: calc(100% + 48px); height: calc(100% + 48px); z-index: -1; pointer-events: none; }
.glass--flat { background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(0, 0, 0, 0.08); }
[data-glass="holo"] { color: #fff; }

/* ------------------------------------------------------------------ the caowlstudios.com menu button (Hamburger.vue) */

/* Two lines, no label, with the .com hover (top line stretches to 1.2, bottom draws in to 0.8, gsap 0.2s
   power1.out). Sized down to this site: lines about as wide as the wordmark is tall times two, and as
   light as the type. */
.burger--com { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 44px; height: 44px; padding: 0 4px; color: var(--ink); position: relative; z-index: 41; }
.burger--com__line { display: block; width: 100%; height: 1.5px; background: currentColor; transform-origin: center; }
@media (max-width: 720px) { .burger--com { width: 40px; height: 40px; gap: 6px; } }

/* ------------------------------------------------------------------ the caowlstudios.com cursor */

.com-cursor { position: fixed; left: 0; top: 0; z-index: 2147482500;   /* above the cookie card (consent.js, 2147482000), under the intro cover */ pointer-events: none; mix-blend-mode: difference; display: none; will-change: transform; }
.com-cursor__dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; }
body.cursor-active, body.cursor-active * { cursor: none !important; }

/* ------------------------------------------------------------------ the caowlstudios.com intro, light (loader.js) */

.loader { position: fixed; inset: 0; z-index: 9990; background: #fff; color: #020202; transform: translate3d(0, 0, 0); transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1); will-change: transform; }
.loader.is-dismissing { transform: translate3d(0, -100%, 0); pointer-events: none; }
.loader__stage { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.loader__pair { display: flex; align-items: center; gap: var(--pair-gap, 0px); transition: gap 700ms cubic-bezier(0.2, 0.7, 0.1, 1); padding: 0 clamp(20px, 4vw, 44px); }
.loader__logo { position: relative; height: clamp(46px, 8vw, 96px); aspect-ratio: 625 / 654; flex-shrink: 0; transform: translateY(-4%); }
.loader__logo svg { width: 100%; height: 100%; overflow: visible; }
.loader .owl-dot { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.3); fill: #020202; stroke: #020202; stroke-width: 2; }
.loader .owl-line { fill: none; stroke: #020202; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.loader .owl-eye { fill: #020202; stroke: #020202; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.loader__wordmark { position: relative; font-weight: 100; font-size: clamp(46px, 8vw, 104px); letter-spacing: -0.015em; line-height: 1; color: #020202; white-space: nowrap; overflow: hidden; max-width: 0; clip-path: inset(0 100% 0 0); opacity: 0; will-change: clip-path, max-width, opacity; }
html.is-loading, html.is-loading body { overflow: hidden; }

/* ------------------------------------------------------------------ "Willem" intro (intro3.js, after Osmo) */

.willem { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--ink); overflow: hidden; }
.willem__h1 { display: flex; justify-content: center; white-space: nowrap; font-weight: 100; font-size: clamp(44px, 10.5vw, 240px); line-height: 0.8; letter-spacing: -0.01em; position: relative; }
.willem__start, .willem__end { display: flex; overflow: hidden; padding-bottom: 0.06em; }
.willem__start { justify-content: flex-end; }
.willem__end { justify-content: flex-start; }
.willem__l { display: block; position: relative; }
.willem__box { display: flex; flex-flow: column; justify-content: center; align-items: center; width: 0.26em; position: relative; }
.willem__box-inner { display: flex; justify-content: center; align-items: center; min-width: 1em; height: 95%; position: relative; }
.willem__grow { position: absolute; display: flex; justify-content: center; align-items: center; width: 0%; height: 100%; overflow: hidden; border-radius: 0.06em; } /* the film sheet's corner, in proportion */
.willem__grow-wrap { position: absolute; width: 100%; min-width: 1em; height: 100%; }
.willem__grow img, .willem__grow video, .willem__flight video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.willem__flight { position: fixed; z-index: 61; overflow: hidden; pointer-events: none; }
/* soft left and right edges, their width driven by the intro (intro3.js sets --edge with the opacity) */
.willem__grow, .willem__flight {
  --edge: 0%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--edge), #000 calc(100% - var(--edge)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--edge), #000 calc(100% - var(--edge)), transparent 100%);
}

/* phone: the name stacks and the box opens vertically between the two words */
.willem--stack .willem__h1 { flex-direction: column; align-items: center; font-size: 27vw; line-height: 0.82; }
.willem--stack .willem__start, .willem--stack .willem__end { justify-content: center; }
.willem--stack .willem__box { width: 2.3em; height: 0.06em; }
.willem--stack .willem__box-inner { width: 100%; height: auto; min-width: 0; min-height: 1em; }
.willem--stack .willem__grow { width: 100%; height: 0%; }
.willem--stack .willem__grow-wrap { min-width: 0; min-height: 1em; }

/* ------------------------------------------------------------------ the Aster & Smilla cursor trail (trail.js) */

/* As in SiteTrail.vue: multiply, not normal, because on a white page added light is invisible; the
   blur smooths the half-resolution upscale without eating the threads. */
.trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 88; mix-blend-mode: multiply; filter: blur(3px); }
