/* Project X Studio · client deck · source: Figma "Project X - Deck v7" (r7nugqs9q5hXmCwHrww0W7), page Slides.
   One 1920x1080 stage, scaled to fit the screen. Every coordinate below is a Figma pixel. */

:root {
  --ink: #0A0A0A; --red: #FF1A1A; --line: rgba(255,255,255,.28);
  --out: cubic-bezier(.16,1,.3,1);      /* px.out */
  --cut: cubic-bezier(.7,0,.2,1);       /* px.cut */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pop: "Poppins", var(--sans);
  --serif: "Playfair Display", Georgia, serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; background: #000; overflow: hidden; overscroll-behavior: none; }
body { color: #fff; font-family: var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: none; }
@media (max-width: 600px) { .pbar { height: 52px; } .pb-icon span { display: none; } .pb-icon { padding: 0 10px; } .pf-row, .pfoot { height: 76px; } }
img, video { display: block; max-width: none; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
sup { vertical-align: baseline; }
.r { color: var(--red); }

/* ---------- stage ---------- */
.deck { position: fixed; inset: 0; background: #000; cursor: default; }
.stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; overflow: hidden; background: var(--ink); will-change: transform;
  transform: translate(-50%,-50%) scale(var(--s, .5)); transform-origin: 50% 50%; }

.slide { position: absolute; inset: 0; overflow: hidden; background: var(--ink); opacity: 0; visibility: hidden; z-index: 0;
  transition: opacity .8s var(--cut), visibility 0s linear .8s; }
.slide.on { opacity: 1; visibility: visible; z-index: 2; transition: opacity .95s var(--cut) .1s, visibility 0s; }
.slide.was { opacity: 1; visibility: visible; z-index: 1; transition: none; }
.slide > * { position: absolute; }

/* backgrounds: settle on arrival, then breathe very slowly */
.bg { inset: 0; overflow: hidden; transform: scale(1.06); transition: transform 2.8s var(--out); }
.slide.on .bg, .slide.was .bg { transform: scale(1); }
.slide.idle .bg { transition: none; }
.bg img, .bg video { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; object-fit: cover; }
.bg-over img { left: -288px; top: -162px; width: 2496px; height: 1404px; }
.slide.on .bg > img, .slide.on .bg > video { animation: breathe 18s ease-in-out 2.8s infinite alternate; }
@keyframes breathe { from { scale: 1; } to { scale: 1.035; } }
.bg-over img { animation-name: drift !important; animation-duration: 22s !important; }
@keyframes drift { from { translate: 0 0; } to { translate: -60px 40px; } }

.shade { left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; }
.grain { inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay; z-index: 5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
.grain.g25 { opacity: .25; } .grain.g45 { opacity: .45; }

/* hairlines */
.rl { display: block; background: var(--line); z-index: 3; }
/* hairlines never thinner than one screen pixel, however small the slide is drawn */
.rl.v { width: max(1px, calc(1px / var(--s, 1))); top: 0; height: 1080px; }
.rl.h { height: max(1px, calc(1px / var(--s, 1))); }
.rl.full { left: 0; width: 1920px; }
.rl.diag { left: -12px; top: 1080px; width: 2400px; height: max(1px, calc(1px / var(--s, 1))); background: rgba(255,255,255,.45); transform-origin: 0 50%; transform: rotate(-34deg); }

/* ---------- motion system ----------
   .idle  = slide not on screen: every .m sits at its start state, no transitions
   .on    = arriving: .m plays to rest, delayed by --d (seconds)
   .was   = leaving: holds the rest state while it fades out                       */
.m { transition: transform 1.15s var(--out), opacity 1s var(--out), filter 1.1s var(--out), translate 1.15s var(--out);
  transition-delay: calc(var(--d, 0) * 1s); }
.slide.idle .m { transition: none !important; }

.mk { display: block; overflow: hidden; padding: .14em 0; margin: -.14em 0; }
/* stacks of masked lines: flex so the masks' negative margins never collapse */
.cv-h:not(.cv-g1):not(.cv-g2), .idea-h, .pname, .svc-list, .off-h { display: flex; flex-direction: column; align-items: flex-start; }
.cv-hr:not(.cv-g1):not(.cv-g2) { align-items: flex-end; }
.tt .mk { display: inline-block; }
.m-up { display: block; }
.idle .m-up { transform: translateY(112%); }
.m-up { transition-duration: 1.25s, 1s; }

.idle .m-fade { opacity: 0; transform: translateY(14px); }
.idle .m-soft { opacity: 0; }
.idle .m-read { opacity: 0; transform: translateY(10px); filter: blur(6px); }
.m-read { transition-duration: 1.4s, 1.3s, 1.4s; }

.m-lx { transform-origin: 0 50%; transition: transform 1.5s var(--cut); transition-delay: calc(var(--d,0) * 1s); }
.m-lx.rx { transform-origin: 100% 50%; }
.idle .m-lx { transform: scaleX(0); }
.idle .rl.diag.m-lx { transform: rotate(-34deg) scaleX(0); }
.m-ly { transform-origin: 50% 0; transition: transform 1.5s var(--cut); transition-delay: calc(var(--d,0) * 1s); }
.idle .m-ly { transform: scaleY(0); }

.idle .m-focus { opacity: 0; filter: blur(12px); }
.m-focus { transition-duration: 1.2s, 1.2s, 1.4s; }

.idle .m-slide { opacity: 0; transform: translateX(var(--px, 40px)); }
.m-slide { transition-duration: 2s, 1.6s; }

.idle .m-globe { opacity: 0; transform: scale(1.05); }
.m-globe { transition-duration: 2.6s, 2s; }

/* ---------- title dividers (02b, 04b, 06b, 10b, 16) and section titles ---------- */
.tt { left: 50%; transform: translateX(-50%); width: max-content; font-size: var(--fs); z-index: 4; white-space: nowrap; }
.tt-t { font: 600 1em/1 var(--sans); letter-spacing: -.04em; color: var(--red); }
.tt-i { position: absolute; left: calc(100% + 10px); top: var(--it, 18px); font: 500 var(--is, 34px)/normal var(--sans); color: var(--red); }

/* ---------- 01 reel ---------- */
.reel { position: absolute; inset: 0; width: 1920px; height: 1080px; object-fit: cover; background: #000; }

/* ---------- 02 cover ---------- */
.s-cover .bg img.cv-img { width: 2547.6px; height: 1433.3px; transform-origin: 0 0; transition: transform 3.6s cubic-bezier(.45,0,.15,1) .9s; }
/* the cover starts exactly on the reel's last frame (same image at 90.92%, measured), then pushes in to the Figma framing.
   No settle on the wrapper and no breathing, so the sun never drifts behind the logo. */
.s-cover .bg { transform: none !important; transition: none; }
.s-cover.idle .bg img.cv-img { transform: translate(114.82px, 125.05px) scale(.909193); transition: none; }
.slide.on .s-cover .bg > img, .s-cover .bg > img { animation: none !important; }
.cv-logo { left: 646px; top: 463px; width: 627.2px; height: 94.2146px; z-index: 4; }
.cv-cities { left: 0; top: 579.21px; width: 1920px; text-align: center; font: 700 20px/normal var(--sans); letter-spacing: 3.6px; z-index: 4; }
.cv-bar { background: #fff; color: var(--ink); padding: 5px 10px; font: 500 15px/normal var(--sans); letter-spacing: .3px; white-space: pre; z-index: 4; }
.cv-meta { font: 500 15px/normal var(--sans); letter-spacing: .6px; color: rgba(255,255,255,.85); white-space: pre; z-index: 4; }
.cv-hw { z-index: 4; }
.cv-h { font: 500 83px/.88 var(--sans); letter-spacing: -3.32px; white-space: nowrap; position: relative; }
.cv-h em { font: italic 400 1em/.88 var(--serif); letter-spacing: -1.66px; }
.cv-hr { font-size: 65px; letter-spacing: -2.6px; text-align: right; }
.cv-hr em { letter-spacing: -1.3px; }
.cv-g1, .cv-g2 { position: absolute; left: 0; top: 0; }
.cv-r .cv-g1, .cv-r .cv-g2 { left: auto; right: 0; }
.cv-g1 { filter: blur(3px); } .cv-g2 { filter: blur(4.5px); }
.m-ghost { transform: translateX(var(--gx)); transition-duration: 2s, 1.6s; }
.cv-g1.m-ghost { opacity: .22; } .cv-g2.m-ghost { opacity: .12; }
.idle .m-ghost { opacity: 0 !important; transform: translateX(0); }

/* ---------- 03 / 05b letters ---------- */
.lbl { font: 500 16px/normal var(--sans); letter-spacing: .64px; color: var(--red); white-space: nowrap; z-index: 4; }
.txt46 { width: 1792px; font: 500 46px/1.04 var(--sans); letter-spacing: -.69px; z-index: 4; }
.txt46.up { text-transform: uppercase; }
.txt46.ind { text-indent: 400px; }
.logo-s { left: 1667.84px; top: 1003.74px; width: 188.16px; height: 28.2644px; z-index: 4; }

/* ---------- 07 idea / 20b close ---------- */
.if-lbl { top: 128px; font: 400 22px/1.18 var(--pop); white-space: nowrap; z-index: 4; }
.idea-h { font: 300 128px/1.04 var(--pop); letter-spacing: -2.56px; white-space: nowrap; text-shadow: 0 0 28px rgba(255,255,255,.55); z-index: 4; }
.idea-h em { font: italic 700 1em/1.04 var(--serif); letter-spacing: -2.56px; }
.idea-p { width: 640px; text-align: right; font: 400 30px/1.18 var(--pop); z-index: 4; }

/* ---------- 09 how we work ---------- */
.how-s { left: 64px; top: 320px; width: 1792px; text-align: center; text-transform: uppercase; font: 500 48px/1.04 var(--sans); letter-spacing: -.72px; z-index: 4; }
.how-c { top: 484px; width: 406px; font: 500 28px/1.28 var(--sans); letter-spacing: -.28px; z-index: 4; }
.hc-h { font-weight: 700; color: var(--red); margin-bottom: 10px; }

/* ---------- 09.1 one roof ---------- */
.s-roof .bg img { left: 27px; top: 75px; }
.roof-sub { left: 0; top: 383px; width: 1920px; text-align: center; font: 400 34px/normal var(--sans); letter-spacing: -.34px; color: rgba(255,255,255,.9); z-index: 4; }
.roof-rule { left: 64px; top: 799px; width: 1792px; height: 2px; background: var(--red); z-index: 5; display: block; }
.steps { left: 64px; top: 800px; display: flex; z-index: 4; }
.step { position: relative; width: 358.4px; height: 236px; display: flex; flex-direction: column; gap: 18px; padding: 30px 32px 32px;
  background: rgba(0,0,0,.62); border: max(1px, calc(1px / var(--s, 1))) solid rgba(255,255,255,.18); line-height: normal; }
.st-l { height: 36px; font: 400 14px/normal "JetBrains Mono", ui-monospace, monospace; letter-spacing: 1.68px; color: rgba(255,255,255,.6); }
.st-h { font: 400 38px/normal "Archivo Black", var(--sans); letter-spacing: -.38px; }
.st-b { font: 400 22px/normal var(--sans); color: rgba(255,255,255,.8); }
.step-red { background: var(--red); border-color: var(--red); }
.step-red .st-l { color: rgba(255,255,255,.85); } .step-red .st-b { color: #fff; }

/* ---------- 11-13 services ---------- */
.shade-svc { background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.85) 100%); }
.svc-list { left: 64px; top: 640px; z-index: 4; }
.svc-lbl { font: 700 20px/24px var(--sans); letter-spacing: .8px; margin-bottom: 28px; }
.svc-list .mk + .mk { margin-top: calc(4px - .14em); }
.svc-ln { font: 900 66px/62px "Big Shoulders Display", var(--sans); letter-spacing: -.66px; white-space: nowrap; }

/* ---------- 14 we are new ---------- */
.new-h, .new-s { left: 0; width: 1920px; text-align: center; font-family: "Space Mono", ui-monospace, monospace; font-weight: 700;
  color: var(--red); text-shadow: 0 0 22px rgba(255,31,15,.7); letter-spacing: -.02em; z-index: 4; }
.new-h { top: 208px; font-size: 128px; line-height: 1; }
.new-h span { display: block; }
.new-s { top: 560px; font-size: 52px; line-height: 1.5; }

/* ---------- 15 brands ---------- */
.logos { left: 160px; top: 320px; width: 1600px; height: 640px; z-index: 4; }
.logos img { position: absolute; object-fit: contain; }

/* ---------- 17b / 18b founders ---------- */
.portrait { overflow: hidden; z-index: 1; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.pz img { width: 1440px; height: 1080px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.3) 15%, #000 33%); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.3) 15%, #000 33%); }
.s-person { background: radial-gradient(960px 540px at 960px 540px, #ADABA6 0%, #8C8A86 50%, #6B6966 100%); }
.shade-person { z-index: 2; background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,.72) 100%); }
.s-person .grain { z-index: 3; }
.pname { font: 600 200px/.92 var(--sans); letter-spacing: -8px; color: var(--red); white-space: nowrap; z-index: 4; }
.reg { font-weight: 400; }
.pbio { top: 862px; font: 400 22px/1.45 var(--sans); z-index: 4; }
.prole { right: 64px; top: 868px; font: 600 18px/normal var(--sans); letter-spacing: 2.16px; z-index: 4; }

/* ---------- 19b offices ---------- */
.globe { left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.15) 24%, #000 24%, #000 59.26%, rgba(0,0,0,.15) 59.26%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.15) 24%, #000 24%, #000 59.26%, rgba(0,0,0,.15) 59.26%, transparent 100%); }
.globe img { width: 1920px; height: 1080px; }
.city-dot { position: absolute; width: 13.8px; height: 13.8px; transform: translate(-50%,-50%); border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px 3px rgba(255,26,26,.95), 0 0 28px 8px rgba(255,26,26,.55); }
.city-dot::after { content: ""; position: absolute; inset: -60%; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); opacity: 0; }
.slide.on .city-dot::after { animation: pulse 2.8s var(--out) calc(2s + var(--pd, 0s)) infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.off-h { left: 56px; font: 600 230px/1 var(--sans); letter-spacing: -.06em; white-space: nowrap; z-index: 4; }
.off-h.red { color: var(--red); }
.off-co { left: 1560px; top: 150px; font: 700 15px/1.15 var(--sans); z-index: 4; }
.off-co div + div { margin-top: 1.15em; }
.off-co dd { margin: 0; }
.off-net { left: 1560px; top: 711px; font: 700 36px/1.15 var(--sans); color: var(--red); z-index: 4; }

/* ---------- 20b close ---------- */
.ct-h { font-size: 150px; }
.ct-h em, .ct-h { letter-spacing: -3px; }
.ct-q { left: 64px; top: 808px; width: 760px; font: 400 32px/1.5 var(--pop); z-index: 4; }
.ct-info { right: 64px; top: 588px; display: flex; flex-direction: column; align-items: flex-end; text-align: right; z-index: 4; }
.ct-logo { width: 420px; height: 63.09px; margin-bottom: 28px; }
.ct-1 { font: 400 26px/normal var(--pop); letter-spacing: 2.6px; }
.ct-2 { font: 400 22px/normal var(--pop); letter-spacing: 2.2px; color: rgba(255,255,255,.7); margin-top: 12px; white-space: pre; }
.ct-3 { font: 400 40px/1.5 var(--pop); }
.ct-3 a { background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat; transition: background-size .6s var(--out); padding-bottom: 2px; }
.ct-3 a:hover, .ct-3 a:focus-visible { background-size: 100% 1px; background-position: 0 100%; outline: none; }

/* ---------- player (link view): header · slide · footer, like a Pitch share link ---------- */
.deck { display: flex; flex-direction: column; background: #050505; }
.pbar { flex: none; height: 56px; padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  padding-top: env(safe-area-inset-top); box-sizing: content-box;
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.07); }
.pb-logo { height: 17px; width: auto; }
.pb-icon { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; border: 1px solid rgba(255,255,255,.16);
  font: 500 11px/1 var(--sans); letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,.8); transition: border-color .3s, color .3s; }
.pb-icon:hover, .pb-icon:focus-visible { border-color: rgba(255,255,255,.5); color: #fff; outline: none; }
.pb-icon svg { width: 13px; height: 13px; }
.view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.stage { box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }

.pfoot { flex: none; position: relative; height: 72px; padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; border-top: 1px solid rgba(255,255,255,.07); }
.prog { position: absolute; left: 0; right: 0; top: -1px; height: 1px; }
.prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: rgba(255,255,255,.6); transform-origin: 0 50%;
  transform: scaleX(var(--p, 0)); transition: transform .9s var(--out); }
.pf-row { height: 72px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.pf-btn { height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 14px;
  border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85); font: 500 12px/1 var(--sans); letter-spacing: 1.4px; text-transform: uppercase;
  transition: border-color .3s, color .3s, background-color .3s, opacity .3s; }
.pf-next { padding: 0 18px 0 20px; }
.pf-btn:hover, .pf-btn:focus-visible { border-color: rgba(255,255,255,.55); color: #fff; outline: none; }
.pf-btn:active { background: rgba(255,255,255,.08); }
.pf-btn:disabled { opacity: .3; cursor: default; border-color: rgba(255,255,255,.18); }
.pf-btn svg { width: 14px; height: 14px; }
.cnt { font: 500 12px/1 var(--sans); letter-spacing: 1.6px; color: rgba(255,255,255,.75); min-width: 76px; text-align: center; font-variant-numeric: tabular-nums; }

/* presenting full screen: the chrome steps away, the slide fills the screen */
.deck.fs { background: #000; }
.deck.fs .pbar, .deck.fs .pfoot { display: none; }
.deck.fs .stage { box-shadow: none; }
.deck.fs.idle-cursor { cursor: none; }

.curtain { position: fixed; inset: 0; background: #000; z-index: 30; pointer-events: none; transition: opacity 1.4s var(--cut); }
.curtain.up { opacity: 0; }

.rotate { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 25;
  font: 500 11px/1 var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255,255,255,.7);
  padding: 10px 14px; border: 1px solid rgba(255,255,255,.22); white-space: nowrap; transition: opacity .8s var(--out); }
.rotate.gone { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .m, .bg, .slide { transition-duration: .01s !important; transition-delay: 0s !important; }
  .slide { transition: opacity .5s linear !important; }
  .idle .m { transform: none !important; filter: none !important; }
  .slide.on .bg > img, .slide.on .bg > video, .slide.on .city-dot::after { animation: none !important; }
}
@media print {
  html, body { overflow: visible; height: auto; background: #000; }
  .deck { position: static; display: block; } .pbar, .pfoot, .curtain, .rotate { display: none; } .view { overflow: visible; }
  .stage { position: relative; left: 0; top: 0; transform: none; overflow: visible; height: auto; background: none; }
  .slide { position: relative; opacity: 1 !important; visibility: visible !important; page-break-after: always; break-after: page; height: 1080px; }
  .idle .m { opacity: 1 !important; transform: none !important; filter: none !important; }
  .idle .m-ghost { opacity: .2 !important; } .idle .bg { transform: none; }
  @page { size: 1920px 1080px; margin: 0; }
}

/* phone turned on its side: like a video going full screen. The slide fills the screen edge to edge,
   the controls float over it and fade away; any touch brings them back. */
@media (max-height: 520px) and (orientation: landscape) {
  .deck { background: #000; }
  .pbar { display: none; }
  .stage { box-shadow: none; }
  .pfoot { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 20; border: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.55)); transition: opacity .6s var(--out); }
  .pf-row { height: 64px; }
  .pf-btn { height: 38px; min-width: 38px; background: rgba(10,10,10,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .prog { top: auto; bottom: 0; }
  .deck.idle-cursor .pfoot { opacity: 0; pointer-events: none; }
}
.rotate { border: 0; padding: 0; color: rgba(255,255,255,.5); letter-spacing: 1.4px; }
