/* ==========================================================================
   Oceanematic — styles
   Dark grey monochrome. Archivo (wide) for everything. Hairlines, no shadows.
   ========================================================================== */

/* ---------- base reset ---------- */
:root{padding-top:env(safe-area-inset-top, 0px);padding-bottom:env(safe-area-inset-bottom, 0px)}
body{margin:0}
img{max-width:100%}
[hidden]{display:none!important}

/* ---------- design ---------- */
:root{
  /* Layout: full-viewport parchment hero (dashed reticle, orange sphere, drifting dust, wordmark on the floor)
     → intro split (label left / body right) + display statement → 5×2 client grid → 2-col grid-paper work cards
     → disciplines + process → contact. Hairlines only, no shadows. Light only, by design. */
  /* grey monochrome, inverted: near-black ground, grey type, steps of value only
     (token names kept from the light version: "parchment" is the page, "ink" the type) */
  --color-parchment:#0c0c0c;
  --color-ink:#c8c8c8;
  --color-head:#f4f4f4;   /* headlines: the white the statement words light up to */
  --color-paper:#141414;
  --color-ash:#2c2c2c;
  --color-stone:#1e1e1e;
  --color-accent:#8c8c8c;
  --color-muted:#7d7d7d;
  --color-wordmark:rgba(215,215,215,.72);
  /* smaller colour settings, so a theme can change them too */
  --svc-dim:#4d4d4d;            /* service names before hover */
  --label-on-photo:#b4b4b4;     /* small labels over client photos */
  --plus-ink:#eee;              /* the "+" on personal work cards */
  --stmt-from:#474747;          /* statement words before they light up … */
  --stmt-to:#f4f4f4;            /* … and once lit */
  --glow-1:215,215,215; --glow-2:170,170,170; --glow-3:120,120,120; --glow-4:80,80,80; --glow-5:60,60,60;   /* the glowing ball */
  --photo-glow:10,10,10;                          /* glow behind names on client photos */
  --logo-filter:grayscale(1) brightness(1.4);     /* client logos: light on dark */

  /* three fonts in one taste: a semi-condensed grotesk for headlines, a tight grotesk for text,
     a mono for labels and notes */
  --font-head:"Barlow Semi Condensed","Arial Narrow","Helvetica Neue",Arial,sans-serif;
  --font:"Inter Tight","Helvetica Neue",Arial,sans-serif;
  --font-mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  --wide:125%;

  /* motion: slow-in, slow-out for masks and slides; long ease-out for settles */
  --ease-io:cubic-bezier(.83,0,.17,1);
  --ease-out:cubic-bezier(.22,1,.36,1);

  --gutter:clamp(16px, 2.6vw, 32px);
  --section:clamp(76px, 9vw, 119px);
  color-scheme:dark;
}
/* ---------- section layers: black, dark grey, beige ----------
   Each slide can take a background layer; its text colours flip to suit (dark text on beige).
   Black slides keep the page colour (and the glowing ball shows through them). */
.tone-grey{
  --color-parchment:#1b1b1b; --color-paper:#222; --color-stone:#2a2a2a; --color-ash:#343434;
  background:var(--color-parchment);color:var(--color-ink)}
.tone-beige{
  --color-parchment:#e2ddd3;    /* beige background */
  --color-paper:#d8d2c6;        /* cards on beige */
  --color-stone:#cdc6b8;
  --color-ash:#c1bbae;          /* lines */
  --color-ink:#1b1a18;          /* text: near black */
  --color-head:#121110;         /* headlines: black */
  --color-accent:#6f6a62;
  --color-muted:#68635b;
  --svc-dim:#aaa498;            /* service names before hover */
  --label-on-photo:#34312d;
  --plus-ink:#121110;
  --photo-glow:226,221,211;     /* the soft glow behind client names becomes beige */
  --logo-filter:brightness(0) opacity(.86);   /* client logos turn black */
  background:var(--color-parchment);color:var(--color-ink)}
.tone-beige ::selection{background:#1b1a18;color:#e2ddd3}
/* on beige, client photos are printed onto the paper (multiply) so they keep their weight */
.tone-beige .client.has-photo img.client-bg{mix-blend-mode:multiply;opacity:.92}
.tone-beige .client.has-photo:hover img.client-bg{opacity:1}
.tone-beige .client.has-photo::after{
  background:radial-gradient(ellipse 50% 40% at 50% 50%, rgba(var(--photo-glow),.9) 0%, rgba(var(--photo-glow),.55) 50%, rgba(var(--photo-glow),0) 100%)}

@media (prefers-reduced-motion:no-preference){ html{scroll-behavior:smooth} }
body{
  background:var(--color-parchment);color:var(--color-ink);
  font:400 15px/1.4 var(--font);letter-spacing:0;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
::selection{background:var(--color-accent);color:var(--color-paper)}
a{color:inherit;text-decoration:none}
h1,h2,h3,p,ul,ol,dl,dd{margin:0}
ul,ol{padding:0;list-style:none}
button{font:inherit;color:inherit}
:focus-visible{outline:1px solid var(--color-accent);outline-offset:4px;border-radius:10px}

.wrap{
  padding-left:max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right:max(var(--gutter), env(safe-area-inset-right, 0px));
}
.container{max-width:1400px;margin-inline:auto;box-sizing:content-box}

/* ---------- type ---------- */
.label{font-family:var(--font-mono);font-size:11px;line-height:1.4;letter-spacing:.06em;text-transform:uppercase;font-weight:400}
.label.b{font-weight:500}
.muted{color:var(--color-muted)}
.body{font-size:19px;line-height:1.35;letter-spacing:-.005em;font-weight:500}
.wide{font-stretch:var(--wide)}
.display{font-stretch:var(--wide);font-weight:500;font-size:clamp(44px, 7.4vw, 103px);line-height:.8;letter-spacing:.006em;text-transform:uppercase}
.heading{font-stretch:var(--wide);font-weight:500;font-size:clamp(40px, 5vw, 70px);line-height:.8;letter-spacing:.006em;text-transform:uppercase}
.heading-sm{font-stretch:var(--wide);font-weight:500;font-size:clamp(28px, 3.3vw, 46px);line-height:1;letter-spacing:.006em}
.dot{color:var(--color-accent)}

/* ghost link */
.ghost{display:inline-flex;align-items:center;gap:8px;padding:5px 0;border-radius:10px;font-size:15px;
  background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .35s cubic-bezier(.2,.8,.2,1)}
.ghost:hover{background-size:100% 1px}
.arr{display:inline-block;transition:translate .3s cubic-bezier(.2,.8,.2,1), color .3s}
.ghost:hover .arr,.card:hover .arr{translate:4px 0;color:var(--color-accent)}

/* pill */
.pill{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--color-ink);border-radius:10px;padding:8px 19px;background:transparent;cursor:pointer;
  font-size:11px;line-height:1.4;letter-spacing:.05em;text-transform:uppercase;font-weight:500;transition:background .25s, color .25s}
.pill:hover,.pill[aria-pressed="true"]{background:var(--color-ink);color:var(--color-parchment)}
.pill sup{font-size:9px;opacity:.7}

/* ring ornament */
.rings{position:absolute;pointer-events:none;color:var(--color-ink)}
.rings circle,.rings line{fill:none;stroke:currentColor;stroke-opacity:.32;stroke-width:1;stroke-dasharray:3 6;vector-effect:non-scaling-stroke}

/* ---------- hero ---------- */
.hero{
  position:relative;min-height:100vh;min-height:100svh;overflow:hidden;isolation:isolate;
  display:grid;grid-template-rows:auto 1fr auto;
  padding-block:calc(22px + env(safe-area-inset-top, 0px)) calc(22px + env(safe-area-inset-bottom, 0px));
  background:transparent;
}
/* the orb: a grey lit sphere fixed behind the page content; it travels between sections on scroll */
.orb{--D:clamp(340px, 56vw, 880px);position:fixed;left:0;top:0;z-index:0;width:var(--D);aspect-ratio:1;
  pointer-events:none;will-change:transform;transform:translate3d(30vw,-20vh,0)}
.orb-core{position:absolute;inset:0;border-radius:50%;filter:blur(12px);
  background:radial-gradient(circle at 58% 36%, rgba(var(--glow-1),.5) 0%, rgba(var(--glow-2),.34) 16%, rgba(var(--glow-3),.18) 36%, rgba(var(--glow-4),.08) 54%, rgba(var(--glow-5),0) 70%)}
.hero,main,.foot{position:relative;z-index:1}
/* a slow liquid wobble: the glow swells unevenly, like a drop of light */
@media (prefers-reduced-motion:no-preference){ .orb-core{animation:breathe 9s ease-in-out infinite} }
@keyframes breathe{
  0%,100%{transform:scale(1,1) translate(0,0) rotate(0deg)}
  25%{transform:scale(1.05,.96) translate(-1%,1%) rotate(4deg)}
  50%{transform:scale(.97,1.05) translate(1%,-.5%) rotate(-3deg)}
  75%{transform:scale(1.04,.98) translate(-.5%,-1%) rotate(2deg)}
}
/* background reel: darkened at the edges so the type stays readable, and faded into the page at the bottom */
.hero-video{position:absolute;inset:0;z-index:-3;overflow:hidden;pointer-events:none;background:var(--color-parchment)}
.hero-video video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* trial: add ?hero=grey to the address to see the opening film in black and white */
.hero-grey .hero-video video{filter:grayscale(1) contrast(1.06)}
.hero-video::after{content:"";position:absolute;inset:0;z-index:2;
  background:
    linear-gradient(to bottom, rgba(12,12,12,.7) 0%, rgba(12,12,12,0) 22%, rgba(12,12,12,0) 68%, var(--color-parchment) 100%),
    radial-gradient(ellipse 75% 65% at 50% 50%, rgba(12,12,12,.15) 0%, rgba(12,12,12,.7) 100%)}
.hero .rings{z-index:-2;left:50%;top:50%;width:min(80vw, 96vh);aspect-ratio:1;transform:translate(-50%,-50%)}

.hero-top{display:grid;grid-template-columns:1fr auto 1fr;gap:20px;align-items:start}
.hero-nav{display:grid;gap:1px;justify-items:start}
.hero-nav a{padding:1px 0;background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .3s}
.hero-nav a:hover{background-size:100% 1px}
.hero-role{text-align:center}
.hero-loc{text-align:right;justify-self:end}
.live{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--color-accent);margin-right:7px;vertical-align:1px}
@media (prefers-reduced-motion:no-preference){ .live{animation:pulse 2s ease-in-out infinite} }
@keyframes pulse{50%{opacity:.25}}

