:root{
  --paper:#F6F5F1; --ink:#14171F; --graphite:#6B6D76; --fog:#A9AFB8; --marker:#2E3192;
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{background:var(--paper);color:var(--ink);font-family:'Manrope',sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden;}
.wrap{max-width:1360px;margin:0 auto;padding:0 48px;}
@media (max-width:720px){.wrap{padding:0 24px;}}
h1,h2,h3,.display{font-family:'Space Grotesk',sans-serif;font-weight:600;letter-spacing:-0.01em;line-height:1.05;text-wrap:balance;}
.mono{font-family:'IBM Plex Mono',monospace;letter-spacing:0.02em;}
a{color:inherit;text-decoration:none;}

/* Browsers default <button> to the arrow cursor (unlike <a>, which gets
   pointer automatically) — this is the one sitewide fix for that, rather
   than patching cursor:pointer onto every individual button class. */
button{cursor:pointer;}
button:disabled{cursor:default;}


/* Site-wide widow/orphan audit: balance for short display-weight text,
   pretty for running body copy. Both are progressive enhancements —
   browsers without support simply wrap normally. */
p{text-wrap:pretty;}
blockquote,.label,.line,.btn{text-wrap:balance;}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--marker);outline-offset:3px;}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.skip-link{
  position:absolute;left:-999px;top:auto;background:var(--ink);color:#fff;
  padding:12px 20px;z-index:200;font-family:'IBM Plex Mono';font-size:13px;
}
.skip-link:focus{left:16px;top:16px;}

