/* ============================================================
   Portfolio 04

   Monochrome. No coloured accent anywhere — the other three each
   lean on one, so this leans on inversion instead: the reel sits
   in a full-bleed black band between two light ones.

   Chrome: nothing is permanently pinned. The identity block
   scrolls away and each section's chapter header sticks, the next
   one sliding over the last.
   ============================================================ */

/* ---------- fonts ---------- */
/* Big Shoulders is extremely condensed — poster type, useless small.
   Instrument Sans carries everything under ~20px. */
@font-face{
  font-family:'Shoulders';
  src:url(../fonts/Shoulders.woff2) format('woff2');
  font-weight:100 900;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Instrument';
  src:url(../fonts/Instrument.woff2) format('woff2');
  font-weight:100 900;font-style:normal;font-display:swap;
}

/* ---------- tokens ---------- */
:root{
  /* near-white, and neutral on purpose: not the warm white of the
     sibling site, so the two never share a ground colour */
  --paper:#FAFAF9;
  --paper-2:#EFEFED;
  --ink:#0B0B0A;
  --ink-2:#4A4844;         /* 8.7 : 1 on paper */
  --ink-3:#63615C;         /* 5.9 : 1 on paper */

  --dark:#0B0B0A;
  --dark-2:#161614;
  --on-dark:#EFEEEB;       /* on the viewer backdrop only, now */
  --on-dark-2:#9C9A94;

  /* ACCENT: amber/gold, on trial (2026-09-23). The violet it replaced:
       --accent:#6D28D9; --accent-ink:#4C1D95; --on-accent:#fff;
       --accent-2:#4C1D95; --accent-light:#C9B8FF
     Amber is a light colour, so unlike the violet it takes DARK text on a
     fill, and text on paper uses a deep bronze - bright amber there is
     2.1 : 1 and unreadable. */
  --accent:#E8A317;       /* fills: 9.1 : 1 under --on-accent */
  --accent-2:#D08A00;     /* fill, hovered: 6.9 : 1 under --on-accent */
  --on-accent:#0B0B0A;    /* text on a fill */
  /* one amber everywhere, as asked (2026-09-23): text included. On paper
     that is 2.1 : 1 - below the 4.5 : 1 text minimum - so small amber text
     is harder to read. The bronze it replaced was #8A5A0B (5.7 : 1); put it
     back here to restore readable accent text without changing the fills. */
  --accent-ink:var(--accent);
  --accent-light:var(--accent);
  --focus:#8A5A0B;        /* keyboard focus ring stays dark enough to see: 5.7 : 1 */
  --bg-o:1;            /* hero photo opacity: full strength; the wash below carries legibility */

  --rule:rgba(11,11,10,.16);
  --rule-dark:rgba(239,238,235,.18);

  --disp:'Shoulders',Impact,'Haettenschweiler',sans-serif;
  --ui:'Instrument',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;

  --ease:cubic-bezier(.2,.8,.3,1);
  --ease-out:cubic-bezier(.22,1,.36,1);

  --pad:clamp(16px,4vw,64px);
  --head:clamp(52px,6vh,68px);   /* chapter header height */
}

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--ui);font-weight:400;
  font-size:clamp(14.5px,.95vw,16px);line-height:1.55;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
