/* JGarcia Visuals — reel-led studio site.
   The category standard for video production, executed straight: the work leads,
   the page explains, nothing is clever. Monochrome throughout; the only color on
   the site comes from the footage and the client marks. */

@font-face{font-family:"Schibsted";src:url("/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");font-weight:300 800;font-display:swap;}
@font-face{font-family:"Source Serif";src:url("/assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");font-weight:300 700;font-display:swap;}

:root{
  --black:#0B0B0C;
  --ink:#141416;
  --paper:#F6F5F2;
  --paper-2:#EDEBE6;
  --gray-1:#8A8A8E;
  --gray-2:#5A5A5F;

  --fg:#F6F5F2;
  --fg-dim:rgba(246,245,242,.66);
  --rule:rgba(246,245,242,.16);

  --ui:"Schibsted",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --serif:"Source Serif",Georgia,"Times New Roman",serif;

  --t-label:.63rem;
  --t-nav:.68rem;
  --t-small:.95rem;
  --t-lede:clamp(1.08rem,1.6vw,1.32rem);
  --t-h3:clamp(1.1rem,1.8vw,1.4rem);
  --t-h2:clamp(1.9rem,4vw,3.1rem);
  --t-display:clamp(2.4rem,6.2vw,5.2rem);
  --t-stat:clamp(3.6rem,9vw,4.6rem);
  --t-name:1rem;

  --gut:clamp(1.15rem,4.5vw,3.5rem);
  --max:1320px;
  --nav:64px;
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box;}
body{margin:0;background:var(--black);color:var(--fg);font-family:var(--ui);
  font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;}
img,video{display:block;max-width:100%;}
a{color:inherit;}
:focus-visible{outline:2px solid currentColor;outline-offset:3px;}
.wrap{max-width:var(--max);margin:0 auto;padding-inline:var(--gut);}

/* ---------- type roles ---------- */
.eyebrow{font-size:var(--t-nav);font-weight:600;letter-spacing:.2em;text-transform:uppercase;
  color:var(--fg-dim);margin:0;}
h1,h2,h3{margin:0;font-weight:500;letter-spacing:-.022em;text-wrap:balance;}
.display{font-size:var(--t-display);line-height:1.02;font-weight:400;letter-spacing:-.03em;}
.h2{font-size:var(--t-h2);line-height:1.06;font-weight:400;letter-spacing:-.028em;}
.h3{font-size:var(--t-h3);line-height:1.2;font-weight:600;letter-spacing:-.014em;}
.lede{font-family:var(--serif);font-size:var(--t-lede);line-height:1.52;
  color:var(--fg-dim);max-width:46ch;margin:0;}
.body{color:var(--fg-dim);margin:0;max-width:56ch;}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:.55rem;text-decoration:none;
  font-size:var(--t-nav);font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  padding:1.05rem 1.7rem;border:1px solid transparent;transition:background .2s ease,color .2s ease,border-color .2s ease;}
.btn-primary{background:var(--paper);color:var(--black);}
.btn-primary:hover{filter:brightness(1.06);}
.btn-ghost{border-color:var(--rule);color:var(--fg);}
.btn-ghost:hover{border-color:var(--fg);}

/* ---------- nav ---------- */
.nav{position:fixed;top:0;left:0;right:0;z-index:60;height:var(--nav);
  display:flex;align-items:center;transition:background .3s ease,border-color .3s ease;
  border-bottom:1px solid transparent;}
.nav.solid{background:rgba(11,11,12,.86);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  border-bottom-color:var(--rule);}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;width:100%;}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:var(--paper);}
.brand img{width:24px;height:24px;}
.brand span{font-size:var(--t-nav);font-weight:600;letter-spacing:.18em;text-transform:uppercase;white-space:nowrap;}
.nav menu{display:flex;align-items:center;gap:1.7rem;margin:0;padding:0;list-style:none;}
.nav menu a{font-size:var(--t-nav);font-weight:500;letter-spacing:.15em;text-transform:uppercase;
  color:var(--fg-dim);text-decoration:none;transition:color .2s ease;}
.nav menu a:hover{color:var(--paper);}
.nav menu a.cta{border:1px solid var(--rule);padding:.6rem 1rem;color:var(--paper);white-space:nowrap;}
.nav menu a.cta:hover{background:var(--paper);color:var(--black);border-color:var(--paper);}
@media(max-width:680px){
  .nav menu a.tuck{display:none;}
  .brand span{font-size:var(--t-label);letter-spacing:.14em;}
  .nav menu a.cta{font-size:var(--t-label);letter-spacing:.12em;padding:.55rem .8rem;}
}
@media(max-width:380px){ .brand span{display:none;} }

/* ---------- hero ---------- */
.hero{position:relative;min-height:min(92vh,880px);display:flex;align-items:flex-end;
  overflow:hidden;background:var(--black);}
@media(max-width:700px){
  /* shorter hero so the headline is on screen at once, not below a wall of footage */
  .hero{min-height:min(74vh,600px);}
}
.hero video,.hero .poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;}
.hero video.softened{filter:blur(30px) saturate(.6) brightness(.5);transform:scale(1.18);}
.hero::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(11,11,12,.9) 0%,rgba(11,11,12,.5) 30%,
    rgba(11,11,12,.62) 64%,rgba(11,11,12,.95) 100%);}
.hero .wrap{position:relative;z-index:2;padding-top:calc(var(--nav) + 3rem);
  padding-bottom:clamp(2.5rem,6vw,4.5rem);width:100%;}
.hero .lede{margin-top:1.4rem;}
.hero h1{max-width:19ch;}
.hero .lede{margin-top:1.4rem;}
.hero .actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:clamp(1.8rem,4vw,2.6rem);}
@media(max-width:700px){
  /* out of the buttons’ way: sits under the nav instead of beside the CTAs */
  }

/* ---------- sections ---------- */
section{padding-block:clamp(3.4rem,8vw,6.5rem);}
.band-lift{background:#0E0E11;}
.sec-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:1rem 3rem;
  align-items:end;border-bottom:1px solid var(--rule);padding-bottom:1.4rem;margin-bottom:clamp(2rem,4.5vw,3.2rem);}
.sec-aside .eyebrow{margin-bottom:.7rem;}
.sec-aside .body{margin:0;}
@media(max-width:820px){ .sec-head{grid-template-columns:1fr;} }

/* ---------- client strip: a continuous slider ---------- */
.strip{padding-block:clamp(2rem,3.6vw,3rem);border-bottom:1px solid var(--rule);overflow:hidden;}
.strip > .wrap > .eyebrow{margin:0 0 clamp(1.2rem,2.4vw,1.8rem);}

/* the boast: two figures, then the roster itself */
.trust{display:grid;grid-template-columns:1fr;gap:1.6rem clamp(1.8rem,4vw,4rem);
  margin:clamp(1.9rem,4vw,2.9rem) 0 0;max-width:1120px;}
/* four figures now, so two up on a tablet and four across on a wide screen;
   three columns would leave one stranded on its own row */
