@charset "UTF-8";
/* ============================================
   VARIABLES & THEMES
============================================ */
:root {
  --bg: #0C0C0B;
  --bg2: #141413;
  --fg: #EDEDE8;
  --muted: #93938F;
  --border: rgba(237, 237, 232, 0.09);
  --border-hover: rgba(237, 237, 232, 0.38);
  --accent: #FF3D00;
  --accent2: #FF7A5C;
  --radius: 14px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme=light] {
  --bg: #F0EDE5;
  --bg2: #E8E5DD;
  --fg: #0C0C0B;
  --muted: #5B5A57;
  --border: rgba(12, 12, 11, 0.1);
  --border-hover: rgba(12, 12, 11, 0.38);
  --accent: #FF3D00;
  --accent2: #D93300;
}

/* ============================================
   RESET
============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  cursor: none;
  transition: background var(--transition), color var(--transition);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9997;
}
body.is-hovering .cursor-arrow {
  transform: rotate(-12deg) scale(0.92);
}
body.is-hovering .cursor-label {
  background: #FF3D00;
  color: #fff;
  animation: pill-bounce 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
body.is-hovering .cursor-label-dot {
  background: rgba(255, 255, 255, 0.6);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

/* Suppress browser default cursor everywhere so the custom one is always on top */
*,
*::before,
*::after {
  cursor: none !important;
}

/* Touch devices: restore default cursor, hide custom cursor element */
@media (pointer: coarse) {
  *,
  *::before,
  *::after {
    cursor: auto !important;
  }
  body {
    cursor: auto;
  }
  .cursor {
    display: none !important;
  }
}
/* ============================================
   CURSOR - MIRO STYLE
============================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  /* tip of the arrow is the reference point */
  will-change: transform;
  opacity: 0;
}

/* Arrow SVG */
.cursor-arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 26px;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}
.cursor-arrow svg {
  display: block;
}

/* Guest label pill */
.cursor-label {
  position: absolute;
  /* align with tip: offset right of the arrow and slightly below */
  top: 18px;
  left: 16px;
  background: #1A1A19;
  color: #EDEDE8;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px 4px 8px;
  border-radius: 100px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: background 0.25s ease, transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* keep legible in light mode too */
}

.cursor-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF3D00;
  flex-shrink: 0;
}

@keyframes pill-bounce {
  0% {
    transform: scale(1, 1);
  }
  18% {
    transform: scale(1.14, 0.86);
  }
  38% {
    transform: scale(0.93, 1.07);
  }
  58% {
    transform: scale(1.05, 0.96);
  }
  78% {
    transform: scale(0.98, 1.02);
  }
  100% {
    transform: scale(1, 1);
  }
}
#cursorLabelText {
  transition: opacity 0.12s ease;
}