/* ===== NAV ===== */
nav{position:fixed;top:0;left:0;right:0;z-index:100;background:rgba(20,23,31,0.32);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);}
nav .wrap{display:flex;align-items:baseline;justify-content:space-between;padding:24px 48px;}
.wordmark{font-family:'Space Grotesk';font-weight:600;font-size:19px;color:#fff;}
.imprint{font-family:'IBM Plex Mono';font-size:11px;color:#fff;text-transform:uppercase;letter-spacing:0.08em;}
.nav-links{display:flex;gap:32px;font-size:14px;color:#fff;}
.nav-links a{opacity:0.92;}
.nav-links a:hover{opacity:1;}
@media (max-width:720px){.nav-links{display:none;}}

/* ===== MOBILE NAV (hamburger + dropdown panel) ===== */
.nav-hamburger{display:none;background:none;border:none;padding:8px;margin:-8px;cursor:pointer;}
.nav-hamburger span{display:block;width:22px;height:1.5px;background:currentColor;transition:transform .25s ease, opacity .2s ease;}
.nav-hamburger span + span{margin-top:5px;}
.nav-hamburger[aria-expanded="true"] span:nth-child(1){transform:translateY(6.5px) rotate(45deg);}
.nav-hamburger[aria-expanded="true"] span:nth-child(2){opacity:0;}
.nav-hamburger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg);}
@media (max-width:720px){
  .imprint{display:none;}
  .nav-hamburger{display:block;}
}

.mobile-nav-panel{
  display:none;position:fixed;top:0;left:0;right:0;z-index:99;
  padding:88px 24px 32px;background:var(--paper);
  box-shadow:0 20px 40px rgba(20,23,31,0.16);
  max-height:100vh;overflow-y:auto;
}
.mobile-nav-panel.is-open{display:block;}
.mobile-nav-panel a{
  display:block;font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:21px;
  color:var(--ink);padding:15px 0;border-bottom:1px solid rgba(20,23,31,0.08);
}
.mobile-nav-panel a[aria-current="page"]{color:var(--marker);}
.mobile-nav-panel .imprint-mobile{
  display:block;margin-top:20px;font-family:'IBM Plex Mono',monospace;font-size:11px;
  color:var(--graphite);text-transform:uppercase;letter-spacing:0.08em;
}

section{position:relative;}

/* Same-page anchor jumps (e.g. chapter jump-links) should land clear of the
   fixed nav, not underneath it. Safe to apply broadly — has no effect other
   than on scroll-to-anchor positioning. */
h1[id],h2[id],h3[id]{scroll-margin-top:100px;}

/* ===== HERO — video, letterboxed to preserve full 16:9 composition ===== */
.hero{
  position:relative;width:100%;
  aspect-ratio:16/9;
  max-height:100vh;
  background:var(--ink); /* letterbox colour if viewport ratio differs from 16:9 */
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.hero-media{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
.hero-media video, .hero-media img.hero-poster-fallback{
  width:100%;height:100%;object-fit:cover;display:block;
}
.hero-media::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(20,23,31,0) 55%, rgba(20,23,31,.45) 100%);
}
.hero-content{position:relative;z-index:2;color:#fff;text-align:center;padding:0 24px;pointer-events:none;}
.hero .kicker{font-family:'IBM Plex Mono';font-size:12px;text-transform:uppercase;letter-spacing:.14em;opacity:.85;margin-bottom:20px;display:block;}
.hero h1{font-size:clamp(28px,6vw,84px);line-height:1.05;}
.scroll-cue{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);z-index:2;color:#fff;font-family:'IBM Plex Mono';font-size:11px;letter-spacing:.1em;opacity:.7;}
.hero-cta{
  position:absolute;left:24px;bottom:24px;z-index:2;
  padding:12px 20px;font-size:13px;
}
@media (min-width:720px){
  .hero-cta{left:48px;bottom:40px;}
}
/* Mobile only: rather than cropping the video to fill a taller box (which
   cut off important on-screen content), push the hero down clear of the
   fixed nav instead, keeping the same 16:9 framing the video was made for.
   Desktop/tablet keep the original overlay behaviour untouched. */
@media (max-width:720px){
  .hero{margin-top:80px;}
}

/* ===== PROOF ===== */
/* ===== Career Evidence Carousel ===== */
.evidence-strip{padding:56px 0 40px;border-bottom:1px solid rgba(20,23,31,0.08);}
.evidence-carousel{position:relative;}
.evidence-track{
  display:flex;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding-bottom:4px;
  margin:0 -2px;
}
.evidence-track::-webkit-scrollbar{display:none;}
.evidence-card{
  flex:0 0 auto;
  width:fit-content;
  min-width:200px;
  max-width:320px;
  scroll-snap-align:start;
  padding:4px 28px 4px 2px;
  margin-right:28px;
  border-right:1px solid rgba(20,23,31,0.08);
}
.evidence-card:last-child{border-right:none;margin-right:2px;}
.evidence-card .num{font-family:'IBM Plex Mono';font-size:clamp(20px,2.6vw,26px);font-weight:500;color:var(--ink);white-space:nowrap;}
.evidence-card .num.standout{font-size:clamp(22px,2.8vw,28px);}
.evidence-card .label{font-size:13px;color:var(--graphite);margin-top:8px;line-height:1.55;max-width:26ch;}

.evidence-controls{
  display:flex;align-items:center;gap:18px;
  margin-top:24px;
}
.evidence-btn{
  width:36px;height:36px;border-radius:50%;
  border:1px solid rgba(20,23,31,0.25);
  background:transparent;color:var(--ink);
  font-size:16px;line-height:1;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition:background-color .18s ease, border-color .18s ease;
}
.evidence-btn:hover{background:rgba(20,23,31,0.06);}
.evidence-btn:disabled{opacity:0.3;cursor:default;}
.evidence-progress{
  flex:1;height:1px;background:rgba(20,23,31,0.12);
  position:relative;overflow:hidden;
}
.evidence-progress-fill{
  position:absolute;top:0;left:0;height:100%;
  background:var(--marker);width:20%;
  transition:width .2s ease;
}
.evidence-position{
  font-family:'IBM Plex Mono';font-size:11px;color:var(--graphite);
  min-width:40px;text-align:right;
}
@media (prefers-reduced-motion: reduce){
  .evidence-track{scroll-behavior:auto;}
  .evidence-progress-fill,.evidence-btn,.chapter-link{transition:none;}
}

/* ===== CHAPTER TYPE A — full-bleed takeover ===== */
.takeover{min-height:100vh;display:flex;align-items:flex-end;overflow:hidden;position:relative;}
.takeover .media{position:absolute;inset:0;}
.takeover .media img{width:100%;height:100%;object-fit:cover;display:block;}
.takeover .media::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg, rgba(20,23,31,0) 40%, rgba(20,23,31,.55) 100%);}
.takeover .payload{position:relative;z-index:2;color:#fff;padding:0 48px 88px;max-width:720px;
  opacity:0;transform:translateY(18px);transition:opacity .7s ease, transform .7s ease;}