@media(min-width:700px){ .trust{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(min-width:1120px){ .trust{grid-template-columns:repeat(4,minmax(0,1fr));} }
.trust div{display:flex;flex-direction:column;gap:.5rem;}
.trust b{font-size:var(--t-stat);font-weight:400;line-height:.9;letter-spacing:-.035em;
  color:var(--paper);}
.trust b .tally{font-variant-numeric:normal;}
.trust p{margin:0;font-size:var(--t-small);line-height:1.5;color:var(--fg-dim);max-width:30ch;}
.trust p em{font-style:normal;color:var(--paper);}
@media(max-width:820px){ .trust{gap:1.5rem;} }
.marquee{position:relative;display:flex;width:100%;overflow:hidden;
  /* The row runs full-bleed, but it should read as though it lives in the same
     column as everything else: fully solid inside the content column, faded out
     across the margin. --edge is the content column's inset, same maths as .wrap. */
  --edge:calc((100% - min(100%, var(--max))) / 2 + var(--gut));
  --fade:120px;
  -webkit-mask-image:linear-gradient(90deg,
    transparent calc(var(--edge) - var(--fade)), #000 var(--edge),
    #000 calc(100% - var(--edge)), transparent calc(100% - var(--edge) + var(--fade)));
  mask-image:linear-gradient(90deg,
    transparent calc(var(--edge) - var(--fade)), #000 var(--edge),
    #000 calc(100% - var(--edge)), transparent calc(100% - var(--edge) + var(--fade)));}
@media(max-width:700px){ .marquee{--fade:56px;} }
.marquee-track{display:flex;align-items:center;gap:clamp(2.2rem,5vw,4.4rem);flex:none;
  margin:0;padding:0 clamp(1.1rem,2.5vw,2.2rem) 0 0;list-style:none;
  /* Durations are set from track width so every row drifts at the same pace.
     That pace is 28px a second, lowered from 45-50 on 2026-11-10: Josh said the
     strip at the old speed was making him queasy, and with three rows plus the
     work rail there are four things moving at once. Re-measure one track and
     divide by 28 whenever a row gains an item. This track is ~4,815px. */
  animation:slide 172s linear infinite;}
/* The row does not stop under the cursor. Pausing on hover meant crossing the
   page froze a whole row, which reads as a fault rather than a feature; it only
   stops for a keyboard user who has tabbed into it. */
.marquee:focus-within .marquee-track{animation-play-state:paused;}
@keyframes slide{ from{transform:translateX(0);} to{transform:translateX(-100%);} }

/* Two rows, not one long one: the people above, the organizations below,
   travelling opposite ways so the strip reads as a field of work rather than a
   queue. The second row is a little slower, or the two look mechanically
   linked. */
.marquee + .marquee{margin-top:clamp(.9rem,2vw,1.6rem);}
/* Three rows now: the people, then the organizations across two lines, because
   fifteen marks in a single row meant any one of them came around only once
   every hundred seconds and most visitors never saw it. Split in two, every mark
   is on screen twice as often. The rows run forward, back, forward so the strip
   reads as a field rather than a queue, and the delays stop them lining up.
   If the opposing directions ever read as unsettling rather than alive, give
   .marquee-back the same direction as the others; that is the bigger lever than
   speed, because it removes a competing motion from the corner of the eye. */
.marquee-back .marquee-track{animation-duration:135s;animation-direction:reverse;
  animation-delay:-35s;}   /* 3,770px at 135s is 28px/s */
.marquee-fwd .marquee-track{animation-duration:151s;animation-delay:-12s;}
                           /* 4,215px at 151s is 28px/s */
.marquee li{flex:none;display:grid;place-items:center;height:84px;}

/* Logo marks. Optically matched, not mathematically: a crest set to a
   wordmark's height disappears. Client artwork is dark, so it is inverted on
   the dark ground — except marks that are already light, which are not. */
.marquee li img{width:auto;object-fit:contain;opacity:.78;
  filter:grayscale(1) invert(1) brightness(1.6) contrast(1.1);transition:opacity .2s ease;}
.marquee li img[data-mark="crest"]{height:62px;max-width:210px;}
.marquee li img[data-mark="icon"]{height:52px;max-width:120px;}
.marquee li img[data-mark="wide"]{height:34px;max-width:230px;}
.marquee li img[data-mark="script"]{height:44px;max-width:210px;}
.marquee li img[data-mark="light"]{height:48px;max-width:210px;filter:grayscale(1) brightness(1.05);}
/* an icon-shaped mark that is already white, so it keeps the light treatment
   but the tighter icon proportions rather than a wordmark’s */
.marquee li img[data-mark="icon-light"]{height:54px;max-width:120px;
  filter:grayscale(1) brightness(1.05);}
.marquee li img[data-mark="square"]{height:58px;width:58px;max-width:none;object-fit:contain;filter:grayscale(1) brightness(1.15);}

/* Creator cards: the people themselves, never inverted or tinted. */
.marquee li.creator{display:flex;align-items:center;gap:.9rem;height:auto;min-height:84px;}
.marquee li.creator img{width:56px;height:56px;border-radius:50%;object-fit:cover;flex:none;
  max-width:none;filter:none;opacity:1;background:#1A1A1C;}
.creator .who{display:flex;flex-direction:column;gap:.28rem;line-height:1.25;}
.creator .nm{font-size:var(--t-name);font-weight:500;letter-spacing:-.01em;color:var(--paper);white-space:nowrap;}
/* one line per platform, and only for platforms over 5k — below that a number
   dilutes the card instead of proving anything */
.creator .stats{display:flex;flex-direction:column;gap:.12rem;}
.creator .st{font-size:.72rem;font-weight:500;letter-spacing:.01em;color:var(--gray-1);white-space:nowrap;}
.creator .st b{font-weight:600;color:rgba(246,245,242,.9);font-variant-numeric:tabular-nums;}


.mark-text{font-size:1.06rem;font-weight:500;letter-spacing:-.008em;white-space:nowrap;
  color:rgba(246,245,242,.68);transition:color .2s ease;}
.mark-text:hover{color:var(--paper);}
@media(prefers-reduced-motion:reduce){
  .marquee{overflow-x:auto;-webkit-mask-image:none;mask-image:none;}
  .marquee-track{animation:none;}
  .marquee-track[aria-hidden="true"]{display:none;}
  /* the looping copies are only there for the scroll; show each client once */
  .marquee li[data-dup="1"]{display:none;}
}

/* ---------- services ---------- */
/* column counts chosen so six cards fill every row at every width — no orphan cell.
   6 = 6x1 = 3x2 = 2x3. Revisit these if the number of services changes. */
.svc{display:grid;grid-template-columns:1fr;gap:1px;background:var(--rule);border:1px solid var(--rule);}
@media(min-width:700px){ .svc{grid-template-columns:repeat(2,1fr);} }
@media(min-width:1120px){ .svc{grid-template-columns:repeat(3,1fr);} }
.svc article{background:#101014;padding:clamp(1.5rem,2.6vw,2.1rem);display:flex;flex-direction:column;gap:.7rem;}
.svc .n{font-size:var(--t-label);font-weight:600;letter-spacing:.18em;color:var(--gray-1);font-variant-numeric:tabular-nums;}
.svc p{margin:0;color:var(--fg-dim);font-size:var(--t-small);}
.svc ul{margin:.2rem 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:.3rem .8rem;}
.svc li{font-size:var(--t-label);font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:var(--gray-1);}

/* ---------- work ---------- */
.work{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1.6rem,3.4vw,2.8rem);}
.work .lead{grid-column:1/-1;}
@media(max-width:820px){ .work{grid-template-columns:1fr;} }
.piece a{display:block;text-decoration:none;position:relative;overflow:hidden;background:#000;}
.piece img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;
  transition:transform .55s cubic-bezier(.2,.7,.3,1);}
.piece .lead img,.piece.lead img{aspect-ratio:21/9;}
.piece a:hover img{transform:scale(1.03);}
.piece a::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(8,8,10,.30) 0%,rgba(8,8,10,.06) 40%,rgba(8,8,10,.55) 100%);}
.piece .play{position:absolute;z-index:2;left:1rem;bottom:1rem;display:inline-flex;align-items:center;gap:.5rem;
  background:rgba(246,245,242,.94);color:var(--black);font-size:var(--t-label);font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;padding:.5rem .8rem;}
.piece .play svg{width:9px;height:11px;fill:currentColor;display:block;}
.piece h3{margin:1rem 0 .5rem;}
.piece .meta{display:flex;flex-wrap:wrap;gap:.3rem .7rem;margin:0 0 .55rem;
  font-size:var(--t-label);font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--gray-1);}
.piece .scope{margin:0;font-size:var(--t-small);color:var(--fg-dim);max-width:54ch;}

/* ---------- process ---------- */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));
  gap:clamp(1.6rem,3vw,2.6rem);}
