:root{
  --paper:#F6F5F1; --ink:#14171F; --graphite:#6B6D76; --fog:#A9AFB8; --marker:#2E3192;
  --ink-rgb:20,23,31; --paper-rgb:246,245,241;
  color-scheme:light;
}

/* ===== DARK MODE =====
   Same five-token system, same roles, values inverted for a dark surface.
   --marker is lifted slightly (a touch lighter/more saturated) so the one
   accent colour still clears contrast on a near-black background; every
   other rule in this file keeps working unmodified because it reads the
   tokens, not literal colours. --ink-rgb/--paper-rgb let the handful of
   rgba() overlays below (borders, hover states, blurs) invert the same way
   without a second set of rules. Chrome that's deliberately "always dark"
   regardless of theme (footer, lightbox, media scrims) uses the literal
   #14171F/rgba(20,23,31,..) values instead of the tokens, by design — see
   the comments at each of those rules. */
:root[data-theme="dark"]{
  --paper:#14171F; --ink:#F3F2ED; --graphite:#9EA2AC; --fog:#5B5E66; --marker:#6C70E8;
  --ink-rgb:243,242,237; --paper-rgb:20,23,31;
  color-scheme:dark;
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;height:100%;}
body{background:var(--paper);color:var(--ink);font-family:'Manrope',sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden;min-height:100%;display:flex;flex-direction:column;transition:background-color .25s ease,color .25s ease;}
body > main{flex:1 0 auto;}
body > .site-footer{flex-shrink:0;}
.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:#14171F;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;position:relative;}
.wordmark{font-family:'Space Grotesk';font-weight:600;font-size:19px;color:#fff;display:inline-flex;align-items:center;gap:11px;}
.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;}}

/* ---- Theme toggle: sits in the nav at every breakpoint, sun/moon swap.
   Positioned absolutely within nav .wrap (rather than as a flex sibling of
   wordmark/nav-links/imprint) so it never touches the existing space-between
   distribution of those three groups on desktop, or the wordmark/hamburger
   pairing on mobile — the one rule the brief asked for: nothing else on the
   page moves. Placed just after the "Mark Jones" wordmark (fixed left offset,
   since that text and its font-size are the same on every page) rather than
   the right side, which crowded the "The Number 44" imprint. ---- */
.theme-toggle{
  position:absolute;top:50%;left:165px;transform:translateY(-50%);
  display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;
  background:transparent;border:none;color:inherit;
  border-radius:50%;
  transition:color .18s ease,background-color .18s ease;
}
.theme-toggle:hover{color:var(--marker) !important;background:rgba(128,128,128,0.14);}
.theme-toggle svg{width:19px;height:19px;display:block;transition:transform .4s cubic-bezier(.16,.84,.44,1);}
.theme-toggle .icon-moon{display:block;}
.theme-toggle .icon-sun{display:none;}
[data-theme="dark"] .theme-toggle .icon-moon{display:none;}
[data-theme="dark"] .theme-toggle .icon-sun{display:block;}
.theme-toggle:active svg{transform:scale(0.82) rotate(-18deg);}
@media (max-width:720px){
  .theme-toggle{left:140px;}
}
@media (prefers-reduced-motion: reduce){
  .theme-toggle,.theme-toggle svg{transition:color .18s ease;}
  .theme-toggle:active svg{transform: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;}
  /* Fix nav to a known height on mobile (rather than letting baseline-aligned
     content size it) so the hero's push-down offset below can match it
     exactly, with no sliver of page background showing between the two. */
  nav .wrap{padding:0 24px;height:64px;align-items:center;}
}

.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(var(--ink-rgb),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:#14171F; /* letterbox colour if viewport ratio differs from 16:9 — fixed, not theme-reactive: it borders live video, which doesn't change with the site theme */
  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:64px;}
}

