/* Desktop layer (≥1008px, loaded with a media query). Screen-by-screen snapping, reveal animations,
   next-page end card, pinned Experience sidebar and higher-contrast Experience.
   Deviations from therow.com: all of the above; hero is now a full 100vh. */

:root{--cpt:80px;--dhh:60px;--dscr:calc(100vh - var(--dhh));--ease:cubic-bezier(.2,.7,.2,1)}

/* ---------- snapping ---------- */
/* no snapping: free native scroll; the rail dots still jump to each screen */
html:has([data-dscr]){scroll-padding-top:var(--dhh)}
.page,.is-inner .page{min-height:0}

/* ---------- reveal (classes added by desktop.js) ---------- */
.rv{opacity:0;transform:translateY(22px);transition:opacity .7s var(--ease),transform .7s var(--ease);transition-delay:calc(var(--i,0) * 70ms)}
.rv.in{opacity:1;transform:none}
.vals li.rv{transform:translateX(-32px)}
.vals li.rv.in{transform:none}
@media (prefers-reduced-motion:reduce){.rv,.vals li.rv{transform:none;transition:opacity .3s}}

/* ---------- screen rail ---------- */
.rail{position:fixed;right:14px;top:50%;z-index:40;display:flex;flex-direction:column;gap:4px;transform:translateY(-50%);mix-blend-mode:difference;transition:opacity .3s}
.rail button{display:flex;align-items:center;justify-content:center;width:20px;height:20px}
.rail button::before{content:"";width:5px;height:5px;border-radius:50%;background:#fff;opacity:.35;transition:opacity .3s,transform .3s}
.rail button:hover::before{opacity:.7}
.rail button[aria-current="true"]::before{opacity:1;transform:scale(1.3)}
.is-home:not(.d-past) .rail{opacity:0;pointer-events:none}

/* ---------- home ---------- */
.hero{height:100vh}
.is-home.d-past .header{background:var(--bg)}
.is-home.d-past .header,.is-home.d-past .header a,.is-home.d-past .logo{color:var(--text)!important}
.is-home.d-past .header::before{opacity:0}
.header{transition:background-color .3s ease}

/* ---------- footer = end card ---------- */
.footer{min-height:var(--dscr);display:flex;flex-direction:column;border-top:0;padding:40px 0 34px}
.footer__next{display:flex;flex-direction:column;gap:6px;margin:0 56.8px;padding:36px 0 44px;border-bottom:1px solid var(--border);align-self:stretch}
.footer__next .muted{font-size:13px}
.footer__next-t{font-size:60px;line-height:1.05;font-weight:500;letter-spacing:-.03em;color:var(--text)}
.footer__next-t span{display:inline-block;transition:transform .35s var(--ease)}
.footer__next:hover .footer__next-t span{transform:translateX(10px)}
.footer__inner{margin-top:auto}

/* ---------- about ---------- */
.editorial{padding:0}
.editorial__text{min-height:var(--dscr);display:flex;flex-direction:column;justify-content:center;padding:40px 0}
.editorial__figure{min-height:var(--dscr);margin:0;display:flex;flex-direction:column;justify-content:center;padding:30px 0}
.editorial__figure img{height:min(552px,calc(var(--dscr) - 140px))}
.editorial__figure figcaption{margin-top:22px}

/* ---------- work: all four cards on one screen ---------- */
.work{min-height:var(--dscr)}
.work .grid{padding:8px 0 32px;--slot:calc((var(--dscr) - 71px - 8px - 32px - 24px) / 2)}
.work .card{height:var(--slot)}
.work .card a{display:flex;flex-direction:column;height:100%}
.work .card__img{flex:1;min-height:0;aspect-ratio:auto}
.work .card__img img{object-fit:contain;transition:transform .6s var(--ease)}
.work .card a:hover .card__img img{transform:scale(1.035)}

/* ---------- case studies ---------- */
.pdp{min-height:var(--dscr);padding-top:20px;padding-bottom:20px}
.pdp__gallery>img{height:min(771px,calc(var(--dscr) - 40px));width:100%;object-fit:cover}
.cs{aspect-ratio:auto;height:min(540px,calc(var(--dscr) - 40px))}
.cs--p{height:min(802px,calc(var(--dscr) - 40px))}
.cs--p .cs__card{--w:min(80%,calc((var(--dscr) - 100px) * .76));width:var(--w);left:calc(50% - var(--w) / 2);margin-top:calc(var(--w) * -.625)}
.pdp__info{padding-top:clamp(30px,9vh,108px)}

/* ---------- experience: overview screen, then one group per screen; sidebar pinned ---------- */
.care__side{position:sticky;top:calc(var(--dhh) + 40px);align-self:flex-start}
.care{padding-top:var(--cpt)}
.exp-overview{min-height:calc(var(--dscr) - var(--cpt));scroll-margin-top:var(--cpt)}
.exp-overview .care__rule{display:none}
.exp-group{min-height:var(--dscr);padding:var(--cpt) 0 40px}
.exp-group__label{font:inherit;font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--text);display:flex;align-items:center;gap:14px;margin:0 0 4px}
.exp-group__label::after{content:"";flex:1;height:1px;background:var(--border)}
.exp{margin:0;padding:18px 0;scroll-margin-top:140px}
.exp+.exp{border-top:1px solid var(--border)}
.exp h2{font-size:14px;font-weight:600;line-height:1.4}
.exp p.muted{font-size:12px;margin:2px 0 6px}
.tbl td:first-child{font-weight:500}
.tbl td:first-child .muted{font-weight:400}