.step{border-top:1px solid var(--rule);padding-top:1.1rem;}
.step .n{font-size:var(--t-label);font-weight:600;letter-spacing:.18em;color:var(--gray-1);
  display:block;margin-bottom:.75rem;font-variant-numeric:tabular-nums;}
.step p{margin:.5rem 0 0;color:var(--fg-dim);font-size:var(--t-small);}

/* ---------- what clients say ----------
   Two quotes at the point of decision, immediately before the inquiry form.
   They sit still; the page already has two things moving on their own. Both
   attributions are pinned to the bottom of their column so they share a
   baseline however long the quote above them runs. */
.says-grid{display:grid;grid-template-columns:1fr;gap:clamp(2.2rem,4.5vw,3rem);
  margin-top:clamp(2rem,4.5vw,3.2rem);}
@media(min-width:860px){
  .says-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(2.6rem,5vw,4.4rem);}
}
.say{display:flex;flex-direction:column;margin:0;border-top:1px solid var(--rule);
  padding-top:clamp(1.2rem,2.4vw,1.6rem);}
.say blockquote{margin:0 0 clamp(1.5rem,3vw,2.1rem);font-family:var(--serif);
  font-size:clamp(1.12rem,1.72vw,1.42rem);line-height:1.5;color:var(--paper);
  letter-spacing:-.008em;text-wrap:pretty;}
.say figcaption{margin-top:auto;}
/* scoped: the client strip has its own .who wrapper and must not inherit these */
.say .who,.case-quote .who{display:block;font-size:var(--t-name);font-weight:600;
  letter-spacing:-.01em;color:var(--paper);}
.say .role,.case-quote .role{display:block;margin-top:.3rem;font-size:var(--t-small);
  color:var(--fg-dim);}

/* the same voice on the software page, where the claim it backs up is ours */
.case-quote{max-width:66ch;margin:clamp(2.6rem,6vw,4.2rem) 0 0;
  padding-top:clamp(1.5rem,3vw,2.1rem);border-top:1px solid var(--rule);}
.case-quote blockquote{margin:0;font-family:var(--serif);
  font-size:clamp(1.18rem,2vw,1.55rem);line-height:1.45;color:var(--paper);
  letter-spacing:-.01em;text-wrap:pretty;}
.case-quote figcaption{display:flex;flex-wrap:wrap;align-items:baseline;
  gap:.15rem .75rem;margin-top:clamp(1.1rem,2.2vw,1.4rem);}
.case-quote .who,.case-quote .role{display:inline;margin:0;}

/* ---------- contact ---------- */
.contact .h2{max-width:16ch;}
.contact .lede{margin-top:1.3rem;}
.details{display:flex;flex-wrap:wrap;gap:1.3rem 3.4rem;margin-top:clamp(2.4rem,5vw,3.4rem);
  padding-top:1.4rem;border-top:1px solid var(--rule);}
.details dt{font-size:var(--t-label);font-weight:600;letter-spacing:.18em;text-transform:uppercase;
  color:var(--gray-1);margin-bottom:.35rem;}
.details dd{margin:0;}
.details a{font-size:var(--t-h3);font-weight:500;letter-spacing:-.015em;text-decoration:none;
  border-bottom:1px solid var(--rule);padding-bottom:2px;}
.details a:hover{border-bottom-color:currentColor;}

footer{background:var(--black);color:rgba(246,245,242,.55);border-top:1px solid rgba(246,245,242,.14);
  padding-block:2rem 2.6rem;}
footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.9rem 2rem;
  font-size:var(--t-nav);font-weight:500;letter-spacing:.14em;text-transform:uppercase;}
footer a{text-decoration:none;}
footer a:hover{color:var(--paper);}
footer nav{display:flex;flex-wrap:wrap;gap:1.4rem;}

/* ---------- article pages ---------- */
.article{max-width:62ch;}
.article .lede{max-width:none;margin-top:1.4rem;}
.article p{color:var(--fg-dim);}
.article p + p{margin-top:1.05rem;}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important;}
  .hero video{display:none;}
}

/* a descriptor may follow a heading as a deck; it may never precede it as a label */
.deck-line{margin:1.1rem 0 0;font-size:var(--t-nav);font-weight:600;letter-spacing:.18em;
  text-transform:uppercase;color:var(--fg-dim);}

/* ---------- inquiry form ---------- */
.inquiry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.2rem;
  margin-top:clamp(1.8rem,4vw,2.6rem);max-width:680px;}
.inquiry .full{grid-column:1/-1;}
.inquiry label{display:block;font-size:var(--t-label);font-weight:600;letter-spacing:.18em;
  text-transform:uppercase;color:var(--gray-1);margin-bottom:.5rem;}
.inquiry input,.inquiry textarea{width:100%;font:inherit;font-size:var(--t-small);
  color:var(--fg);background:transparent;border:1px solid var(--rule);border-radius:0;
  padding:.85rem .9rem;transition:border-color .18s ease;}