/* ============================================
   PRELOADER
============================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  will-change: transform;
}

.pl-name {
  font-family: "Syne", sans-serif;
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.045em;
  overflow: hidden;
  text-align: center;
}
.pl-name span {
  display: inline-block;
  transform: translateY(110%);
}

.pl-bar-wrap {
  width: 160px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
}

.pl-bar {
  height: 100%;
  width: 0;
  background: var(--fg);
  transition: width 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

/* ============================================
   NAVIGATION
============================================ */
nav {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 200;
  padding: 22px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.45s cubic-bezier(0.4, 0, 0.2, 1), top 0.45s cubic-bezier(0.4, 0, 0.2, 1), left 0.45s cubic-bezier(0.4, 0, 0.2, 1), right 0.45s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.45s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
nav.scrolled {
  top: max(16px, calc(env(safe-area-inset-top, 0px) + 4px));
  left: 22%;
  right: 22%;
  gap: 48px;
  padding: 14px 36px;
  border-radius: 100px;
  background: rgba(12, 12, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
[data-theme=light] nav.scrolled {
  background: rgba(240, 237, 229, 0.85);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.nav-logo {
  font-family: "Syne", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  /* opacity set via gsap.set() in heroIn() */
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
  /* opacity set via gsap.set() in heroIn() */
}

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 0.3s ease;
}
.nav-links a:hover {
  color: var(--fg);
}
.nav-links a:hover::after {
  width: 100%;
}

/* Theme Toggle */
.theme-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 15px;
  cursor: none;
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.theme-btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.theme-btn .t-icon {
  font-size: 14px;
}

/* ============================================
   HERO
============================================ */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 44px max(56px, 56px + env(safe-area-inset-bottom));
  position: relative;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  overflow: hidden;
}
.hero-eyebrow span {
  display: inline-block;
  transform: translateY(110%);
}

.hero-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(72px, 12vw, 176px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin-bottom: 48px;
}
.hero-title .tl {
  overflow: hidden;
  display: block;
}
.hero-title .tl span {
  display: block;
  transform: translateY(110%);
}

.s-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.88;
}
.s-title .tl {
  overflow: hidden;
  display: block;
}
.s-title .tl span {
  display: block;
  transform: translateY(110%);
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.hero-desc {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
  overflow: hidden;
}
.hero-desc .active {
  color: var(--fg);
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
}

/* .hero-desc initial state set via gsap.set() - keeps element visible for LCP before JS runs */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 100px;
  color: var(--muted);
  /* transform + opacity set via gsap.set() in heroIn() */
}
.pill.available {
  border-color: rgba(0, 220, 100, 0.28);
  color: rgba(0, 220, 100, 0.85);
}
[data-theme=light] .pill.available {
  color: #006E2D;
  border-color: rgba(0, 110, 45, 0.35);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 2.2s ease infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
/* Scroll line */
.scroll-hint {
  position: absolute;
  top: 110px;
  right: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
}
.scroll-hint span {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-lr;
}

.sh-line {
  width: 1px;
  height: 64px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.sh-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: shline 2.4s ease infinite;
}

@keyframes shline {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}
/* ============================================
   MARQUEE
============================================ */
.marquee-wrap {
  position: relative;
  overflow: hidden;
  height: 206px;
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.mq-band {
  position: absolute;
  left: -25%;
  width: 150%;
  overflow: hidden;
  white-space: nowrap;
  padding: 13px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  top: 50%;
  transform-origin: center center;
}

.mq-band--pos {
  transform: translateY(calc(-50% - 26px)) rotate(-3deg);
}

.mq-band--neg {
  transform: translateY(calc(-50% + 26px)) rotate(3deg);
}

.marquee-track {
  display: inline-flex;
  animation: mq 60s linear infinite;
}

.mq-rev {
  animation: mq-rev 60s linear infinite;
}

.mq-item {
  font-family: "Syne", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.mq-item::after {
  content: "✳";
  font-size: 14px;
  font-weight: 700;
}

@keyframes mq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes mq-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
/* ============================================
   SECTION COMMON
============================================ */
.s-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
}

.s-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.s-count {
  font-family: "Syne", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-end;
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 15px;
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: none;
}
.cv-btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.cv-btn:hover svg {
  stroke: var(--bg);
  transform: translateX(3px);
}
.cv-btn svg {
  flex-shrink: 0;
  transition: stroke 0.3s ease, transform 0.3s ease;
}

/* ============================================
   WORK
============================================ */
#work {
  padding: 120px 44px;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pcard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: none;
  /* opacity + transform set via gsap.set() in initScroll() */
  transition: border-color 0.4s ease;
}
.pcard:hover {
  border-color: var(--border-hover);
}
.pcard:hover .pcard-bg {
  transform: scale(1.06);
}
.pcard:hover .pcard-img {
  transform: scale(1.06);
}
.pcard:hover .blob {
  opacity: 0.38;
  transform: scale(1.2) rotate(20deg);
}
.pcard:hover .p-arrow {
  background: #fff;
  border-color: #fff;
  transform: rotate(45deg);
}
.pcard:hover .p-arrow svg path {
  stroke: #000;
}
.pcard--wip {
  pointer-events: none;
}
.pcard--wip .p-arrow {
  display: none;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #84CC16;
  background: rgba(132, 204, 22, 0.2);
  border: 1px solid rgba(132, 204, 22, 0.5);
  border-radius: 100px;
  padding: 5px 12px;
}

.live-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #84CC16;
  flex-shrink: 0;
  animation: blink 2.2s ease infinite;
}

.pcard-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
}
.pcard-inner .wip-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 100px;
  padding: 5px 12px;
}

