/* ==========================================================================
   Krish Vekariya — portfolio
   Aesthetic: warm off-white (#FAFAF9), framed hairline sections, floating
   glass pill nav, dark CTA tail — Switzer / Plus Jakarta Sans / Smooch Sans
   ========================================================================== */

:root {
  --bg: #FAFAF9;
  --fg: #1a1a1a;
  --fg-2: #555555;
  --muted: #999999;
  --line: rgba(24, 24, 22, 0.09);
  --line-2: rgba(24, 24, 22, 0.16);
  --panel: #ffffff;
  --emerald: #10b981;
  --dark: #1a1a1a;
  --dark-2: #222222;
  --cta-bg: #1a1612;
  --font-sans: "Switzer", "Plus Jakarta Sans", sans-serif;
  --font-jakarta: "Plus Jakarta Sans", sans-serif;
  --font-smooch: "Smooch Sans", sans-serif;
  --font-grotesk: "Cabinet Grotesk", "Switzer", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --frame-x: clamp(16px, 6vw, 96px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }

::selection { background: var(--fg); color: var(--bg); }

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }

/* --- preloader ---------------------------------------------------------- */

.preloader { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.pre-half {
  position: absolute; left: 0; right: 0;
  background: var(--bg);
  display: flex; align-items: flex-end; justify-content: center;
  transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1);
}
.pre-top { top: 0; bottom: 50%; }
.pre-bottom { top: 50%; bottom: 0; align-items: flex-start; flex-direction: column; gap: 0.65rem; }
.pre-bottom { display: flex; align-items: center; }
.pre-count {
  font-family: var(--font-smooch);
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 10rem);
  letter-spacing: -0.01em;
  line-height: 0.8;
  color: #111111;
}
.pre-pct { font-size: 0.38em; color: #999; font-weight: 400; vertical-align: super; letter-spacing: 0; }
.pre-progress {
  width: clamp(140px, 44vw, 320px); height: 2px;
  background: #DDDBD6; border-radius: 999px; overflow: hidden;
  margin-top: 14px;
}
.pre-bar { height: 100%; width: 0%; background: #111111; border-radius: 999px; transition: width 0.06s linear; }
.pre-text {
  margin-top: 12px;
  font-family: var(--font-smooch);
  font-weight: 600;
  font-size: clamp(0.9rem, 2.6vw, 1.2rem);
  letter-spacing: 0.06em;
  color: #777;
}
.preloader.done .pre-top { transform: translateY(-100%); }
.preloader.done .pre-bottom { transform: translateY(100%); }

/* --- glass pill + nav ---------------------------------------------------- */

.glass-pill {
  position: relative;
  border: 1px solid rgba(180, 180, 180, 0.30);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
}
.glass-pill::before {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
  backdrop-filter: blur(20px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.08);
}
.glass-pill::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.12) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.82), inset 1.5px 0 0 rgba(255, 255, 255, 0.42), inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.nav-wrap {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 999;
}
.nav-inner {
  display: flex; align-items: center; white-space: nowrap;
  padding: 0 14px; height: 58px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(145deg, #2b2b2b, #111111);
  color: #fafaf9;
  display: grid; place-items: center;
  font-family: var(--font-jakarta); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.03em;
}
.brand-name { font-size: 15px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 18px; margin-left: 28px; }
.nav-links a {
  position: relative;
  font-size: 14px; font-weight: 600; color: var(--fg);
  text-decoration: none; letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: #777; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.nav-cta {
  border: 1px solid rgba(180, 180, 180, 0.38);
  border-radius: 999px; padding: 5px 14px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-links a.nav-cta:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.nav-burger { display: none; align-items: center; flex-direction: column; gap: 5px; padding: 10px; margin-left: 10px; }
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform 0.3s var(--ease); }
.nav-burger.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.nav-menu {
  margin-top: 10px;
  border-radius: 22px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px;
}
.nav-menu[hidden] { display: none; }

/* nav over dark sections — inverted text */
.nav-wrap.nav-dark .brand-name,
.nav-wrap.nav-dark .nav-links a { color: #fafaf9; }
.nav-wrap.nav-dark .nav-links a:hover { color: rgba(255, 255, 255, 0.55); }
.nav-wrap.nav-dark .nav-links a.nav-cta { border-color: rgba(255, 255, 255, 0.35); }
.nav-wrap.nav-dark .nav-links a.nav-cta:hover { background: #fafaf9; color: #1a1a1a; border-color: #fafaf9; }
.nav-wrap.nav-dark .glass-pill { border-color: rgba(255, 255, 255, 0.22); }
.nav-wrap.nav-dark .glass-pill::after {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.28), inset 1.5px 0 0 rgba(255, 255, 255, 0.14);
}
.nav-wrap.nav-dark .avatar { background: #fafaf9; color: #1a1a1a; }
.nav-wrap.nav-dark .nav-burger span { background: #fafaf9; }
.nav-wrap.nav-dark .nav-menu a { color: #fafaf9; }
.nav-wrap.nav-dark .nav-menu a:hover { background: rgba(255, 255, 255, 0.08); }
.nav-menu a {
  font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 10px 16px; border-radius: 14px; text-align: center;
}
.nav-menu a:hover { background: rgba(24, 24, 22, 0.06); }

/* --- framed sections ------------------------------------------------------ */

.framed { position: relative; border-bottom: 1px solid var(--line); }
.framed::before, .framed::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--line); pointer-events: none; z-index: 5;
}
.framed::before { left: var(--frame-x); }
.framed::after { right: var(--frame-x); }

section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding: 0 calc(var(--frame-x) + clamp(16px, 3vw, 40px));
}

/* --- two-tone headings ---------------------------------------------------- */

.two-tone {
  font-family: var(--font-jakarta);
  font-size: clamp(1.5rem, 3.6vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.tt-muted { color: rgba(24, 24, 22, 0.42); font-weight: 500; }
.tt-bold { color: var(--fg); font-weight: 700; }

.sec-sub { color: var(--fg-2); max-width: 560px; font-size: 1rem; font-weight: 400; }

/* --- hero ---------------------------------------------------------------- */

.hero { min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 80px; }
.hero-grid {
  position: relative; z-index: 2;
  max-width: 1120px; margin: 0 auto; width: 100%;
  padding: 0 calc(var(--frame-x) + clamp(16px, 3vw, 40px));
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}

.blob { position: absolute; width: 400px; height: 400px; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.blob-a { top: 18%; right: 20%; background: rgba(16, 185, 129, 0.12); }
.blob-b { bottom: 16%; right: 34%; background: rgba(221, 156, 30, 0.10); }

.status-pill {
  display: inline-flex; align-items: center;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.30);
  background: transparent;
  backdrop-filter: blur(4px);
  font-family: var(--font-jakarta); font-size: 0.82rem; font-weight: 600;
  letter-spacing: -0.01em; color: var(--fg);
  margin-bottom: 32px;
  transition: border-color 0.3s;
}
.status-pill:hover { border-color: rgba(16, 185, 129, 0.5); }
.ping { position: relative; display: inline-flex; width: 10px; height: 10px; margin-right: 10px; }
.ping-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(16, 185, 129, 0.8);
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.ping-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--emerald); }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: rgba(24, 24, 22, 0.45); }

.hero-kick {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-jakarta);
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--fg-2);
  margin-bottom: 16px;
}
.hero-kick svg { flex-shrink: 0; }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: #6b6b6b; max-width: 400px; line-height: 1.6;
  margin-bottom: 40px;
}
.hero-sub strong { color: var(--fg); font-weight: 600; }