.inquiry input:focus,.inquiry textarea:focus{outline:none;border-color:var(--fg);}
.inquiry textarea{min-height:128px;resize:vertical;}
.inquiry input::placeholder,.inquiry textarea::placeholder{color:var(--gray-2);}
.inquiry .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
.inquiry button{justify-self:start;cursor:pointer;font-family:inherit;}
.inquiry button[disabled]{opacity:.55;cursor:default;}
.form-msg{grid-column:1/-1;margin:0;font-size:var(--t-small);}
.form-msg[data-state="error"]{color:#E2A0A0;}
.form-msg[data-state="ok"]{color:var(--fg);}
.on-paper .form-msg[data-state="error"]{color:#8C2F2F;}
@media(max-width:620px){ .inquiry{grid-template-columns:1fr;} }

/* Figures count up to their real value when the band comes into view. The true
   number is in the markup, so no-JS and reduced-motion readers see the truth. */
.tally{font-variant-numeric:tabular-nums;}

/* ---------- lightbox: work plays here, not on someone else's site ---------- */
.lightbox{position:fixed;inset:0;z-index:100;display:none;place-items:center;
  padding:max(var(--gut),2.6rem) var(--gut);
  background:rgba(6,6,8,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);}
.lightbox.is-open{display:grid;}
.lightbox-inner{position:relative;width:min(100%,1180px);}
.lightbox-bar{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;
  margin-bottom:.8rem;}
.lightbox-meta{min-width:0;}
.lightbox-title{display:block;font-size:var(--t-h3);font-weight:500;letter-spacing:-.014em;
  color:var(--paper);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.lightbox-client{display:block;margin-top:.25rem;font-size:var(--t-label);font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;color:var(--gray-1);}
.lightbox-close{flex:none;background:none;border:1px solid rgba(246,245,242,.3);color:var(--paper);
  font:inherit;font-size:var(--t-label);font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  padding:.6rem .9rem;cursor:pointer;transition:background .18s ease,color .18s ease;}
.lightbox-close:hover{background:var(--paper);color:var(--black);}
.lightbox-stage{position:relative;width:100%;aspect-ratio:16/9;background:#000;
  box-shadow:0 30px 90px rgba(0,0,0,.55);}
.lightbox-stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}
/* a film of our own, played in the same stage as the embeds */
.lightbox-stage > video:not(.lightbox-vertical){position:absolute;inset:0;width:100%;height:100%;
  object-fit:contain;background:#000;}
body.lightbox-open{overflow:hidden;}
@media(max-width:620px){ .lightbox-title{white-space:normal;} }

/* ---------- scroll reveals ----------
   Driven by CSS scroll timelines, not JavaScript. No observer, nothing to get
   stuck: a browser without support simply never runs the animation and shows
   the finished element, and reduced-motion opts out at the media-query level.

   Film language rather than the builder default: stills wipe open like a frame
   being revealed, hairlines draw across, headings cut in. Short and decisive. */

@media (prefers-reduced-motion: no-preference){
  @supports (animation-timeline: view()){

    /* no reveal on the stills themselves — they simply appear */

    /* headings and copy cut in with a micro-settle */
    .sec-head .eyebrow,.sec-head .h2,.sec-head .body,
    .piece h3,.piece .meta,.piece .scope,
    .svc article,.step{
      animation:rvCut linear both;animation-timeline:view();
      animation-range:entry 6% entry 42%;}
    @keyframes rvCut{from{opacity:0;transform:translateY(7px);} to{opacity:1;transform:none;}}

    /* hairlines draw across instead of appearing */
    .sec-head{position:relative;}
    .sec-head::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;
      background:var(--rule);transform-origin:0 50%;
      animation:rvRule linear both;animation-timeline:view();
      animation-range:entry 6% entry 55%;}
    @keyframes rvRule{from{transform:scaleX(0);} to{transform:scaleX(1);}}
  }
}

/* ---------- page transitions ----------
   Home and Work cross-dissolve instead of flashing white. Pure CSS; browsers
   without support just navigate normally. */
@view-transition{navigation:auto;}
@media (prefers-reduced-motion: no-preference){
  ::view-transition-old(root){animation:vtOut .18s linear both;}
  ::view-transition-new(root){animation:vtIn .26s linear both;}
  @keyframes vtOut{to{opacity:0;}}
  @keyframes vtIn{from{opacity:0;} to{opacity:1;}}
}
@media (prefers-reduced-motion: reduce){
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important;}
}

/* ---------- hero entrance ----------
   The headline arrives soft and racks into focus, the way a lens does. Runs
   once on load, never gates the content: reduced motion skips it entirely. */
@media (prefers-reduced-motion: no-preference){
  .hero h1{animation:heroFocus .78s cubic-bezier(.2,.75,.2,1) both;}
  .hero .lede{animation:heroRise .5s cubic-bezier(.2,.8,.2,1) .22s both;}
  .hero .actions{animation:heroRise .5s cubic-bezier(.2,.8,.2,1) .34s both;}
    @keyframes heroFocus{
    from{opacity:0;filter:blur(10px);letter-spacing:.015em;transform:scale(1.012);}
    60%{opacity:1;}
    to{opacity:1;filter:blur(0);letter-spacing:-.03em;transform:none;}
  }
  @keyframes heroRise{from{opacity:0;transform:translateY(8px);} to{opacity:1;transform:none;}}
}

/* app development entries: a link under each, quiet enough not to compete
   with Book a consultation */
.app-link{margin-top:.8rem!important;}
.app-link a{font-size:var(--t-label);font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:var(--fg);text-decoration:none;border-bottom:1px solid var(--rule);padding-bottom:3px;
  transition:border-color .18s ease;}
.app-link a:hover{border-bottom-color:var(--fg);}

/* ---------- software case studies ----------
   Two products, told the same way: the problem, how we worked, what it does now,
   with the real screen beside the prose rather than a rendering of one. The shot
   stays in view while the case is read; on a phone it leads instead. */
.page-head{padding-top:calc(var(--nav) + clamp(2.4rem,6vw,4.4rem));
  padding-bottom:clamp(3.6rem,7vw,5.6rem);}
.page-head .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,600px);
  align-items:center;gap:clamp(2.6rem,5vw,4.5rem);}
.page-head-copy{max-width:52ch;}
.page-head .eyebrow{margin:0 0 1rem;}
.page-head .h2{max-width:16ch;}
.page-head .lede{margin-top:1.4rem;max-width:none;}

/* the desk view with the pocket view in front of it: the same work at both sizes */
.head-stage{position:relative;justify-self:end;width:100%;}
.stage-screen{display:block;border:1px solid var(--rule);border-radius:14px;overflow:hidden;
  background:#0E0E11;box-shadow:0 40px 92px rgba(0,0,0,.62);}
.stage-screen img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top;}
.stage-phone{position:absolute;left:-3%;bottom:-9%;width:25%;box-sizing:border-box;
  border:1px solid var(--rule);border-radius:19px;padding:5px;background:#0E0E11;
  box-shadow:0 24px 56px rgba(0,0,0,.72);transform:rotate(-4deg);}
.stage-phone img{width:100%;height:auto;aspect-ratio:9/17;object-fit:cover;object-position:top;
  border-radius:14px;}

@media(max-width:900px){
  .page-head .wrap{grid-template-columns:1fr;}
  .page-head-copy{max-width:58ch;}
  .head-stage{justify-self:start;max-width:560px;}
  .stage-phone{width:27%;bottom:-7%;}
}
@media(prefers-reduced-motion:reduce){ .stage-phone{transform:none;} }

.case{border-top:1px solid var(--rule);}
.case-head{margin-bottom:clamp(2rem,4vw,3rem);}
.case-head .eyebrow{margin:0 0 .8rem;}
.case-sub{margin:1rem 0 0;font-family:var(--serif);font-size:var(--t-lede);line-height:1.5;
  color:var(--fg-dim);max-width:34ch;}

.case-grid{display:grid;grid-template-columns:minmax(0,64ch) minmax(0,340px);
  justify-content:space-between;gap:clamp(2.4rem,5vw,5rem);align-items:start;}
.case-block + .case-block{margin-top:clamp(1.7rem,3vw,2.4rem);
  padding-top:clamp(1.7rem,3vw,2.4rem);border-top:1px solid var(--rule);}
