/* ==========================================================================
   MRBO — portfolio
   White ground, black grotesque, no serif, nothing ever set over an image.
   Type sits at the bottom edge of every section; imagery sits above it.
   ========================================================================== */

@font-face{
  font-family:"Satoshi";
  src:url("Satoshi-Variable.woff2") format("woff2");
  font-weight:300 900;
  font-style:normal;
  font-display:swap;
}

:root{
  --paper:#fff;
  --ink:#000;
  --hair:rgba(0,0,0,.14);
  --ease:cubic-bezier(.16,1,.3,1);
  --ease-io:cubic-bezier(.65,.05,.36,1);
  --edge:clamp(16px,2.6vw,40px);
  --bar-h:52px;
  --gap:clamp(6px,.9vw,14px);
  --sans:"Satoshi","Helvetica Neue",Helvetica,Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{background:#fff;color-scheme:light only;-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--sans);font-size:16px;line-height:1.35;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  text-transform:uppercase;
  overflow-x:hidden;
}
::selection{background:var(--ink);color:var(--paper)}
a{color:inherit;text-decoration:none}
img,video,svg{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
figure{margin:0}

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

.display{
  font-family:var(--sans);font-weight:400;text-transform:uppercase;
  line-height:.9;letter-spacing:-.015em;margin:0;
}
.meta{
  font-family:var(--sans);text-transform:uppercase;
  font-size:clamp(11px,.8vw,13px);letter-spacing:.1em;line-height:1.2;margin:0;
}
.meta--lg{font-size:clamp(13px,1.1vw,18px);letter-spacing:.06em}
.copy{
  font-size:clamp(14px,1.1vw,18px);line-height:1.45;letter-spacing:0;
  margin:0;max-width:44ch;
}

/* --- per-character reveal -------------------------------------------------- */

.split{display:block}
.split .word{display:inline-block;white-space:nowrap}
.split .char{
  display:inline-block;transform:translateY(112%);opacity:0;
  transition:transform 1.05s var(--ease),opacity .6s linear;
  transition-delay:calc(var(--i) * 22ms);will-change:transform;
}
.split.clip{overflow:hidden;padding-bottom:.05em}
.is-in .split .char{transform:none;opacity:1}
.rise{transform:translateY(22px);opacity:0;transition:transform 1s var(--ease),opacity .8s linear;transition-delay:var(--d,0ms)}
.is-in .rise{transform:none;opacity:1}
@media (prefers-reduced-motion:reduce){
  .split .char,.rise{transition-duration:1ms!important;transform:none!important;opacity:1!important}
}

/* --- letter-roll hover link ------------------------------------------------ */

.roll{position:relative;display:inline-block;overflow:hidden;vertical-align:top}
.roll span{display:block;transition:transform .55s var(--ease);transition-delay:calc(var(--i) * 16ms)}
.roll .b{position:absolute;inset:0;transform:translateY(100%)}
a:hover .roll .a,button:hover .roll .a{transform:translateY(-100%)}
a:hover .roll .b,button:hover .roll .b{transform:translateY(0)}

/* ==========================================================================
   CHROME — a solid paper bar top (and bottom on case pages), so the
   navigation is never set over imagery
   ========================================================================== */

.bar{
  position:fixed;top:0;left:0;right:0;z-index:90;
  height:var(--bar-h);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 var(--edge);
  color:#fff;mix-blend-mode:difference;
  pointer-events:none;
}
.bar > *{pointer-events:auto}
.bar a{font-size:clamp(12px,.9vw,14px);letter-spacing:.02em;line-height:1}
.bar__name{font-weight:500}

.hud{
  position:fixed;left:0;right:0;bottom:0;z-index:90;
  height:var(--bar-h);
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:0 var(--edge);
  color:#fff;mix-blend-mode:difference;
  font-variant-numeric:tabular-nums;
  pointer-events:none;
}
.hud__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ==========================================================================
   HOME — the wordmark is fixed to the bottom edge, full width, and the
   pieces scroll up over it
   ========================================================================== */

.mast{
  position:fixed;left:0;right:0;bottom:0;z-index:1;
  width:100vw;
  aspect-ratio:1800 / 390;
  pointer-events:none;
  background:var(--paper);
}
.mast__tex{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:fill;
  visibility:hidden;
}
.mast__tex.is-on{visibility:visible}
.mast__flat{position:absolute;inset:0;color:var(--ink);display:grid;place-items:center;padding:0 1.6%}
.mast__flat svg{width:100%;height:auto}
.mast.has-tex .mast__flat{display:none}

.hero{
  position:relative;z-index:2;
  height:100svh;min-height:520px;
  padding:calc(var(--bar-h) + var(--edge)) var(--edge) 0;
  pointer-events:none;
}

/* --- piece panels: full-screen, fully opaque media; a small line of type over it */

.pieces{position:relative;z-index:10}

.panel{
  position:sticky;top:0;display:block;
  height:100svh;width:100%;
  background:var(--paper);
  overflow:hidden;
}
.panel__media{position:absolute;inset:0;background:#eee}
.panel__media img,.panel__media video{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
}
.panel__media img{transform:scale(1.06);transition:transform 1.8s var(--ease)}
.panel.is-in .panel__media img{transform:none}
.panel__media video{opacity:0;transition:opacity .6s var(--ease-io)}
.panel__media video.is-playing{opacity:1}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer{
  position:relative;z-index:60;
  background:#000;color:#fff;
  padding:clamp(40px,6vw,90px) var(--edge) var(--edge);
  display:grid;gap:clamp(34px,5vw,70px);
}
.footer__grid{display:grid;gap:clamp(24px,3vw,48px);grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.footer__h{font-family:var(--sans);font-size:clamp(11px,.8vw,13px);letter-spacing:.1em;line-height:1.2;margin-bottom:1.6em;opacity:.55}
.footer__list{display:grid;gap:.5em;list-style:none;margin:0;padding:0}
.footer__list .meta--lg{font-size:clamp(11px,.85vw,13px);letter-spacing:.08em}
.footer__base{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;opacity:.6}
.footer__mark{color:#fff;margin-top:clamp(10px,2vw,28px)}
.footer__mark svg{width:100%;height:auto;display:block}

/* ==========================================================================
   CASE PAGES — a continuous reel: title viewport, then every video and
   still at full scale, then straight into the next case
   ========================================================================== */

.cases{position:relative;padding-bottom:var(--bar-h)}

.case{position:relative}

.case__head{
  position:relative;
  min-height:100svh;
  display:grid;place-items:center;
  overflow:hidden;
}
.case__bg{position:absolute;inset:0;z-index:0;background:#111}
.case__bg img,.case__bg video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.case__bg video{opacity:0;transition:opacity .6s var(--ease-io)}
.case__bg video.is-playing{opacity:1}
.case .case__logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;mix-blend-mode:normal;width:calc(clamp(150px,24vw,380px) * var(--s,1) * .5)}

/* the copy sits on its own, on the paper, between the cover and the frames */
.case__intro{padding:clamp(28px,4vw,64px) var(--edge);scroll-margin-top:var(--bar-h)}
.case .case__top{
  display:grid;gap:clamp(20px,3vw,48px);
  grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);
  align-items:start;
}
.case__t{margin-bottom:.5em}
.case__sub{opacity:.6;margin-bottom:1.2em}
.case__desc{font-size:clamp(12px,.95vw,15px);line-height:1.5;max-width:56ch;margin:0;text-transform:none;letter-spacing:0}
.case__dl{display:grid;grid-template-columns:auto 1fr;gap:.35em 1.6em;margin:0}
.case__dl dt{opacity:.45}
.case__dl dd{margin:0}
.case__title{
  position:relative;z-index:2;color:#fff;width:100%;text-align:center;
  font-size:clamp(40px,9vw,200px); /* fallback; JS fits the line to the width */
  white-space:nowrap;
  line-height:.92;
}
.todo{
  display:inline-block;border:1px solid currentColor;
  padding:.25em .5em;margin-bottom:.8em;
  font-size:10px;letter-spacing:.14em;opacity:.55;
}
@media (max-width:760px){
  .case .case__top{grid-template-columns:1fr}
}

/* the About page borrows the head/top classes on a plain white ground */
.about .case__top{
  display:grid;gap:clamp(24px,3vw,48px);
  grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);
  align-items:start;
}

/* --- the reel ------------------------------------------------------------- */

.reel{display:grid;gap:0}

.m{position:relative;overflow:hidden}
.m__clip{
  position:absolute;inset:0;
  background:#eee;
  clip-path:inset(0 0 100% 0);
  transition:clip-path 1.15s var(--ease);
}
.m.is-in .m__clip{clip-path:inset(0)}
.m__clip > img,.m__clip > video{
  width:100%;height:100%;object-fit:cover;
  transform:scale(1.05);transition:transform 1.8s var(--ease);
}
.m.is-in .m__clip > img,.m.is-in .m__clip > video{transform:none}

/* landscape: edge to edge, natural height */
.m--land{width:100%;aspect-ratio:var(--ar)}

/* portrait and square frames run edge to edge, two to a row; the pair shares
   one height (the shorter frame crops to match) so nothing shows white */
.row{display:grid;grid-template-columns:repeat(var(--n,1),minmax(0,1fr));gap:0}
.row .m{width:100%;aspect-ratio:var(--ar);max-height:130svh;min-width:0}
.row--1 .m{max-height:100svh}

@media (max-width:700px){
  .row{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .m__clip{clip-path:none!important}
  .m__clip > img,.m__clip > video{transform:none!important}
}

.case__end{height:0}

/* ==========================================================================
   ABOUT — three columns of copy, the wordmark sitting directly beneath
   ========================================================================== */

.about{padding:calc(var(--bar-h) + var(--edge) * 1.6) var(--edge) calc(var(--edge) * 2.4)}
.about__grid{
  display:grid;gap:clamp(28px,4vw,72px);
  grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) minmax(0,1fr);
  align-items:start;
}
.about__h{margin-bottom:2.4em}
.about__id{margin-bottom:1.6em}
.about__p{margin-bottom:1.1em;max-width:62ch;opacity:.55}
.about__list{list-style:none;margin:0;padding:0;display:grid;gap:1.5em}
.about__list .copy{max-width:none}
.mast--static{position:relative;z-index:2;pointer-events:auto}
@media (max-width:900px){.about__grid{grid-template-columns:1fr}}

/* no imagery on the About page: give the bar a solid paper ground so copy
   can scroll beneath it cleanly */
.page-about .bar{background:var(--paper);color:var(--ink);mix-blend-mode:normal}

/* ==========================================================================
   BRAND LOGOS — white, difference-blended, centred on screen
   ========================================================================== */

.logo{
  color:#fff;mix-blend-mode:difference;
  width:calc(clamp(150px,24vw,380px) * var(--s,1));
  pointer-events:none;
}
.logo svg{width:100%;height:auto;display:block;overflow:visible}
.logo svg :not([fill="none"]){fill:currentColor}
.logo svg [stroke]:not([stroke="none"]){stroke:currentColor}

.panel__logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);mix-blend-mode:normal;width:calc(clamp(150px,24vw,380px) * var(--s,1) * .5)}
.panel__logo--text{width:auto;max-width:80vw;text-align:center}
.panel__foot{position:absolute;left:var(--edge);right:var(--edge);bottom:calc(var(--edge) + env(safe-area-inset-bottom,0px));margin:0;
  display:flex;justify-content:space-between;align-items:flex-end;gap:24px;color:#fff;mix-blend-mode:difference}
.panel__tags{text-align:right}
@media (max-width:700px){.panel__tags{display:none}}
.panel__title{font-size:clamp(22px,3vw,48px);letter-spacing:-.01em;line-height:1;margin:0;text-transform:uppercase}

.case__logo{grid-row:2;place-self:center}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* About copy runs at meta size */
.about .copy{font-size:clamp(11px,.78vw,13px);line-height:1.55;letter-spacing:.04em}
.about__p{max-width:70ch}

.about__signoff{margin-top:2.6em;opacity:1}
.about__signoff a:hover{opacity:.5}

/* ==========================================================================
   MOBILE — the full wordmark, bigger than the screen, as a ticker; each pass a different texture
   ========================================================================== */

.ticker{display:none;position:relative;width:100%;overflow:hidden}
.ticker__track{display:flex;align-items:center;width:max-content;animation:tick 260s linear infinite;will-change:transform}
.ticker img{width:340vw;height:auto;margin-right:12vw;display:block}
@keyframes tick{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.ticker__track{animation-duration:90s}}

@media (max-width:700px){
  .mast{aspect-ratio:auto;height:auto}
  .mast__flat,.mast__tex{display:none}
  .ticker{display:block}
}

/* framed frames (phone*.*): centred and uncropped on a white 4:5 card */
.m--frame .m__clip{background:var(--bg,#fff)}
.m--frame img,.m--frame video{position:absolute;inset:calc((1 - var(--fs,.82)) * 50%);width:calc(var(--fs,.82) * 100%);height:calc(var(--fs,.82) * 100%);object-fit:contain}
/* a row's frames share one height: the taller one sets it, the other fills */
.row .m{align-self:stretch}

/* ==========================================================================
   GATE — the home header, with the password field where the name sits
   ========================================================================== */
.gate{display:flex;align-items:center;gap:.9em;font-size:clamp(12px,.9vw,14px);letter-spacing:.02em}
.gate__in{font:inherit;letter-spacing:inherit;text-transform:uppercase;width:11ch;padding:0 0 2px;border:0;border-bottom:1px solid currentColor;border-radius:0;background:none;color:inherit;outline:none}
.gate__in::placeholder{color:inherit;opacity:.45}
.gate__go{font:inherit;letter-spacing:inherit;text-transform:uppercase;border:0;background:none;color:inherit;cursor:pointer;opacity:.55;padding:0}
.gate__go:hover{opacity:1}
.gate__err{opacity:.45}

/* preloader: a hairline that fills as this page's media arrives */
.preload{position:fixed;top:0;left:0;height:2px;width:0;background:#000;z-index:120;transition:width .35s var(--ease),opacity .5s linear .3s;pointer-events:none}
.preload.is-done{width:100%;opacity:0}

/* trio: three portrait frames together on one full-bleed 16:9 card */
.trio .m__clip{background:var(--bg,#fff);display:flex;align-items:center;justify-content:center;gap:var(--gap,100px)}
.trio .m__clip video,.trio .m__clip img{position:relative;inset:auto;width:auto;height:76%;object-fit:contain;flex:0 0 auto}
@media (max-width:900px){.trio .m__clip{gap:calc(var(--gap,100px) * .3)}}
@media (max-width:700px){.trio .m__clip{gap:4vw}}

/* iOS: keep the system status bar on pure white, whatever scrolls beneath */
.statusbar{position:fixed;top:0;left:0;right:0;height:env(safe-area-inset-top,0px);background:#fff;z-index:150;pointer-events:none}
.bar{top:env(safe-area-inset-top,0px)}
.preload{top:env(safe-area-inset-top,0px)}
.hud{padding-bottom:env(safe-area-inset-bottom,0px);height:calc(var(--bar-h) + env(safe-area-inset-bottom,0px))}

/* ==========================================================================
   MENU — overlay behind the bar; big links anchored to the base
   ========================================================================== */
.bar__menu{font:inherit;letter-spacing:.02em;text-transform:uppercase;color:inherit;background:none;border:0;cursor:pointer;font-size:clamp(12px,.9vw,14px);
  /* a generous tap target that keeps the label where it was */
  padding:16px 0 16px 24px;margin:-16px 0 -16px -24px;min-height:44px;min-width:64px;display:inline-flex;align-items:center;justify-content:flex-end;
  touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.bar__name{padding:16px 24px 16px 0;margin:-16px -24px -16px 0;display:inline-flex;align-items:center;min-height:44px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.menu{position:fixed;inset:0;z-index:85;background:#fff;color:#000;visibility:hidden;
  display:flex;flex-direction:column;justify-content:flex-end;padding-top:calc(var(--bar-h) + env(safe-area-inset-top,0px));will-change:transform}
.menu__list{list-style:none;margin:0;padding:0}
.menu__item{position:relative;overflow:hidden;--line:0}
.menu__item::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:#000;transform:scaleX(var(--line));transform-origin:left}
.menu__item:last-child::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:#000;transform:scaleX(var(--line));transform-origin:left}
.menu__link{display:block;padding:clamp(10px,1.6vw,22px) var(--edge);font-size:clamp(44px,7.5vw,120px);line-height:1;text-transform:uppercase;will-change:transform}
.menu__link:hover{opacity:.45}
.menu__foot{display:flex;gap:clamp(18px,2.4vw,36px);padding:clamp(14px,1.6vw,22px) var(--edge) calc(clamp(14px,1.6vw,22px) + env(safe-area-inset-bottom,0px))}
.menu__foot a:hover{opacity:.5}
html.menu-open{overflow:hidden}
html.menu-open .bar{mix-blend-mode:normal;color:#000}

/* ==========================================================================
   ABOUT — photo | bio | awards & speaking
   ========================================================================== */
.about__grid{grid-template-columns:clamp(150px,13vw,190px) minmax(0,1.7fr) minmax(0,1fr)}
.about__photo{margin:0;width:100%;aspect-ratio:1;overflow:hidden;background:#eee}
.about__photo img{width:100%;height:100%;object-fit:cover;display:block;filter:grayscale(1)}
.about__side{display:grid;gap:clamp(34px,4vw,60px);align-content:start}
@media (max-width:900px){
  .about__grid{grid-template-columns:1fr}
  .about__photo{width:100%;aspect-ratio:1}
}

/* ==========================================================================
   FUN — a floating cloud of thumbnails; one grows, the rest line up beneath
   ========================================================================== */
.page-fun{overflow:hidden}
.fun{height:100svh;padding-top:calc(var(--bar-h) + env(safe-area-inset-top,0px))}
.desk{position:relative;height:100%;overflow:hidden;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.desk:active{cursor:grabbing}
.desk__layer{position:absolute;inset:0}
.card{position:absolute;left:0;top:0;width:60px;margin:0;cursor:pointer;outline:none;will-change:transform,width;z-index:10}
.card__media{position:relative;aspect-ratio:var(--ar,16 / 9);overflow:hidden;background:transparent;transform:translateZ(0);backface-visibility:hidden}
.card__media video,.card__media img{position:absolute;inset:-0.5px;width:calc(100% + 1px);height:calc(100% + 1px);object-fit:cover;display:block}
.card.is-big{cursor:zoom-out}
.fun__info{position:absolute;left:0;top:0;opacity:0;pointer-events:none;display:grid;gap:.6em}
.fun__cap{margin:0}
.fun__desc{margin:0;font-size:clamp(11px,.72vw,12px);line-height:1.5;text-transform:uppercase;letter-spacing:.08em;opacity:.6;max-width:60ch}
.desk__layer{perspective:900px}
.fun__hint{position:absolute;left:var(--edge);right:var(--edge);bottom:calc(var(--edge) * 1.2 + env(safe-area-inset-bottom,0px));text-align:center;opacity:0;pointer-events:none;letter-spacing:.12em;line-height:1.6;will-change:filter,transform}


.fun__info a{position:relative;pointer-events:auto;text-transform:uppercase;letter-spacing:.1em;font-size:clamp(11px,.8vw,13px);padding-bottom:2px}
.fun__info a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .55s var(--ease)}
.fun__info a.is-drawn::after{transform:scaleX(1)}
.fun__info a:hover{opacity:.5}
.fun__desc{opacity:.75}

/* Fun: one type size for everything */
.page-fun .fun__cap,.page-fun .fun__desc,.page-fun .fun__info a,.page-fun .fun__hint{font-size:clamp(11px,.78vw,13px);letter-spacing:.1em;line-height:1.6}

/* the statement breaks in two on phones only */
.m-only{display:none}
@media (max-width:700px){.m-only{display:block}.d-only{display:none !important}}

/* typed text wraps at words; the link never breaks and sits on its own line on phones */
.fun__info a{display:inline-block;white-space:nowrap}
@media (max-width:700px){
  .fun__info a{display:block;margin-top:.5em;width:max-content}
}

/* About: links underline draws once the sign-off is typed */
.about__signoff a{position:relative;text-decoration:none}
.about__signoff a::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .55s var(--ease)}
.about__signoff.is-drawn a::after{transform:scaleX(1)}
.about__photo{opacity:0}
@media (prefers-reduced-motion:reduce){.about__photo{opacity:1}}

/* no widows */
.copy,.about__p,.case__desc,.fun__desc,.fun__cap,.fun__hint{text-wrap:pretty}

/* About: a small nudge while the text is still typing */
.skip{position:fixed;left:0;right:0;bottom:calc(var(--edge) * .9 + env(safe-area-inset-bottom,0px));z-index:70;
  display:flex;flex-direction:column;align-items:center;gap:8px;opacity:0;pointer-events:none;letter-spacing:.14em;font-size:10px}
.skip i{display:block;width:1px;height:26px;background:currentColor;transform-origin:top;animation:skipDrop 1.8s var(--ease-io) infinite}
@keyframes skipDrop{0%{transform:scaleY(0);opacity:0}30%{opacity:1}70%{transform:scaleY(1);opacity:1}100%{transform:scaleY(1);opacity:0}}

/* home: a short cue in the centre, then gone */
.hero{position:relative}
.hero__cue{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:10px;opacity:0;pointer-events:none;letter-spacing:.14em;font-size:10px}
.hero__cue i{display:block;width:1px;height:26px;background:currentColor;transform-origin:top;animation:skipDrop 1.8s var(--ease-io) infinite}

/* "Work" from the menu: the covers sweep over the screen one by one first */
.work-intro{position:fixed;inset:0;z-index:300;background:#fff;overflow:hidden;pointer-events:none}
.work-intro__cover{position:absolute;inset:0;background-size:cover;background-position:center}