.wip-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F59E0B;
  flex-shrink: 0;
  animation: blink 2.2s ease infinite;
}

.pcard-info {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.pcard-top {
  display: flex;
  align-items: flex-start;
}

.pnum {
  font-size: 48px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
}

.pcard-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 4px 0;
}

.pcompany {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.pname {
  font-family: "syne", sans-serif;
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  /* line-height: 1.08; */
}

.pcard-mid h4{
  font-weight: 400;
  font-size: 16px;
}

.pyear {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0;
}

.pmetrics {
  display: flex;
  gap: 32px;
}

.pmetric {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pm-val {
  font-family: "DM Sans", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
}

.pm-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 130px;
  letter-spacing: 0.01em;
}

/* Card Visual */
.pcard-vis {
  position: relative;
  overflow: hidden;
}

.pcard-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Project gradients */
.p-caixabank .pcard-bg {
  background: linear-gradient(145deg, #000B35 0%, #001F82 55%, #0050FF 100%);
}
.p-caixabank .blob1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -60px;
  background: #3B82F6;
}
.p-caixabank .blob2 {
  width: 200px;
  height: 200px;
  bottom: 20px;
  right: 80px;
  background: #93C5FD;
  opacity: 0.12;
}

.p-gymondo1 .pcard-bg {
  background: linear-gradient(145deg, #001209 0%, #003A16 55%, #006B28 100%);
}
.p-gymondo1 .blob1 {
  width: 300px;
  height: 300px;
  top: -60px;
  right: -50px;
  background: #22C55E;
}
.p-gymondo1 .blob2 {
  width: 180px;
  height: 180px;
  bottom: 40px;
  right: 60px;
  background: #86EFAC;
  opacity: 0.1;
}

.p-gymondo2 .pcard-bg {
  background: linear-gradient(145deg, #1A0400 0%, #4A1000 55%, #7A1E00 100%);
}
.p-gymondo2 .blob1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -70px;
  background: #EF4444;
}
.p-gymondo2 .blob2 {
  width: 200px;
  height: 200px;
  bottom: 30px;
  right: 70px;
  background: #FCA5A5;
  opacity: 0.1;
}

.p-zattoo .pcard-bg {
  background: linear-gradient(145deg, #1A0A00 0%, #4A2000 55%, #CC5500 100%);
}
.p-zattoo .blob1 {
  width: 310px;
  height: 310px;
  top: -70px;
  right: -60px;
  background: #F97316;
}
.p-zattoo .blob2 {
  width: 190px;
  height: 190px;
  bottom: 40px;
  right: 80px;
  background: #FED7AA;
  opacity: 0.1;
}

.p-nt-onboarding .pcard-bg {
  background: linear-gradient(145deg, #1A0500 0%, #7A2800 55%, #D44A0A 100%);
}
.p-nt-onboarding .blob1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -60px;
  background: #FF6B35;
}
.p-nt-onboarding .blob2 {
  width: 200px;
  height: 200px;
  bottom: 30px;
  right: 70px;
  background: #FDBA74;
  opacity: 0.1;
}

.p-nt-quests .pcard-bg {
  background: linear-gradient(145deg, #001A0A 0%, #004A20 55%, #00A854 100%);
}
.p-nt-quests .blob1 {
  width: 300px;
  height: 300px;
  top: -60px;
  right: -50px;
  background: #00C96B;
}
.p-nt-quests .blob2 {
  width: 180px;
  height: 180px;
  bottom: 40px;
  right: 60px;
  background: #6EE7B7;
  opacity: 0.1;
}

.p-nt-referral .pcard-bg {
  background: linear-gradient(145deg, #001209 0%, #003D1A 55%, #00C96B 100%);
}
.p-nt-referral .blob1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -70px;
  background: #00C96B;
}
.p-nt-referral .blob2 {
  width: 200px;
  height: 200px;
  bottom: 30px;
  right: 70px;
  background: #6EE7B7;
  opacity: 0.1;
}

.p-other-work .pcard-bg {
  background: linear-gradient(145deg, #07000E 0%, #190040 55%, #3D0082 100%);
}
.p-other-work .blob1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -70px;
  background: #7C3AED;
}
.p-other-work .blob2 {
  width: 200px;
  height: 200px;
  bottom: 30px;
  right: 70px;
  background: #C4B5FD;
  opacity: 0.1;
}

.pcard-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.pcard-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 2;
}

/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.22;
  filter: blur(0px);
  transition: transform 0.9s ease, opacity 0.9s ease;
}

/* Corner arrow */
.p-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

/* ============================================
   ABOUT
============================================ */
#about {
  padding: 120px 44px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  margin-top: 80px;
}

.about-bio p {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.62;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 24px;
}
.about-bio p:last-child {
  margin-bottom: 0;
}
.about-bio strong {
  font-weight: 600;
  color: var(--fg);
}
.about-bio em {
  font-style: normal;
  color: var(--accent);
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.detail-h {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 600;
  opacity: 0.7;
}

.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.ei-l {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ei-co {
  font-family: "Syne", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ei-role {
  font-size: 14px;
  color: var(--muted);
}

.ei-yr {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* .pdf-strip and .about-bio .cv-btn initial states set via gsap.set() - see initScroll() */
.awards-list {
  display: flex;
  flex-direction: column;
}

.award-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.aw-l {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.aw-title {
  font-family: "Syne", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.aw-issuer {
  font-size: 14px;
  color: var(--muted);
}

.aw-yr {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Skills row */
.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-pill {
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
}

.skill-chai{
    border: 1.25px solid #888888;
    color: #888888;
}

/* ============================================
   Testimonials
============================================ */
#testimonials {
  padding: 120px 44px;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.rec-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.4s ease;
}
.rec-card:hover {
  border-color: var(--border-hover);
}

.rec-quote-mark {
  font-family: "Syne", sans-serif;
  font-size: 64px;
  line-height: 0.7;
  color: var(--border-hover);
  font-weight: 800;
  user-select: none;
}

.rec-text {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.72;
  color: var(--muted);
  font-weight: 300;
  font-style: italic;
  flex: 1;
}

.rec-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.rec-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  flex-shrink: 0;
}

.rec-author-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.rec-name {
  font-family: "Syne", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rec-role {
  font-size: 13px;
  color: var(--muted);
}

.rec-relation {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
  margin-top: 2px;
}

.rec-linkedin-icon {
  color: var(--muted);
  opacity: 0.35;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}
.rec-card:hover .rec-linkedin-icon {
  opacity: 0.65;
}
.rec-kw {
  color: var(--fg);
  font-weight: 600;
  background: none;
  font-style: normal;
}

/* ============================================
   CONTACT
============================================ */
#contact {
  padding: 120px 44px 80px;
}

.contact-headline {
  font-family: "Syne", sans-serif;
  font-size: clamp(52px, 9vw, 130px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.88;
  margin: 56px 0 72px;
  overflow: hidden;
}
.contact-headline .tl {
  overflow: hidden;
  display: block;
}
.contact-headline .tl span {
  display: block;
}
.contact-headline a {
  position: relative;
  display: inline-block;
  transition: color 0.3s;
}
.contact-headline a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--accent);
  transition: width 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.contact-headline a:hover {
  color: var(--accent);
}
.contact-headline a:hover::after {
  width: 100%;
}

.contact-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 36px;
}

.cf-left {
  display: flex;
  flex-direction: column;
}
.cf-left p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.cf-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cf-email-row:hover .copy-btn {
  opacity: 1;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 2px;
  cursor: none;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.copy-btn:hover {
  color: var(--fg);
}
.copy-btn.copied {
  color: #00C96B;
  opacity: 1;
}

.cf-right {
  display: flex;
  gap: 24px;
}
.cf-right a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.cf-right a:hover {
  color: var(--fg);
}

.copy {
  font-size: 14px;
  color: var(--muted);
  margin-top: 32px;
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ============================================
   UTILITIES
============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  nav {
    padding: 18px 24px;
  }
  nav.scrolled {
    top: max(12px, calc(env(safe-area-inset-top, 0px) + 4px));
    left: 16px;
    right: 16px;
    padding: 12px 20px;
  }
  #hero {
    padding: 0 24px max(40px, 40px + env(safe-area-inset-bottom));
  }
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-right {
    align-items: flex-start;
  }
  .scroll-hint {
    top: 110px;
    bottom: 56px;
  }
  #work,
  #testimonials,
  #about,
  #contact {
    padding: 80px 24px;
  }
  .rec-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
  .s-header {
    margin-bottom: 40px;
  }
  .pcard-inner {
    grid-template-columns: 1fr;
  }
  .pcard-vis {
    height: 220px;
    order: -1;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 48px;
  }
  .contact-footer {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: 10vw;
    hyphens: manual;
    overflow-wrap: break-word;
  }
  .s-title {
    font-size: clamp(28px, 8vw, 44px);
  }
  .s-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .pname {
    font-size: 7vw;
  }
  .pcard-info {
    padding: 28px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  /* .marquee-track intentionally excluded: it displays content (skills/roles),
     not decoration, so it keeps scrolling regardless of motion preference */
  /* .sh-line::after intentionally excluded: it's a visible UI element,
     keep animating regardless of motion preference */
  /* .pill-dot intentionally excluded: it's a functional availability
     indicator, not decorative, so it keeps blinking regardless */
  .wip-badge-dot {
    animation: none;
  }
  /* Immediately reveal all clip-reveal text so nothing stays hidden */
  .tl span,
  .hero-eyebrow span,
  .pl-name span,
  .contact-headline .tl span {
    transform: none !important;
    transition: none !important;
  }
  /* Skip preloader entirely: GSAP won't run the exit animation */
  #preloader {
    display: none !important;
  }
  /* Ensure GSAP-hidden elements are visible even if JS exits early */
  .nav-logo,
  .nav-right,
  .hero-desc,
  .scroll-hint,
  .pill,
  .pcard,
  .pdf-strip,
  .about-bio .cv-btn,
  .rec-card,
  .about-side > div,
  .about-bio p {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   CV PAGE
============================================ */

/* Restore browser cursor: no custom cursor on the CV page */
body.cv,
body.cv *,
body.cv *::before,
body.cv *::after {
  cursor: auto !important;
}
body.cv a,
body.cv button {
  cursor: pointer !important;
}

/* Top bar */
.cv-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  gap: 16px;
}
.cv-topbar-left { display: flex; align-items: center; gap: 20px; }
.cv-topbar-right { display: flex; align-items: center; gap: 12px; }

.cv-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
}
.cv-back:hover { color: var(--fg); border-color: var(--border-hover); }
.cv-back svg { flex-shrink: 0; }

.cv-page-title {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* Icon-only circle theme toggle (CV page variant) */
.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--border-hover); }
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

.cv-download-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  transition: opacity 0.2s, transform 0.2s;
}
.cv-download-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* Page wrapper */
.cv-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 48px 120px;
}

/* Header */
.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
}
.cv-name {
  font-family: "Syne", sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.cv-name span { color: var(--fg); }
.cv-title-line {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 8px;
}
.cv-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  text-align: right;
}
.cv-contact-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.cv-contact-item:hover { color: var(--fg); }
.cv-contact-item svg { color: var(--muted); flex-shrink: 0; }