.case-block h3{margin:0 0 .7rem;font-size:var(--t-label);font-weight:600;letter-spacing:.18em;
  text-transform:uppercase;color:var(--gray-1);}
.case-block p{margin:0;color:var(--fg-dim);max-width:60ch;}
.case-block p + p{margin-top:.95rem;}

.case-facts{display:flex;flex-wrap:wrap;gap:1.1rem 2.6rem;margin:1.5rem 0 0;
  padding-top:1.3rem;border-top:1px solid var(--rule);}
.case-facts div{display:flex;flex-direction:column;gap:.3rem;}
.case-facts dt{font-size:var(--t-label);font-weight:600;letter-spacing:.18em;
  text-transform:uppercase;color:var(--gray-2);}
.case-facts dd{margin:0;font-size:var(--t-small);color:var(--paper);}

/* the device: a quiet bezel, so a dark app on a dark page still reads as a screen */
.case-shot{margin:0;position:sticky;top:calc(var(--nav) + 2.2rem);justify-self:center;
  width:min(100%,320px);}
.case-device{border:1px solid var(--rule);border-radius:26px;padding:9px;background:#0E0E11;
  box-shadow:0 34px 90px rgba(0,0,0,.62);}
.case-device img{width:100%;height:auto;border-radius:18px;}
.case-shot figcaption{margin-top:1rem;text-align:center;font-size:var(--t-label);font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;color:var(--gray-2);}

@media(max-width:900px){
  .case-grid{grid-template-columns:1fr;gap:clamp(2.2rem,6vw,3rem);}
  .case-shot{position:static;order:-1;width:min(100%,290px);justify-self:start;}
  .case-shot figcaption{text-align:left;}
}

.case-outro{border-top:1px solid var(--rule);}
.case-outro .h2{max-width:17ch;}
.case-outro .lede{margin-top:1.3rem;}
.case-cta{margin:clamp(1.8rem,4vw,2.4rem) 0 0;}

/* the same cut-in the rest of the site uses, applied to the case prose */
@media (prefers-reduced-motion: no-preference){
  @supports (animation-timeline: view()){
    .case-head .eyebrow,.case-head .h2,.case-sub,.case-block{
      animation:rvCut linear both;animation-timeline:view();
      animation-range:entry 4% entry 38%;}
  }
}

/* a doorway to the software page, not a second argument on the homepage */
.software-note{padding-block:clamp(2.8rem,6vw,4.6rem);border-block:1px solid var(--rule);}
.software-note .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto);
  align-items:center;gap:2.2rem clamp(2rem,5vw,4rem);}
.software-copy{max-width:46ch;}
.software-note .eyebrow{margin:0 0 .8rem;}
.software-note .h2{margin:0;max-width:14ch;}
.software-note .body{margin:1.1rem 0 clamp(1.6rem,3vw,2.1rem);}

/* a glimpse of each build, cropped to the top of the screen — the full-length
   devices belong to the case studies, not to a doorway */
.software-peek{--peek:clamp(104px,12.4vw,182px);--lap:2.6rem;
  display:flex;justify-self:end;width:calc(var(--peek) * 3 - var(--lap) * 2);}
.peek{flex:none;box-sizing:border-box;width:var(--peek);border:1px solid var(--rule);border-radius:20px;
  padding:6px;background:#0E0E11;box-shadow:0 26px 62px rgba(0,0,0,.62);}
.peek img{width:100%;height:auto;aspect-ratio:9/16.5;object-fit:cover;object-position:top;
  border-radius:14px;}
.peek.a{transform:rotate(-3deg);}
.peek.b{margin-left:calc(var(--lap) * -1);transform:rotate(2.5deg) translateY(6%);}
.peek.c{margin-left:calc(var(--lap) * -1);transform:rotate(-2deg) translateY(-2%);}
@media(max-width:820px){
  .software-note .wrap{grid-template-columns:1fr;}
  .software-peek{justify-self:start;order:-1;}
}
@media(prefers-reduced-motion:reduce){ .peek{transform:none!important;} }

/* ---------- the wide case ----------
   The portal is two products in one, so it gets the full measure: the board
   across the page with the client's own view in front of it, and the prose
   in three columns underneath rather than beside. */
.case-wide .case-grid{display:block;}
.case-stage{position:relative;margin:0 0 clamp(4.6rem,9vw,7rem);}
.case-stage .stage-screen{display:block;border:1px solid var(--rule);border-radius:14px;
  overflow:hidden;background:#0E0E11;box-shadow:0 44px 100px rgba(0,0,0,.62);}
.case-stage .stage-screen img{width:100%;height:auto;aspect-ratio:auto;object-fit:fill;}
.case-stage .stage-phone{position:absolute;left:auto;right:4%;bottom:-11%;width:17%;box-sizing:border-box;
  border:1px solid var(--rule);border-radius:20px;padding:5px;background:#0E0E11;
  box-shadow:0 26px 60px rgba(0,0,0,.75);transform:rotate(-3deg);}
.case-stage .stage-phone img{width:100%;height:auto;aspect-ratio:auto;object-fit:fill;border-radius:15px;}
.case-stage figcaption{margin-top:1.1rem;font-size:var(--t-label);font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;color:var(--gray-2);
  max-width:46ch;line-height:1.7;}

.case-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(1.8rem,3.4vw,3.2rem);}
.case-cols .case-block{border-top:1px solid var(--rule);padding-top:1.3rem;margin-top:0;}
.case-cols .case-block p{max-width:none;}
.case-cols .case-facts{gap:1rem 1.8rem;}

@media(max-width:900px){
  .case-cols{grid-template-columns:1fr;gap:0;}
  .case-cols .case-block + .case-block{margin-top:clamp(1.7rem,3vw,2.4rem);}
  .case-stage{margin-bottom:clamp(3.4rem,12vw,5rem);}
  .case-stage .stage-phone{width:24%;bottom:-9%;right:3%;}
}
@media(prefers-reduced-motion:reduce){ .case-stage .stage-phone{transform:none;} }

@media (prefers-reduced-motion: no-preference){
  @supports (animation-timeline: view()){
    .case-cols .case-block{animation:rvCut linear both;animation-timeline:view();
      animation-range:entry 4% entry 38%;}
  }
}

/* ---------- headshots (unlisted page) ----------
   Butted close together on purpose: the set is the argument. One background,
   one light, one crop, eleven people. Tiles are 4:5 because that is the shape
   a headshot gets used in, and the photographs are wider than that. */
.shots-head .wrap{display:block;}   /* no hero image here, so not the two-column head */
.shots-head .h2{max-width:18ch;}
.shots-head .lede{max-width:56ch;}
.shots-sec{padding-top:clamp(2.2rem,5vw,3.4rem);}
.shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;}
@media(min-width:640px){ .shots{grid-template-columns:repeat(3,minmax(0,1fr));} }
@media(min-width:1000px){ .shots{grid-template-columns:repeat(4,minmax(0,1fr));} }
.shot{display:block;padding:0;border:0;margin:0;background:#141416;cursor:pointer;
  position:relative;overflow:hidden;}
.shot img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;
  transition:transform .4s cubic-bezier(.2,.75,.2,1),filter .3s ease;}
.shot:hover img,.shot:focus-visible img{transform:scale(1.03);}
.shot:focus-visible{outline:2px solid var(--paper);outline-offset:-2px;}
.shots-note{margin:clamp(1.1rem,2.4vw,1.6rem) 0 0;font-size:var(--t-label);font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;color:var(--gray-2);}