/* brand lockup: your logo artwork (mark + wordmark), centred on the reticle's crosshair; never moves.
   --sweep drives the circular reveal of the mark (a conic mask centred on the ring). */
@property --sweep{syntax:"<angle>";inherits:false;initial-value:360deg}
.brand{position:absolute;z-index:0;left:50%;top:50%;translate:-50% -50%;margin:0;width:min(78vw, 1040px);
  display:flex;flex-direction:column;align-items:center;pointer-events:none}
.brand img{display:block;height:auto;opacity:.9;user-select:none;-webkit-user-select:none}
.brand-mark{width:42.2%;--sweep:360deg;
  -webkit-mask-image:conic-gradient(from 0deg at 51.2% 50%, #000 var(--sweep), transparent var(--sweep));
          mask-image:conic-gradient(from 0deg at 51.2% 50%, #000 var(--sweep), transparent var(--sweep))}
.brand-word{width:100%;margin-top:5.8%}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.hero-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:20px}
.hero-bottom p{font-size:15px}
.scroll{display:inline-flex;gap:8px;align-items:center}
@media (prefers-reduced-motion:no-preference){ .scroll .arr{animation:bob 1.8s ease-in-out infinite} }
@keyframes bob{50%{translate:0 4px}}

/* typing loader: types the name, then lifts like a curtain to reveal the site.
   Shown only when JS has started (.intro); a failsafe hides it if a script ever stalls. */
.loader{display:none}
.intro .loader{
  display:grid;place-items:center;position:fixed;inset:0;z-index:100;background:var(--color-parchment);
  padding-left:max(var(--gutter), env(safe-area-inset-left, 0px));padding-right:max(var(--gutter), env(safe-area-inset-right, 0px));
  clip-path:inset(0 0 0 0);transition:clip-path 1.15s cubic-bezier(.76,0,.24,1);
  animation:ldSafe .01s 9s forwards;
}
.loader.out{clip-path:inset(0 0 100% 0)}
@keyframes ldSafe{to{visibility:hidden}}
.loader-word{font-stretch:var(--wide);font-weight:700;font-size:clamp(30px, 9.5vw, 150px);line-height:1;letter-spacing:.005em;
  text-transform:uppercase;white-space:nowrap;color:var(--color-ink);transition:opacity .7s ease, translate 1s cubic-bezier(.76,0,.24,1), filter .7s ease}
.loader.out .loader-word{opacity:0;translate:0 -40px;filter:blur(8px)}
.loader-word img{display:block;width:min(80vw, 900px);height:auto;clip-path:inset(0 100% 0 0);transition:clip-path .2s ease-out}
.caret{display:inline-block;width:.07em;height:.74em;margin-left:.05em;vertical-align:-.01em;background:currentColor;animation:caret .85s steps(1) infinite}
@keyframes caret{50%{opacity:0}}
.loader-meta{position:absolute;left:0;right:0;bottom:calc(22px + env(safe-area-inset-bottom, 0px));display:flex;justify-content:space-between;gap:20px;
  padding-left:max(var(--gutter), env(safe-area-inset-left, 0px));padding-right:max(var(--gutter), env(safe-area-inset-right, 0px));color:var(--color-muted)}
.loader-bar{position:absolute;left:0;bottom:0;height:1px;width:calc(var(--p, 0) * 100%);background:var(--color-ink);transition:width .2s ease}
@media (prefers-reduced-motion:reduce){ .intro .loader{display:none} }

/* opening sequence */
@media (prefers-reduced-motion:no-preference){
  .intro .orb{opacity:0;scale:.5}
  .intro .hero .rings{opacity:0;rotate:-40deg;scale:.86}
  .intro .hero-video{opacity:0;scale:1.08}
  .go .hero-video{opacity:1;scale:1;transition:opacity 1.6s ease, scale 2.6s cubic-bezier(.16,1,.3,1)}
  .intro .hero-top > *{opacity:0;translate:0 -12px;filter:blur(8px)}
  .intro .brand-mark{--sweep:0deg;filter:blur(6px)}
  .intro .brand-word:not(.bw){clip-path:inset(0 100% 0 0);filter:blur(8px)}
  .intro .bw-l img{translate:0 125%}
  .intro .hero-bottom .scroll{opacity:0;translate:0 12px}
  .hero-bottom .hw{clip-path:inset(-.25em -.4em 0 -.4em)}
  .intro .hero-bottom .hw .wi{translate:0 110%}

  .go .orb{opacity:1;scale:1;transition:opacity 1.4s ease .1s, scale 2.2s cubic-bezier(.16,1,.3,1) .1s}
  .go .hero .rings{opacity:1;rotate:0deg;scale:1;transition:opacity 1.2s ease .35s, rotate 2.4s cubic-bezier(.16,1,.3,1) .35s, scale 2.4s cubic-bezier(.16,1,.3,1) .35s}
  .go .hero-top > *{opacity:1;translate:0 0;filter:blur(0);transition:opacity 1s ease, translate 1s cubic-bezier(.2,.8,.2,1), filter 1s ease;transition-delay:calc(1s + var(--d, 0) * .14s)}
  /* logo: the mark is revealed in one circular sweep, the wordmark wipes in left to right,
     then the mark keeps a slow, soft glow */
  .go .brand-mark{--sweep:360deg;filter:blur(0);
    transition:--sweep 1.9s cubic-bezier(.65,0,.35,1) .45s, filter 1.4s ease .45s;
    animation:markGlow 4s ease-in-out 3.6s infinite alternate}
  .go .brand-word:not(.bw){clip-path:inset(0 0 0 0);filter:blur(0);
    transition:clip-path 1.6s cubic-bezier(.65,0,.35,1) 1.35s, filter 1.2s ease 1.5s}
  /* wordmark letters rise into place one by one, in a random order */
  .go .bw-l img{translate:0 0;transition:translate 1.8s var(--ease-io);transition-delay:calc(1.05s + var(--o) * 70ms)}
  .go .hero-bottom .scroll{opacity:1;translate:0 0;transition:opacity .9s ease 1.9s, translate .9s cubic-bezier(.2,.8,.2,1) 1.9s}
  .go .hero-bottom .hw .wi{translate:0 0;transition:translate 1.2s var(--ease-io);transition-delay:calc(1.7s + var(--w) * 40ms)}
}
/* sliced wordmark (built by sliceWordmark in the script) */
.bw{position:relative;display:block}
.brand img.bw-base{width:100%;visibility:hidden}
.bw-l{position:absolute;inset:0;display:block}
.brand .bw-l img{width:100%}

@keyframes markGlow{from{filter:drop-shadow(0 0 0 rgba(255,255,255,0))}to{filter:drop-shadow(0 0 16px rgba(255,255,255,.35))}}

/* scroll reveals (scroll-driven; static where unsupported) */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion:no-preference){
    .rv{animation:rise linear backwards;animation-timeline:view();animation-range:entry 0% entry 75%}
  }
}
/* every piece of text below the hero slides up out of a mask once its block is on screen:
   body text line by line, headlines letter by letter
   (triggered by visibility, so text at the very bottom of the page always finishes) */
