/* 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;}
@media(min-width:820px){ .trust{grid-template-columns:repeat(3,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 both rows drift at a similar pace:
     this track is ~4,200px, so 84s is about 50px a second. Change the duration,
     not the width, and keep the two rows within a few px/s of each other. */
  animation:slide 84s 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);}
.marquee-back .marquee-track{animation-duration:100s;animation-direction:reverse;
  animation-delay:-35s;}   /* ~4,550px at 100s is ~45px/s; start mid-cycle so the
                              two rows never line up */
.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);}
.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);}

/* ---------- 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;}
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%;}
  }
}