/* full frame over the page */
.shotbox{position:fixed;inset:0;z-index:100;display:none;place-items:center;
  padding:max(var(--gut),2.4rem) var(--gut);
  background:rgba(6,6,8,.95);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);}
.shotbox.is-open{display:grid;}
.shotbox img{max-width:min(100%,1180px);max-height:82vh;width:auto;height:auto;
  box-shadow:0 30px 90px rgba(0,0,0,.6);}
.shotbox-close{position:absolute;top:clamp(1rem,3vw,1.8rem);right:clamp(1rem,3vw,1.8rem);
  background:none;border:1px solid rgba(246,245,242,.3);color:var(--paper);font:inherit;
  font-size:var(--t-label);font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  padding:.6rem .9rem;cursor:pointer;transition:background .18s ease,color .18s ease;}
.shotbox-close:hover{background:var(--paper);color:var(--black);}
@media(prefers-reduced-motion:reduce){ .shot img{transition:none;} .shot:hover img{transform:none;} }

/* stepping through the set without going back to the grid */
.shotbox-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;
  display:grid;place-items:center;width:clamp(42px,5vw,54px);height:clamp(42px,5vw,54px);
  background:rgba(11,11,12,.55);border:1px solid rgba(246,245,242,.22);border-radius:50%;
  color:var(--paper);cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  transition:background .18s ease,border-color .18s ease;}
.shotbox-nav:hover{background:var(--paper);border-color:var(--paper);color:var(--black);}
.shotbox-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;}
.shotbox-nav.prev{left:clamp(.6rem,2.5vw,2rem);}
.shotbox-nav.next{right:clamp(.6rem,2.5vw,2rem);}
.shotbox-count{position:absolute;left:0;right:0;bottom:clamp(1rem,3vw,1.8rem);margin:0;
  text-align:center;font-size:var(--t-label);font-weight:600;letter-spacing:.18em;
  color:var(--gray-1);font-variant-numeric:tabular-nums;}
.shotbox img{max-height:74vh;}   /* room for the arrows and the counter */
@media(max-width:620px){
  .shotbox-nav{width:40px;height:40px;}
  .shotbox img{max-height:66vh;}
}

/* The rates belong above the photographs: eleven tiles is a long way to
   scroll before learning that one person can book as easily as a company. */
.shots-rates{margin:1.3rem 0 0;font-size:var(--t-small);color:var(--paper);max-width:50ch;
  line-height:1.6;}
.shots-rates a{color:var(--paper);text-decoration:none;
  border-bottom:1px solid var(--rule);padding-bottom:2px;transition:border-color .18s ease;}
.shots-rates a:hover{border-bottom-color:var(--paper);}

/* ---------- social edits ----------
   Vertical work, grouped by the kind of edit rather than by client, because the
   client is browsing for a format they recognise. Numbers appear only where they
   are strong: a small one under a tile argues against the work. */
.sc-head{display:flex;align-items:baseline;gap:.7rem;margin:0 0 clamp(1.1rem,2.4vw,1.6rem);}
.sc-head span{font-size:var(--t-label);font-weight:600;letter-spacing:.18em;color:var(--gray-2);
  font-variant-numeric:tabular-nums;}
.sc-sec{padding-block:clamp(2rem,4vw,3.2rem);border-top:1px solid var(--rule);}
.sc-sec:first-of-type{border-top:0;}

.sc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1rem,2.2vw,1.8rem);}
@media(min-width:620px){ .sc-grid{grid-template-columns:repeat(3,minmax(0,1fr));} }
@media(min-width:980px){ .sc-grid{grid-template-columns:repeat(4,minmax(0,1fr));} }
@media(min-width:1280px){ .sc-grid{grid-template-columns:repeat(5,minmax(0,1fr));} }

.sc-open{display:block;position:relative;width:100%;padding:0;margin:0;border:0;background:#141416;
  cursor:pointer;overflow:hidden;}
.sc-open img{display:block;width:100%;height:auto;aspect-ratio:9/16;object-fit:cover;
  transition:transform .4s cubic-bezier(.2,.75,.2,1);}
.sc-open:hover img,.sc-open:focus-visible img{transform:scale(1.03);}
.sc-open:focus-visible{outline:2px solid var(--paper);outline-offset:-2px;}
.sc-open::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to top,rgba(0,0,0,.55),transparent 42%);}
.sc-play{position:absolute;z-index:2;left:.6rem;bottom:.6rem;display:grid;place-items:center;
  width:30px;height:30px;border-radius:50%;background:rgba(11,11,12,.6);
  -webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);}
.sc-play svg{width:8px;height:10px;fill:var(--paper);margin-left:1px;}

.sc-client{margin:.7rem 0 0;font-size:var(--t-small);font-weight:500;color:var(--paper);}
.sc-stat{margin:.25rem 0 0;font-size:var(--t-small);color:var(--gray-1);
  font-variant-numeric:tabular-nums;}
.sc-stat b{font-weight:600;color:var(--paper);}
.sc-stat span{margin-left:.55rem;}
.sc-credit{margin:.3rem 0 0;font-size:var(--t-label);font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;color:var(--gray-2);}
.sc-credit a{color:var(--gray-1);text-decoration:none;border-bottom:1px solid var(--rule);}
.sc-credit a:hover{color:var(--paper);border-bottom-color:var(--paper);}

/* the player: a vertical clip wants height, not width */
.scbox video{max-height:76vh;max-width:min(100%,430px);width:auto;height:auto;background:#000;
  box-shadow:0 30px 90px rgba(0,0,0,.6);}
@media(max-width:620px){ .scbox video{max-height:68vh;} }
@media(prefers-reduced-motion:reduce){ .sc-open img{transition:none;} .sc-open:hover img{transform:none;} }

/* the four best stills, as a glimpse into the vertical page */
.sc-peek{--peek:clamp(84px,9vw,124px);--lap:1.9rem;width:calc(var(--peek) * 4 - var(--lap) * 3);}
.sc-peek .peek{width:var(--peek);}
.sc-peek .peek img{aspect-ratio:9/16;}
.sc-peek .peek:nth-child(1){transform:rotate(-3deg);}
.sc-peek .peek:nth-child(2){margin-left:calc(var(--lap) * -1);transform:rotate(2deg) translateY(5%);}
.sc-peek .peek:nth-child(3){margin-left:calc(var(--lap) * -1);transform:rotate(-2deg);}
.sc-peek .peek:nth-child(4){margin-left:calc(var(--lap) * -1);transform:rotate(3deg) translateY(4%);}

/* ---------- homepage rail ----------
   One ribbon, always moving, the same language as the client strip above it.
   Every thumbnail shares a HEIGHT so the row reads level rather than jagged:
   the films are simply wider than the clips, not taller or shorter. Captions
   hang from a common top edge, so a long scope line cannot shove its neighbour
   out of alignment. */