/* ===== PROOF ===== */
/* ===== Career Evidence Carousel ===== */
.evidence-strip{padding:56px 0 40px;border-bottom:1px solid rgba(var(--ink-rgb),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(var(--ink-rgb),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(var(--ink-rgb),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(var(--ink-rgb),0.06);}
.evidence-btn:disabled{opacity:0.3;cursor:default;}
.evidence-progress{
  flex:1;height:1px;background:rgba(var(--ink-rgb),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);}
@media (max-width:720px){
  /* Same centred, weighted treatment, just without forcing a near-full-screen
     block on a short viewport: cuts the scroll distance while keeping the
     pause-and-land moment desktop has. */
  .statement{min-height:0;padding:64px 24px 40px;}
}

/* ===== 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:#14171F;} /* video letterbox — fixed, see .hero above */
.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;}
}

/* ---- Site footer ---- */
/* Footer is deliberately a fixed dark band regardless of site theme (like the
   hero/nav-over-media), so it uses the literal ink hex rather than the token. */
.site-footer{background:#14171F;color:rgba(246,245,241,0.65);padding:64px 0 28px;}
/* In light mode the footer's own dark fill already separates it from the
   --paper page above it. In dark mode the page background is the same
   near-black, so the fixed-dark footer would otherwise blend straight into
   it — a thin, permanently-light keyline (never themed, since the footer
   itself never themes) restores that edge. */
[data-theme="dark"] .site-footer{border-top:1px solid rgba(246,245,241,0.14);}
.footer-grid{
  display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:40px;padding-bottom:44px;
  border-bottom:1px solid rgba(246,245,241,0.12);
}
@media (max-width:860px){ .footer-grid{grid-template-columns:1fr 1fr;row-gap:36px;} }
@media (max-width:520px){ .footer-grid{grid-template-columns:1fr;} }

/* Footer text colours are literal, not tokens: the footer band is fixed-dark
   regardless of site theme (see .site-footer above), so its text must stay
   fixed-light to match, rather than flipping with --paper. */
.footer-about .footer-wordmark{
  font-family:'Space Grotesk';font-weight:700;font-size:19px;
  color:#F6F5F1;text-decoration:none;display:block;margin-bottom:6px;
}
.footer-about .footer-wordmark:hover{color:#fff;}
.footer-role{
  display:block;
  font-family:'IBM Plex Mono';font-size:11px;text-transform:uppercase;letter-spacing:.08em;
  color:rgba(246,245,241,0.45);margin-bottom:16px;
}
.footer-bio{font-size:14px;line-height:1.65;max-width:34ch;color:rgba(246,245,241,0.6);}

/* ---- Availability badge: reused in footer (dark) and contact page (light) ---- */
.availability-badge{display:inline-flex;align-items:center;gap:9px;font-family:'IBM Plex Mono';font-size:11px;text-transform:uppercase;letter-spacing:.08em;}
.availability-dot{width:8px;height:8px;border-radius:50%;background:#3FBF63;position:relative;flex-shrink:0;}
.availability-dot::before{content:'';position:absolute;inset:-5px;border-radius:50%;background:#3FBF63;opacity:.5;animation:availabilityPulse 2s ease-out infinite;}
@keyframes availabilityPulse{0%{transform:scale(.6);opacity:.55;}100%{transform:scale(1.9);opacity:0;}}
@media (prefers-reduced-motion: reduce){.availability-dot::before{animation:none;opacity:0;}}
.footer-availability{margin-top:14px;color:rgba(246,245,241,0.75);}
.availability-badge.on-light{color:var(--graphite);}

.footer-heading{
  display:block;font-family:'IBM Plex Mono';font-size:11px;text-transform:uppercase;
  letter-spacing:.08em;color:rgba(246,245,241,0.4);margin-bottom:16px;
}
.footer-links,.footer-contact{display:flex;flex-direction:column;gap:11px;font-size:14px;}
.footer-links a,.footer-contact a{
  color:rgba(246,245,241,0.78);text-decoration:none;
}
.footer-links a:hover,.footer-contact a:hover{color:#fff;text-decoration:underline;}
.site-footer a:focus-visible{outline:2px solid var(--marker);outline-offset:3px;border-radius:2px;}

.footer-bottom{
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;
  padding-top:24px;font-family:'IBM Plex Mono';font-size:11.5px;
  color:rgba(246,245,241,0.4);
}

.footer-mark{width:34px;height:34px;object-fit:contain;display:block;margin-bottom:14px;opacity:0.9;}

/* ---- 44 mark assemble motif: split in half, each half slides in to meet at centre.
   Default (no .n44-armed) state is the fully-formed mark: solid, correct, no JS
   required. JS adds .n44-armed to pull the halves apart just before revealing them
   with .is-visible, so a slow/blocked observer never leaves a broken-looking logo. ---- */
.n44-assemble{position:relative;display:block;}
.n44-assemble-half{position:absolute;inset:0;background-size:contain;background-repeat:no-repeat;background-position:center;opacity:1;transform:none;transition:transform 1.3s cubic-bezier(.16,.84,.44,1),opacity 1s ease;}
.n44-assemble-half.l{clip-path:inset(0 50% 0 0);}
.n44-assemble-half.r{clip-path:inset(0 0 0 50%);}
.n44-assemble.n44-armed .n44-assemble-half{opacity:0;}
.n44-assemble.n44-armed .n44-assemble-half.l{transform:translateX(-28px);}
.n44-assemble.n44-armed .n44-assemble-half.r{transform:translateX(28px);}
.n44-assemble.n44-armed.is-visible .n44-assemble-half{opacity:1;transform:translateX(0);}
.footer-mark.n44-assemble{width:34px;height:34px;margin-bottom:14px;}
.footer-mark.n44-assemble .n44-assemble-half{background-image:url("../images/44-watermark-white.png");}
.hero-mark.n44-assemble{width:44px;height:52px;margin:0 0 24px;}
.hero-mark.n44-assemble .n44-assemble-half{background-image:url("../images/44-mark-black.png");}
.quote-mark.n44-assemble{width:40px;height:47px;margin:0 0 28px;opacity:0.92;}
.quote-mark.n44-assemble .n44-assemble-half{background-image:url("../images/44-watermark-white.png");}

/* ---- Close-section falling mark: drops in from above and converges as it lands ---- */
.close-mark.n44-assemble{width:120px;height:141px;margin:0 auto 36px;filter:drop-shadow(0 18px 28px rgba(20,23,31,0.16));}
.close-mark.n44-assemble .n44-assemble-half{
  background-image:url("../images/44-mark-black.png");
  transition:transform 1.2s cubic-bezier(.16,.84,.44,1),opacity 1s ease;
}
.close-mark.n44-assemble.n44-armed .n44-assemble-half.l{transform:translate(-30px,-160px);}
.close-mark.n44-assemble.n44-armed .n44-assemble-half.r{transform:translate(30px,-160px);}
.close-mark.n44-assemble.n44-armed.is-visible .n44-assemble-half{transform:translate(0,0);opacity:1;}
.close-mark.n44-assemble.on-dark{filter:none;}
.close-mark.n44-assemble.on-dark .n44-assemble-half{background-image:url("../images/44-watermark-white.png");}

/* ---- Modal mark: same assemble motif, replayed each time the modal opens ---- */
.n44-modal-mark.n44-assemble{width:28px;height:33px;margin-bottom:14px;}
.n44-modal-mark.n44-assemble .n44-assemble-half{background-image:url("../images/44-mark-black.png");}

/* ---- Dark mode: the black "44" mark is illegible on a dark background.
   .hero-mark (page-hero on About/Contact), .close-mark (the closing section)
   and .n44-modal-mark (the identity modal panel) all sit directly on --paper,
   which inverts to near-black in dark mode, so swap each to the white PNG
   already used for .footer-mark/.quote-mark's permanently-dark contexts.
   .on-dark already covers this per-instance for close-mark; this just makes
   it automatic sitewide when the whole page is dark, and does the same for
   hero-mark/n44-modal-mark, which had no on-dark variant to begin with. ---- */
[data-theme="dark"] .hero-mark.n44-assemble .n44-assemble-half,
[data-theme="dark"] .close-mark.n44-assemble:not(.on-dark) .n44-assemble-half,
[data-theme="dark"] .n44-modal-mark.n44-assemble .n44-assemble-half{
  background-image:url("../images/44-watermark-white.png");
}
[data-theme="dark"] .close-mark.n44-assemble:not(.on-dark){filter:none;}

.imprint,.imprint-mobile,.footer-brand-trigger{cursor:pointer;}
.imprint:hover,.imprint-mobile:hover{color:var(--marker) !important;}
.footer-brand-trigger{text-decoration:underline;text-decoration-color:rgba(246,245,241,0.3);text-underline-offset:3px;}
.footer-brand-trigger:hover{color:#fff;text-decoration-color:#fff;}

/* ---- Number 44 identity modal ---- */
.n44-modal{position:fixed;inset:0;z-index:300;background:rgba(20,23,31,0.78);display:flex;align-items:center;justify-content:center;padding:24px;}
.n44-modal[hidden]{display:none;}
.n44-modal-panel{background:var(--paper);color:var(--ink);max-width:700px;width:100%;max-height:92vh;overflow-y:auto;padding:36px 44px;position:relative;border-top:4px solid var(--marker);}
.n44-modal-close{position:absolute;top:20px;right:20px;width:40px;height:40px;border-radius:50%;border:none;background:rgba(var(--ink-rgb),0.06);color:var(--ink);font-size:20px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.n44-modal-close:hover{background:var(--marker);color:#fff;}
.n44-modal .eyebrow{font-family:'IBM Plex Mono';font-size:10.5px;color:var(--graphite);text-transform:uppercase;letter-spacing:.1em;display:block;margin-bottom:8px;}
.n44-modal h2{font-family:'Space Grotesk';font-weight:700;font-size:clamp(21px,2.6vw,27px);margin-bottom:14px;max-width:22ch;line-height:1.1;}
.n44-modal p{color:var(--graphite);font-size:14px;line-height:1.5;margin-bottom:10px;}
.n44-modal p.emphasis{color:var(--ink);font-weight:600;}
.n44-modal p.contact-line{font-size:13.5px;margin-top:14px;margin-bottom:0;color:var(--graphite);}
.n44-modal p.contact-line a{color:var(--marker);text-decoration:none;font-weight:600;}
.n44-modal p.contact-line a:hover{text-decoration:underline;}
@media (max-width:600px){ .n44-modal-panel{padding:44px 26px;} }

/* ---- 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;}
.back-to-top.near-footer{opacity:0;visibility:hidden;transform:translateY(8px);}
@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);
}
/* Fixed literal colours, not tokens: this sits on the always-dark lightbox
   backdrop above, which doesn't change with site theme. */
.lightbox-close{
  position:absolute;top:20px;right:20px;
  width:44px;height:44px;border-radius:50%;
  background:#14171F;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;}
.back-link{display:inline-block;font-family:'IBM Plex Mono';font-size:12px;color:var(--graphite);text-decoration:none;margin-bottom:20px;}
.back-link:hover{color:var(--marker);}
.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(var(--ink-rgb),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;}
}