@media (prefers-reduced-motion:no-preference){
  .reveal .w{clip-path:inset(-.25em -.4em 0 -.4em)}
  .reveal .wi,.reveal .wl .c{translate:0 112%}
  .reveal.in .wi{translate:0 0;
    transition:translate 1s var(--ease-io);transition-delay:calc(var(--bd, 0s) + min(var(--l, 0), 12) * 60ms)}
  .reveal.in .wl .c{translate:0 0;
    transition:translate 1.2s var(--ease-io);transition-delay:calc(var(--bd, 0s) + min(var(--c, 0), 40) * 30ms)}
}
@keyframes rise{from{opacity:.35;translate:0 48px}to{opacity:1;translate:0 0}}
.w,.hw,.wi,.wl .c{display:inline-block}

/* ---------- sections ---------- */
section{position:relative}
.sec{padding-block:var(--section)}
.sec-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:24px 40px;margin-bottom:46px}
.sec-head .label{margin-bottom:19px}
.hair{border-top:1px solid var(--color-ash)}

/* intro */
.intro-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:19px clamp(32px, 8vw, 160px)}
.intro-grid .lead{font-size:15px;line-height:1.4;letter-spacing:.05em;text-transform:uppercase;font-weight:500;max-width:30ch;margin-bottom:19px}
.intro-grid .body{max-width:46ch}
.intro-grid .body + .body{margin-top:19px;color:var(--color-muted)}
.statement{position:relative;margin-top:var(--section);padding-block:32px}
.statement .rings{width:min(70vw, 620px);aspect-ratio:1;right:-4%;top:50%;transform:translateY(-50%)}

/* paper texture in the headline type and the big service names (the #paper filter is defined at the top of index.html) */
.display,.heading,.heading-sm,.card-title,.gl-head,.svc-name,.client strong{filter:url(#paper)}

/* film grain over the slides after the first: a fixed layer, cut off below the hero by the script (clip-path),
   a 256 px noise tile that jumps to a new position 12 times a second */
.grain{position:fixed;inset:0;z-index:40;pointer-events:none;overflow:hidden;clip-path:inset(100% 0 0 0);opacity:.13;mix-blend-mode:overlay}
.grain-in{position:absolute;inset:-128px;background:url(../assets/grain.png) 0 0/256px 256px repeat}
@media (prefers-reduced-motion:no-preference){
  .grain-in{animation:grain .66s steps(1) infinite}
}
@keyframes grain{
  0%{transform:translate3d(0,0,0)} 12%{transform:translate3d(-37px,52px,0)} 25%{transform:translate3d(61px,-23px,0)}
  37%{transform:translate3d(-88px,-71px,0)} 50%{transform:translate3d(19px,97px,0)} 62%{transform:translate3d(103px,31px,0)}
  75%{transform:translate3d(-54px,-106px,0)} 87%{transform:translate3d(77px,-58px,0)} 100%{transform:translate3d(0,0,0)}
}

/* "From idea to screen": the line in two halves with a portrait between them (moved by the script) */
.gl{overflow:hidden;padding-block:clamp(30px, 3.5vw, 60px)}
.gl-stage{position:relative;display:grid;place-items:center;min-height:clamp(200px, 18.5vw, 330px)}
.gl-cover{position:absolute;left:50%;top:50%;translate:-50% -50%;width:clamp(150px, 14vw, 250px);aspect-ratio:4/5;
  overflow:hidden;border-radius:6px;background:var(--color-stone)}
.gl-cover img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;opacity:0}
.gl-cover img.on{opacity:1}
.gl-head{position:relative;z-index:1;width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:clamp(70px, 9vw, 170px);
  font-family:var(--font-head);font-weight:600;text-transform:uppercase;font-size:clamp(34px, 8.6vw, 165px);line-height:.9;letter-spacing:-.01em;
  white-space:nowrap;color:var(--color-head)}
.gl-l,.gl-r{display:block}
.gl-l{text-align:right}
.gl-r{text-align:left}
.gl-live .gl-l,.gl-live .gl-r{will-change:transform}
.glc{display:inline-block;transform-origin:50% 100%}
.gl-cap{text-align:center;margin-top:clamp(20px, 2.2vw, 36px)}
@media (max-width:700px){
  /* on phones too: one line, the picture between the halves, just scaled down */
  .gl-stage{min-height:56vw}
  .gl-cover{width:42vw}
  .gl-head{column-gap:15vw;font-size:8vw}
}

/* clients */
.clients{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--color-ash);border:1px solid var(--color-ash)}
.client{background:var(--color-paper);aspect-ratio:16/10;display:grid;place-items:center;align-content:center;gap:8px;padding:15px;text-align:center;transition:background .3s}
.client:hover{background:var(--color-parchment)}
/* a client "photo" (site.json) sits behind the name: contrasty black and white (deep blacks, bright highlights),
   with a soft dark glow right behind the name so it stays readable; a little clearer on hover */