.takeover.revealed .payload{opacity:1;transform:translateY(0);transition-delay:.5s;}
@media (max-width:720px){.takeover .payload{padding:0 24px 64px;}}
.takeover .eyebrow{font-family:'IBM Plex Mono';font-size:11px;text-transform:uppercase;letter-spacing:.1em;opacity:.85;margin-bottom:16px;display:block;}
.takeover h2{font-size:clamp(26px,4vw,48px);margin-bottom:16px;max-width:16ch;}
.takeover p{max-width:44ch;opacity:.9;margin-bottom:20px;}
.chapter-link{font-size:14px;font-weight:500;border-bottom:1px solid currentColor;padding-bottom:2px;display:inline-block;transition:opacity .18s ease;}
.chapter-link:hover{opacity:0.72;}
.chapter-link:focus-visible{outline:2px solid var(--marker);outline-offset:3px;}

/* ---- Discovery chapter only: video background, restrained tint, blurred text container ---- */
.discovery-media{overflow:hidden;} /* clip strictly to this section — no bleed into the next */
.discovery-tint{
  position:absolute;inset:0;
  background:var(--marker);opacity:0.15;
  pointer-events:none;
}
.payload-inner{
  display:inline-block;
  background:rgba(20,23,31,0.3);
  backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
  border-radius:6px;
  padding:20px 24px;
}

/* ---- AI Playground chapter only: keep the interface content in frame across crop ratios ---- */
.playground-media .media img{object-position:center 35%;}

/* ===== CHAPTER TYPE B — typographic interstitial ===== */
.statement{min-height:70vh;display:flex;align-items:center;justify-content:center;text-align:center;padding:80px 24px;}
.statement p{font-family:'Space Grotesk';font-weight:500;font-size:clamp(24px,4.2vw,52px);max-width:16ch;line-height:1.2;text-wrap:balance;
  opacity:0;transform:translateY(10px);transition:opacity .8s ease, transform .8s ease;}
.statement.revealed p{opacity:1;transform:translateY(0);}

/* ===== CHAPTER TYPE C — immersive annotated insight ===== */
.insight{min-height:100vh;display:flex;align-items:center;padding:120px 0;}
.insight .frame{position:relative;width:100%;aspect-ratio:16/10;overflow:hidden;}

/* Scoped "contain" variant — for videos whose full frame must stay visible
   (e.g. on-screen text), rather than the default cropping "cover" treatment.
   Higher specificity than the shared rules above so it reliably overrides them. */
.insight .frame.frame-contain{aspect-ratio:16/9;background:var(--ink);}
.insight .frame.frame-contain video{
  width:100%;height:100%;object-fit:contain;object-position:center;display:block;
}
.insight .frame.frame-contain img{
  width:100%;height:100%;object-fit:contain;object-position:center;display:block;
}
.insight .frame img{width:100%;height:100%;object-fit:cover;display:block;}
.insight .frame video{width:100%;height:100%;object-fit:cover;display:block;}
.insight .caption{margin-top:32px;max-width:640px;
  opacity:0;transform:translateY(14px);transition:opacity .6s ease, transform .6s ease;}
.insight.revealed .caption{opacity:1;transform:translateY(0);transition-delay:.6s;}
.insight .eyebrow{font-family:'IBM Plex Mono';font-size:11px;color:var(--graphite);text-transform:uppercase;letter-spacing:.08em;margin-bottom:12px;display:block;}
.insight h3{font-size:clamp(22px,2.8vw,32px);margin-bottom:12px;}
.insight p.body{color:var(--graphite);max-width:52ch;}
.lab-tag{font-family:'IBM Plex Mono';font-size:11px;color:var(--graphite);border:1px solid var(--fog);border-radius:20px;padding:4px 12px;display:inline-block;margin-bottom:14px;}