/* Section */
.cv-section { margin-bottom: 48px; }
.cv-section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cv-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Bio */
.cv-bio {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 680px;
}
.cv-bio strong { color: var(--fg); font-weight: 600; }

/* Experience */
.cv-exp-list { display: flex; flex-direction: column; gap: 32px; }
.cv-exp-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; }
.cv-exp-co   { font-size: 16px; font-weight: 700; color: var(--fg); grid-column: 1; grid-row: 1; }
.cv-exp-role { font-size: 13px; color: var(--fg); font-weight: 500; grid-column: 1; grid-row: 2; margin-top: 2px; opacity: 0.75; }
.cv-exp-yr   { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; grid-column: 2; grid-row: 1; white-space: nowrap; margin-top: 3px; text-align: right; }
.cv-exp-desc { font-size: 14px; color: var(--muted); line-height: 1.65; margin-top: 10px; grid-column: 1 / -1; max-width: 640px; }
/* Pills container: reuses .tag for each pill */
.cv-exp-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; grid-column: 1 / -1; }

/* Skills: container reuses .skills-row; tag has solid bg variant */
.cv-skill-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  transition: border-color 0.2s;
}
.cv-skill-tag:hover { border-color: var(--border-hover); }

/* Tech Stack */
.cv-stack-grid {
  display: flex;
  flex-direction: column;
}
.cv-stack-group {
  display: grid;
  grid-template-columns: 148px 1fr;
  align-items: start;
  gap: 0 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cv-stack-group:last-child { border-bottom: none; padding-bottom: 0; }
.cv-stack-category {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.65;
  padding-top: 7px; /* optically align with pill cap height */
}
.cv-stack-group .skills-row { gap: 6px; }

/* Awards: reuses .awards-list / .award-item / .aw-l / .aw-issuer / .aw-yr */
.cv-award-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}