img,video{display:block;max-width:100%}
ul{margin:0;padding:0}
li{list-style:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
:focus-visible{outline:2px solid currentColor;outline-offset:2px}

.skip{
  position:fixed;top:10px;left:10px;z-index:300;transform:translateY(-200%);
  background:var(--ink);color:var(--paper);padding:10px 16px;
  font-size:12px;font-weight:500;transition:transform .25s var(--ease);
}
.skip:focus{transform:none}

/* ============================================================
   identity — scrolls away, nothing takes its place
   ============================================================ */
.id{
  min-height:100vh;min-height:100svh;   /* svh: mobile toolbars do not push it past the fold */
  display:flex;flex-direction:column;
  padding-bottom:clamp(22px,3.5vh,40px);
}

/* The hero is the photo, full-bleed, ending on a clean edge above the nav
   row - no fade to paper. The photo is a dark editing suite, so the type is
   light and a dark shade sits behind it: in from the left on desktop, up
   from the bottom on a phone, where the type runs under the face. Every
   text colour is measured against the LIGHTEST pixels behind it (see the
   README), since for light type those are the worst case. */
.id__hero{
  position:relative;isolation:isolate;
  flex:1 1 auto;min-height:0;overflow:hidden;   /* overflow: the photo drifts on scroll */
  display:flex;align-items:flex-end;
  /* the bottom is the larger: the type sits up off the photo's lower edge */
  padding:clamp(56px,11vh,124px) var(--pad) clamp(80px,14vh,160px);
}
.id__bg{position:absolute;inset:0;z-index:-2;overflow:hidden}
.id__bg img{
  display:block;width:100%;height:100%;object-fit:cover;
  object-position:50% 22%;    /* centred, and the head stays in at every crop */
  opacity:var(--bg-o);
}
/* a tall screen shows a slice of the photo's width; the face sits at 55%
   across (media/hero-2.jpg), so the crop moves right to centre it */
@media (max-aspect-ratio:1/1){.id__bg img{object-position:56% 22%}}
/* the shade: on the hero, not on .id__bg - the photo drifts on scroll and
   would drag its shade with it */
.id__hero::before{
  content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    linear-gradient(0deg,rgba(9,9,12,.5) 0%,rgba(9,9,12,.32) 18%,rgba(9,9,12,.12) 32%,rgba(9,9,12,0) 44%),
    linear-gradient(90deg,rgba(9,9,12,.66) 0%,rgba(9,9,12,.54) 28%,rgba(9,9,12,.3) 44%,rgba(9,9,12,.08) 56%,rgba(9,9,12,0) 64%);
}
.id__text{position:relative;max-width:min(54%,760px);text-shadow:0 1px 2px rgba(0,0,0,.28)}

.id__name{
  font-family:var(--disp);font-weight:700;text-transform:uppercase;
  font-size:clamp(54px,10.5vw,150px);line-height:.82;letter-spacing:.005em;
  color:#FAFAF9;
}
.id__name span{display:block}
/* N-tilde rises to 0.878em against a 0.8em cap height; at .82 leading the
   accent sat 5px from the E above and read as part of line one. */
.id__name span+span{margin-top:.24em}

.id__tag{
  margin-top:clamp(20px,3vh,34px);
  font-weight:600;font-size:clamp(21px,2vw,32px);line-height:1.15;
  letter-spacing:-.012em;color:#FAFAF9;
}
.id__lede{
  max-width:48ch;margin-top:clamp(14px,2vh,22px);
  font-size:clamp(15px,1.05vw,18px);line-height:1.6;color:#E6E4DF;
}
.id__lede p+p{margin-top:.75em}
/* the sign-off is the line meant to be kept: brightest and heavier */
.id__sign{color:#FAFAF9;font-weight:600}

@media (max-width:820px){
  /* Still full-bleed. The type is pushed down so the face stays clear of
     it in the top of the screen instead of being written across. */
  .id__hero{display:block;min-height:0;padding-top:clamp(300px,60vh,470px);padding-bottom:clamp(40px,7vh,84px)}
  .id__text{max-width:none}
  /* type runs full width under the face, so the shade comes up from the
     bottom instead of in from the left */
  .id__hero::before{background:linear-gradient(0deg,rgba(9,9,12,.9) 0%,rgba(9,9,12,.84) 30%,rgba(9,9,12,.7) 45%,rgba(9,9,12,.45) 55%,rgba(9,9,12,.18) 63%,rgba(9,9,12,0) 70%)}
}
/* no rule on top: the photo's bottom edge already divides them */
.id__row{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:10px clamp(18px,3vw,40px);
  margin:clamp(20px,3vh,32px) var(--pad) 0;
}
.id__role{font-weight:500}
.id__meta{color:var(--ink-3)}
/* availability: a filled block, since there is no accent colour to use */
.id__open{
  background:var(--accent);color:var(--on-accent);padding:5px 11px;
  font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
}
.id__nav{margin-left:auto;display:flex;flex-wrap:wrap;gap:8px clamp(12px,2vw,26px)}
/* a label never breaks mid-name: "Short Form / Videos" on two lines read as
   two links. The list wraps between labels instead. */
.id__nav a{white-space:nowrap}
.id__nav a{border-bottom:1px solid var(--rule);padding-bottom:2px;transition:border-color .3s var(--ease)}
.id__nav a:hover{border-bottom-color:var(--ink)}
/* phones: a 2x2 grid, not four labels squeezed onto one line, with enough
   height on each to be a comfortable tap */
@media (max-width:640px){
  .id__nav{margin-left:0;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:4px 20px}
  .id__nav a{justify-self:start;padding-top:10px;padding-bottom:6px}
}

/* ============================================================
   chapter headers — sticky, and they stack
   ============================================================ */
/* Each sits at top:0 with a higher z-index than the one before, so
   scrolling slides the next chapter over the last rather than swapping
   one bar's contents. Nothing else on the page is pinned. */
.chap{
  position:sticky;top:0;z-index:5;
  height:var(--head);display:flex;align-items:center;gap:14px;
  padding-inline:var(--pad);
  background:var(--paper);border-bottom:1px solid var(--rule);
}
#short-form .chap{z-index:6}
#long-form .chap{z-index:7}
#graphic-design .chap{z-index:8}
#tools .chap{z-index:9}
.chap b{
  font-family:var(--disp);font-weight:700;text-transform:uppercase;
  font-size:clamp(22px,2.6vw,34px);line-height:1;letter-spacing:.01em;
}
.chap i{
  font-style:normal;font-size:11.5px;font-weight:500;letter-spacing:.06em;
  color:var(--ink-3);
}
.chap em{
  font-style:normal;margin-left:auto;font-size:12px;color:var(--ink-3);
  text-align:right;
}
@media (max-width:620px){.chap em{display:none}}

/* ============================================================
   reel
   ============================================================ */
/* was the inverted navy band; the reel sits on paper now */
.band--dark{background:var(--paper);color:var(--ink)}
/* Straight rows, no stagger. Fifteen pieces: five across, three across,
   two across. The phone layout leaves one tile alone on the last row -
   in a straight grid that reads as the end of the list. The width cap
   matters: 9:16 is tall, and uncapped the frames outgrow the screen. */
.ladder{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(12px,1.6vw,24px);
  max-width:1500px;margin-inline:auto;
  padding:clamp(24px,4vh,54px) var(--pad) clamp(46px,8vh,110px);
  align-items:start;
}

.cut__hit{display:block;width:100%;text-align:left}
.cut__frame{
  display:block;position:relative;overflow:hidden;background:var(--dark-2);
  aspect-ratio:9/16;
}
.cut__frame video{width:100%;height:100%;object-fit:cover;transition:transform 1s var(--ease)}
.cut__hit:hover .cut__frame video{transform:scale(1.04)}
.cut__watch{
  position:absolute;left:0;bottom:0;
  background:var(--on-dark);color:var(--ink);
  padding:8px 14px;font-size:11.5px;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase;
  transform:translateY(100%);transition:transform .45s var(--ease-out);
}
.cut__hit:hover .cut__watch,.cut__hit:focus-visible .cut__watch{transform:none}

.cut__cap{
  display:grid;grid-template-columns:auto 1fr auto;align-items:baseline;
  gap:2px 12px;padding-top:12px;
  border-top:1px solid var(--rule);margin-top:12px;
}
.cut__cap i{font-style:normal;grid-column:1;grid-row:1/3;align-self:center;
  font-size:11.5px;font-weight:500;color:var(--ink-3)}
.cut__cap b{
  grid-column:2;grid-row:1;
  font-family:var(--disp);font-weight:700;text-transform:uppercase;
  font-size:clamp(20px,2.2vw,32px);line-height:1;letter-spacing:.01em;
}
.cut__cap em{grid-column:2;grid-row:2;font-style:normal;font-size:12.5px;color:var(--ink-2)}
.cut__cap u{grid-column:3;grid-row:1/3;align-self:center;text-decoration:none;
  font-size:12px;color:var(--ink-3)}

@media (max-width:1280px){.ladder{grid-template-columns:repeat(3,minmax(0,1fr));max-width:980px}}
@media (max-width:620px){.ladder{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ============================================================
   stills — twelve pieces, one ratio, plain three-up
   ============================================================ */
/* Every asset here is 1080×1350, which is why this can be a plain grid
   with no masonry and every row lines up. Add a different ratio and it
   will not. */
/* A moving wall: three rows drifting in alternating directions. Each row is
   a real scroll container, so it can be dragged and swiped; the edges fade
   with a mask rather than an overlay, so nothing depends on the page colour. */
.wall{
  display:grid;gap:clamp(10px,1.4vw,20px);
  padding:clamp(24px,4vh,54px) 0 clamp(46px,8vh,110px);
}
.wall__row{
  overflow-x:auto;overflow-y:hidden;
  padding-block:8px;margin-block:-8px;      /* room for the hover lift */
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;scroll-behavior:auto;cursor:grab;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--pad),#000 calc(100% - var(--pad)),transparent);
          mask-image:linear-gradient(90deg,transparent,#000 var(--pad),#000 calc(100% - var(--pad)),transparent);
}
.wall__row::-webkit-scrollbar{display:none}
.wall__row.is-grabbing{cursor:grabbing;user-select:none}
.wall__row.is-grabbing .still__hit{pointer-events:none}
.wall__track{display:flex;gap:clamp(10px,1.4vw,20px);width:max-content;margin:0;padding:0;list-style:none}
.wall__track>li{flex:0 0 auto;width:clamp(150px,17vw,250px)}
.wall .still__frame{transition:transform .5s var(--ease-out)}
.wall .still__hit:hover .still__frame{transform:translateY(-4px)}

.still__hit{display:block;width:100%;text-align:left}
.still__frame{
  display:block;position:relative;overflow:hidden;background:var(--paper-2);
  aspect-ratio:4/5;
}
.still__frame img{width:100%;height:100%;object-fit:cover;transition:transform 1s var(--ease)}
.still__hit:hover .still__frame img{transform:scale(1.04)}
.still__cap{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  padding-top:11px;margin-top:11px;border-top:1px solid var(--rule);
  font-size:12.5px;color:var(--ink-2);
}
.still__cap span{transition:color .3s var(--ease)}
.still__hit:hover .still__cap span{color:var(--ink)}
.still__cap i{font-style:normal;color:var(--ink-3);flex:0 0 auto;font-size:11.5px}

/* ============================================================
   tools — a specimen list, name left, job right
   ============================================================ */
.colo{
  padding:clamp(24px,4vh,54px) var(--pad) clamp(30px,5vh,60px);
  display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:0 clamp(24px,5vw,72px);
}
.colo li{display:flex}
.colo a{
  flex:1;display:flex;align-items:center;gap:11px;min-width:0;
  padding:12px 0;border-bottom:1px solid var(--rule);color:var(--ink-2);
  transition:color .3s var(--ease);
}
.colo a:hover{color:var(--ink)}
.colo i{
  flex:0 0 auto;width:17px;height:17px;background:currentColor;
  /* mask-image is set inline per tool: a url() inside this stylesheet
     resolves against /css/ and would silently find nothing */
  -webkit-mask-repeat:no-repeat;    mask-repeat:no-repeat;
  -webkit-mask-position:center;     mask-position:center;
  -webkit-mask-size:contain;        mask-size:contain;
}
.colo span{font-size:13px;font-weight:450;min-width:0}
.colo em{
  font-style:normal;margin-left:auto;flex:0 0 auto;
  font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-3);
}

/* ============================================================
   foot
   ============================================================ */
.foot{
  margin-inline:var(--pad);padding:clamp(22px,3vh,34px) 0 clamp(34px,5vh,60px);
  border-top:1px solid var(--rule);
  display:flex;flex-wrap:wrap;gap:10px 26px;justify-content:space-between;
  color:var(--ink-3);font-size:12.5px;
}
.foot a{border-bottom:1px solid var(--rule);transition:border-color .3s var(--ease)}
.foot a:hover{border-bottom-color:var(--ink);color:var(--ink)}

/* ============================================================
   viewer
   ============================================================ */
.view{position:fixed;inset:0;z-index:200;display:grid;place-items:center}
.view[hidden]{display:none}
.view__bg{
  position:absolute;inset:0;background:rgba(8,8,7,.95);
  opacity:0;transition:opacity .4s var(--ease);
}
.view__box{
  position:relative;width:100%;height:100%;
  display:grid;align-content:center;justify-items:center;gap:14px;
  padding:clamp(56px,8vh,86px) clamp(14px,4vw,72px);
  opacity:0;transform:scale(.985);
  transition:opacity .4s var(--ease),transform .5s var(--ease-out);
}
.view.is-ready .view__bg{opacity:1}
.view.is-ready .view__box{opacity:1;transform:none}
/* shrink-wrapped: the stage takes the media's own size, so nothing is ever
   pillarboxed or letterboxed against a black plate */
.view__stage{width:max-content;max-width:100%;overflow:hidden}
.view__stage video,.view__stage img{
  display:block;width:auto;height:auto;max-width:100%;max-height:74vh;
}
.view__cap{color:var(--on-dark-2);text-align:center;font-size:12.5px;max-width:60ch}
.view__x{
  position:absolute;top:clamp(14px,2.4vh,26px);right:clamp(14px,3vw,34px);
  padding:9px 15px;font-size:12px;font-weight:600;letter-spacing:.05em;
  text-transform:uppercase;color:var(--ink);background:var(--on-dark);
  transition:opacity .3s var(--ease);
}
.view__x:hover{opacity:.78}
.view__nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:46px;height:46px;display:grid;place-items:center;font-size:17px;
  color:var(--on-dark-2);border:1px solid var(--rule-dark);
  transition:color .3s var(--ease),background .3s var(--ease),border-color .3s var(--ease);
}
.view__nav:hover{background:var(--on-dark);color:var(--ink);border-color:var(--on-dark)}
.view__nav--p{left:clamp(8px,1.6vw,24px)}
.view__nav--n{right:clamp(8px,1.6vw,24px)}
.view__nav[hidden]{display:none}
@media (max-width:640px){
  .view__nav{top:auto;bottom:14px;transform:none}
  .view__nav--p{left:calc(50% - 56px)}
  .view__nav--n{right:calc(50% - 56px)}
}


/* ============================================================
   colour and motion
   ============================================================ */
::selection{background:var(--accent);color:var(--on-accent)}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px}

/* the last word of the tag line carries the colour */
.id__tag em{font-style:normal;color:var(--accent-light);white-space:nowrap}   /* light: it sits on the dark photo */

/* links draw a cobalt rule from the left instead of darkening a grey one */
.id__nav a,.foot a{
  border-bottom:0;padding-bottom:3px;
  background:
    linear-gradient(var(--accent),var(--accent)) 0 100% / 0 2px no-repeat,
    linear-gradient(var(--rule),var(--rule)) 0 100% / 100% 1px no-repeat;
  transition:background-size .45s var(--ease-out),color .3s var(--ease);
}
.id__nav a:hover,.foot a:hover{background-size:100% 2px,100% 1px;color:var(--accent-ink)}

/* chapter headers draw an accent rule as they arrive */
.chap::after{
  content:'';position:absolute;left:var(--pad);bottom:-1px;width:64px;height:2px;
  background:var(--accent);transform:scaleX(0);transform-origin:left;
  transition:transform .8s var(--ease-out);
}
.chap.is-in::after{transform:scaleX(1)}
.chap i{color:var(--accent-ink)}

/* reel */
/* a resting edge, so a light clip still reads as a tile on a white page */
.cut__frame{
  box-shadow:0 0 0 1px rgba(11,11,10,.08),0 14px 30px -22px rgba(11,11,10,.38);
  transition:transform .6s var(--ease-out),box-shadow .6s var(--ease-out);
}
.cut__hit:hover .cut__frame{transform:translateY(-6px);
  box-shadow:0 0 0 1px rgba(11,11,10,.1),0 24px 42px -22px rgba(11,11,10,.45)}
.cut__watch{background:var(--accent);color:var(--on-accent)}
.cut__cap i{color:var(--accent-ink)}
.cut__cap b{transition:color .3s var(--ease)}
.cut__hit:hover .cut__cap b{color:var(--accent-ink)}

/* stills: an inset cobalt frame instead of only the zoom */
.still__frame::after{
  content:'';position:absolute;inset:0;pointer-events:none;
  box-shadow:inset 0 0 0 0 var(--accent);transition:box-shadow .4s var(--ease-out);
}
.still__hit:hover .still__frame::after{box-shadow:inset 0 0 0 4px var(--accent)}
.still__cap i{color:var(--accent-ink)}
.still__hit:hover .still__cap span{color:var(--accent-ink)}

.colo a:hover{color:var(--accent-ink)}

/* ---------- hero entrance ----------
   The name wipes in on a slanted leading edge - this site's diagonal,
   the same cut as its favicon. The polygon runs from -24% to 124% on the
   vertical so the tilde on the N, which rises above the line box, is
   never clipped. */
.js .id__name span{
  clip-path:polygon(0 -24%,0 -24%,-18% 124%,-18% 124%);
  transform:translateY(.1em);
  transition:clip-path 1.1s var(--ease-out),transform 1.1s var(--ease-out);
}
.js .id__name span+span{transition-delay:.14s}
.js .id.is-lit .id__name span{clip-path:polygon(0 -24%,118% -24%,100% 124%,-18% 124%);transform:none}

.js .id__tag,.js .id__lede p,.js .id__row{
  opacity:0;transform:translateY(16px);
  transition:opacity .8s var(--ease),transform .9s var(--ease-out);
}
.js .id.is-lit .id__tag{opacity:1;transform:none;transition-delay:.5s}
.js .id.is-lit .id__lede p:nth-child(1){opacity:1;transform:none;transition-delay:.66s}
.js .id.is-lit .id__lede p:nth-child(2){opacity:1;transform:none;transition-delay:.76s}
.js .id.is-lit .id__lede p:nth-child(3){opacity:1;transform:none;transition-delay:.86s}
.js .id.is-lit .id__row{opacity:1;transform:none;transition-delay:1s}

/* the photo settles out of a slight push-in rather than fading on flat */
.js .id__bg img{opacity:0;transform:scale(1.1);
  transition:opacity 1.6s var(--ease),transform 2.6s var(--ease-out)}
.js .id.is-lit .id__bg img{opacity:var(--bg-o);transform:none}

/* ============================================================
   long form: a short preview here, the full cut on Google Drive
   ============================================================ */
.lf{
  /* auto-fit, not auto-fill: two cards stretch across the row instead of
     leaving an empty third column */
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));
  gap:clamp(14px,2vw,28px);max-width:1500px;margin-inline:auto;list-style:none;
  padding:clamp(24px,4vh,54px) var(--pad) clamp(46px,8vh,110px);
}
.lf__card{display:block;color:inherit}
.lf__frame{
  display:block;position:relative;overflow:hidden;aspect-ratio:16/9;background:var(--dark-2);
  box-shadow:0 0 0 1px rgba(11,11,10,.08),0 14px 30px -22px rgba(11,11,10,.38);
  transition:transform .6s var(--ease-out),box-shadow .6s var(--ease-out);
}
.lf__frame video,.lf__frame img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 1s var(--ease);
}
/* only a card with a link behaves like one */
.lf__card[href]:hover .lf__frame{
  transform:translateY(-6px);
  box-shadow:0 0 0 1px rgba(11,11,10,.1),0 24px 42px -22px rgba(11,11,10,.45);
}
.lf__card[href]:hover .lf__frame video{transform:scale(1.03)}
.lf__go{
  position:absolute;left:0;bottom:0;z-index:1;padding:9px 14px;
  background:var(--accent);color:var(--on-accent);
  font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  transform:translateY(100%);transition:transform .45s var(--ease-out);
}
.lf__card[href]:hover .lf__go,.lf__card[href]:focus-visible .lf__go{transform:none}
/* an empty slot says so instead of posing as a piece */
.lf__slot{
  position:absolute;inset:0;display:grid;place-items:center;padding:16px;text-align:center;
  color:var(--on-dark-2);font-size:12.5px;letter-spacing:.04em;
  background:repeating-linear-gradient(135deg,transparent 0 14px,rgba(255,255,255,.035) 14px 28px);
}
.lf__cap{
  display:grid;grid-template-columns:auto 1fr auto;align-items:baseline;gap:2px 12px;
  padding-top:12px;margin-top:12px;border-top:1px solid var(--rule);
}
.lf__cap i{font-style:normal;grid-column:1;grid-row:1/3;align-self:center;
  font-size:11.5px;font-weight:500;color:var(--accent-ink)}