/* ===== CLOSE ===== */
.close{min-height:80vh;display:flex;align-items:center;justify-content:center;text-align:center;padding:80px 24px;}
.close-inner{max-width:560px;}
.close p.line{font-family:'Space Grotesk';font-weight:500;font-size:clamp(22px,3.4vw,38px);margin-bottom:40px;line-height:1.25;}
.close-ctas{display:flex;gap:16px;flex-wrap:wrap;justify-content:center;}
.btn{
  font-family:'IBM Plex Mono';font-size:13px;padding:14px 24px;border-radius:4px;display:inline-block;
  border:1px solid transparent;
  transition:background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn.primary{background:var(--ink);color:var(--paper);}
.btn.primary:hover{background:var(--marker);transform:translateY(-1px);}
.btn.secondary{border-color:var(--ink);color:var(--ink);background:transparent;}
.btn.secondary:hover{background:var(--ink);color:var(--paper);border-color:var(--ink);}
.btn:focus-visible{outline:2px solid var(--marker);outline-offset:3px;}
@media (prefers-reduced-motion: reduce){
  .btn{transition:none;}
  .btn.primary:hover{transform:none;}
}

footer{border-top:1px solid rgba(20,23,31,0.08);padding:32px 0;}
footer .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:13px;color:var(--graphite);}

/* ---- Back to top (site-wide) ---- */
.back-to-top{
  position:fixed;right:24px;bottom:24px;z-index:90;
  width:44px;height:44px;border-radius:50%;
  background:var(--ink);color:var(--paper);
  display:flex;align-items:center;justify-content:center;
  border:none;cursor:pointer;font-size:16px;line-height:1;
  opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .25s ease, transform .25s ease, background-color .18s ease;
}
.back-to-top.visible{opacity:1;visibility:visible;transform:translateY(0);}
.back-to-top:hover{background:var(--marker);}
.back-to-top:focus-visible{outline:2px solid var(--marker);outline-offset:3px;}
@media (max-width:640px){ .back-to-top{right:16px;bottom:16px;width:40px;height:40px;} }
@media (prefers-reduced-motion: reduce){
  .back-to-top{transition:opacity .15s ease, background-color .15s ease;}
}

/* ---- Reusable lightbox (shared across any page/artefact) ---- */
.lightbox{
  position:fixed;inset:0;z-index:200;
  background:rgba(20,23,31,0.94);
  display:flex;align-items:center;justify-content:center;
  padding:48px;
}
.lightbox[hidden]{display:none;}
.lightbox-img{
  max-width:100%;max-height:100%;object-fit:contain;
  box-shadow:0 24px 64px rgba(0,0,0,0.4);
}
.lightbox-close{
  position:absolute;top:20px;right:20px;
  width:44px;height:44px;border-radius:50%;
  background:var(--ink);color:#fff;
  border:1px solid rgba(255,255,255,0.25);
  box-shadow:0 4px 14px rgba(0,0,0,0.35);
  font-size:20px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.lightbox-close:hover{background:var(--marker);}
.lightbox-close:focus-visible{outline:2px solid var(--marker);outline-offset:3px;}

/* ===== Shared page header for sub-pages (Work, Discovery, About, etc.) ===== */
.page-hero{padding:180px 0 80px;}
.page-hero .kicker{font-family:'IBM Plex Mono';font-size:12px;color:var(--graphite);text-transform:uppercase;letter-spacing:.1em;margin-bottom:20px;display:block;}
.page-hero h1{font-size:clamp(30px,5vw,56px);max-width:18ch;}
.prose{padding:0 0 80px;}
.prose .wrap{max-width:760px;}
.prose h2{font-size:clamp(20px,2.4vw,26px);margin:48px 0 16px;}
.prose p{color:var(--graphite);margin-bottom:20px;max-width:64ch;}
.prose p.lede{color:var(--ink);font-size:18px;}

.coming-soon{min-height:80vh;display:flex;align-items:center;}
.coming-soon .grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;}
@media (max-width:860px){.coming-soon .grid{grid-template-columns:1fr;}}
.coming-soon .artefact{position:relative;aspect-ratio:16/10;overflow:hidden;border:1px solid rgba(20,23,31,0.1);}
.coming-soon .artefact img{width:100%;height:100%;object-fit:cover;display:block;}

@media (prefers-reduced-motion: reduce){
  .takeover .payload,.statement p,.insight .caption{transition:opacity .6s ease;transform:none;}
  html{scroll-behavior:auto;}
}
