/* ---------- Tokens ---------- */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #0e1222;
  --muted: #586075;
  --line: #e2e5ee;
  --accent: #4338ff;
  --accent-deep: #2b22c9;
  --accent-soft: #eceaff;
  --accent-mid: #c8c5ff;
  --shadow: 0 24px 48px -28px rgba(24, 22, 90, 0.35);

  /* To use Astralaga: add its font files to assets/fonts, declare it with @font-face, then keep it first here. */
  --display: "Astralaga", "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 6vw, 6rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.12rem);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 500; }
/* Fraunces' optical size is set low so headings stay sturdy and easy to read at every size. */
h1, h2, .statement, .loader-name, .nav-brand, .m-hero h4 { font-optical-sizing: none; font-variation-settings: "opsz" 36; }
h2 { font-family: var(--display); font-size: clamp(2.2rem, 1.2rem + 4vw, 4.4rem); line-height: 1.04; letter-spacing: -0.025em; max-width: 17ch; text-wrap: balance; }
h3 { font-family: var(--text); font-weight: 700; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 58ch; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Loader, progress, cursor ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-content: center; gap: 1.6rem; text-align: center; }
.loader-name { font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(2.2rem, 8vw, 4.5rem); letter-spacing: -0.02em; }
.loader-bar { width: min(60vw, 320px); height: 2px; background: var(--line); margin-inline: auto; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
html:not(.js) .loader { display: none; }
.loader { animation: loaderAuto 0.01s 10s forwards; } /* safety net if scripts never finish */
@keyframes loaderAuto { to { opacity: 0; visibility: hidden; } }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 120; }

.cursor, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; display: none; border-radius: 50%; opacity: 0; transition: opacity 0.3s; }
html.cursor-on .cursor, html.cursor-on .cursor-ring { opacity: 1; }
.cursor { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--accent); }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(67, 56, 255, 0.55); transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background 0.3s, opacity 0.3s; }
.cursor-ring.is-link { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: rgba(67, 56, 255, 0.1); }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor .cursor, html.has-cursor .cursor-ring { display: block; }
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem var(--gutter); transition: transform 0.5s var(--ease), background 0.3s, box-shadow 0.3s;
  font-weight: 600; font-size: 0.95rem;
}
.nav.scrolled { background: rgba(247, 248, 250, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.nav-brand { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); align-items: center; }
.nav-links a { opacity: 0.72; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { padding: 0.55rem 1.2rem; background: var(--ink); color: #fff; border-radius: 99px; opacity: 1 !important; transition: background 0.3s !important; }
.nav-cta:hover { background: var(--accent); }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 0 var(--gutter); overflow: clip; }
.hero-name {
  position: absolute; z-index: 1; left: var(--gutter); top: 48%; transform: translateY(-55%); margin: 0;
  font-family: var(--display); font-weight: 600; font-size: clamp(4.4rem, 11.5vw, 12.5rem); line-height: 0.92; letter-spacing: -0.035em; white-space: nowrap;
}
.hero-name .line { display: block; overflow: hidden; padding: 0.05em 0.04em 0.12em; }
.hero-name .line:nth-child(2) { font-style: italic; padding-left: 0.42em; color: var(--accent); }
.hero-name .ch { display: inline-block; will-change: transform; }

.hero-stage { position: absolute; z-index: 2; right: 3vw; bottom: 0; height: min(92svh, 64vw); aspect-ratio: 1086 / 1448; isolation: isolate; pointer-events: none; }
.blob {
  position: absolute; z-index: 0; left: 50%; top: 48%; width: 112%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #a29eff 0%, var(--accent) 58%, var(--accent-deep) 100%);
  box-shadow: 0 50px 90px -40px rgba(43, 34, 201, 0.55);
  --bs: 1;
  transform: translate(-50%, -50%) scale(var(--bs));
}
.portrait { position: absolute; inset: 0; z-index: 2; transform-origin: 50% 70%; will-change: transform; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 28px 26px rgba(20, 16, 90, 0.38)); }
.sheen {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 30%), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 46%);
  -webkit-mask: url("../assets/mohsin.webp") center / contain no-repeat; mask: url("../assets/mohsin.webp") center / contain no-repeat;
}

.orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit .chip {
  position: absolute; left: 0; top: 0; padding: 0.55rem 1.1rem; border-radius: 99px; white-space: nowrap; will-change: transform;
  font-weight: 700; font-size: 0.92rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 14px 28px -14px rgba(24, 22, 90, 0.45);
}
.orbit .chip::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 0.55rem; border-radius: 50%; background: var(--accent); }

.hero-meta { position: absolute; z-index: 4; left: var(--gutter); bottom: clamp(3.5rem, 11svh, 7rem); right: var(--gutter); pointer-events: none; }
.hero-meta > * { width: fit-content; max-width: 100%; }
.hero-role { font-family: var(--text); font-weight: 700; font-size: clamp(1.3rem, 0.9rem + 1.7vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6rem; display: flex; gap: 0.35em; align-items: baseline; }
.role-static { flex: none; white-space: nowrap; }
.role-window { display: inline-block; height: 1.25em; overflow: hidden; vertical-align: bottom; }
.role-track { display: flex; flex-direction: column; color: var(--accent); }
.role-track span { display: block; height: 1.25em; line-height: 1.25em; white-space: nowrap; }
.hero-sub { color: var(--muted); margin: 0; }

.hero-scroll { position: absolute; z-index: 4; left: 50%; bottom: 1.4rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.82rem; color: var(--muted); transform: translateX(-50%); }
.hero-scroll::after { content: ""; width: 1px; height: 2.6rem; background: linear-gradient(var(--accent) 0 40%, transparent 40%) 0 -100% / 100% 250% no-repeat, var(--line); animation: drip 2.2s linear infinite; }
@keyframes drip { to { background-position: 0 100%, 0 0; } }

@media (max-width: 860px) {
  .hero { min-height: auto; display: flex; flex-direction: column; padding-top: 5.5rem; padding-bottom: 0; }
  .hero-name { position: static; transform: none; font-size: clamp(3.6rem, 19.5vw, 10rem); }
  .hero-name .line:nth-child(2) { padding-left: 0.3em; }
  .hero-meta { position: static; margin: 1.2rem 0 0; }
  .hero-stage { position: relative; right: auto; bottom: auto; height: min(62svh, 120vw); margin: 0.5rem auto 0; }
  .hero-scroll { display: none; }
}

/* ---------- Generic sections ---------- */
main > section { position: relative; z-index: 3; }
.about, .panel, .web, .experience, .skills, .contact { padding: clamp(5rem, 14vh, 10rem) var(--gutter); }
.panel-text p { color: var(--muted); margin-top: 1.4rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1rem; padding: 0.95rem 1.7rem;
  background: var(--accent); color: #fff; border-radius: 99px; font-weight: 700; font-size: 1rem;
  box-shadow: 0 14px 30px -14px rgba(67, 56, 255, 0.7); transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.4s var(--ease);
}
.btn:hover { background: var(--accent-deep); box-shadow: 0 18px 38px -14px rgba(67, 56, 255, 0.85); }
.btn.alt { background: transparent; color: var(--ink); border: 1px solid var(--ink); box-shadow: none; }
.btn.alt:hover { background: var(--ink); color: #fff; }
.btn.big { padding: 1.15rem 2.3rem; font-size: 1.1rem; }

/* About */
.about { min-height: 90svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 4rem; background: var(--surface); }
.statement { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 1rem + 3vw, 3.7rem); line-height: 1.14; letter-spacing: -0.02em; max-width: 27ch; }
.statement .w { opacity: 0.18; display: inline-block; transition: opacity 0.4s; }
.statement .w.on { opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem 2.5rem; margin: 0; max-width: 60rem; }
.facts div { border-top: 1px solid var(--line); padding-top: 0.9rem; }
.facts dt { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.2rem; }
.facts dd { margin: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.35; }

/* Ads */
.ads { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; min-height: 100svh; }
.hint { color: var(--accent) !important; font-weight: 700; font-size: 0.95rem; }
.funnel-wrap { position: relative; width: 100%; aspect-ratio: 1 / 1.08; max-height: 82svh; justify-self: center; }
#funnel { width: 100%; height: 100%; display: block; }
.funnel-labels { position: absolute; inset: 0; pointer-events: none; }
.funnel-labels li { position: absolute; left: 0; font-weight: 700; font-size: 1rem; transform: translateY(-50%); }
@media (max-width: 860px) { .ads { grid-template-columns: 1fr; } }

/* Social wall */
.social { overflow: hidden; background: var(--surface); }
.social .panel-text { margin-bottom: clamp(2rem, 6vh, 5rem); }
.wall-stage { perspective: 1500px; padding: 2rem 0 4rem; }
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2.2rem); transform-style: preserve-3d; will-change: transform; max-width: 1100px; margin-inline: auto; }
.post {
  position: relative; transform-style: preserve-3d; padding: 1.1rem; border-radius: 24px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color 0.4s, box-shadow 0.4s;
}
.post:hover { border-color: var(--accent-mid); box-shadow: 0 34px 60px -28px rgba(67, 56, 255, 0.45); }
.post h3 { margin: 1rem 0 0.2rem; }
.post p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.post-art { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; background: var(--accent-soft); overflow: hidden; display: grid; place-items: center; }
@media (max-width: 760px) { .wall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .wall { grid-template-columns: 1fr; } }