.lf__cap b{
  grid-column:2;grid-row:1;font-family:var(--disp);font-weight:700;text-transform:uppercase;
  font-size:clamp(20px,2.2vw,32px);line-height:1;letter-spacing:.01em;transition:color .3s var(--ease);
}
.lf__cap em{grid-column:2;grid-row:2;font-style:normal;font-size:12.5px;color:var(--ink-2)}
.lf__cap u{grid-column:3;grid-row:1/3;align-self:center;text-decoration:none;font-size:12px;color:var(--ink-3)}
.lf__card[href]:hover .lf__cap b{color:var(--accent-ink)}

/* three across on desktop, two on a tablet, stacked on a phone */
@media (min-width:620px){
  .lf{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:clamp(26px,4vw,44px)}
}
@media (min-width:1000px){
  .lf{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ============================================================
   contact: the button in each bar, the modal, the big address
   ============================================================ */
.chap__h{display:flex;align-items:center;gap:14px;flex:1 1 auto;min-width:0;font:inherit}
.chap__cta{
  flex:0 0 auto;padding:8px 14px;
  font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  background:var(--accent);color:var(--on-accent);
  transition:background .3s var(--ease),transform .3s var(--ease-out);
}
.chap__cta:hover{background:var(--accent-2);transform:translateY(-1px)}

/* native <dialog>: the browser owns the focus trap, Escape and top layer */
html:has(.contact[open]){overflow:hidden}
.contact{
  padding:0;border:0;background:transparent;color:var(--ink);
  width:min(92vw,460px);max-width:none;max-height:calc(100svh - 32px);
}
.contact::backdrop{background:rgba(11,11,10,.55);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.contact__card{position:relative;background:var(--paper);box-shadow:0 30px 70px -30px rgba(0,0,0,.55)}
.contact__img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:50% 24%}
.contact__x{
  position:absolute;top:12px;right:12px;padding:8px 12px;
  font-size:11.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;
  background:var(--paper);color:var(--ink);transition:background .3s var(--ease),color .3s var(--ease);
}
.contact__x:hover{background:var(--ink);color:var(--paper)}
.contact__body{padding:clamp(18px,3vw,24px) clamp(18px,3vw,26px) clamp(22px,3vw,28px)}
.contact__open{
  display:inline-block;background:var(--accent);color:var(--on-accent);padding:4px 10px;
  font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
}
/* line-height 1, not the hero's .82: this may wrap on a narrow phone, and
   the N-tilde needs the room */
.contact__name{
  margin-top:14px;font-family:var(--disp);font-weight:700;text-transform:uppercase;
  font-size:clamp(32px,6vw,46px);line-height:1;letter-spacing:.005em;
}
.contact__role{margin-top:6px;color:var(--ink-2)}
.contact__mail{
  display:block;margin-top:18px;color:var(--accent-ink);
  font-weight:600;font-size:clamp(17px,2.4vw,21px);overflow-wrap:anywhere;
}
.contact__acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.contact__btn{
  padding:11px 16px;font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;
  background:var(--ink);color:var(--paper);transition:background .3s var(--ease),color .3s var(--ease),box-shadow .3s var(--ease);
}
.contact__btn:hover{background:var(--accent);color:var(--on-accent)}
.contact__btn--ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--rule)}
.contact__btn--ghost:hover{background:transparent;color:var(--accent-ink);box-shadow:inset 0 0 0 1px var(--accent-ink)}
.contact[open]{animation:contactIn .45s var(--ease-out)}
.contact[open]::backdrop{animation:contactFade .35s var(--ease)}
@keyframes contactIn{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
@keyframes contactFade{from{opacity:0}to{opacity:1}}

/* other ways to reach: phone, job profile, Discord. One component, used in
   the footer and in the dialog. Placeholders are <a> without an href, so
   only a real link gets the hover. */
.alt{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:12px clamp(24px,4vw,48px)}
.alt__a{
  display:inline-flex;align-items:center;gap:10px;
  color:var(--ink-2);font-size:15px;font-weight:500;transition:color .3s var(--ease);
}
button.alt__a{background:none;border:0;padding:0;margin:0;font-family:inherit;line-height:inherit;text-align:left;cursor:copy}
.alt__a svg{flex:0 0 auto;width:20px;height:20px;color:var(--accent-ink)}
.alt__a[href]:hover,button.alt__a:hover{color:var(--accent-ink)}
.reach .alt{margin-top:clamp(22px,3.5vh,36px)}
.reach .alt__a{font-size:clamp(15px,1.3vw,18px)}
.contact .alt{display:grid;gap:10px;margin-top:16px}
.contact .alt__a{font-size:14.5px}
.contact .alt__a svg{width:18px;height:18px}

/* read by screen readers, not shown: says what an icon means */
.vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

/* the address is the last thing on the page and the point of it */
.reach{
  margin-inline:var(--pad);
  padding:clamp(56px,10vh,124px) 0 clamp(40px,7vh,84px);
  border-top:1px solid var(--rule);
}
.reach__label{
  font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent-ink);
}
.reach__mail{
  display:inline-block;margin-top:clamp(12px,2vh,22px);padding-bottom:.08em;
  font-weight:600;letter-spacing:-.025em;line-height:1.05;
  font-size:clamp(24px,6.4vw,92px);
  overflow-wrap:anywhere;          /* a longer real address must wrap, not overflow */
  background:linear-gradient(var(--accent),var(--accent)) 0 100% / 0 .07em no-repeat;
  transition:background-size .6s var(--ease-out),color .3s var(--ease);
}
.reach__mail:hover{background-size:100% .07em;color:var(--accent-ink)}

/* ---------- reveal ---------- */
/* the page is fully visible before JS adds .rv */
.js .rv{opacity:0;transform:translateY(18px);transition:opacity .65s var(--ease),transform .8s var(--ease)}
.js .rv.is-in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;
  }
  .js .rv{opacity:1!important;transform:none!important}
  .js .id__name span{clip-path:none!important;transform:none!important}
  .js .id__tag,.js .id__lede p,.js .id__row{opacity:1!important;transform:none!important}
  .js .id__bg img{opacity:var(--bg-o)!important;transform:none!important}
  .chap::after{transform:none!important}
  *,*::before,*::after{transition-delay:0s!important}
}