.rail{position:relative;display:flex;width:100%;overflow:hidden;
  --edge:calc((100% - min(100%, var(--max))) / 2 + var(--gut));
  --fade:110px;
  -webkit-mask-image:linear-gradient(90deg,transparent calc(var(--edge) - var(--fade)),
    #000 var(--edge),#000 calc(100% - var(--edge)),transparent calc(100% - var(--edge) + var(--fade)));
  mask-image:linear-gradient(90deg,transparent calc(var(--edge) - var(--fade)),
    #000 var(--edge),#000 calc(100% - var(--edge)),transparent calc(100% - var(--edge) + var(--fade)));}
@media(max-width:700px){ .rail{--fade:48px;} }

.rail-track{--rail-h:clamp(188px,23vw,300px);
  display:flex;align-items:flex-start;gap:clamp(.9rem,1.8vw,1.5rem);flex:none;
  padding-right:clamp(.9rem,1.8vw,1.5rem);
  /* The animation travels exactly ONE track width, so the duration is set from
     that, not from both copies: 7,522px over 269s is 28px a second, the same
     pace as the client strip. The rail carries every piece in the portfolio, so
     re-measure one track and divide by 28 whenever work is added. */
  animation:slide 269s linear infinite;}
.rail-item{flex:none;}
.rail-item a,.rail-item .rail-clip{display:block;position:relative;padding:0;border:0;margin:0;
  background:#000;overflow:hidden;cursor:pointer;}
.rail-item img{display:block;height:var(--rail-h);width:auto;max-width:none;object-fit:cover;
  transition:transform .45s cubic-bezier(.2,.75,.2,1);}
.rail-item.h img{aspect-ratio:16/9;}
.rail-item.v img{aspect-ratio:9/16;}
.rail-item a:hover img,.rail-clip:hover img,.rail-clip:focus-visible img{transform:scale(1.03);}
.rail-item a::after,.rail-item .rail-clip::after{content:"";position:absolute;inset:0;
  pointer-events:none;background:linear-gradient(to top,rgba(0,0,0,.5),transparent 45%);}
.rail-item .play{position:absolute;z-index:2;left:.6rem;bottom:.6rem;display:inline-flex;
  align-items:center;gap:.4rem;font-size:var(--t-label);font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--paper);background:rgba(11,11,12,.55);padding:.35rem .55rem;
  -webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);}
.rail-item .play svg{width:8px;height:10px;fill:currentColor;display:block;}

.rail-item.h .rail-title,.rail-item.h .rail-meta,.rail-item.h .rail-scope{
  max-width:calc(var(--rail-h) * 16 / 9);}
.rail-item.v .rail-title,.rail-item.v .rail-meta,.rail-item.v .rail-scope{
  max-width:calc(var(--rail-h) * 9 / 16);}
.rail-title{margin:.7rem 0 0;font-size:var(--t-small);font-weight:500;letter-spacing:-.01em;
  color:var(--paper);line-height:1.3;}
.rail-meta{display:flex;flex-wrap:wrap;gap:.2rem .6rem;margin:.28rem 0 0;font-size:var(--t-label);
  font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:var(--gray-2);}
.rail-scope{margin:.3rem 0 0;font-size:var(--t-label);line-height:1.5;color:var(--gray-1);}
.rail-cta{margin:clamp(1.5rem,3vw,2.1rem) 0 0;}
@media(prefers-reduced-motion:reduce){
  .rail{overflow-x:auto;-webkit-mask-image:none;mask-image:none;}
  .rail-track{animation:none;}
  .rail-track[aria-hidden="true"]{display:none;}
  .rail-item img{transition:none;}
}

/* a vertical clip in the shared lightbox wants height, not a 16:9 stage */
.lightbox-stage:has(.lightbox-vertical){aspect-ratio:auto;background:transparent;box-shadow:none;
  display:grid;place-items:center;}
.lightbox-vertical{position:static!important;width:auto!important;height:auto!important;
  max-height:74vh;max-width:min(100%,420px);background:#000;box-shadow:0 30px 90px rgba(0,0,0,.6);}

/* the two formats are peers, so the page offers a choice rather than burying one */
.form-switch{display:flex;flex-wrap:wrap;gap:1.4rem;margin:clamp(1.3rem,3vw,1.9rem) 0 0;}
.form-switch a{font-size:var(--t-label);font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:var(--fg);text-decoration:none;border-bottom:1px solid var(--rule);padding-bottom:3px;
  transition:border-color .18s ease;}
.form-switch a:hover{border-bottom-color:var(--fg);}
#short-form .sc-head{margin-top:clamp(1.8rem,3.5vw,2.6rem);}
#short-form .sc-head:first-of-type{margin-top:0;}

/* A view count belongs on the picture, where it reads as part of the work,
   not under the caption where it reads as a footnote. Bottom right, opposite
   the play badge, over the gradient that is already there. */
.rail-views,.sc-views{position:absolute;z-index:2;right:.55rem;bottom:.6rem;
  font-size:var(--t-label);font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--paper);text-shadow:0 1px 10px rgba(0,0,0,.85);}
/* a deeper foot on the clips so the number always has something to sit on */
.rail-item.v .rail-clip::after,.sc-open::after{
  background:linear-gradient(to top,rgba(0,0,0,.78),rgba(0,0,0,.28) 22%,transparent 48%);}

/* ---------- the work gallery ----------
   One gallery, not two stacked sections. Stacking meant whatever came second
   was barely seen, which is the same burial the homepage rail was built to
   avoid. Here both formats share one grid, interleaved so the first row always
   shows each, with a filter for anyone who came for one in particular.

   Rows are justified to a common HEIGHT, so a 16:9 film and a 9:16 clip sit on
   the same baseline and differ only in width. Deliberately NOT ordered by view
   count across formats: the films run from 0 to 2,700 views because they live
   on clients' own channels, and sorting by reach would bury every one of them
   under the clips and print "37 views" beside a 4.6M one. */
.gal-filter{display:flex;flex-wrap:wrap;gap:.6rem;margin:0 0 clamp(1.4rem,3vw,2.2rem);}
.gal-chip{font:inherit;font-size:var(--t-label);font-weight:600;letter-spacing:.16em;
  text-transform:uppercase;color:var(--fg-dim);background:transparent;cursor:pointer;
  border:1px solid var(--rule);padding:.6rem .9rem;display:inline-flex;align-items:center;gap:.5rem;
  transition:border-color .18s ease,color .18s ease,background .18s ease;}
.gal-chip span{font-variant-numeric:tabular-nums;color:var(--gray-2);}
.gal-chip:hover{color:var(--paper);border-color:var(--fg-dim);}
.gal-chip.is-on{background:var(--paper);color:var(--black);border-color:var(--paper);}
.gal-chip.is-on span{color:var(--gray-2);}

.gal{--gal-h:clamp(188px,21vw,268px);
  display:flex;flex-wrap:wrap;gap:clamp(.9rem,1.8vw,1.5rem);align-items:flex-start;}
.gal-item{flex:none;}
.gal-item[hidden]{display:none;}
.gal-item a,.gal-clip{display:block;position:relative;padding:0;border:0;margin:0;background:#000;
  overflow:hidden;cursor:pointer;}
.gal-item img{display:block;height:var(--gal-h);width:auto;max-width:none;object-fit:cover;
  transition:transform .45s cubic-bezier(.2,.75,.2,1);}
.gal-item.long img{aspect-ratio:16/9;}
.gal-item.short img{aspect-ratio:9/16;}
.gal-item a:hover img,.gal-clip:hover img,.gal-clip:focus-visible img{transform:scale(1.03);}
.gal-item a::after,.gal-clip::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to top,rgba(0,0,0,.72),rgba(0,0,0,.25) 22%,transparent 48%);}
.gal-item .play{position:absolute;z-index:2;left:.6rem;bottom:.6rem;display:inline-flex;
  align-items:center;gap:.4rem;font-size:var(--t-label);font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--paper);background:rgba(11,11,12,.55);padding:.35rem .55rem;
  -webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);}