/* View Projects button (label-swap pill) */
.vp-btn { display: inline-block; text-decoration: none; -webkit-tap-highlight-color: transparent; user-select: none; }
.vp-inner {
  font-family: var(--font-grotesk);
  font-weight: 700; font-size: 18px; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 13px 26px; border-radius: 100px;
  background: #1a1a1a; border: 1px solid #2a2a2a; color: #e8e8e8;
  position: relative; overflow: hidden;
  transition: background 0.22s ease, border-color 0.22s ease,
              transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
  box-shadow: 0 1px 0 #000, inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.vp-inner::before {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease; pointer-events: none;
}
.vp-btn:hover .vp-inner {
  background: #222; border-color: #3a3a3a;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05), 0 1px 0 #000, inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.vp-btn:hover .vp-inner::before { left: 160%; }
.vp-btn:active .vp-inner { transform: scale(0.96); }
.vp-label { display: inline-flex; flex-direction: column; overflow: hidden; height: 1.2em; position: relative; }
.vp-label span { display: block; line-height: 1.2; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.vp-top { color: #e8e8e8; }
.vp-bot { color: #aaa; position: absolute; top: 100%; left: 0; white-space: nowrap; }
.vp-btn:hover .vp-top, .vp-btn:hover .vp-bot { transform: translateY(-100%); }
.vp-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: #2e2e2e; border: 1.4px solid #4d4d4d;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.22s, border-color 0.22s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vp-btn:hover .vp-icon { background: #e8e8e8; border-color: #e8e8e8; transform: scale(1.1); }
.vp-icon svg { stroke: #888; transform: rotate(-40deg); transition: stroke 0.22s, transform 0.3s; }
.vp-btn:hover .vp-icon svg { stroke: #0e0e0e; transform: rotate(0deg); }

/* phone mockup — realistic device proportions + frame */
.hero-device { display: flex; flex-direction: column; align-items: center; position: relative; perspective: 1000px; }
.phone {
  position: relative;
  width: min(260px, 58vw);
  /* real modern-phone body ratio (~9:19.5), not a Play Store screenshot ratio */
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: linear-gradient(155deg, #3f3f3f 0%, #191919 26%, #070707 68%);
  box-shadow: 0 30px 70px rgba(24, 24, 22, 0.28);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease);
  will-change: transform;
}
.phone::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.16), inset 0 -1px 1px rgba(0, 0, 0, 0.7);
}
.phone-btn { position: absolute; background: linear-gradient(90deg, #3a3a3a, #0a0a0a); }
.phone-btn.power { right: -2.5px; top: 21%; width: 2.5px; height: 9%; border-radius: 0 3px 3px 0; }
.phone-btn.vol-up { left: -2.5px; top: 15%; width: 2.5px; height: 5.5%; border-radius: 3px 0 0 3px; }
.phone-btn.vol-down { left: -2.5px; top: 23%; width: 2.5px; height: 5.5%; border-radius: 3px 0 0 3px; }
.phone .punch {
  position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #2c2c2c, #000 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 3px rgba(90, 145, 255, 0.4);
  z-index: 6;
}
.phone-screen { position: absolute; inset: 5px; border-radius: 39px; overflow: hidden; background: #0d0d0d; }

/* hero mockup: 3-phase build story (writing code -> building -> live app) */
.phone-phases { position: absolute; inset: 0; }
.phase { position: absolute; inset: 0; opacity: 0; transition: opacity 0.32s var(--ease); pointer-events: none; }
.phase.active { opacity: 1; pointer-events: auto; }

.code-bar { display: flex; align-items: center; gap: 6px; padding: 13px 13px 10px; }
.code-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.code-dot.r { background: #ff5f56; } .code-dot.y { background: #ffbd2e; } .code-dot.g { background: #27c93f; }
.code-file { margin-left: 7px; font-family: var(--font-jakarta); font-size: 0.56rem; font-weight: 600; color: rgba(255, 255, 255, 0.38); }

.phase-code { background: #111318; }
.code-body { padding: 2px 13px 13px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.63rem; line-height: 1.9; color: #c9d1d9; }
.code-line {
  white-space: pre; opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.code-line.shown { opacity: 1; transform: none; }
.code-line.ind1 { padding-left: 14px; } .code-line.ind2 { padding-left: 28px; } .code-line.ind3 { padding-left: 42px; }
.tok-kw { color: #ff7b9c; } .tok-cls { color: #7ee787; } .tok-ann { color: #79c0ff; }
.code-cursor {
  display: inline-block; width: 6px; height: 12px; background: #c9d1d9; margin-left: 2px; vertical-align: -2px;
  animation: caretBlink 1s step-end infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.phase-build { background: #0b0d10; }
.build-body { padding: 2px 13px 13px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.6rem; line-height: 2; color: #9aa5b1; }
.build-line { opacity: 0; transform: translateY(4px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.build-line.shown { opacity: 1; transform: none; }
.build-line.ok { color: #3fb950; }
.build-line.final { color: #7ee787; font-weight: 700; margin-top: 4px; }
.build-progress { margin-top: 10px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.build-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #3fb950, #2ea043); border-radius: 3px; }

/* "Feed" hero mockup (final phase — the shipped app) */
.feed-mock {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: 15px 13px 11px; color: #fff; font-family: var(--font-jakarta);
}
.feed-status { display: flex; justify-content: space-between; align-items: center; font-size: 0.6rem; font-weight: 700; margin-bottom: 12px; }
.fs-icons { display: flex; align-items: center; gap: 5px; }
.feed-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.feed-header h4 { font-family: var(--font-jakarta); font-size: 1.25rem; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.feed-bell { width: 25px; height: 25px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; flex-shrink: 0; }
@keyframes bellRing {
  0%, 91%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(-13deg); }
  93% { transform: rotate(11deg); }
  94% { transform: rotate(-8deg); }
  95% { transform: rotate(5deg); }
  96% { transform: rotate(0deg); }
}
.feed-bell svg { animation: bellRing 6s ease-in-out infinite; transform-origin: 50% 15%; }

.feed-stories { display: flex; gap: 11px; margin-bottom: 15px; }
.story { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.story-ring { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 0.58rem; font-weight: 700; color: #fff; }
.add-ring { background: rgba(255, 255, 255, 0.06); border: 1.5px dashed rgba(255, 255, 255, 0.35); color: rgba(255, 255, 255, 0.6); }
@keyframes storyGlow {
  0%, 100% { box-shadow: 0 0 0 2px #0d0d0d, 0 0 0 3.2px var(--ring-c); filter: brightness(1); }
  50% { box-shadow: 0 0 0 2px #0d0d0d, 0 0 10px 3.2px var(--ring-c); filter: brightness(1.25); }
}
.ring-jm { background: linear-gradient(135deg, #ff5da2, #ff2d78); --ring-c: #ff2d78; animation: storyGlow 4.5s ease-in-out infinite; }
.ring-kl { background: linear-gradient(135deg, #ffb547, #ff8a00); --ring-c: #ff8a00; animation: storyGlow 4.5s ease-in-out infinite; animation-delay: 1.5s; }
.ring-rn { background: linear-gradient(135deg, #38e6c5, #0ec9a0); --ring-c: #0ec9a0; animation: storyGlow 4.5s ease-in-out infinite; animation-delay: 3s; }
.story-label { font-size: 0.54rem; font-weight: 600; color: rgba(255, 255, 255, 0.5); }

.feed-posts { display: flex; flex-direction: column; gap: 9px; flex: 1; overflow: hidden; }
.feed-post { background: #1a1a1d; border-radius: 15px; padding: 10px 11px; }
.post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.post-avatar { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-size: 0.56rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.avatar-ak, .avatar-sr { background: linear-gradient(135deg, #8b6bff, #5b3df0); }
.post-id { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.post-name { font-size: 0.66rem; font-weight: 700; }
.post-time { font-size: 0.55rem; color: rgba(255, 255, 255, 0.4); font-weight: 600; }
.post-text { font-size: 0.63rem; line-height: 1.5; color: rgba(255, 255, 255, 0.8); margin: 0 0 8px; }
.post-icon { vertical-align: -1px; margin-right: 2px; flex-shrink: 0; }
.post-actions { display: flex; gap: 13px; }
.post-actions span { display: flex; align-items: center; gap: 4px; font-size: 0.58rem; font-weight: 600; color: rgba(255, 255, 255, 0.42); }
.like-count { display: inline-block; }
@keyframes likeBump { 0% { transform: scale(1); } 45% { transform: scale(1.4); } 100% { transform: scale(1); } }
.like-count.bump { animation: likeBump 0.35s ease; color: #ff2d78; }

.feed-nav { display: flex; justify-content: space-around; align-items: center; margin-top: 9px; padding: 8px 5px; background: #1a1a1d; border-radius: 15px; flex-shrink: 0; }
.nav-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: rgba(255, 255, 255, 0.38); }
.nav-icon.active { background: linear-gradient(135deg, #5b8dff, #3d63f0); color: #fff; }

.phone-dots { display: flex; align-items: center; gap: 6px; margin-top: 16px; }
.phone-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(24, 24, 22, 0.22); transition: all 0.25s; }
.phone-dots .dot.active { width: 18px; border-radius: 4px; background: var(--fg); }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; }
.mouse {
  width: 24px; height: 40px; border-radius: 999px;
  border: 2px solid rgba(24, 24, 22, 0.25);
  display: flex; justify-content: center; padding-top: 8px;
}
.mouse span { width: 5px; height: 5px; border-radius: 50%; background: var(--fg); animation: scrollDot 2s ease-in-out infinite; }
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(12px); opacity: 0; }
}

/* --- about ---------------------------------------------------------------- */

.about-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 84px); margin-top: clamp(36px, 6vw, 72px); align-items: start;
}

.photo-frame { position: relative; max-width: 380px; padding-top: 26px; }
.photo-shadow { position: absolute; inset: 26px 0 0 0; transform: translate(12px, 12px); background: #555; }
.photo-label {
  position: absolute; top: 0; left: 30px; z-index: 10;
  background: #fff; padding: 4px 10px;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 0 rgba(78, 78, 78, 0.8);
  font-family: var(--font-jakarta); font-size: 0.82rem; font-weight: 700; color: #000; line-height: 1.4;
}
.photo-area {
  position: relative; aspect-ratio: 4 / 3.4;
  border: 1px solid #262626;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(150deg, #232323, #161616 70%);
  background-size: 36px 36px, 36px 36px, 100% 100%;
  display: grid; place-items: center;
  overflow: hidden;
}
.photo-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.photo-socials { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 10px; }
.photo-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.8); color: #fff;
  display: grid; place-items: center;
  backdrop-filter: blur(4px);
  transition: transform 0.2s, background 0.2s;
}
.photo-socials a:hover { background: #000; transform: scale(1.1); }

.about-name { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; margin-top: 22px; }
.about-role { font-family: var(--font-jakarta); font-size: 0.86rem; font-weight: 600; color: #777; margin-top: 3px; }

.about-copy p { font-family: var(--font-jakarta); font-size: clamp(0.98rem, 1.4vw, 1.1rem); color: var(--fg); line-height: 1.7; margin-bottom: 20px; font-weight: 400; }
.about-copy p strong { font-weight: 700; }
.about-copy .bold-line { font-weight: 700; }

.stat-row {
  display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 48px);
  border-top: 1px solid var(--line); padding-top: 26px; margin-top: 30px;
}
.stat .num { display: block; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.stat .num em { font-style: normal; }
.stat .lbl {
  display: block; margin-top: 7px;
  font-family: var(--font-jakarta); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted);
}

/* --- app cards -------------------------------------------------------------- */

.sync-note {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-family: var(--font-jakarta); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase;
  border: 1px dashed var(--line-2); border-radius: 999px; padding: 8px 14px;
  background: var(--panel);
}
.sync-note svg { flex-shrink: 0; }
.sync-note b { color: var(--fg); font-weight: 700; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
  gap: 18px; margin-top: 44px;
}
.apps-grid.compact { grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); }
.apps-grid > .reveal:nth-child(1) { transition-delay: 0.04s; }
.apps-grid > .reveal:nth-child(2) { transition-delay: 0.11s; }
.apps-grid > .reveal:nth-child(3) { transition-delay: 0.18s; }
.apps-grid > .reveal:nth-child(4) { transition-delay: 0.25s; }
.apps-grid > .reveal:nth-child(n+5) { transition-delay: 0.3s; }

.app-card {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  text-align: left;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.app-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 18px 44px rgba(24, 24, 22, 0.10); }

.app-top { display: flex; align-items: center; gap: 15px; }
.app-icon {
  width: 58px; height: 58px; border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.app-id { flex: 1; min-width: 0; }
.app-name { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.app-genre {
  font-family: var(--font-jakarta); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-top: 4px;
}
.app-open {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--muted); flex-shrink: 0;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.app-card:hover .app-open { background: var(--fg); border-color: var(--fg); color: #fff; transform: rotate(45deg); }

.app-sum { font-family: var(--font-jakarta); color: var(--fg-2); font-size: 0.88rem; line-height: 1.6; }

.app-shots { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-inline: -22px; padding-inline: 22px; }
.app-shots::-webkit-scrollbar { display: none; }
.app-shots img {
  height: 178px; border-radius: 14px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.app-meta {
  display: flex; align-items: center; gap: 18px;
  border-top: 1px solid var(--line); padding-top: 15px; margin-top: auto;
  font-family: var(--font-jakarta); font-size: 0.76rem; font-weight: 600; color: var(--fg-2);
}
.app-meta .star { color: #dd9c1e; }
.app-meta .star svg, .app-meta span svg, .mstat svg { vertical-align: -1.5px; margin-right: 2px; }
.app-card:active { transform: scale(0.985); }
.app-meta .free-tag { margin-left: auto; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.64rem; font-weight: 700; }

/* --- work: company groups -------------------------------------------------- */

.work-groups { display: flex; flex-direction: column; gap: 60px; margin-top: 44px; }
.work-co {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 14px;
}
.work-co-name { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.015em; }
.work-co-tag {
  font-family: var(--font-jakarta); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 11px;
}
.work-co-meta { margin-left: auto; font-family: var(--font-jakarta); font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.work-group .apps-grid { margin-top: 22px; }

/* --- journey -------------------------------------------------------------- */

.resume-wrap { margin-top: 34px; }

.journey-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 84px); margin-top: clamp(36px, 6vw, 64px); align-items: start;
}

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(var(--fg), var(--line) 80%);
}
.tl-item { position: relative; padding-bottom: 32px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--fg);
}
.tl-year { font-family: var(--font-jakarta); font-size: 0.7rem; font-weight: 700; color: var(--fg-2); letter-spacing: 0.14em; text-transform: uppercase; }
.tl-title { font-weight: 700; font-size: 1.02rem; margin: 6px 0 6px; letter-spacing: -0.01em; }
.tl-body { font-family: var(--font-jakarta); color: var(--fg-2); font-size: 0.88rem; max-width: 460px; }

.skill-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.skill-row:first-child { padding-top: 0; }
.skill-cat {
  font-family: var(--font-jakarta); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span {
  font-family: var(--font-jakarta); font-size: 0.8rem; font-weight: 600; color: var(--fg-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  background: var(--panel);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  cursor: default;
}
.skill-tags span:hover { color: var(--fg); border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(24, 24, 22, 0.08); }

/* --- modal -------------------------------------------------------------- */

.modal {
  position: fixed; inset: 0; z-index: 1500;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(20, 18, 16, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box {
  width: min(680px, 100%); max-height: 88vh;
  overflow-y: auto; scrollbar-width: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px; padding: 26px;
  box-shadow: 0 30px 90px rgba(20, 18, 16, 0.3);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.35s var(--ease);
}
.modal-box::-webkit-scrollbar { display: none; }
.modal.open .modal-box { transform: none; }
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 20;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--fg-2);
  display: grid; place-items: center; font-size: 16px;
  background: var(--panel);
  box-shadow: 0 4px 14px rgba(20, 18, 16, 0.12);
  transition: color 0.2s, transform 0.2s, background 0.2s;
}
.modal-close:hover { color: #fff; background: var(--fg); transform: rotate(90deg); }
.modal-box { position: relative; }

.modal-hero {
  position: relative;
  background: linear-gradient(150deg, #f4f3ef, #ffffff 55%, #f2f4f0);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
  overflow: hidden;
}
.modal-hero::before {
  content: "";
  position: absolute; top: -70px; right: -70px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12), transparent 70%);
}
.modal-head { position: relative; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.modal-head img {
  width: 68px; height: 68px; border-radius: 17px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(20, 18, 16, 0.14);
}
.modal-head .m-id { flex: 1; min-width: 180px; }
.modal-head h3 { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.modal-head .app-genre { margin-top: 5px; }
.m-play {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-jakarta); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.01em;
  background: #1a1a1a; color: #fff;
  border: 1px solid #2a2a2a; border-radius: 999px;
  padding: 11px 20px; text-decoration: none;
  box-shadow: 0 1px 0 #000, inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.m-play:hover { transform: translateY(-2px); background: #262626; box-shadow: 0 10px 26px rgba(20, 18, 16, 0.28); }
.m-play:active { transform: scale(0.96); }
.m-play svg { flex-shrink: 0; }

.modal-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mstat {
  font-family: var(--font-jakarta); font-size: 0.72rem; font-weight: 600; color: var(--fg-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
  background: var(--bg);
}
.mstat b { color: var(--fg); font-weight: 700; }
.modal-desc { font-family: var(--font-jakarta); color: var(--fg-2); font-size: 0.9rem; margin-bottom: 18px; }
.modal-shots-wrap { position: relative; }
.modal-shots {
  display: flex; gap: 10px;
  overflow-x: auto; scrollbar-width: none;
  scroll-behavior: smooth;
  border-radius: 16px;
}
.modal-shots::-webkit-scrollbar { display: none; }
.modal-shots img {
  height: 290px; border-radius: 14px; border: 1px solid var(--line); flex-shrink: 0;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.modal-shots img.shot-in { opacity: 1; transform: none; }
.shots-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--fg);
  box-shadow: 0 8px 22px rgba(20, 18, 16, 0.22);
  transition: opacity 0.2s, transform 0.2s var(--ease), background 0.2s;
  z-index: 5;
}
.shots-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.shots-nav:active { transform: translateY(-50%) scale(0.92); }
.shots-nav.prev { left: 8px; }
.shots-nav.next { right: 8px; }
.shots-nav.hide { opacity: 0; pointer-events: none; }

/* --- dark CTA + footer ------------------------------------------------------ */

.dark-tail { background: linear-gradient(180deg, #222222 0%, #1a1a1a 100%); }
.cta-section { padding: clamp(72px, 9vw, 128px) 0 clamp(40px, 5vw, 64px); }
.cta-card {
  position: relative;
  background: var(--cta-bg);
  border-radius: 24px;
  overflow: hidden;
  min-height: 400px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.cta-glow {
  position: absolute; top: -30%; right: -10%;
  width: 60%; height: 160%;
  background:
    radial-gradient(circle at 70% 40%, rgba(16, 185, 129, 0.16), transparent 60%),
    radial-gradient(circle at 40% 80%, rgba(221, 156, 30, 0.10), transparent 55%);
  filter: blur(10px);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 2; padding: clamp(36px, 5vw, 60px); max-width: 560px; }
.cta-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-jakarta); font-size: 13.5px; font-weight: 500;
  color: rgba(255, 255, 255, 0.45); letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.cta-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 12px rgba(16, 185, 129, 0.8); animation: ctaPulse 2s ease-in-out infinite; }
@keyframes ctaPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.cta-headline {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.03em;
  color: #ffffff; margin-bottom: 16px;
}
.cta-headline span { color: rgba(255, 255, 255, 0.38); font-weight: 400; }
.cta-sub {
  font-family: var(--font-jakarta);
  font-size: 14.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.5);
  max-width: 380px; margin-bottom: 32px;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-jakarta); font-size: 14px; font-weight: 700;
  background: #fafaf9; color: #1a1a1a;
  border-radius: 14px; padding: 13px 22px; text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.cta-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
.cta-btn-primary:active { transform: scale(0.96); }
.cta-btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-jakarta); font-size: 14px; font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px; padding: 13px 22px; text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.cta-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); }
.cta-btn-ghost:active { transform: scale(0.96); }

/* contact form (dark, inside CTA card) */
.cta-form {
  position: relative; z-index: 2;
  padding: clamp(28px, 4vw, 52px);
  display: flex; flex-direction: column; gap: 15px;
}
.cta-form label {
  display: block;
  font-family: var(--font-jakarta); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42); margin-bottom: 8px;
}
.cta-form input, .cta-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #fafaf9; font: inherit;
  font-family: var(--font-jakarta); font-size: 0.9rem;
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s;
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: rgba(255, 255, 255, 0.3); }
.cta-form input:focus, .cta-form textarea:focus {
  outline: none; border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.09);
}
.cta-form textarea { min-height: 104px; resize: vertical; }
.cta-form .cta-btn-primary { width: 100%; justify-content: center; border: none; cursor: pointer; }
.form-msg { display: none; font-family: var(--font-jakarta); font-size: 0.84rem; margin-top: -4px; }
.form-msg.ok { display: block; color: #34d399; }
.form-msg.ok svg { vertical-align: -2px; margin-right: 3px; }
.form-msg.err { display: block; color: #f87171; }
.form-msg a { color: #fafaf9; }

footer {
  padding: 48px 20px 56px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.foot-name {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700;
  letter-spacing: -0.02em; color: #ffffff;
}
.foot-copy { font-family: var(--font-jakarta); font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.foot-sync { font-family: var(--font-jakarta); font-size: 11.5px; color: rgba(255, 255, 255, 0.4); letter-spacing: 0.04em; }
.sync-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 8px rgba(16, 185, 129, 0.75);
  vertical-align: 1px; animation: ctaPulse 2s ease-in-out infinite;
}
.foot-socials { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.foot-socials a { color: rgba(255, 255, 255, 0.75); transition: opacity 0.2s; }
.foot-socials a:hover { opacity: 0.55; }

/* --- reveal -------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* --- responsive ------------------------------------------------------------ */

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-device { order: -1; margin-bottom: 20px; }
  .phone { width: min(200px, 54vw); border-radius: 34px; }
  .phone-screen { border-radius: 29px; }
  .about-grid, .journey-grid { grid-template-columns: 1fr; }
  .photo-frame { margin-inline: auto; }
  .about-photo { text-align: center; }
  .scroll-hint { display: none; }
}

@media (max-width: 760px) {
  .nav-wrap { top: 14px; width: min(420px, calc(100vw - 28px)); }
  .nav-inner { height: 54px; justify-content: space-between; }
  .brand-name { font-size: 14px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .two-tone { font-size: clamp(1.4rem, 6.4vw, 2rem); }
  .modal-shots img { height: 220px; }
  .work-co-meta { margin-left: 0; width: 100%; }
  .m-play { width: 100%; justify-content: center; }
  .cta-card { min-height: 0; }
}

@media (max-width: 1020px) {
  .cta-card { grid-template-columns: 1fr; }
  .cta-form { padding-top: 0; }
}