.client.has-photo{position:relative;overflow:hidden;isolation:isolate}
.client.has-photo > :not(.client-bg){position:relative;z-index:2}
.client img.client-bg{position:absolute;inset:0;z-index:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:50% 30%;
  filter:grayscale(1) contrast(1.45) brightness(.82);opacity:.58;transition:opacity .6s var(--ease-out), scale 1.2s var(--ease-out), filter .8s var(--ease-out)}
.client.has-photo::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:radial-gradient(ellipse 58% 42% at 50% 50%, rgba(var(--photo-glow),.62) 0%, rgba(var(--photo-glow),.28) 55%, rgba(var(--photo-glow),0) 100%)}
.client.has-photo:hover img.client-bg{opacity:.75;scale:1.04;filter:grayscale(0) contrast(1.05) brightness(.92)}   /* hover: back to colour */
.client.has-photo .label{color:var(--label-on-photo)}
/* gentler, lighter treatment for photos with bright or busy backgrounds (R3HAB, Tink, $uicideboy$) */
.client img.client-bg:is([src*="r3hab"],[src*="tink"],[src*="suicideboys"]){filter:grayscale(1) contrast(1.12) brightness(.78);opacity:.55}
.client.has-photo:hover img.client-bg:is([src*="r3hab"],[src*="tink"],[src*="suicideboys"]){opacity:.7}
.client img.client-bg[src*="tink"]{object-position:50% 28%}
.client img.client-bg[src*="suicideboys"]{object-position:50% 38%}
.client strong{font-stretch:var(--wide);font-weight:600;font-size:clamp(14px, 1.5vw, 19px);letter-spacing:.01em;text-transform:uppercase}

/* work: two tabs, "Client work" (card grid) and "Personal work" (floating showcase) */
#work{overflow:hidden}
.tabs{display:flex;flex-wrap:wrap;gap:8px}
.pill[aria-selected="true"]{background:var(--color-ink);color:var(--color-parchment)}
@media (prefers-reduced-motion:no-preference){
  .panel.enter{animation:panelIn .9s var(--ease-out)}
}
@keyframes panelIn{from{opacity:0;translate:0 26px}to{opacity:1;translate:0 0}}

.card{cursor:pointer;color:inherit;text-align:left}
.card-media{position:relative;display:block;overflow:hidden;background:var(--color-stone)}
.card-media canvas,.card-media img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;filter:grayscale(1) contrast(1.08);transition:transform .9s var(--ease-out)}
.card:hover .card-media canvas,.card:hover .card-media img{transform:scale(1.05)}

/* a card's "preview" loop sits over its still and fades in once it plays */
.card-media video.card-vid{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;opacity:0;
  transition:opacity .6s ease, transform .9s var(--ease-out)}
.card-media video.card-vid.on{opacity:1}
.card:hover .card-media video.card-vid{transform:scale(1.05)}
/* project view with a film: the player fills the stage */
.lb-media video{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;background:#000}
.lb-media iframe{position:absolute;inset:0;width:100%;height:100%;display:block;border:0;background:#000}

/* client work: the card grid */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--color-ash);border:1px solid var(--color-ash)}
.grid .card{
  display:flex;flex-direction:column;gap:6px;padding:30px;border:0;border-radius:0;min-width:0;
  background-color:var(--color-paper);
  background-image:linear-gradient(var(--color-parchment) 1px, transparent 1px),linear-gradient(90deg, var(--color-parchment) 1px, transparent 1px);
  background-size:24px 24px;background-position:-1px -1px;
}
.card-top{display:flex;justify-content:space-between;gap:12px;margin-bottom:19px}
.card-kind{font-size:15px;color:var(--color-muted)}
.grid .card-media{aspect-ratio:4/3;max-width:100%;margin-top:24px}
.card-link{margin-top:19px;display:inline-flex;gap:8px;font-size:15px}
.grid .card:focus-visible{outline-offset:-4px;border-radius:0}

/* personal work: the floating showcase. The script deals the cards into columns (--n) and moves them while you scroll */
.float{--n:3;--gap:clamp(12px, 1.9vw, 30px);display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:var(--gap);align-items:stretch}
.fcol{min-width:0;will-change:transform}
.fcol-in{display:flex;flex-direction:column;gap:calc(var(--gap) * 1.4);will-change:transform}
.float .card{display:block;width:100%;padding:0;margin:0;border:0;background:none}
.float .card-media{aspect-ratio:4/5;border-radius:6px}
/* the round "+" that grows and turns on hover */
.card-plus{position:absolute;z-index:1;top:10px;right:10px;width:38px;height:38px;border-radius:50%;background:rgba(18,18,18,.82);
  transition:scale .5s var(--ease-out), rotate .6s var(--ease-out), background .3s}
.card-plus::before,.card-plus::after{content:"";position:absolute;left:50%;top:50%;width:15px;height:1.5px;background:var(--plus-ink);translate:-50% -50%}
.card-plus::after{rotate:90deg}
.card:hover .card-plus{scale:1.12;rotate:90deg;background:rgba(40,40,40,.92)}
.card-cap{display:grid;gap:5px;padding-top:12px}
.float .card:focus-visible{outline-offset:6px;border-radius:6px}
/* the zooming copy of a picture between a card and the project view */
.fly{position:fixed;z-index:60;margin:0;display:block;object-fit:cover;pointer-events:none;border-radius:0}

/* services: full-width title, then the services list (left) and the process slider (right) */
.fit{display:block;white-space:nowrap;font-size:clamp(40px, 11vw, 190px)}
.heading.fit{line-height:.86;margin-bottom:clamp(46px, 6vw, 92px)}
.svc{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:46px clamp(32px, 6vw, 120px);align-items:start}
.svc .svc-main{order:-1}

.slider{position:sticky;top:32px;display:grid;gap:19px;max-width:460px}
.sl-bar{position:relative;height:1px;background:var(--color-ash)}
.sl-bar span{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--color-ink)}
@keyframes slFill{from{width:0}to{width:100%}}
.sl-head{display:flex;justify-content:space-between;align-items:center}
.sl-arrows{display:flex;gap:4px}
.sl-btn{width:30px;height:30px;display:grid;place-items:center;padding:0;border:0;background:none;cursor:pointer;font-size:20px;line-height:1;color:var(--color-ink);transition:translate .3s var(--ease-out), color .3s}
#sl-prev:hover{translate:-3px 0}
#sl-next:hover{translate:3px 0}
.sl-track{display:grid}
.sl-slide{grid-area:1/1;display:grid;gap:22px;align-content:start}
.sl-slide:not(.on):not(.out){visibility:hidden}
.sl-text{font-size:clamp(20px, 1.75vw, 25px);line-height:1.22;letter-spacing:-.012em;font-weight:500}
.sl-who{display:grid;gap:2px;font-size:17px;line-height:1.25;letter-spacing:-.01em}
.sl-who strong{font-weight:600}
.sl-who span{color:var(--color-muted)}
.sl-note{max-width:34ch}
@media (prefers-reduced-motion:no-preference){
  .sl-slide.out .wi{translate:0 -112%!important;transition:translate .8s var(--ease-io)!important}
  .sl-slide.on{--bd:.25s}
}