.gal-item .play svg{width:8px;height:10px;fill:currentColor;display:block;}
.gal-views{position:absolute;z-index:2;right:.55rem;bottom:.6rem;font-size:var(--t-label);
  font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--paper);
  text-shadow:0 1px 10px rgba(0,0,0,.85);}

.gal-item.long .gal-title,.gal-item.long .gal-meta,.gal-item.long .gal-scope{
  max-width:calc(var(--gal-h) * 16 / 9);}
.gal-item.short .gal-title,.gal-item.short .gal-meta,.gal-item.short .gal-scope{
  max-width:calc(var(--gal-h) * 9 / 16);}
.gal-title{margin:.7rem 0 0;font-size:var(--t-small);font-weight:500;letter-spacing:-.01em;
  color:var(--paper);line-height:1.3;}
.gal-meta{display:flex;flex-wrap:wrap;gap:.2rem .6rem;margin:.28rem 0 0;font-size:var(--t-label);
  font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:var(--gray-2);}
.gal-scope{margin:.3rem 0 0;font-size:var(--t-label);line-height:1.5;color:var(--gray-1);}
.gal-scope a{color:var(--gray-1);text-decoration:none;border-bottom:1px solid var(--rule);}
.gal-scope a:hover{color:var(--paper);border-bottom-color:var(--paper);}
@media(prefers-reduced-motion:reduce){ .gal-item img{transition:none;} }
/* the gallery follows the headline directly; the old switcher's gap went with it */
#all-work{padding-top:clamp(1.6rem,3.5vw,2.6rem);}
.gal-link{display:inline-block;margin-top:.15rem;}

/* A real toggle, not a filter: each side is its own page with its own address,
   so either can be sent as a link. Both halves stay visible whichever is open,
   which is the point: neither format is hidden behind the other. */
.toggle{display:inline-flex;border:1px solid var(--rule);margin:0 0 clamp(1.5rem,3vw,2.3rem);}
.toggle-btn{display:inline-flex;align-items:center;padding:.7rem 1.25rem;
  font-size:var(--t-label);font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:var(--fg-dim);text-decoration:none;transition:background .18s ease,color .18s ease;}
.toggle-btn + .toggle-btn{border-left:1px solid var(--rule);}
.toggle-btn:hover{color:var(--paper);}
.toggle-btn.is-on{background:var(--paper);color:var(--black);}

/* ---------- the short form deck ----------
   Choosing a type deals the clips out again rather than snapping them into
   place: the old hand drops together, the new one lands card by card. */
.deck{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 clamp(1.3rem,2.6vw,1.9rem);}
.deck-chip{font:inherit;font-size:var(--t-label);font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:var(--fg-dim);background:transparent;cursor:pointer;
  border:1px solid var(--rule);padding:.52rem .8rem;
  transition:background .18s ease,color .18s ease,border-color .18s ease;}
.deck-chip:hover{color:var(--paper);border-color:var(--fg-dim);}
.deck-chip.is-on{background:var(--paper);color:var(--black);border-color:var(--paper);}

.gal-item.is-out{opacity:0;transform:translateY(8px) scale(.97);
  transition:opacity .17s ease,transform .17s ease;}
.gal-item.is-in{animation:deal .4s cubic-bezier(.2,.8,.2,1) both;}
@keyframes deal{
  from{opacity:0;transform:translateY(18px) rotate(-1.4deg) scale(.96);}
  to{opacity:1;transform:none;}
}
@media(prefers-reduced-motion:reduce){
  .gal-item.is-out,.gal-item.is-in{animation:none;transition:none;opacity:1;transform:none;}
}

/* A play control belongs in the middle of the frame, not in a corner where it
   fights the view count. Quiet ring, no label: the shape says what it does. */
.vh{position:absolute;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;}
.gal-item .play,.rail-item .play,.piece .play{
  left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);
  display:grid;place-items:center;gap:0;width:clamp(38px,4.4vw,52px);height:clamp(38px,4.4vw,52px);
  padding:0;border-radius:50%;background:rgba(11,11,12,.34);
  border:1px solid rgba(246,245,242,.38);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  transition:background .2s ease,border-color .2s ease,transform .2s ease;}
.gal-item .play svg,.rail-item .play svg,.piece .play svg{
  width:11px;height:14px;fill:var(--paper);margin-left:2px;}
.gal-item a:hover .play,.gal-clip:hover .play,.rail-item a:hover .play,
.rail-clip:hover .play,.piece a:hover .play{
  background:rgba(246,245,242,.92);border-color:var(--paper);}
.gal-item a:hover .play svg,.gal-clip:hover .play svg,.rail-item a:hover .play svg,
.rail-clip:hover .play svg,.piece a:hover .play svg{fill:var(--black);}
.gal-link{margin-top:0;}
/* every view is its own page now, so the deck deals in on load */
@media(prefers-reduced-motion:no-preference){
  .gal-item{animation:deal .4s cubic-bezier(.2,.8,.2,1) both;}
  .gal-item:nth-child(1){animation-delay:0ms}   .gal-item:nth-child(2){animation-delay:34ms}
  .gal-item:nth-child(3){animation-delay:68ms}  .gal-item:nth-child(4){animation-delay:102ms}
  .gal-item:nth-child(5){animation-delay:136ms} .gal-item:nth-child(6){animation-delay:170ms}
  .gal-item:nth-child(7){animation-delay:204ms} .gal-item:nth-child(8){animation-delay:238ms}
  .gal-item:nth-child(n+9){animation-delay:272ms}
}
/* a type page is a heading and the work; the toggle needs room without a lede */
.page-noled .toggle{margin-top:clamp(1.4rem,3vw,2rem);}
/* the post link lives in the player, where someone has just watched the clip */
.lightbox-post{display:inline-flex;align-items:center;gap:.5rem;flex:none;
  font-size:var(--t-label);font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--paper);text-decoration:none;border:1px solid rgba(246,245,242,.3);
  padding:.55rem .85rem;transition:background .18s ease,color .18s ease,border-color .18s ease;}
.lightbox-post svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;}
.lightbox-post:hover{background:var(--paper);color:var(--black);border-color:var(--paper);}
.lightbox-bar{gap:.9rem;}

/* Long form holds one aspect ratio, so the justified layout has nothing to
   pack against and just leaves a remainder: two 16:9 tiles filled 977 of 1208px
   and left 19% of every row empty. A two-column grid fills the measure, and the
   films get bigger for it, which suits the one thing they are selling. */
.gal.gal-even{display:grid;grid-template-columns:1fr;align-items:start;}
@media(min-width:720px){ .gal.gal-even{grid-template-columns:repeat(2,minmax(0,1fr));} }
.gal.gal-even .gal-item img{width:100%;height:auto;}
.gal.gal-even .gal-item .gal-title,
.gal.gal-even .gal-item .gal-meta,
.gal.gal-even .gal-item .gal-scope{max-width:none;}