/* ---------- beyond: art gallery — framed prints on a warm wall, gallery lights, museum placards; every print the same size ---------- */
/* 2026-11-27: no beige wall or gallery-light gradient — plain white */
.gal{--w:min(calc((100vw - 2 * clamp(40px,5vw,96px) - 160px) / 3),calc((var(--dscr) - 320px) * .8));position:relative;display:grid;grid-template-columns:repeat(3,var(--w));column-gap:clamp(40px,5vw,96px);width:max-content;max-width:100%;margin:0 auto;padding:0;counter-reset:g}
.gal__item{position:relative;counter-increment:g;min-height:var(--dscr);display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding:clamp(80px,12vh,120px) 0 30px}
.gal__item::before{content:none}
.gal__item img{position:relative;width:var(--w);height:auto;aspect-ratio:4/5;box-sizing:border-box;object-fit:cover;padding:16px;background:#fff;border:3px solid #1D1B19;box-shadow:0 1px 1px rgba(0,0,0,.08),0 18px 32px -14px rgba(40,30,20,.35),0 6px 10px -6px rgba(40,30,20,.18);cursor:pointer;transition:transform .5s cubic-bezier(.2,.7,.2,1),box-shadow .5s ease}
.gal__item img:hover{transform:translateY(-3px);box-shadow:0 1px 1px rgba(0,0,0,.08),0 26px 40px -16px rgba(40,30,20,.4),0 8px 12px -6px rgba(40,30,20,.2)}
.gal__text{position:relative;display:block;align-self:flex-start;margin:22px 0 0 3px;width:auto;min-width:168px;padding:10px 14px 11px;background:#fff;border:1px solid var(--border)}
.gal__text::before{content:"No. " counter(g,decimal-leading-zero);display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--light);font-variant-numeric:tabular-nums;margin-bottom:5px}
.gal__text p:first-child{font-size:13px;font-style:italic;font-weight:500;line-height:1.35}
.gal__text p.muted{font-size:10px;letter-spacing:.14em;text-transform:uppercase;line-height:1.7;margin-top:2px}
.gal__text{max-width:var(--w);box-sizing:border-box}
.gal__line{font-size:11.5px;line-height:1.45;margin:7px 0 6px}
.gal__geo{font-size:10px;color:var(--light);font-variant-numeric:tabular-nums;letter-spacing:.04em}
.gal__intro{position:absolute;top:22px;left:50%;transform:translateX(-50%);margin:0;z-index:1;white-space:nowrap}
.gal__h{font:inherit;font-size:11px;line-height:1;font-weight:500;letter-spacing:.24em;text-transform:uppercase;margin:0}

/* ---------- core values + connect: one screen ---------- */
.care[data-dscr]:not(:has(.exp-group)){min-height:var(--dscr)}
.care[data-dscr]:has(.vals){display:grid;grid-template-columns:250px minmax(0,650px);column-gap:80px;align-content:center;align-items:start;padding-top:0;padding-bottom:0}
.care[data-dscr]:has(.vals) .care__side{position:static}

/* ---------- recommendation: both quotes on one screen ---------- */
.page.rec{min-height:var(--dscr);display:flex;flex-direction:column;justify-content:center}
.centered,.centered--first,.centered--last{padding:0}
.centered--last{margin-top:84px}

@media (max-height:820px){
  :root{--cpt:44px}
  .field{margin-bottom:18px}
  .care__main>p:first-of-type{margin-bottom:20px}
  .pdp__meta{margin-bottom:20px}
}
@media (max-height:760px){
  .tbl td{padding-top:4px;padding-bottom:4px}
  .tbl__group td{padding-top:14px}
  .pdp__info{padding-top:24px}
  .pdp__lede{margin-bottom:16px}
  .acc summary{padding:9px 0}
}
.care{padding-bottom:0}

/* ---------- case story (TMU): wider text column so the whole story fits beside the slides ---------- */
.pdp--story .pdp__info{flex:1 1 auto;max-width:760px;padding:clamp(20px,4vh,56px) 70px 0 64px}
.pdp--story .pdp__lede{margin-bottom:14px}
.pdp--story .pdp__meta{margin-bottom:16px}
.pdp--story .pdp__meta div{display:inline-flex;margin-right:22px}
.pdp--story .pdp__meta dt{flex:none}
.pdp--story .story__sec{padding:11px 0 12px}
.pdp--story .soar{gap:7px}
.pdp--story .pdp__crumbs{margin-bottom:10px}
.pdp--story .pdp__no{margin-bottom:10px}
.pdp--story .pdp__gallery{flex:0 0 560px}
@media (max-height:820px){.pdp--story .pdp__info{padding-top:8px}.pdp--story .pdp__lede{margin-bottom:10px}.pdp--story .story__sec{padding:9px 0 10px}.pdp--story .story{margin-bottom:16px}}
.pdp--story{padding-left:clamp(30px,4vw,90px)}
.pdp--story .pdp__gallery{flex:0 0 clamp(440px,37vw,580px)}
.pdp--story .pdp__info{padding-left:clamp(36px,4vw,64px);padding-right:clamp(40px,4.5vw,70px)}
.care.skills[data-dscr]{min-height:var(--dscr);align-items:center;padding-top:0;padding-bottom:0}
.care.skills .care__side{position:static;align-self:center}
.care.skills[data-dscr]{display:grid;grid-template-columns:250px minmax(0,650px);column-gap:80px;align-content:center;align-items:start}
.care.skills .care__side{align-self:start}
/* 7 nav items: tighten spacing on narrower desktops so the logo stays centered */
@media (max-width:1240px){.nav li{margin-right:20px}}
@media (max-width:1100px){.nav li{margin-right:14px}}
/* TMU: landscape photo stack, centred beside the story */
.pdp--story{align-items:center}
.pdp--story .pdp__gallery{flex:0 0 clamp(460px,40vw,640px)}
.pdp--story .cs{height:min(560px,calc(var(--dscr) - 40px))}
@media (max-height:820px){.pdp--story .story__sec{padding:7px 0 8px}.pdp--story .pdp__crumbs{margin-bottom:6px}.pdp--story .pdp__no{margin-bottom:6px}.pdp--story .pdp__meta{margin-bottom:10px}.pdp--story .story__k{margin-bottom:5px}}
.pdp--story .pdp__info{padding-top:8px}
.pdp--story .pdp__lede{margin-bottom:10px}
.pdp--story .pdp__meta{margin-bottom:12px}
.pdp--story .story{margin-bottom:16px}
@media (max-height:820px){.pdp--story{padding-top:8px;padding-bottom:8px}.pdp--story .pdp__info{line-height:1.5}.pdp--story .steps--2{gap:6px 22px}.pdp--story .soar{gap:4px}}
@media (max-height:770px){.pdp--story .pdp__info{line-height:1.42}.pdp--story .pdp__lede{margin-bottom:6px}.pdp--story .story__sec{padding:5px 0 6px}.pdp--story .stats--4 .stat__n{font-size:16px}}
@media (max-width:1240px){.nav--right li{margin-right:0;margin-left:20px}}
@media (max-width:1100px){.nav--right li{margin-left:14px}}
/* TMU: calmer spacing, bigger photos */
.pdp--story .pdp__gallery{flex:0 0 clamp(500px,46vw,760px)}
.pdp--story .cs{height:min(640px,calc(var(--dscr) - 40px))}
.pdp--story .pdp__info{max-width:620px;padding-top:0}
.pdp--story .pdp__lede{margin-bottom:22px}
.pdp--story .pdp__meta{margin-bottom:26px}
.pdp--story .story__sec{padding:20px 0 22px}
.pdp--story .story__k{margin-bottom:12px}
.pdp--story .soar{gap:12px}
.pdp--story .steps--2{gap:14px 28px}
.pdp--story .story{margin-bottom:28px}
@media (max-height:820px){.pdp--story .story__sec{padding:14px 0 15px}.pdp--story .pdp__lede{margin-bottom:14px}.pdp--story .pdp__meta{margin-bottom:16px}.pdp--story .soar{gap:8px}}
.pdp--star .pdp__lede{margin-bottom:28px;max-width:520px}
.pdp--star .pdp__crumbs{margin-bottom:14px}
@media (max-height:820px){.pdp--star .star__sec{padding-bottom:16px}.pdp--star .pdp__lede{margin-bottom:20px}.pdp--star .star__stats b{font-size:26px}}
.pdp--star .pdp__info{max-width:660px}
/* The Close: smaller slide stack */
.cs--p{height:min(680px,calc(var(--dscr) - 80px))}
.cs--p .cs__card{--w:min(66%,calc((var(--dscr) - 160px) * .68))}

/* ---------- home: positioning card over the opening photo (recruiters see role + next step immediately) ---------- */
.is-home main{position:relative}
.hero-intro{position:absolute;left:20px;bottom:24px;z-index:5;width:380px;padding:20px 22px 22px;background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(12px) saturate(1.1);backdrop-filter:blur(12px) saturate(1.1);box-shadow:0 1px 2px rgba(0,0,0,.06),0 12px 30px -12px rgba(0,0,0,.25);opacity:0;transform:translateY(12px);animation:introIn .7s cubic-bezier(.2,.7,.2,1) .5s forwards}
.hero-intro__eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--light);margin:0 0 8px}
.hero-intro__h{font-size:24px;line-height:1.15;font-weight:500;letter-spacing:-.015em;margin:0 0 10px;color:var(--text)}
.hero-intro__p{margin:0 0 16px;color:var(--text)}
.hero-intro__cta{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.hero-intro__cta .btn{width:auto;height:34px}
@keyframes introIn{to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.hero-intro{animation:none;opacity:1;transform:none}}
.hero-intro__eyebrow{font-size:12px}

/* ---------- home intro, v2: type on the photo, like the caption and the phone pitch (no card) ---------- */
.hero-intro{left:var(--gutter,20px);bottom:26px;width:min(460px,38vw);padding:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;color:#fff;isolation:isolate}
.hero-intro::before{content:"";position:absolute;z-index:-1;left:calc(var(--gutter,20px) * -1);bottom:-26px;width:min(760px,62vw);height:calc(100% + 190px);pointer-events:none;
  background:radial-gradient(120% 100% at 0% 100%,rgba(0,0,0,.58) 0%,rgba(0,0,0,.5) 30%,rgba(0,0,0,.3) 55%,rgba(0,0,0,.1) 75%,rgba(0,0,0,0) 90%)}
.hero-intro__h{font-size:32px;line-height:1.1;letter-spacing:-.02em;color:#fff;margin:0 0 10px;text-shadow:0 1px 14px rgba(0,0,0,.25)}
.hero-intro__p{color:rgba(255,255,255,.92);margin:0 0 18px;max-width:400px}
.hero-intro .proof--hero{border-top:1px solid rgba(255,255,255,.4);margin:0 0 18px;max-width:400px}
.hero-intro .proof--hero b{color:#fff;font-size:22px}
.hero-intro .proof--hero span{color:#fff;font-size:12px}
.hero-intro__cta{display:flex;align-items:center;gap:20px}
.hero-intro .hero-m__btn{display:inline-flex;align-items:center;height:38px;padding:0 18px;border-radius:999px;background:#fff;color:#111;font-size:13px;font-weight:500;transition:background .2s}
.hero-intro .hero-m__btn:hover{background:#ececeb}
.hero-intro__link{color:#fff;font-size:13px;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.hero-intro__link:hover{opacity:.8}
.hero-intro::before{background:radial-gradient(125% 105% at 0% 100%,rgba(0,0,0,.7) 0%,rgba(0,0,0,.62) 32%,rgba(0,0,0,.4) 56%,rgba(0,0,0,.14) 76%,rgba(0,0,0,0) 92%)}
/* v3: matches .hero__caption (13px white, same text-shadow), title at the site's title weight, a whisper of vignette only */
.hero-intro{bottom:var(--gutter,20px);width:340px;text-shadow:0 0 2px rgba(0,0,0,.45),0 0 12px rgba(0,0,0,.6)}
.hero-intro::before{bottom:calc(var(--gutter,20px) * -1);height:calc(100% + 140px);width:min(620px,50vw);background:radial-gradient(120% 100% at 0% 100%,rgba(0,0,0,.42) 0%,rgba(0,0,0,.34) 35%,rgba(0,0,0,.16) 62%,rgba(0,0,0,0) 85%)}
.hero-intro__h{font-size:20px;line-height:1.25;font-weight:500;letter-spacing:-.01em;margin:0 0 6px;text-shadow:inherit}
.hero-intro__p{font-size:13px;line-height:1.65;color:#fff;margin:0 0 14px}
.hero-intro .proof--hero{margin:0 0 16px;padding-top:10px;border-top-color:rgba(255,255,255,.55)}
.hero-intro .proof--hero b{font-size:15px;font-weight:500;letter-spacing:0}
.hero-intro .proof--hero span{font-size:12px;color:#fff}
.hero-intro__cta{gap:8px}
.hero-intro__cta .btn{text-shadow:none}

/* ---------- about: text + portrait share one screen (was text screen, then photo screen) ---------- */
.editorial{display:grid;grid-template-columns:minmax(0,600px) auto;justify-content:center;align-items:center;gap:72px;max-width:1160px;min-height:var(--dscr);padding:0 40px}
.editorial__text,.editorial__figure{min-height:0;padding:0}
.editorial__text{max-width:none;margin:0}
.editorial__figure img{width:auto;aspect-ratio:3/4;height:min(600px,calc(var(--dscr) - 120px))}
.editorial .keep-going{display:none}
/* ---------- work: ModelLab featured full width, then the 2x2 grid ---------- */
.work .card--feature{grid-column:1/-1}
