/* Mohammad S. K. — portfolio. Figma file 2VEi35TX4R0xj9zLTfFHxo
   Desktop: frame 1380:63568 (1356 x 3182). Mobile hero: 1354:56803 (289.39 wide).
   All values are Figma px; the canvas is zoomed to the viewport (--z, set in index.html). */

@font-face { font-family: "Kalice"; src: url("fonts/Kalice-Trial-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kalice"; src: url("fonts/Kalice-Trial-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("fonts/MonaSans-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("fonts/MonaSans-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Paper Mono"; src: url("fonts/PaperMono.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --z: 1;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "Kalice", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --ui: "Mona Sans", system-ui, sans-serif;
  --hel: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #cdcdcd; overflow-x: hidden; scroll-behavior: smooth; }
body {
  color: #000; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  /* Figma radial: centre top, rx 1.046w, ry 1h; stops #fff 0, #fff .57, #cdcdcd 1 */
  background: radial-gradient(calc(1418.4px * var(--z)) calc(3182px * var(--z)) at 50% 0, #fff 0%, #fff 57%, #cdcdcd 100%) no-repeat, #cdcdcd;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ===================================================================== */
/* Desktop canvas                                                         */
/* ===================================================================== */
.canvas { position: relative; width: 1356px; height: 3182px; margin: 0 auto; zoom: var(--z); }
.hero, .proj, .lockup { display: contents; }
.canvas :is(.logo, .tick, .name, .headline, .ctas, .hero-iphone, .p-logo, .p-head, .p-desc, .p-bullets, .p-rule, .p-facts, .iphone, .laptop, .ms-sm, .ms-logo, .ms-text, .ms-bul, .ms-lg) { position: absolute; }

/* ---- hero ---- */
.logo { left: 171.7px; top: 204.7px; width: 81.7px; height: 80.7px; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.logo img:first-child { opacity: 1; }
/* Figma prototype: each variant changes to the next after 200 ms, no transition */
@media (prefers-reduced-motion: no-preference) {
  .logo img { opacity: 0; animation: logoFrame .8s step-end infinite; }
  .logo img:nth-child(2) { animation-delay: .2s; } .logo img:nth-child(3) { animation-delay: .4s; } .logo img:nth-child(4) { animation-delay: .6s; }
  .logo img:first-child { opacity: 0; }
}
@keyframes logoFrame { 0% { opacity: 1; } 25% { opacity: 0; } 100% { opacity: 0; } }
.tick { left: 257px; top: 244px; width: 1px; height: 10.3px; background: rgba(0, 0, 0, .2); }
.name { left: 270.9px; top: 229.2px; font: 500 24px/40px var(--serif); letter-spacing: -.2px; white-space: nowrap; }
.headline { left: 270.9px; top: 285.2px; width: 813.5px; font: 400 35.6368px/1.28 var(--serif); letter-spacing: 0; }
.headline .sub { color: rgba(0, 0, 0, .4); }
.ctas { left: 270.9px; top: 455.2px; display: flex; align-items: center; gap: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 16px 40px;
  background: #e0e0e0; box-shadow: inset 0 5px 10px #f0f0f0; font: 500 20px/21.6px var(--ui); white-space: nowrap;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: #d6d6d6; }
.btn:active { transform: scale(.98); }
.resume { font: 400 20px/21.6px var(--ui); text-decoration: underline; text-decoration-thickness: from-font; text-underline-offset: auto; }
.resume:hover { color: rgba(0, 0, 0, .6); }
.hero-iphone { display: none; }

/* ---- shared project bits ---- */
.meta { display: flex; align-items: center; gap: 4px; height: 16px; font: 300 12px/1.3 var(--sans); white-space: nowrap; }
.meta i { width: 2px; height: 2px; border-radius: 50%; background: rgba(0, 0, 0, .5); }
.title { font: 500 24px/1.1 var(--hel); white-space: nowrap; }

/* ---- Pathao ---- */
.p-logo {
  left: 293.4px; top: 845.5px; width: 43px; height: 43px;
  box-shadow: 0 .597px 1.195px rgba(0, 0, 0, .06), 0 1.792px 1.792px rgba(0, 0, 0, .06), 0 4.779px 2.987px rgba(0, 0, 0, .03), 0 8.363px 3.584px rgba(0, 0, 0, .01);
}
.p-head { left: 349.2px; top: 835px; width: 380px; display: flex; flex-direction: column; gap: 4px; }
.p-desc { left: 349.2px; top: 887.5px; width: 379.4px; font: 300 17px/1.3 var(--sans); letter-spacing: -.17px; }
.p-bullets { left: 370px; top: 951.5px; width: 366.3px; font: 300 17px/1.5 var(--sans); white-space: pre-wrap; }
.p-rule { left: 349.2px; top: 1075.3px; width: 380px; height: 1px; opacity: .3; background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .5) 16%, rgba(0, 0, 0, 0)); }
.p-facts { left: 350.4px; top: 1102.7px; width: 314.8px; display: flex; flex-direction: column; gap: 24px; }
.p-facts div { display: flex; align-items: flex-start; }
.p-facts .f1 { gap: 29px; align-items: center; } .p-facts .f2 { gap: 40px; } .p-facts .f3 { gap: 23px; }
.p-facts dt { font: 400 17px/23.7656px var(--sans); letter-spacing: .112px; color: rgba(0, 0, 0, .5); white-space: nowrap; }
.p-facts dd { font: 300 17px/1.3 var(--sans); letter-spacing: -.17px; }
.p-facts .f1 dd { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.p-facts .f1 dd i { width: 2.5px; height: 2.5px; border-radius: 27px; background: rgba(0, 0, 0, .4); }
.p-facts .f3 dd { width: 239.8px; }

/* iPhone 17 Pro Silver: screen (the live prototype) under the body, whose display is cut out */
.iphone { left: 776px; top: 722.9px; width: 315.9px; height: 659.2px; }
.iphone-body {
  position: absolute; left: -3.6px; top: 0; width: 322.4px; height: 659.2px; pointer-events: none; z-index: 2;
  filter: drop-shadow(7.858px 1.572px 9.43px rgba(0, 0, 0, .10)) drop-shadow(34.577px 3.143px 17.29px rgba(0, 0, 0, .09)) drop-shadow(77.011px 7.858px 23.57px rgba(0, 0, 0, .05)) drop-shadow(136.735px 15.717px 27.5px rgba(0, 0, 0, .01));
}
.demo {
  position: absolute; left: 13.7px; top: 15.1px; width: 289.4px; height: 629px; z-index: 1;
  border-radius: 39.24px; overflow: hidden; background: #f5f8fa; box-shadow: 0 0 0 1.345px rgba(0, 0, 0, .1);
  isolation: isolate; transform: translateZ(0);
}
.demo-view { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.demo-cam { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.demo-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; color-scheme: light; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; transition: opacity .6s var(--ease); }
.demo:not(.is-poster) .poster { opacity: 0; }

/* ghost finger showing every scripted touch */
.finger { position: absolute; left: 0; top: 0; z-index: 5; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .25s; }
.finger.is-on { opacity: 1; }
.finger-dot, .finger-ring { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%; }
.finger-dot { background: rgba(30, 30, 30, .22); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9), 0 3px 10px rgba(0, 0, 0, .22); backdrop-filter: blur(1.5px); }
.finger-ring { border: 1.5px solid rgba(255, 255, 255, .9); opacity: 0; }
.demo-shield { position: absolute; inset: 0; z-index: 6; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 34px; background: none; border: 0; }
.shield-hint {
  font: 500 11px/1 var(--ui); color: #111; background: rgba(244, 244, 242, .94); padding: 7px 12px; border-radius: 99px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12); opacity: 0; translate: 0 6px; transition: opacity .25s, translate .35s var(--ease);
}
.demo-shield:hover .shield-hint, .demo-shield:focus-visible .shield-hint { opacity: 1; translate: 0 0; }
.demo.is-manual .demo-shield, .demo.is-poster .demo-shield { display: none; }

/* ---- 10 Minute School ---- */
.laptop { left: -290.4px; top: 1561.1px; width: 1019px; height: 646.6px; }
.ms-sm { left: 273.2px; top: 2017.5px; width: 463.4px; height: 225.4px; }
.ms-logo { width: 72px; height: 72px; }
.ms-text { width: 379.4px; display: flex; flex-direction: column; gap: 8px; }
.title-row { display: flex; align-items: center; justify-content: space-between; width: 365.9px; height: 26px; margin-top: 6px; }
.yrs { font: 400 16px/1.3 "Paper Mono", ui-monospace, monospace; }
.ms-text .meta { margin-bottom: 0; }
.desc { font: 300 17px/1.3 var(--sans); letter-spacing: -.17px; }
.ms-text > .meta + .title-row { margin-top: 6px; }
.ms-text { gap: 0; } .ms-text .desc { margin-top: 8px; }
.ms-bul { width: 360.6px; height: 79px; }
.ms-bul p { position: absolute; left: 15px; top: 8px; width: 330.6px; font: 300 16px/1.3 var(--sans); white-space: pre-wrap; }
.ms-bul .up { position: absolute; left: 69.77px; top: 7.52px; width: 20.36px; height: 20.36px; }
/* engraved rule: blurred white highlight + 30% black line, each fading out at the ends */
.ms-bul .rule { position: absolute; left: var(--rx, 0px); top: 1.3px; width: 2px; height: 78.7px; }
.ms-bul .rule::before, .ms-bul .rule::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; }
.ms-bul .rule::before { left: -.5px; background: linear-gradient(rgba(255, 255, 255, 0), #fff, rgba(255, 255, 255, 0)); filter: blur(.55px); }
.ms-bul .rule::after { left: .5px; opacity: .3; background: linear-gradient(rgba(0, 0, 0, 0), #000, rgba(0, 0, 0, 0)); }

.ms1 .ms-logo { left: 807.7px; top: 1726px; }
.ms1 .ms-text { left: 809.3px; top: 1811.8px; }
.ms1 .ms-bul { left: 809.3px; top: 1915.2px; --rx: .2px; }
.ms2 .ms-logo { left: 273.2px; top: 2484px; }
.ms2 .ms-text { left: 356.8px; top: 2466.5px; }
.ms2 .ms-bul { left: 779.6px; top: 2497px; --rx: -15.9px; }
.ms-lg { left: 196.8px; top: 2611.9px; width: 962.4px; height: 468.1px; }

/* ===================================================================== */
/* Motion: hero entrance + scroll reveals (JS adds html.js)              */
/* ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .hero :is(.logo, .tick, .name, .headline, .ctas, .hero-iphone) { animation: rise 1s var(--ease) both; }
  .js .hero .tick { animation-delay: .06s; } .js .hero .name { animation-delay: .1s; }
  .js .hero .headline { animation-delay: .2s; } .js .hero .ctas { animation-delay: .32s; }
  .js .hero .hero-iphone { animation: riseImg 1.3s var(--ease) .45s both; }
  .js .reveal { opacity: 0; translate: 0 22px; transition: opacity .9s var(--ease), translate 1.1s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.is-in { opacity: 1; translate: 0 0; }
  .js .iphone.reveal { translate: 0 40px; }
  .js .iphone.reveal.is-in { translate: 0 0; }
}
@keyframes rise { from { opacity: 0; translate: 0 16px; filter: blur(3px); } }
@keyframes riseImg { from { opacity: 0; translate: 0 60px; } }

/* ===================================================================== */
/* Mobile: hero = frame 1354:56803 (289.39 x 629), rest stacked           */
/* ===================================================================== */
/* below the hero: from the hero's grey edge back up to the desktop page's light middle */
.is-mobile body { background: linear-gradient(#cdcdcd calc(629px * var(--z)), #ededed calc(1000px * var(--z)), #ededed 80%, #d6d6d6) no-repeat, #d6d6d6; }
.is-mobile .canvas { width: 289.39px; height: auto; padding-bottom: 60px; }
.is-mobile .hero {
  display: block; position: relative; height: 629px; overflow: hidden;
  background: radial-gradient(302.7px 629px at 50% 0, #fff 0%, #fff 57%, #cdcdcd 100%);
}
.is-mobile .logo { left: 121.8px; top: 37px; width: 45.8px; height: 45.2px; }
.is-mobile .tick { left: 139.5px; top: 117.5px; width: 10.3px; height: 1px; }
.is-mobile .name { left: 88.7px; top: 86.2px; width: 112px; font-size: 14px; line-height: 22.408px; letter-spacing: -.112px; text-align: center; }
.is-mobile .headline { left: 26.9px; top: 216.2px; width: 235.6px; font-size: 19px; line-height: 1.2; text-align: center; }
.is-mobile .ctas { display: contents; }
.is-mobile .btn {
  position: absolute; left: 25.2px; top: 348px; width: 239px; height: 38px; padding: 8px 24px;
  font-size: 14px; box-shadow: inset 0 5px 8px #fff, inset 0 5px 4px #f0f0f0;
}
.is-mobile .resume { position: absolute; left: 117.2px; top: 397.8px; font-size: 14px; }
.is-mobile .hero-iphone {
  display: block; left: -237.6px; top: 553.8px; width: 764.5px; height: 553.5px;
}
/* the frame crops the phone; fade that edge into the page so scrolling past isn't a hard cut */
.is-mobile .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(rgba(205, 205, 205, 0), #cdcdcd); pointer-events: none; }

.is-mobile .proj { display: flex; flex-direction: column; position: relative; padding: 44px 25.2px 0; }
.is-mobile .proj > * { position: relative; left: auto; top: auto; }
.is-mobile .p-logo { width: 34px; height: 34px; }
.is-mobile .p-head { width: auto; margin-top: 14px; }
.is-mobile .meta { font-size: 9.5px; height: 13px; }
.is-mobile .title { font-size: 20px; }
.is-mobile :is(.p-desc, .desc) { width: auto; font-size: 13.5px; letter-spacing: -.135px; margin-top: 8px; }
.is-mobile .p-bullets { width: auto; font-size: 13px; margin-top: 10px; padding-left: 8px; }
.is-mobile .p-rule { width: 100%; margin-top: 16px; }
.is-mobile .p-facts { width: auto; margin-top: 16px; gap: 12px; }
.is-mobile .p-facts div { gap: 0 !important; }
.is-mobile .p-facts dt { width: 62px; flex: none; font-size: 13px; line-height: 18px; }
.is-mobile .p-facts dd { font-size: 13px; line-height: 18px; width: auto !important; }
.is-mobile .iphone { order: 9; width: 315.9px; height: 659.2px; zoom: .74; margin: 40px auto 0; align-self: center; }

.is-mobile .ms1 { padding-top: 60px; }
.is-mobile .laptop { width: 330px; height: auto; margin-left: -45px; }
.is-mobile .ms-sm { width: 170px; height: auto; margin: -78px 0 0 auto; margin-right: -10px; }
.is-mobile .ms-logo { width: 40px; height: 40px; margin-top: 26px; }
.is-mobile .ms-text { width: auto; margin-top: 12px; }
.is-mobile .title-row { width: 100%; height: 22px; }
.is-mobile .yrs { font-size: 12px; }
.is-mobile .ms-bul { width: auto; height: auto; margin-top: 14px; }
.is-mobile .ms-bul p { position: relative; left: auto; top: auto; width: auto; padding: 4px 0 4px 12px; font-size: 13px; }
.is-mobile .ms-bul .up { left: 58px; top: 3px; width: 17px; height: 17px; }
.is-mobile .ms-bul .rule { --rx: 0px; height: 100%; top: 0; }
.is-mobile .ms2 .ms-lg { width: 330px; height: auto; margin: 22px 0 0 -45px; }

.is-mobile .finger-dot, .is-mobile .finger-ring { left: -11px; top: -11px; width: 22px; height: 22px; }

/* ---- Mobile: lockup -> header (frame 1354:57643) ----
   Once the reader scrolls, the centred lockup settles into the left-aligned layout:
   logo, name and rule move to x 26.9, the headline goes left-aligned (each word glides,
   site.js), and the hand-held phone rises 34.8px. Back at the top it centres again. */
.is-mobile .hero :is(.logo, .name, .tick, .hero-iphone) { transition: translate .8s var(--ease); }
.is-mobile .hero.is-left .logo { translate: -94.9px 0; }
.is-mobile .hero.is-left .name { translate: -61.8px 0; text-align: left; }
.is-mobile .hero.is-left .tick { translate: -112.6px 0; }
.is-mobile .hero.is-left .headline { text-align: left; }
.is-mobile .hero.is-left .hero-iphone { translate: 0 -34.8px; }
.headline .w { display: inline-block; }

/* finger held down during a drag-scroll */
.finger-dot { transition: scale .14s ease-out, background-color .14s ease-out; }
.finger.is-down .finger-dot { scale: .84; background: rgba(30, 30, 30, .34); }