/* Education */
.cv-edu-item   { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; }
.cv-edu-school { grid-column: 1; grid-row: 1; font-size: 15px; font-weight: 700; color: var(--fg); }
.cv-edu-yr     { grid-column: 2; grid-row: 1; font-size: 12px; color: var(--muted); white-space: nowrap; text-align: right; margin-top: 3px; }
.cv-edu-degree { grid-column: 1 / -1; grid-row: 2; font-size: 13px; color: var(--muted); margin-top: 2px; }
.cv-edu-univ   { grid-column: 1 / -1; grid-row: 3; font-size: 12px; color: var(--muted); opacity: 0.7; margin-top: 3px; }

.cv-divider { height: 1px; background: var(--border); margin: 48px 0; }

.cv-footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* CV Responsive */
@media (max-width: 640px) {
  .cv-topbar  { padding: 14px 20px; }
  .cv-page    { padding: 40px 20px 80px; }
  .cv-header  { flex-direction: column; gap: 24px; }
  .cv-contact { align-items: flex-start; text-align: left; }
  .cv-exp-item { grid-template-columns: 1fr; }
  .cv-exp-yr  { grid-column: 1; grid-row: 3; margin-top: 4px; text-align: left; }
  .cv-page-title { display: none; }
  .cv-stack-group { grid-template-columns: 1fr; gap: 8px; }
  .cv-stack-category { padding-top: 0; opacity: 0.5; }
}

/* Print */
@media print {
  .cv-topbar, .cv-download-btn, .theme-toggle { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .cv-page { padding: 0; max-width: 100%; }
  .cv-name, .cv-exp-co, .cv-edu-school, .cv-award-title { color: #000; }
  .cv-bio, .cv-exp-desc, .cv-exp-yr, .aw-yr, .aw-issuer,
  .cv-edu-yr, .cv-edu-degree, .cv-edu-univ, .cv-title-line { color: #444; }
  .cv-section-label { color: #888; }
  .cv-exp-role { color: #333; opacity: 1; }
  .cv-skill-tag { background: #f4f4f4 !important; border-color: #ddd; color: #000; }
  .tag { background: #f4f4f4 !important; border-color: #ddd; color: #444; }
  .cv-section-label::after, .award-item { border-color: #ddd; }
  .cv-header, .cv-footer { border-color: #ddd; }
  a[href]::after { content: none !important; }
}