.p-reel .play { width: 0; height: 0; border-left: 26px solid var(--accent); border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 8px; animation: pulse 1.8s ease-in-out infinite; }
.p-reel .bar { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 4px; background: rgba(67, 56, 255, 0.18); border-radius: 4px; overflow: hidden; }
.p-reel .bar b { display: block; height: 100%; background: var(--accent); animation: fill 3.2s linear infinite; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0.02); } to { transform: scaleX(1); } }
@keyframes pulse { 50% { transform: scale(1.18); } }

.p-carousel .slides { display: flex; gap: 10px; animation: slide 6s var(--ease) infinite; width: 100%; padding-left: 18%; }
.p-carousel .slides span { flex: 0 0 64%; height: 96px; border-radius: 12px; background: linear-gradient(135deg, #fff, var(--accent-mid)); }
.p-carousel .slides span:nth-child(2) { background: linear-gradient(135deg, #8f8aff, var(--accent)); }
.p-carousel .dots { position: absolute; bottom: 10px; display: flex; gap: 6px; }
.p-carousel .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(67, 56, 255, 0.25); animation: dot 6s infinite; }
.p-carousel .dots i:nth-child(2) { animation-delay: 2s; } .p-carousel .dots i:nth-child(3) { animation-delay: 4s; }
@keyframes slide { 0%, 25% { transform: translateX(0); } 33%, 58% { transform: translateX(-70%); } 66%, 92% { transform: translateX(-140%); } 100% { transform: translateX(0); } }
@keyframes dot { 0%, 30% { background: var(--accent); } 33%, 100% { background: rgba(67, 56, 255, 0.25); } }

.p-story svg { width: 62%; transform: rotate(-90deg); }
.p-story circle { fill: none; stroke-width: 6; }
.p-story .ring-bg { stroke: rgba(67, 56, 255, 0.15); }
.p-story .ring { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 189; animation: ring 4s var(--ease) infinite; }
@keyframes ring { 0% { stroke-dashoffset: 189; } 70%, 100% { stroke-dashoffset: 0; } }

.p-calendar .cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; width: 70%; }
.p-calendar .cal span { aspect-ratio: 1; border-radius: 6px; background: rgba(67, 56, 255, 0.12); animation: tick 5s infinite; }
.p-calendar .cal span:nth-child(3n) { animation-delay: 0.8s; } .p-calendar .cal span:nth-child(4n+1) { animation-delay: 1.6s; } .p-calendar .cal span:nth-child(5n) { animation-delay: 2.4s; }
@keyframes tick { 0%, 55% { background: rgba(67, 56, 255, 0.12); } 60%, 100% { background: var(--accent); } }

.p-reply .post-art { display: grid; align-content: center; gap: 10px; padding: 0 14%; }
.p-reply .bubble { height: 28px; width: 62%; border-radius: 14px 14px 14px 4px; background: #fff; display: flex; gap: 5px; align-items: center; padding-left: 14px; box-shadow: 0 6px 14px -8px rgba(24, 22, 90, 0.4); }
.p-reply .bubble i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: type 1.2s infinite; }
.p-reply .bubble i:nth-child(2) { animation-delay: 0.15s; } .p-reply .bubble i:nth-child(3) { animation-delay: 0.3s; }
.p-reply .bubble.me { width: 46%; margin-left: auto; border-radius: 14px 14px 4px 14px; background: var(--accent); animation: reply 4s infinite; }
@keyframes type { 50% { transform: translateY(-4px); opacity: 0.4; } }
@keyframes reply { 0%, 35% { transform: scale(0.01); } 45%, 100% { transform: scale(1); } }

.p-report .bars { display: flex; align-items: flex-end; gap: 9px; height: 70%; width: 66%; }
.p-report .bars i { flex: 1; background: var(--accent-mid); border-radius: 5px 5px 0 0; animation: grow 3.6s var(--ease) infinite; transform-origin: bottom; }
.p-report .bars i:nth-child(1) { height: 30%; } .p-report .bars i:nth-child(2) { height: 46%; animation-delay: 0.1s; }
.p-report .bars i:nth-child(3) { height: 40%; animation-delay: 0.2s; } .p-report .bars i:nth-child(4) { height: 68%; animation-delay: 0.3s; }
.p-report .bars i:nth-child(5) { height: 100%; background: var(--accent); animation-delay: 0.4s; }
@keyframes grow { 0% { transform: scaleY(0.02); } 40%, 100% { transform: scaleY(1); } }

/* ERP */
.erp { padding: 0; }
.erp-pin { min-height: 100svh; padding: clamp(5rem, 12vh, 8rem) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.erp-board { display: grid; gap: 1.6rem; }
.modules { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.8rem, 1.6vw, 1.4rem); }
.module {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 1rem; padding: clamp(1rem, 2.4vw, 1.7rem); border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: clamp(1rem, 0.9rem + 0.6vw, 1.3rem); will-change: transform;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.module svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.module.locked { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(67, 56, 255, 0.1), var(--shadow); }
.links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.links path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 5 6; }
.live { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; color: var(--muted); margin: 0; transition: color 0.4s; }
.live i { width: 10px; height: 10px; border-radius: 50%; background: #b3b8c8; transition: background 0.4s, box-shadow 0.4s; }
.live.on { color: var(--accent); }
.live.on i { background: var(--accent); box-shadow: 0 0 0 5px rgba(67, 56, 255, 0.18); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.45; } }
@media (max-width: 860px) { .erp-pin { grid-template-columns: 1fr; } }

/* Web */
.web { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; min-height: 100svh; }
.browser-link { display: block; perspective: 1400px; }
.browser {
  border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 50px 90px -40px rgba(24, 22, 90, 0.5); transform-style: preserve-3d; will-change: transform; position: relative; transition: box-shadow 0.5s;
}
.browser-link:hover .browser { box-shadow: 0 50px 90px -34px rgba(67, 56, 255, 0.55); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 0.7rem 1rem; background: #f1f2f7; border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd3e0; }
.browser-bar i:first-child { background: var(--accent); }
.browser-bar span { margin-left: 0.8rem; padding: 0.2rem 1rem; border-radius: 99px; background: #fff; flex: 1; max-width: 18rem; }
.browser-view { height: clamp(260px, 38vw, 480px); overflow: hidden; position: relative; background: #fff; }
.mock { padding: 1.2rem 1.4rem 2.5rem; background: #fff; color: #14201a; min-height: 100%; will-change: transform; }
.m-nav { display: flex; gap: 1.1rem; align-items: center; font-size: 0.78rem; font-weight: 600; margin-bottom: 2.2rem; }
.m-nav b { margin-right: auto; font-size: 0.95rem; }
.m-hero h4 { font-family: var(--display); font-size: clamp(1.8rem, 4.4vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 0.8rem; max-width: 12ch; }
.m-hero p { color: #44524b; font-size: 0.9rem; line-height: 1.45; max-width: 34ch; margin: 0 0 1.1rem; }
.m-btns { display: flex; gap: 0.6rem; margin-bottom: 2.4rem; }
.m-btns i { width: 7rem; height: 2.1rem; border-radius: 99px; background: #14201a; }
.m-btns i + i { background: transparent; border: 1.5px solid #14201a; }
.m-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; margin-bottom: 1.8rem; }
.m-grid span { padding: 1.4rem 0.4rem; border-radius: 10px; background: #f3f4f8; font-size: 0.72rem; font-weight: 700; text-align: center; }
.m-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-bottom: 2rem; }
.m-band i { height: 6.5rem; border-radius: 12px; background: linear-gradient(135deg, var(--accent-soft), var(--accent-mid)); }
.m-band i:nth-child(2) { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }
.m-2 h4 { font-size: clamp(1.3rem, 3vw, 2.1rem); }
.browser-note { margin: 0; padding: 0.7rem 1rem; font-size: 0.88rem; color: var(--muted); text-align: center; max-width: none; background: #f1f2f7; border-top: 1px solid var(--line); }
.browser-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%); background-size: 250% 100%; background-position: var(--gx, 100%) 0; }
@media (max-width: 860px) { .web { grid-template-columns: 1fr; } }

/* Experience */
.experience { overflow: hidden; }
.exp-title { margin-bottom: clamp(3rem, 8vh, 6rem); }
.path { position: relative; max-width: 1000px; margin-inline: auto; display: grid; gap: clamp(3rem, 9vh, 6rem); }
.path-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.path-svg path { fill: none; stroke-width: 2; stroke-linecap: round; }
#pathBg { stroke: var(--line); }
#pathFg { stroke: var(--accent); }
.path-dot { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(67, 56, 255, 0.18), 0 0 24px rgba(67, 56, 255, 0.6); z-index: 2; }
.stop { position: relative; z-index: 1; width: calc(50% - 3rem); padding: 1.4rem 1.6rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0.4; transition: opacity 0.6s var(--ease), border-color 0.6s; }
.stop:nth-child(odd) { margin-left: auto; }
.stop.reached { opacity: 1; border-color: var(--accent-mid); }
.stop time { display: block; color: var(--accent); font-weight: 700; font-size: 0.92rem; margin-bottom: 0.3rem; }
.stop .role { color: var(--muted); font-weight: 600; margin: 0.2rem 0 0.7rem; }
.stop p:last-child { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
@media (max-width: 760px) { .stop { width: calc(100% - 2.2rem); margin-left: 2.2rem !important; } }

/* Skills */
.skills { background: var(--surface); }
.skills-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.skills-head p { color: var(--accent); font-weight: 700; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.9rem; max-width: 1100px; }
.chips li {
  padding: 0.8rem 1.4rem; border-radius: 99px; border: 1px solid var(--line); background: var(--bg);
  font-weight: 700; font-size: clamp(1rem, 0.9rem + 0.6vw, 1.35rem); will-change: transform; transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.chips li:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.edu { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; max-width: 1100px; margin-top: clamp(3rem, 8vh, 6rem); }
.edu > div { border-top: 1px solid var(--line); padding-top: 1rem; }
.edu p { margin: 0.4rem 0 0; color: var(--muted); }

/* Contact */
.contact { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 1.2rem; padding-bottom: 2.5rem; }
.contact-title { font-size: clamp(2.8rem, 1rem + 7.4vw, 9rem); line-height: 0.98; max-width: 13ch; letter-spacing: -0.035em; font-weight: 500; }
.contact-sub { color: var(--muted); font-size: 1.15rem; }
.contact-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.foot { margin-top: clamp(4rem, 12vh, 8rem); width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .loader { display: none; }
}