.svc-main{position:relative}
.svc-label{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.bullet{width:9px;height:9px;border-radius:50%;background:var(--color-muted)}
.svc-list{display:grid}
.svc-item{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 18px;cursor:default}
.svc-name{display:inline-block;font-weight:600;font-size:clamp(26px, 3.3vw, 54px);line-height:1.08;letter-spacing:-.04em;color:var(--svc-dim);
  transform-origin:0 60%;transition:color .45s var(--ease-out), scale .6s var(--ease-out)}
/* the line under the pointer (or, on touch screens, in the middle of the screen) turns white and grows a little */
.svc-item:hover .svc-name,.svc-item.on .svc-name{color:var(--color-head)}
@media (prefers-reduced-motion:no-preference){
  .svc-item:hover .svc-name,.svc-item.on .svc-name{scale:1.08}
}
/* the detail line: under each name on touch screens; kept for screen readers on pointer screens */
.svc-detail{flex-basis:100%;margin:2px 0 12px}
@media (hover:hover) and (pointer:fine){
  .svc-detail{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}

/* statement: two sentences, centred on the page; each word lit by the scroll (script) */
.display.stmt{font-size:clamp(34px, 5.6vw, 100px);line-height:.94;max-width:15.5em;margin-inline:auto;text-align:center}
.stmt-a,.stmt-b{display:block;padding:0;margin:0}
.stmt-b{margin-top:.28em}
.sw{display:inline-block}
.stmt-live .sw{will-change:transform}

/* staggered headline lines (statement and contact): each line steps in by --in columns */
.stagger .ln{display:block;padding-left:calc(var(--in, 0) * 1.6em)}
.arrow{font-family:var(--font);font-weight:600;font-size:.82em}

/* contact */
.contact{overflow:hidden;isolation:isolate}
.contact-bg{position:absolute;inset:0;z-index:-1;pointer-events:none}
/* grey water surface (canvas drawn by the script). Without WebGL or with reduced motion,
   a still grey gradient stands in for it */
.water-bg{background:radial-gradient(ellipse 90% 70% at 50% 40%, #232323 0%, #151515 55%, var(--color-parchment) 100%)}
.water-bg canvas{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
/* the contact slide's water fades in softly from nothing at its top, so there is no border line */
.contact-bg{-webkit-mask-image:linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 14%, #000 34%, #000 100%);
                mask-image:linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 14%, #000 34%, #000 100%)}
.contact.hair::before{display:none}

/* behind "Worlds for screens and stages.": full width, a little taller than the statement,
   melting into the page on every side */
.statement{isolation:isolate}
.statement-bg{position:absolute;z-index:-1;top:-12vh;bottom:-12vh;left:calc(50% - 50vw);width:100vw;pointer-events:none;
  -webkit-mask-image:linear-gradient(to bottom, transparent 0%, #000 26%, #000 74%, transparent 100%);
          mask-image:linear-gradient(to bottom, transparent 0%, #000 26%, #000 74%, transparent 100%)}/* the same soft darkening over the water on both slides */
.contact-bg::after,.statement-bg::after{content:"";position:absolute;inset:0;
  background:
    linear-gradient(to bottom, var(--color-parchment) 0%, rgba(12,12,12,.35) 30%, rgba(12,12,12,.45) 65%, var(--color-parchment) 100%),
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(12,12,12,.1) 0%, rgba(12,12,12,.75) 100%)}
.contact .rings{width:min(110vw, 900px);aspect-ratio:1;right:-18%;top:50%;transform:translateY(-50%)}
.contact-row{display:flex;flex-wrap:wrap;align-items:center;gap:19px 30px;margin-top:46px}
.email{font-stretch:var(--wide);font-size:clamp(22px, 3.3vw, 46px);line-height:1.1;letter-spacing:.006em;overflow-wrap:anywhere;padding-bottom:4px}
.email.ghost{font-size:clamp(22px, 3.3vw, 46px)}
.socials{display:flex;flex-wrap:wrap;gap:8px 24px;margin-top:46px}
.contact-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;margin-top:var(--section);padding-top:15px;border-top:1px solid var(--color-ash)}

.foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 20px;padding-block:22px calc(22px + env(safe-area-inset-bottom, 0px));border-top:1px solid var(--color-ash)}

/* ---------- project view: a short case study in its own scrolling sheet ---------- */
.lb{position:fixed;inset:0;z-index:50;background:var(--color-parchment);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;--th:180px}
/* 1. stage: the film centred, as big as the screen allows, the title under it */
.lb-stage{position:relative;box-sizing:border-box;min-height:100svh;display:flex;flex-direction:column;padding-top:calc(74px + env(safe-area-inset-top, 0px))}
.lb-bar{position:absolute;top:calc(28px + env(safe-area-inset-top, 0px));left:0;right:70px;display:flex;justify-content:space-between;gap:20px}
.lb-media{--vr:1.7778;position:relative;margin-inline:auto;aspect-ratio:var(--vr);background:var(--color-stone);overflow:hidden;
  width:min(calc(100% - 2 * var(--gutter)), calc((100svh - 196px - var(--th)) * var(--vr)));transform-origin:50% 0;will-change:transform}
.lb-media canvas,.lb-media img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;filter:grayscale(1) contrast(1.08)}
.lb-head{margin-top:auto;padding-top:22px;padding-bottom:clamp(16px, 2.4vw, 30px);display:flex;flex-direction:column;gap:10px}
.lb-kind{color:var(--color-muted)}
.lb-title,.lb-next-title{font-family:var(--font-head);font-weight:600;text-transform:uppercase;letter-spacing:-.01em;color:var(--color-head);filter:url(#paper)}
.lb-title{font-size:clamp(64px, 12.5vw, 210px);line-height:.82;white-space:nowrap;margin-left:-.04em}
/* 2. brief */
.lb-brief{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.4fr) minmax(0,1.3fr);gap:clamp(24px, 4vw, 60px);
  padding-block:clamp(90px, 14vw, 200px);align-items:start}
.lb-side{padding-top:.6em}
.lb-copy{display:flex;flex-direction:column;gap:30px;align-items:flex-start}
.lb-blurb{font-family:var(--font);font-weight:500;font-size:clamp(28px, 3.5vw, 58px);line-height:1.06;letter-spacing:-.025em;color:var(--color-head);max-width:17em}
.lb-blurb .sw{will-change:transform}
.lb-dl{display:grid;border-bottom:1px solid var(--color-ash)}
.lb-dl div{display:grid;grid-template-columns:7em minmax(0,1fr);gap:16px;padding-block:13px;border-top:1px solid var(--color-ash)}
/* 3. frames: the section is pinned while its strip slides sideways (its height is set by the script) */
.lb-frames{position:relative}
.lb-pin{position:sticky;top:0;box-sizing:border-box;height:100svh;overflow:hidden;display:flex;flex-direction:column;justify-content:center;gap:clamp(16px, 2.4vw, 30px)}
.lb-frames-top,.lb-frames-foot{display:flex;justify-content:space-between;align-items:center;gap:20px}
.lb-fnum{font-size:13px}
.lb-track{display:flex;gap:clamp(14px, 2vw, 32px);height:min(60svh, 46vw);padding-inline:max(var(--gutter), env(safe-area-inset-left, 0px));
  width:max-content;will-change:transform;cursor:grab;user-select:none;-webkit-user-select:none}
.lb-track.drag{cursor:grabbing}
.lb-frame{--fr:1.7778;position:relative;flex:none;height:84%;aspect-ratio:var(--fr);padding:0;border:0;background:var(--color-stone);cursor:inherit;color:inherit;align-self:flex-start}
/* a contact-sheet rhythm: frames step up and down, every third one a little smaller */
.lb-frame:nth-child(2n){align-self:flex-end}
.lb-frame:nth-child(3n){height:66%;align-self:center}
.lb-frame-in{position:absolute;inset:0;overflow:hidden;transition:opacity .6s ease, transform .9s var(--ease-out)}
.lb-frame img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;translate:var(--px, 0) 0;scale:1.16;transition:scale 1.1s var(--ease-out)}
.lb-frame-n{position:absolute;left:10px;bottom:9px;color:#fff;mix-blend-mode:difference;pointer-events:none}
.lb-track:hover .lb-frame:not(:hover) .lb-frame-in{opacity:.42}
.lb-frame:hover .lb-frame-in{transform:scale(.975)}
.lb-frame:hover img{scale:1.26}
.lb-frame:focus-visible{outline:1px solid var(--color-head);outline-offset:4px}
.lb-bar-line{position:relative;flex:1;max-width:420px;height:1px;background:var(--color-ash)}
#lb-fbar{position:absolute;inset:0;background:var(--color-head);transform-origin:0 50%;transform:scaleX(0)}
/* phones and reduced motion: a plain row you swipe */
.lb.native-frames .lb-frames{height:auto!important}
.lb.native-frames .lb-pin{position:static;height:auto;padding-block:var(--section) calc(var(--section) * .5)}
.lb.native-frames .lb-track{width:auto;height:auto;overflow-x:auto;scroll-snap-type:x mandatory;transform:none!important;cursor:auto;scrollbar-width:none;padding-bottom:4px}
.lb.native-frames .lb-track::-webkit-scrollbar{display:none}
.lb.native-frames .lb-frame{height:auto;width:min(84vw, 620px);scroll-snap-align:center;align-self:center}
.lb.native-frames .lb-frame img{translate:none;scale:1.04}
/* 4. next project: hover opens its picture behind the name */
.lb-next{padding-block:clamp(60px, 9vw, 130px) calc(30px + env(safe-area-inset-bottom, 0px))}
.lb-next-btn{position:relative;display:flex;flex-direction:column;gap:18px;width:100%;padding:clamp(40px, 7vw, 110px) clamp(0px, 2vw, 30px);
  border:0;border-top:1px solid var(--color-ash);background:none;color:inherit;text-align:left;cursor:pointer;overflow:hidden}
.lb-next-pic{position:absolute;inset:0;clip-path:inset(50% 50% 50% 50%);transition:clip-path 1.1s var(--ease-io)}
.lb-next-pic img,.lb-next-pic canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;opacity:.5;scale:1.15;transition:scale 1.6s var(--ease-out)}
.lb-next-pic canvas{filter:grayscale(1) contrast(1.08)}
.lb-next-k,.lb-next-title{position:relative}
.lb-next-title{font-size:clamp(52px, 10vw, 190px);line-height:.86;max-width:12em;transition:translate 1s var(--ease-out)}
.lb-next-btn:hover .lb-next-pic,.lb-next-btn:focus-visible .lb-next-pic{clip-path:inset(0 0 0 0)}
.lb-next-btn:hover .lb-next-pic img,.lb-next-btn:hover .lb-next-pic canvas{scale:1}
.lb-next-btn:hover .lb-next-title{translate:clamp(10px, 2vw, 30px) 0}
.lb-next-btn:hover .arr{translate:6px 0}
.lb-next-btn .arr{display:inline-block;transition:translate .5s var(--ease-out)}
.lb-next-row{display:flex;justify-content:space-between;gap:20px;padding-top:22px;border-top:1px solid var(--color-ash)}
.lb-next-row .ghost{border:0;border-radius:0;background-color:transparent;color:inherit;font-family:inherit;cursor:pointer}
/* a frame opened full size */
.lb-view{position:fixed;inset:0;z-index:53;background:rgba(6,6,6,.985);opacity:0;transition:opacity .5s ease;cursor:zoom-out}
.lb-view.open{opacity:1}
#lb-view-img{position:fixed;display:block;object-fit:cover;transform-origin:0 0;cursor:default}
.lb-view-n{position:fixed;left:max(var(--gutter), env(safe-area-inset-left, 0px));bottom:calc(22px + env(safe-area-inset-bottom, 0px));color:var(--color-head)}
.lb-view-arr{position:fixed;top:50%;translate:0 -50%;width:46px;height:46px;display:grid;place-items:center;border:1px solid var(--color-ink);border-radius:10px;
  background:rgba(12,12,12,.5);color:var(--color-head);cursor:pointer;font-size:18px;transition:background .25s,color .25s}
.lb-view-arr:hover{background:var(--color-ink);color:var(--color-parchment)}
.lb-view-arr.prev{left:max(var(--gutter), env(safe-area-inset-left, 0px))}
.lb-view-arr.next{right:max(var(--gutter), env(safe-area-inset-right, 0px))}
@media (max-width:860px){ .lb-view-arr{top:auto;bottom:calc(14px + env(safe-area-inset-bottom, 0px));translate:none} .lb-view-arr.prev{left:auto;right:calc(max(var(--gutter), env(safe-area-inset-right, 0px)) + 54px)} .lb-view-n{bottom:calc(28px + env(safe-area-inset-bottom, 0px))} }
/* the curtain between projects, carrying the next name */
.lb-wipe{position:fixed;inset:0;z-index:55;display:grid;place-items:center;padding:var(--gutter);background:var(--color-paper);pointer-events:none;
  font-family:var(--font-head);font-weight:600;text-transform:uppercase;font-size:clamp(40px, 8vw, 140px);line-height:.86;text-align:center;color:var(--color-head);
  clip-path:inset(100% 0 0 0);visibility:hidden}
.lb.wiping .lb-wipe{visibility:visible;clip-path:inset(0 0 0 0);transition:clip-path .85s var(--ease-io)}
.lb.unwiping .lb-wipe{visibility:visible;clip-path:inset(0 0 100% 0);transition:clip-path .95s var(--ease-io)}
.lb-close{position:fixed;z-index:54;top:calc(20px + env(safe-area-inset-top, 0px));right:calc(20px + env(safe-area-inset-right, 0px));
  width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--color-ink);border-radius:10px;background:var(--color-parchment);color:var(--color-head);cursor:pointer;font-size:18px;line-height:1;transition:background .25s,color .25s}
.lb-close:hover{background:var(--color-ink);color:var(--color-parchment)}
@media (max-width:860px){
  .lb-stage{min-height:auto;padding-top:calc(78px + env(safe-area-inset-top, 0px))}
  .lb-bar{top:calc(30px + env(safe-area-inset-top, 0px))}
  .lb-media{width:calc(100% - 2 * var(--gutter));max-height:70svh}
  .lb-head{padding-top:26px}
  .lb-title{white-space:normal;font-size:clamp(46px, 14vw, 96px);line-height:.86}
  .lb-brief{grid-template-columns:minmax(0,1fr);padding-block:72px 40px}
  .lb-side{padding-top:0}
  .lb-dl div{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)}
  .lb-next-title{font-size:clamp(44px, 13vw, 90px)}
}

/* ---------- responsive ---------- */
@media (max-width:1000px){
  .clients{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:860px){
  .intro-grid,.svc{grid-template-columns:minmax(0,1fr)}
  .slider{position:relative;top:auto;max-width:none}
}
@media (max-width:720px){
  .grid{grid-template-columns:minmax(0,1fr)}
  .grid .card{padding:19px}
  .card-plus{width:30px;height:30px;top:7px;right:7px}
  .card-plus::before,.card-plus::after{width:12px}
  .card-count{left:8px;bottom:7px;font-size:9px}
  .clients{grid-template-columns:repeat(2,minmax(0,1fr))}
  .clients .client{order:var(--mo, 0)}            /* logo cards side by side in the middle row (desktop order unchanged) */
  .hero-top{grid-template-columns:1fr 1fr}
  .hero-role{display:none}
  .orb{--D:112vw}
  .hero .rings{width:118vw;left:50%;top:50%}
  .brand{width:88vw}
  .hero-bottom p{max-width:22ch}
  .contact-meta{grid-template-columns:minmax(0,1fr)}
  .stagger .ln{padding-left:calc(var(--in, 0) * .9em)}
}

/* ---------- your stills (personal work and any project with an "image") ----------
   Real images keep their colour; only the generated placeholder renders are grey. */
.card.photo .card-media img,#lb-img{filter:none}
.card-count{position:absolute;left:12px;bottom:10px;z-index:1;color:#fff;mix-blend-mode:difference;pointer-events:none}

/* ---------- data-driven extras ---------- */
/* client logo, used when a client in data/site.json has an "image" */
.client img{display:block;max-width:72%;max-height:64px;width:auto;height:auto;object-fit:contain;filter:var(--logo-filter)}
/* shown in the work grid if data/site.json can't be loaded */
.data-error{grid-column:1/-1;background:var(--color-paper);padding:30px;color:var(--color-muted)}

/* ---------- headline type ----------
   Barlow Semi Condensed, semibold capitals set tight: big, blunt, poster-like.
   Text is Inter Tight; labels and notes are IBM Plex Mono.
   The logo's A has no crossbar, so every headline A is drawn as a Λ: decorateA in the script wraps it,
   and traceLambda measures the headline font's own A to build the shape (see .lam below). */
.display,.heading,.heading-sm,.card-title,.client strong{
  font-family:var(--font-head);font-stretch:normal;font-weight:600;text-transform:uppercase;letter-spacing:-.01em}
/* every headline in the same white */
.display,.heading,.heading-sm,.card-title,.client strong,.gl-head{color:var(--color-head)}
.display{font-size:clamp(52px, 10.4vw, 178px);line-height:.86}
.heading{font-size:clamp(40px, 6.4vw, 110px);line-height:.88}
.heading-sm{font-size:clamp(30px, 3.8vw, 60px);line-height:.92}
.card-title{font-size:clamp(28px, 3vw, 46px);line-height:.94}
.float .card-title{font-size:clamp(17px, 1.55vw, 26px);line-height:.98}
.client strong{font-size:clamp(17px, 1.8vw, 24px);line-height:1;letter-spacing:0}
/* intro: both blocks in Inter Tight, sentence case: the studio line large and white, the paragraphs calm and readable */
.intro-grid .lead{font-family:var(--font);font-weight:500;font-size:clamp(24px, 2.2vw, 36px);line-height:1.1;letter-spacing:-.025em;
  text-transform:none;color:var(--color-head);max-width:15em;margin-bottom:26px}
.intro-grid .intro-mono{font-family:var(--font);font-weight:400;font-size:clamp(16px, 1.15vw, 19px);line-height:1.5;letter-spacing:-.008em;
  text-transform:none;color:#b9b9b9;max-width:34em}
.intro-grid .intro-mono + .intro-mono{color:var(--color-muted)}
/* edge to edge: the left block starts on the left edge, the right block ends on the right edge */
@media (min-width:861px){
  .intro-grid > div:last-child{justify-self:end;width:min(100%, 34em);font-size:clamp(16px, 1.15vw, 19px)}
  .intro-grid > div:last-child .intro-mono{max-width:none}
}
/* trials, by address: ?intro=mono (softer mono capitals) or ?intro=serif (editorial serif) */
.intro-font-mono .intro-grid .lead,.intro-font-mono .intro-grid .intro-mono{font-family:"DM Mono",var(--font-mono);font-weight:400;text-transform:uppercase;letter-spacing:.03em}
.intro-font-mono .intro-grid .lead{font-size:clamp(15px, 1.15vw, 18px);line-height:1.4}
.intro-font-mono .intro-grid .intro-mono{font-size:clamp(13px, .9vw, 15px);line-height:1.65}
.intro-font-serif .intro-grid .lead,.intro-font-serif .intro-grid .intro-mono{font-family:"Instrument Serif",Georgia,serif;font-weight:400;letter-spacing:-.005em}
.intro-font-serif .intro-grid .lead{font-size:clamp(30px, 2.8vw, 46px);line-height:1.04}
.intro-font-serif .intro-grid .intro-mono{font-size:clamp(19px, 1.4vw, 23px);line-height:1.35}
/* ---------- motion: lines, slides, wipes ----------
   Hairlines draw in from the left, project images wipe open from a corner and drift inside their frame,
   the hero frame narrows as the page slides over it, and the project view slides up like a sheet.
   All of it is off for reduced motion (the page is simply static). */
.hair{border-top:0}
.hair::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:var(--color-ash);transform-origin:0 50%;pointer-events:none}
@media (prefers-reduced-motion:no-preference){
  .intro .hair:not(.drawn)::before{transform:scaleX(0)}
  .intro .hair.drawn::before{transition:transform 1.4s var(--ease-io)}

  /* client cards: the image wipes open from a bottom corner */
  .intro .grid .card .card-media{clip-path:inset(100% 0 0 0)}
  .intro .grid .card:nth-child(3n+1) .card-media{clip-path:inset(100% 100% 0 0)}
  .intro .grid .card:nth-child(3n+2) .card-media{clip-path:inset(100% 0 0 100%)}
  .intro .grid .card.in .card-media{clip-path:inset(0 0 0 0);transition:clip-path 1.2s var(--ease-io) .1s}
  /* personal cards: fade in and settle from a slight zoom as they arrive */
  .intro .float .card:not(.in) .card-media{opacity:0}
  .intro .float .card:not(.in) .card-media canvas,.intro .float .card:not(.in) .card-media img{scale:1.12}
  .intro .float .card.in .card-media{opacity:1;transition:opacity 1.1s var(--ease-out)}
  .intro .float .card.in .card-media canvas,.intro .float .card.in .card-media img{scale:1;transition:scale 1.6s var(--ease-out), transform .9s var(--ease-out)}
  /* opening from a card: the view fades in while the picture flies into place (see openLb) */
  .lb.flip{clip-path:inset(0 0 0 0)!important;opacity:0;transition:opacity .55s ease!important}
  .lb.flip.open{opacity:1}
  .lb.flip .lb-media{clip-path:none!important;transition:none!important}
  .lb.flip .lb-media canvas,.lb.flip .lb-media img{scale:1!important;transition:none!important}
  .lb.flying .lb-media{visibility:hidden}

  /* hero: as you scroll on, the frame narrows and the logo drifts behind */
  .brand{transform:translate3d(0, calc(var(--hp, 0) * 24vh), 0);opacity:calc(1 - var(--hp, 0) * 1.15)}
  .hero-bottom{transform:translate3d(0, calc(var(--hp, 0) * 9vh), 0)}

  /* project view: slides up as a sheet, the picture settles, the text rises after it */
  .lb{--bd:.35s;clip-path:inset(100% 0 0 0);transition:clip-path 1s var(--ease-io)}
  .lb.open{clip-path:inset(0 0 0 0)}
  .lb-media{clip-path:inset(100% 0 0 0)}
  .lb-media.in{clip-path:inset(0 0 0 0);transition:clip-path 1.2s var(--ease-io) .1s}
  .lb-media canvas,.lb-media img{scale:1.18}
  .lb-media.in canvas,.lb-media.in img{scale:1;transition:scale 1.8s var(--ease-out) .1s}
  /* frames open one after another, from the bottom, when the strip arrives */
  .lb-frames:not(.in) .lb-frame{clip-path:inset(100% 0 0 0)}
  .lb-frames.in .lb-frame{clip-path:inset(0 0 0 0);transition:clip-path 1.2s var(--ease-io) calc(min(var(--k, 0), 8) * 80ms)}
  .lb-frames:not(.in) .lb-frame img{scale:1.4}
}

/* Λ: the letter itself is made invisible and the shape is painted in its place, in the text colour
   (only once the script has traced it: html.lam-on; otherwise a normal A shows) */
.lam-on .lam{position:relative;-webkit-text-fill-color:transparent}
.lam-on .lam::after{content:"";position:absolute;left:var(--lam-l);top:var(--lam-t);width:var(--lam-w);height:var(--lam-h);
  background:currentColor;clip-path:var(--lam-poly)}

/* ---------- studio: the founder and how the team works ---------- */
.studio-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:30px clamp(32px, 8vw, 160px);align-items:end}
.display.studio-name{font-size:clamp(76px, 9.5vw, 190px);line-height:.8;margin:14px 0 18px;margin-left:-.04em;white-space:nowrap}
.studio-copy .body{font-weight:400;font-size:clamp(16px, 1.25vw, 20px);line-height:1.5;letter-spacing:-.008em;color:#b9b9b9;max-width:34em}
.studio-copy .body + .body{margin-top:19px;color:var(--color-muted)}
@media (min-width:861px){ .studio-copy{justify-self:end;width:min(100%, 34em);padding-bottom:22px} }
.studio-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--color-ash);border:1px solid var(--color-ash);margin-top:clamp(46px, 6vw, 92px)}
.studio-points li{background:var(--color-paper);padding:30px;display:grid;gap:14px;align-content:start}
.studio-points strong{font-family:var(--font-head);font-weight:600;text-transform:uppercase;font-size:clamp(22px, 2.1vw, 32px);line-height:.95;letter-spacing:-.01em;color:var(--color-head)}
.studio-points p{color:var(--color-muted);font-size:15px;line-height:1.45;max-width:30ch}
@media (max-width:860px){
  .studio-grid,.studio-points{grid-template-columns:minmax(0,1fr)}
  .studio-points li{padding:22px 19px}
}

/* hero: the email under "Available worldwide" */
.hero-mail{display:inline-block;margin-top:4px;text-transform:none;letter-spacing:.02em;color:var(--color-muted);
  background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .3s, color .3s}
.hero-mail:hover{color:var(--color-head);background-size:100% 1px}

/* texture from the grey trial: stronger film grain, and a softer, wider blur on the drifting glow */
.grain{opacity:.22}
.orb-core{filter:blur(48px)}

/* hero wordmark: letters grow under the pointer (scale is set by the script) */
.bw-l{transition:scale .45s cubic-bezier(.22,1,.36,1)}


/* project view: the longer description under the one-line brief */
.lb-about{margin-top:clamp(22px, 2.6vw, 38px);max-width:36em;font-size:clamp(16px, 1.2vw, 19px);line-height:1.55;color:var(--color-muted)}

/* project view, brief: label on top, then the text on the left and the credits on the right;
   on phones everything stacks (brief → description → credits) */
.lb-brief{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);column-gap:clamp(40px, 7vw, 140px);row-gap:28px;
  padding-block:clamp(72px, 8vw, 120px) 56px;align-items:start}
.lb-side{grid-column:1 / -1;padding-top:0}
.lb-blurb{font-size:clamp(28px, 2.9vw, 48px);line-height:1.08}
.lb-about{max-width:40em}
.lb-dl{margin-top:.4em}
.lb-dl div{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)}
@media (max-width:860px){ .lb-brief{grid-template-columns:minmax(0,1fr)} .lb-dl{margin-top:0} }
.lb-about{margin-top:0}

/* keep a word and its full stop on the same line */
.nw{white-space:nowrap}

/* film grain sits behind the content: it textures the background but never covers photos, posts or text */
.grain{z-index:0}

/* phones: client tiles all the same height, logos at an even size */
@media (max-width:860px){
  .client{aspect-ratio:auto;min-height:clamp(150px, 42vw, 210px);align-self:stretch}
  .client img{max-height:46px;max-width:82%}
}
.lb-wipe-t{display:block;max-width:100%}

/* ---------- personal work: motion strip above the stills ---------- */
.motion{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(0,1fr) minmax(0,1fr);gap:var(--gap, clamp(12px, 1.9vw, 30px));
  align-items:start;margin-bottom:clamp(40px, 6vw, 90px)}
.motion[hidden]{display:none}
.mo{margin:0;display:flex;flex-direction:column;gap:12px;min-width:0}
.mo-media{position:relative;overflow:hidden;border-radius:6px;background:var(--color-stone)}
.mo-tall .mo-media{aspect-ratio:9/16}
.mo-wide .mo-media{aspect-ratio:auto}
.mo video{display:block;width:100%;height:100%;object-fit:cover;transition:scale 1.4s var(--ease-out)}
.mo:hover video{scale:1.045}
.mo figcaption{display:grid;gap:5px}
.mo-t{font-family:var(--font-head);font-weight:600;text-transform:uppercase;letter-spacing:-.01em;color:var(--color-head);font-size:clamp(17px, 1.55vw, 26px);line-height:.98}
/* the wide clip fills the same height as the tall ones beside it */
@media (min-width:861px){
  .motion{align-items:stretch}
  .mo-wide{display:grid;grid-template-rows:minmax(0,1fr) auto}
  .mo-wide .mo-media{height:100%}
}
@media (max-width:860px){
  .motion{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .mo-wide{grid-column:1 / -1}
  .mo-wide .mo-media{aspect-ratio:16/9}
}
/* entrance: each clip rises out of a soft mask, one after another */
@media (prefers-reduced-motion:no-preference){
  .motion .mo{opacity:0;translate:0 48px}
  .motion .mo-media{clip-path:inset(14% 0 0 0 round 6px)}
  .motion .mo video{scale:1.14}
  .motion.in .mo{opacity:1;translate:0 0;transition:opacity 1s ease calc(var(--i) * .14s), translate 1.4s var(--ease-out) calc(var(--i) * .14s)}
  .motion.in .mo-media{clip-path:inset(0 0 0 0 round 6px);transition:clip-path 1.4s var(--ease-out) calc(var(--i) * .14s)}
  .motion.in .mo video{scale:1;transition:scale 1.8s var(--ease-out) calc(var(--i) * .14s)}
  .motion.in .mo:hover video{scale:1.045;transition:scale 1.4s var(--ease-out)}
}

/* project view: a second film of the same client, under the brief */
.lb-more{padding-block:0 clamp(56px, 7vw, 110px)}
.lb-more-k{margin-bottom:22px}
.lb-more-in{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);column-gap:clamp(40px, 7vw, 140px);row-gap:22px;align-items:end}
.lb-more-media{border-radius:6px;overflow:hidden;background:var(--color-stone);aspect-ratio:16/9}
.lb-more-media video{display:block;width:100%;height:100%;object-fit:cover;background:#000}
.lb-more-t{font-family:var(--font);font-weight:500;font-size:clamp(24px, 2.2vw, 36px);line-height:1.1;letter-spacing:-.02em;color:var(--color-head);margin-bottom:16px}
.lb-more-about{font-size:clamp(16px, 1.2vw, 19px);line-height:1.55;color:var(--color-muted);max-width:32em}
@media (max-width:860px){ .lb-more-in{grid-template-columns:minmax(0,1fr)} }

/* motion strip: four tall clips side by side (two by two on phones) */
.motion{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:860px){ .motion{grid-template-columns:repeat(2,minmax(0,1fr))} }
