/* Sabir Thapa, site styles. */

:root {
  --ink: #0E0F12;
  --light: #F3F3F1;
  --dark: #0B0C0E;
  --grey: #6F737A;
  --body: #474B52;
  --soft: #8B9098;
  --acc: #3D9BDE;
  --em: #10B981;
  --card: #14171C;
  --word: #EDEEF0;

  --ease: cubic-bezier(.23, 1, .32, 1);
  --fd: "Funnel Display", system-ui, sans-serif;
  --fs: "Funnel Sans", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --g: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--light); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font: 400 16px/1.5 var(--fs);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
b { font-weight: 500; }
::selection { background: var(--acc); color: #fff; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }

.wrap { padding-left: var(--g); padding-right: var(--g); }

/* ---------- type ---------- */
.d-hero, .d-word, .d-xl, .d-h2, .d-stack {
  font-family: var(--fd);
  font-weight: 500;
  letter-spacing: -0.054em;
}
.d-hero { font-size: clamp(64px, min(12.9vw, 20.6vh), 186px); line-height: .86; }
.d-hero .ln { display: block; }
.d-word { font-size: clamp(96px, 23vw, 400px); line-height: .8; color: var(--word); white-space: nowrap; }
.d-xl { font-size: clamp(52px, 8.6vw, 132px); line-height: .9; letter-spacing: -0.05em; }
.d-h2 { font-size: clamp(42px, 5vw, 72px); line-height: .95; letter-spacing: -0.045em; }
.d-stack { font-size: clamp(72px, 10.4vw, 150px); line-height: .9; letter-spacing: -0.05em; }
.d-lead { font: 400 clamp(28px, 3.05vw, 44px)/1.1 var(--fd); letter-spacing: -0.02em; }
.d-state { font: 400 clamp(26px, 2.8vw, 40px)/1.08 var(--fd); letter-spacing: -0.02em; }
.d-sub { font: 400 clamp(22px, 2.1vw, 30px)/1.2 var(--fd); letter-spacing: -0.015em; color: var(--body); }
.d-title { font: 400 clamp(22px, 2.15vw, 31px)/1.15 var(--fd); letter-spacing: -0.015em; }
.mono { font: 400 13px/1.4 var(--mono); color: var(--acc); letter-spacing: 0; }
.soft { color: var(--soft); }
.ink { color: var(--ink); }
.on-dark { color: var(--word); }
.d-sub.on-dark { color: var(--soft); }
.dot { color: inherit; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font: 500 15px/1 var(--fs); white-space: nowrap;
  transition: background .32s var(--ease), color .32s var(--ease), transform .1s;
}
.pill:active { transform: scale(.98); }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:has(.well) { padding-right: 6px; }
.well { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; transition: transform .32s var(--ease); }
.well svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pill-dark:hover .well { transform: translateX(3px); }
.pill-line { border: 1.5px solid var(--ink); color: var(--ink); }
.pill-line:hover { background: var(--ink); color: #fff; }

/* ---------- fixed chrome ---------- */
.top-cta {
  position: fixed; top: 28px; right: var(--g); z-index: 40;
  height: 40px; padding: 0 20px; border-radius: 999px;
  display: inline-flex; align-items: center;
  font: 500 14px/1 var(--fs);
  background: var(--ink); color: #fff;
  transition: background .32s var(--ease), color .32s var(--ease);
}
html[data-top="dark"] .top-cta { background: var(--light); color: var(--ink); }

.bar { position: fixed; left: var(--g); right: var(--g); bottom: 0; z-index: 40; height: 48px; color: var(--soft); }
.bar-track { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(14,15,18,.12); }
.bar-fill { position: absolute; left: 0; top: -.5px; height: 1.5px; width: 0; background: var(--ink); }
.bar-links { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.bar-links div { display: flex; gap: 26px; }
.bar a { font: 400 14px/1 var(--fs); color: var(--soft); transition: color .18s; }
.bar a:hover, .bar a.on { color: var(--ink); }
.bar a.on { font-weight: 500; }
html[data-bar="dark"] .bar-track { background: rgba(255,255,255,.14); }
html[data-bar="dark"] .bar-fill { background: #fff; }
html[data-bar="dark"] .bar a:hover, html[data-bar="dark"] .bar a.on { color: #fff; }

.m-top, .m-cta { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 700px; overflow: hidden; }
.logo { position: absolute; z-index: 3; top: 26px; left: var(--g); font: 500 28px/1 var(--fd); letter-spacing: -0.04em; }
.hero-photo { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 50%; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 58% 28%;
  filter: grayscale(1);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 14%, #000 32%), linear-gradient(180deg, #000 56%, transparent 94%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 14%, #000 32%), linear-gradient(180deg, #000 56%, transparent 94%);
  mask-composite: intersect;
}
.hero-copy { position: relative; z-index: 2; padding: clamp(110px, 17.5vh, 168px) var(--g) 0; max-width: 1000px; }
.hero-p { margin-top: clamp(28px, 5.4vh, 50px); max-width: 450px; font-size: 19px; line-height: 1.53; color: var(--body); }
.hero-s { margin-top: 20px; max-width: 470px; font-size: 16px; line-height: 1.5; color: var(--body); }
.hero-s b { color: var(--ink); }
.hero .btns { margin-top: 34px; }

/* hero entrance */
.d-hero .ln { opacity: 0; transform: translateY(.18em); animation: rise 1.2s var(--ease) forwards; }
.d-hero .ln + .ln { animation-delay: .08s; }
.hero-p, .hero-s, .hero .btns { opacity: 0; animation: fade 1s var(--ease) .35s forwards; }
.hero-photo { opacity: 0; animation: fade 1.6s var(--ease) .1s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- projects overview ---------- */
.projects { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 170px; background: var(--light); }
.projects .d-h2 { margin-top: 16px; }
.projects .d-sub { margin-top: 40px; max-width: 660px; }
.pcards { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.pcard { display: block; }
.pc-media { position: relative; aspect-ratio: 1 / .9; border-radius: 22px; overflow: hidden; background: #E7E7E3; }
.pc-light .tag { background: rgba(14,15,18,.06); color: var(--grey); z-index: 2; }
.pc-dark .tag { z-index: 2; }
.pc-dark { background: var(--dark); background-image: radial-gradient(55% 45% at 34% 62%, rgba(76,194,255,.17), transparent 70%); }
.pc-shoe { position: absolute; left: 50%; top: 54%; width: 94%; max-width: none; transform: translate(-50%, -50%) rotate(-4deg); filter: drop-shadow(0 30px 30px rgba(0,0,0,.55)); transition: transform .9s var(--ease); }
.pc-dark-s2q { background-image: radial-gradient(60% 50% at 62% 62%, rgba(127,211,255,.10), transparent 70%); }
.pc-duo { position: absolute; left: 50%; top: 54%; width: 74%; transform: translate(-50%, -50%); filter: drop-shadow(0 30px 34px rgba(0,0,0,.55)); transition: transform .9s var(--ease); }
.pcard:hover .pc-duo { transform: translate(-50%, -53%) scale(1.02); }
.pc-sync .beat { left: 36%; top: 56%; width: 96%; }
.pc-board { position: absolute; z-index: 1; left: 51%; top: 55%; width: 88%; transform: translate(-50%, -50%); filter: drop-shadow(0 24px 30px rgba(14,15,18,.28)); transition: transform .9s var(--ease); }
.pcard:hover .pc-board { transform: translate(-50%, -53%) scale(1.02); }
.pcard:hover .pc-shoe { transform: translate(-50%, -53%) rotate(-6deg) scale(1.03); }
.pcard > .mono { margin-top: 26px; }
.pcard .d-title { margin-top: 10px; }
.pc-p { margin-top: 12px; max-width: 380px; font-size: 15px; line-height: 1.55; color: var(--grey); }
.pc-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding-bottom: 3px; border-bottom: 1px solid rgba(14,15,18,.2); font: 500 14px/1 var(--fs); transition: border-color .3s var(--ease); }
.pc-go svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .32s var(--ease); }
.pcard:hover .pc-go { border-color: var(--ink); }
.pcard:hover .pc-go svg { transform: translateY(2px); }

/* ---------- dark panel ---------- */
.panel {
  position: relative; z-index: 3;
  background: var(--dark); color: var(--word);
  clip-path: inset(0 var(--inset, 12px) 0 var(--inset, 12px) round var(--rad, 28px));
  margin-top: -2px;
}

/* stage */
.stage { position: relative; height: 265vh; }
.stage-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.stage-word { position: absolute; left: 50%; top: 43%; transform: translate(-50%, -50%); transition: color .6s var(--ease); }
.stage.dim .stage-word { color: #3A3D44; }
.shoe { position: absolute; z-index: 2; left: 55%; top: 50%; width: min(42vw, 680px); will-change: transform; transform: translate(-50%, 30vh); }
.shoe img { width: 100%; filter: drop-shadow(0 0 26px rgba(11,12,14,.9)) drop-shadow(0 46px 50px rgba(0,0,0,.6)); }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.leaders polyline { fill: none; stroke: rgba(255,255,255,.42); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .7s var(--ease); }
.tip { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.12); opacity: 0; transition: opacity .4s var(--ease); }
.ann { position: absolute; width: min(270px, 22vw); opacity: 0; transform: translateY(8px); transition: opacity .56s var(--ease) .15s, transform .56s var(--ease) .15s; }
.ann b { display: block; font: 500 17px/1.3 var(--fs); color: #fff; }
.ann span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--soft); }
.ann-a { right: 110%; top: 33%; text-align: right; }
.ann-b { left: 95%; top: -50%; }
.shoe.on .leaders polyline { opacity: 1; }
.shoe.on .tip, .shoe.on .ann { opacity: 1; transform: none; }
.stage-say { position: absolute; z-index: 3; left: var(--g); bottom: 96px; max-width: 560px; opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.stage-say .d-state { margin-top: 12px; color: #fff; }
.stage.say .stage-say { opacity: 1; transform: none; }

/* close-up */
.zoom { position: relative; height: 185vh; }
.zoom-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.zoom-img { position: absolute; left: 58%; top: 42%; width: min(66vw, 1000px); max-width: none; transform: translate(-50%, -50%) scale(var(--zs, 1.8)); transform-origin: 15.7% 58.5%; will-change: transform; filter: drop-shadow(0 40px 60px rgba(0,0,0,.55)); }
.zoom-pin::before { content: ""; position: absolute; left: 30%; top: 30%; width: 50vw; height: 40vh; background: radial-gradient(closest-side, rgba(76,194,255,.10), transparent); pointer-events: none; }
.zoom-pin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--dark) 0%, rgba(11,12,14,.86) 24%, rgba(11,12,14,0) 50%); pointer-events: none; }
.zoom-say { position: absolute; z-index: 2; left: var(--g); bottom: 96px; max-width: 640px; }
.zoom-say .d-state { color: #fff; }
.zoom-say .d-state + .d-state { margin-top: 4px; }
.zoom-sub { margin-top: 22px; max-width: 420px; font-size: 16px; line-height: 1.5; color: var(--soft); }
.zl { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.zl.on { opacity: 1; transform: none; }

/* three screens */
.screens { padding-top: 150px; padding-bottom: 120px; }
.screens .d-sub { margin-top: 40px; max-width: 660px; }
.cards { margin-top: 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.card-media { position: relative; aspect-ratio: 1 / 1.01; border-radius: 22px; background: var(--card); overflow: hidden; display: grid; place-items: center; padding: 28px; }
.card-media img { border-radius: 10px; box-shadow: 0 24px 50px -10px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
.media-tall { padding: 28px 0 0; place-items: end center; }
.media-tall img { width: 66%; border-radius: 16px 16px 0 0; }
.tag { position: absolute; top: 14px; right: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--soft); font: 400 12px/1 var(--fs); }
.card .mono { margin-top: 26px; }
.card .d-title { margin-top: 10px; color: #fff; }
.card-p { margin-top: 12px; max-width: 380px; font-size: 15px; line-height: 1.55; color: var(--soft); }

/* accuracy */
.measure { padding-top: 120px; padding-bottom: 140px; }
.measure-grid { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr 1.9fr; gap: 40px; align-items: start; }
.num-n { display: block; font: 400 clamp(64px, 8.4vw, 124px)/.9 var(--fd); letter-spacing: -0.05em; color: #fff; }
.num-n small { font-size: .42em; letter-spacing: -0.02em; margin-left: .06em; }
.num-l { display: block; margin-top: 16px; font-size: 18px; color: var(--soft); }
.measure-say .d-state { color: #fff; }
.measure-sub { margin-top: 22px; font-size: 16px; color: var(--soft); }

/* sense2quit */
.quit { padding-top: 40px; padding-bottom: 150px; }
.quit-stage { position: relative; min-height: min(118vh, 1060px); }
.quit-word { position: relative; z-index: 1; margin-left: -.05em; padding-top: 4vh; }
.duo { position: absolute; z-index: 2; right: 1%; top: 6%; width: min(43vw, 690px); will-change: transform; }
.duo img { width: 100%; filter: drop-shadow(0 50px 60px rgba(0,0,0,.55)); }
.duo.on .leaders polyline { opacity: 1; }
.duo.on .tip, .duo.on .ann { opacity: 1; transform: none; }
.ann-p { right: 107%; top: 43%; text-align: right; }
.ann-w { right: 107%; top: 80%; text-align: right; }
.quit-copy { position: absolute; z-index: 3; left: 0; bottom: 0; max-width: 470px; }
.quit-p { margin-top: 14px; font-size: 18px; line-height: 1.53; color: var(--soft); }

/* ---------- light flow ---------- */
.flow { position: relative; background: var(--light); z-index: 2; }
.flow-line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.flow-line path { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linecap: round; }
.flow > section, .flow > footer { position: relative; z-index: 1; }
.fa { position: absolute; width: 0; height: 0; pointer-events: none; }
.flow > .fa { position: absolute; }

/* reveal */
[data-r] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
[data-r].in { opacity: 1; transform: none; }

/* what I built */
.built { padding-top: 140px; padding-bottom: 60px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: 86vh; }
.item-l .item-vis { order: -1; }
.item-copy .d-lead + .d-xl { margin-top: 10px; }
.item-copy .mono { margin-top: 18px; }
.item-p { margin-top: 10px; max-width: 450px; font-size: 18px; line-height: 1.53; color: var(--body); }
.item-vis { position: relative; display: grid; place-items: center; min-height: 560px; }
.item-vis > .fa { left: 50%; top: 50%; }
.halo { position: relative; width: min(540px, 37vw); aspect-ratio: 1; display: grid; place-items: center; }
.halo-dots { position: absolute; inset: 0; border-radius: 50%;
  background-image:
    radial-gradient(circle, var(--acc) 1.7px, transparent 2.3px),
    radial-gradient(circle, var(--em) 1.7px, transparent 2.3px),
    radial-gradient(circle, #F2A93B 1.6px, transparent 2.2px),
    radial-gradient(circle, #9180F4 1.6px, transparent 2.2px),
    radial-gradient(circle, #C4C7CC 1.25px, transparent 1.85px);
  background-size: 53px 47px, 61px 59px, 71px 67px, 83px 79px, 10px 10px;
  background-position: 7px 11px, 23px 31px, 41px 5px, 13px 47px, 0 0;
  -webkit-mask-image: radial-gradient(circle, #000 52%, rgba(0,0,0,.5) 62%, transparent 71%);
  mask-image: radial-gradient(circle, #000 52%, rgba(0,0,0,.5) 62%, transparent 71%);
}
.halo-img { position: relative; z-index: 1; }
.round { width: 64%; border-radius: 50%; box-shadow: 0 30px 60px -18px rgba(14,15,18,.45), 0 0 0 6px var(--light); }
.phone { position: absolute; z-index: 1; width: 34%; border-radius: 22px; box-shadow: 0 34px 60px -22px rgba(14,15,18,.42), 0 0 0 1px rgba(14,15,18,.06); }
.ph-a { left: 15%; top: 9%; transform: rotate(-6deg); }
.ph-b { left: 49%; top: 17%; transform: rotate(5deg); }
.ph-c { width: 37%; left: 31.5%; top: 9%; transform: rotate(-3deg); }
.closer { margin: 40px 0 0; max-width: 56%; font: 400 clamp(26px, 2.8vw, 40px)/1.15 var(--fd); letter-spacing: -0.02em; color: var(--soft); }
.closer b { font-weight: 400; color: var(--ink); }

/* in sync */
.sync { padding-top: 120px; padding-bottom: 110px; }
.sync-stage { position: relative; min-height: min(104vh, 940px); }
.sync-word { position: relative; z-index: 1; margin-left: -.05em; padding-top: 4vh; color: var(--ink); }
.board { position: absolute; z-index: 2; right: -1%; top: 7%; width: min(48vw, 760px); }
.board img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 0 12px rgba(243,243,241,.85)) drop-shadow(0 44px 50px rgba(14,15,18,.26)); }
.beat { position: absolute; z-index: 0; left: 28%; top: 54%; width: 118%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(16,185,129,.42), rgba(16,185,129,.2) 42%, rgba(16,185,129,.06) 62%, transparent 76%); animation: heartbeat 1.5s ease-in-out infinite; pointer-events: none; }
@keyframes heartbeat {
  0% { transform: translate(-50%, -50%) scale(.9); opacity: .5; }
  12% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
  24% { transform: translate(-50%, -50%) scale(.95); opacity: .7; }
  36% { transform: translate(-50%, -50%) scale(1.02); opacity: .9; }
  62%, 100% { transform: translate(-50%, -50%) scale(.9); opacity: .5; }
}
.board .leaders polyline { stroke: rgba(14,15,18,.32); }
.board .tip { background: var(--ink); box-shadow: 0 0 0 5px rgba(14,15,18,.08); z-index: 2; }
.board .leaders { z-index: 2; }
.board .ann { z-index: 2; }
.board .ann b { color: var(--ink); }
.board .ann span { color: var(--grey); }
.board.on .leaders polyline { opacity: 1; }
.board.on .tip, .board.on .ann { opacity: 1; transform: none; }
.ann-c { left: 60%; top: -15%; }
.ann-r { left: 70%; top: 80%; width: min(210px, 16vw); }
.sync-say { position: absolute; z-index: 3; left: 0; bottom: 0; max-width: 560px; }
.sync-say .d-state { margin-top: 12px; }
.sync-grid { margin-top: 64px; }
.sync > .fa-top { left: calc(50% + 50px); top: 0; }
.classroom { position: relative; margin: 0; }
.classroom-img { aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: var(--dark); }
.classroom-img img { width: 100%; height: 100%; object-fit: cover; }
.classroom figcaption { margin-top: 12px; max-width: 52%; font-size: 14px; color: var(--soft); }
.session { position: absolute; right: 4%; bottom: -9%; width: 272px; padding: 16px 18px 12px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(14,15,18,.04), 0 26px 50px -20px rgba(14,15,18,.3); }
.session-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; }
.session-k { font: 400 12px/1 var(--fs); color: var(--soft); }
.session li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(14,15,18,.08); font: 500 15px/1.2 var(--fs); }
.session li i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(14,15,18,.06); font: 400 11px/1 var(--mono); font-style: normal; color: var(--grey); }
.session li span { margin-left: auto; font: 400 12px/1 var(--mono); color: var(--acc); }
.session-f { margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(14,15,18,.08); font: 400 12px/1 var(--mono); color: var(--soft); }
.sync-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.sync-left > .mono { margin-top: 56px; }
.checks { margin-top: 14px; max-width: 500px; }
.checks li { display: flex; gap: 22px; padding: 15px 0; border-top: 1px solid rgba(14,15,18,.1); font: 500 17px/1.45 var(--fs); }
.checks svg { flex: none; width: 16px; height: 16px; margin-top: 4px; fill: none; stroke: var(--acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps { padding-top: 170px; }
.steps li { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 46px; padding-bottom: 110px; }
.steps li:last-child { padding-bottom: 0; }
.steps .fa { left: 30px; top: 30px; }
.ico { position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.steps .d-title { padding-top: 6px; }
.steps p { margin-top: 12px; max-width: 490px; font-size: 17px; line-height: 1.53; color: var(--grey); }

/* publications */
.pubs { padding-top: 150px; padding-bottom: 120px; }
.pubs-in { position: relative; margin-left: 25.7%; padding-left: 50px; padding-top: 60px; }
.pubs-in > .fa:first-child { left: 0; top: 0; }
.pubs-in > .fa-end { left: 0; bottom: 0; }
.venues { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 24px; }
.venue { display: block; width: 228px; padding: 26px 22px 28px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(14,15,18,.04), 0 14px 32px -14px rgba(14,15,18,.16); transition: transform .32s var(--ease), box-shadow .32s var(--ease); }
.venue:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(14,15,18,.04), 0 22px 40px -16px rgba(14,15,18,.22); }
.venue-n { display: block; margin-top: 12px; font: 400 28px/1.1 var(--fd); letter-spacing: -0.015em; }
.pub-cite { margin-top: 24px; max-width: 720px; font-size: 17px; line-height: 1.55; color: var(--grey); }
.pub-cite b { color: var(--ink); }
.pub-cite em { font-style: normal; color: var(--ink); }
.pub-cite a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(14,15,18,.25); text-underline-offset: 3px; }
.pub-cite a:hover { text-decoration-color: var(--ink); }
.pubs-in .d-lead + .venues { margin-top: 26px; }
.pubs-in .pub-cite + .d-lead { margin-top: 90px; }
.partners { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px 56px; }
.partners li { font: 500 30px/1.15 var(--fd); letter-spacing: -0.025em; }
.progress { margin-top: 100px; }
.prog { position: relative; margin-top: 34px; max-width: 760px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prog-line { position: absolute; left: 0; right: 0; top: 46px; height: 1.5px; background: rgba(14,15,18,.14); }
.prog-line span { position: absolute; left: 0; top: 0; height: 100%; width: 50%; background: var(--ink); }
.prog-step b { display: block; height: 30px; font: 400 19px/1.2 var(--fd); letter-spacing: -0.01em; }
.prog-step i { display: block; width: 11px; height: 11px; margin: 10px 0 12px; border-radius: 50%; background: var(--ink); position: relative; }
.prog-step.now i { background: var(--acc); animation: pulse 1.8s ease-out infinite; }
.prog-step:not(.done):not(.now) b { color: var(--soft); }
.prog-step:not(.done):not(.now) i { background: var(--light); border: 1.5px solid var(--soft); }
.prog-step .mono { color: var(--soft); }
.prog-step.now .mono { color: var(--acc); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,155,222,.5); } 100% { box-shadow: 0 0 0 12px rgba(61,155,222,0); } }

/* experience */
.exp { position: relative; padding-top: 150px; padding-bottom: 130px; }
.exp > .fa-r { left: auto; right: 22px; }
.exp > .fa-r:first-child { top: 0; }
.exp > .fa-r:last-child { bottom: 0; }
.exp .d-h2 { margin-top: 16px; }
.roles { margin-top: 90px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.role .d-title { margin-top: 12px; }
.role p:last-child { margin-top: 12px; max-width: 390px; font-size: 15px; line-height: 1.55; color: var(--grey); }
.lists { margin-top: 100px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.rows { margin-top: 14px; }
.rows li { display: flex; justify-content: space-between; gap: 24px; padding: 15px 0; border-top: 1px solid rgba(14,15,18,.1); }
.rows b { flex: none; font-size: 17px; }
.rows span { font-size: 15px; line-height: 1.5; color: var(--grey); text-align: right; }

/* contact */
.end { position: relative; padding-top: 180px; padding-bottom: 110px; overflow-x: clip; }
.end > .fa-mid { left: 47%; top: 0; }
.end-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: calc(100vh - 380px); }
.end-me { position: relative; justify-self: end; width: min(500px, 36vw); margin: 0 3% 0 0; }
.halo-me { width: 100%; }
.round.me { position: relative; z-index: 1; width: 62%; }
.me-card { position: absolute; z-index: 2; left: -10%; bottom: 8%; display: grid; grid-template-columns: auto auto; gap: 8px 18px; align-items: baseline; padding: 16px 20px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(14,15,18,.04), 0 22px 44px -18px rgba(14,15,18,.25); }
.me-card p:not(.mono) { font: 500 15px/1.3 var(--fs); }
.d-stack { position: relative; z-index: 1; }
.d-stack > span { display: block; }
.bdot { position: relative; display: inline-block; width: .17em; height: .17em; margin-left: .05em; border-radius: 50%; background: var(--acc); }
.bdot .fa { left: 50%; top: 50%; }
.end-q { position: relative; z-index: 1; margin-top: 56px; }
.end-p { position: relative; z-index: 1; margin-top: 12px; font-size: 17px; color: var(--grey); }
.end .btns { position: relative; z-index: 1; margin-top: 34px; }
.foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 30px; padding-bottom: 80px; font-size: 14px; color: var(--soft); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .ann { width: 200px; }
  .ann span { font-size: 14px; }
  .measure-grid { grid-template-columns: 1fr 1fr; }
  .measure-say { grid-column: 1 / -1; }
  .pubs-in { margin-left: 12%; }
  .roles { gap: 28px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --g: 20px; }
  .top-cta, .bar { display: none; }

  .m-top { display: flex; position: fixed; z-index: 40; left: 0; right: 0; top: 0; height: 44px; padding: 0 var(--g); align-items: center; background: rgba(243,243,241,.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transform: translateY(-100%); transition: transform .45s var(--ease), background .3s; }
  .m-top .mono { color: var(--grey); }
  html[data-top="dark"] .m-top { background: rgba(11,12,14,.86); }
  html[data-top="dark"] .m-top .mono { color: var(--soft); }
  .m-cta { display: flex; gap: 10px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(243,243,241,.82); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); transform: translateY(110%); transition: transform .45s var(--ease), background .3s; }
  .m-cta .pill { flex: 1; height: 46px; }
  html[data-bar="dark"] .m-cta { background: rgba(11,12,14,.8); }
  html[data-bar="dark"] .m-cta .pill-dark { background: var(--light); color: var(--ink); }
  html[data-bar="dark"] .m-cta .pill-line { border-color: rgba(255,255,255,.5); color: #fff; }
  html.chrome .m-top { transform: none; }
  html.chrome .m-cta { transform: none; }

  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 36px; }
  .logo { top: 18px; font-size: 24px; }
  .hero-photo { width: 100%; height: min(64svh, 104vw); bottom: auto; }
  .hero-photo img { object-position: 52% 20%; -webkit-mask-image: linear-gradient(180deg, #000 36%, transparent 86%); mask-image: linear-gradient(180deg, #000 36%, transparent 86%); }
  .d-hero { font-size: min(21vw, 124px); }
  .hero-copy { padding-top: calc(min(64svh, 104vw) - min(21vw, 124px) * .9); }
  .hero-p { margin-top: 24px; font-size: 17px; }
  .hero-s { font-size: 15px; }
  .hero .btns { margin-top: 24px; }

  .stage { height: 220vh; }
  .d-word { font-size: 24vw; }
  .stage-word { top: 40%; }
  .shoe { width: 92vw; left: 50%; }
  .ann, .leaders, .tip { display: none; }
  .stage-say { bottom: 88px; right: var(--g); }
  .d-state { font-size: 26px; }

  .zoom { height: 165vh; }
  .zoom-img { width: 118vw; left: 56%; top: 34%; }
  .zoom-say { bottom: 92px; right: var(--g); }

  .screens { padding-top: 100px; padding-bottom: 80px; }
  .cards { grid-template-columns: 1fr; gap: 48px; margin-top: 48px; }
  .projects { padding-top: 80px; padding-bottom: 110px; }
  .pcards { grid-template-columns: 1fr; gap: 52px; margin-top: 44px; }

  .measure { padding-top: 60px; padding-bottom: 90px; }
  .measure-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .num-n { font-size: 15vw; }
  .num-l { font-size: 15px; }

  .quit { padding-bottom: 90px; }
  .quit-stage { min-height: 0; display: flex; flex-direction: column; }
  .duo { position: relative; right: auto; top: auto; width: 100%; margin: -6vw 0 24px; transform: none !important; }
  .ann, .duo .leaders, .duo .tip { display: none; }
  .quit-copy { position: static; }

  .built { padding-top: 90px; }
  .item { grid-template-columns: 1fr; min-height: 0; gap: 8px; padding-bottom: 80px; }
  .item-vis { order: -1; min-height: 0; padding: 10px 0 20px; }
  .halo { width: 86vw; }
  .closer { max-width: none; padding-left: 14px; }

  .sync { padding-top: 70px; }
  .sync-stage { min-height: 0; display: flex; flex-direction: column; }
  .board { position: relative; right: auto; top: auto; width: 104%; margin: -4vw 0 20px -2%; }
  .board .ann, .board .leaders, .board .tip { display: none; }
  .sync-say { position: static; }
  .sync-grid { margin-top: 64px; }
  .session { position: relative; right: auto; bottom: auto; width: auto; margin: -36px 14px 0; }
  .sync-grid { grid-template-columns: 1fr; }
  .steps { padding-top: 64px; padding-left: 14px; }
  .steps li { grid-template-columns: 48px 1fr; gap: 20px; padding-bottom: 56px; }
  .ico { width: 48px; height: 48px; }
  .steps .fa { left: 24px; top: 24px; }

  .pubs { padding-top: 90px; }
  .pubs-in { margin-left: 0; padding-left: 14px; padding-top: 0; }
  .venue { width: 100%; }
  .partners li { font-size: 24px; }
  .prog-step b { font-size: 15px; height: 40px; }
  .prog-line { top: 56px; }

  .exp { padding-top: 90px; padding-left: 34px; }
  .roles { grid-template-columns: 1fr; gap: 36px; margin-top: 56px; }
  .lists { grid-template-columns: 1fr; gap: 48px; margin-top: 64px; }
  .rows li { flex-direction: column; gap: 2px; }
  .rows span { text-align: left; }

  .end { padding-top: 110px; min-height: 0; padding-left: 34px; }
  .end-grid { grid-template-columns: 1fr; min-height: 0; }
  .end-me { order: -1; justify-self: center; width: 78vw; margin: 0 0 24px; }
  .me-card { left: -4%; bottom: 2%; }
  .d-stack { font-size: 21vw; }
  .end .btns .pill { flex: 1 1 auto; }
  .foot { flex-direction: column; gap: 4px; padding-bottom: 110px; padding-left: 34px; }
  .built, .sync, .pubs { padding-left: 34px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .beat { animation: none; opacity: .8; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .stage { height: auto; }
  .stage-pin { position: relative; height: 100vh; min-height: 640px; }
  .shoe { transform: translate(-50%, -42%) !important; }
  .zoom { height: auto; }
  .zoom-pin { position: relative; }
  .zoom-img { transform: translate(-50%, -50%) !important; }
}
