/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  /* Palette */
  --bg:          #F5F2ED;       /* warm off-white — not clinical */
  --bg-card:     #FDFCF9;
  --ink:         #0D0D0D;       /* near-black */
  --ink-2:       #3A3A3A;
  --muted:       #7A7770;
  --rule:        #DDD9D2;
  --accent:      #0057FF;       /* electric blue — the ONLY color accent */
  --accent-dark: #0048D9;       /* ~15% darker for hover feedback */
  --accent-dim:  rgba(0,87,255,.10);

  /* Neo-brutalist shadow (buttons only) */
  --brut-shadow: 3px 3px 0px var(--ink);
  --brut-shadow-hover: 1px 1px 0px var(--ink);

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --max: 1020px;
  --nav-h: 70px;

  /* Motion + glass */
  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(.2,.9,.2,1);
  --glass-fill: rgba(255,255,255,.44);
  --glass-fill-hover: rgba(255,255,255,.62);
  --glass-border: rgba(255,255,255,.68);
  --glass-shadow: 0 1px 0 rgba(255,255,255,.86) inset, 0 14px 34px rgba(13,13,13,.08);
  --glass-shadow-hover: 0 1px 0 rgba(255,255,255,.92) inset, 0 20px 44px rgba(13,13,13,.13);
}

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */
@keyframes navEntrance {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contentEntrance {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(13,13,13,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,13,13,.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.34) 0%, rgba(245,242,237,0) 52%);
  background-size: 52px 52px, 52px 52px, 100% 100%;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9) 0%, rgba(0,0,0,.72) 44%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9) 0%, rgba(0,0,0,.72) 44%, transparent 100%);
}

main {
  position: relative;
  z-index: 1;
}

/* Subtle paper grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .028;
  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");
  background-repeat: repeat;
}


a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ─────────────────────────────────────────────
   NAV — Apple Liquid Glass pill
───────────────────────────────────────────── */
.nav-wrap {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  animation: navEntrance 0.58s var(--ease-ios) forwards;

  /* Liquid glass layers */
  background:
    linear-gradient(135deg,
      rgba(255,255,255,0.72) 0%,
      rgba(245,242,237,0.52) 100%
    );
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);

  /* Specular highlight on top edge */
  box-shadow:
    0 1px 0 rgba(255,255,255,0.90) inset,
    0 -1px 0 rgba(0,0,0,0.06) inset,
    0 8px 32px rgba(0,0,0,0.10),
    0 2px 8px  rgba(0,0,0,0.06);
  transition: transform 0.32s var(--ease-ios), box-shadow 0.32s var(--ease-ios), background 0.32s var(--ease-ios);
}

.nav-pill:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.90) inset,
    0 -1px 0 rgba(0,0,0,0.06) inset,
    0 12px 40px rgba(0,0,0,0.15),
    0 4px 12px rgba(0,0,0,0.08);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  padding: 7px 14px;
  border-radius: 999px;
  transition: background-color 0.24s var(--ease-ios), color 0.24s var(--ease-ios), transform 0.24s var(--ease-ios);
}
.nav-link:hover {
  background: rgba(0,0,0,0.06);
  color: var(--ink);
  transform: scale(1.05);
}
.nav-link.active {
  color: var(--ink);
  font-weight: 500;
  background: rgba(0,0,0,0.07);
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
  background-color: var(--accent);
  border: none;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0,87,255,.22);
  transition: background-color 0.24s var(--ease-ios), transform 0.24s var(--ease-ios), box-shadow 0.24s var(--ease-ios);
  flex-shrink: 0;
}
.nav-cta:hover {
  background-color: var(--accent-dark);
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 16px 34px rgba(0,87,255,.28);
}

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  gap: 32px;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-avatar {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 26px;
  opacity: 0;
  transform: translateY(14px) scale(.96);
  animation: heroFloatIn 0.75s 0.04s cubic-bezier(.2,.9,.2,1) forwards;
}

.hero-avatar::before {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0,87,255,.16) 0%, rgba(0,87,255,.06) 38%, transparent 68%);
  filter: blur(10px);
  opacity: .72;
  animation: heroAura 4s ease-in-out infinite;
}

.hero-avatar-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background:
    conic-gradient(from 90deg, rgba(0,87,255,.28), rgba(255,255,255,.72), rgba(13,13,13,.08), rgba(0,87,255,.28));
  animation: heroRingSpin 9s linear infinite;
  box-shadow: 0 18px 42px rgba(13,13,13,.12);
}

.hero-avatar-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg);
}

.hero-avatar img,
.hero-avatar video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.72);
  box-shadow:
    0 1px 0 rgba(255,255,255,.92) inset,
    0 20px 60px rgba(13,13,13,.16);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 999px;
  background: rgba(255,255,255,.46);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.86) inset,
    0 12px 32px rgba(13,13,13,.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.58s 0.12s var(--ease-ios) forwards;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 0 4px rgba(52,199,89,.18);
  animation: heroStatusPulse 2.4s ease-in-out infinite;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 28px;
  text-shadow: 0 0 400px rgba(0, 0, 0, 0.4);

  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.58s var(--entry-delay, 0.1s) var(--ease-ios) forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 148px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 28px;
  text-shadow: 0 0 400px rgba(0, 0, 0, 0.4);

  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.68s 0.18s var(--ease-ios) forwards;
}

.hero-line {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  color: white;
  max-width: 46ch;
  line-height: 1.55;
  margin: 0 auto;
  text-shadow: 0 0 400px rgba(0, 0, 0, 0.4);

  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.58s 0.30s var(--ease-ios) forwards;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.58s 0.42s var(--ease-ios) forwards;
}

.hero-actions .btn-primary,
.hero-actions .btn-ghost {
  border-radius: 999px;
  padding: 12px 24px;
  text-decoration: none;
}

.hero-actions .btn-primary {
  box-shadow:
    0 1px 0 rgba(255,255,255,.22) inset,
    0 16px 34px rgba(13,13,13,.16);
  transform: none;
  transition: transform .24s var(--ease-ios), box-shadow .24s var(--ease-ios), background-color .24s var(--ease-ios);
}

.hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.22) inset,
    0 22px 44px rgba(13,13,13,.20);
}

.hero-actions .btn-ghost {
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 14px 34px rgba(13,13,13,.08);
  color: var(--ink);
  transition: transform .24s var(--ease-ios), background .24s var(--ease-ios), color .24s var(--ease-ios);
}

.hero-actions .btn-ghost:hover {
  color: var(--accent);
  background: rgba(255,255,255,.62);
  transform: translateY(-2px);
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 56px;

  opacity: 0;
  animation: fadeUp 0.58s 0.52s var(--ease-ios) forwards;
}

.scroll-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-line {
  width: 48px;
  height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scanLine 1.8s 1s ease-in-out infinite;
}

/* ─────────────────────────────────────────────
   HERO BG VIDEO
───────────────────────────────────────────── */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  display: block;
  transition: opacity 1.2s ease;
}

.hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(248,248,250,0.18) 0%,
    rgba(248,248,250,0.42) 70%,
    rgba(248,248,250,1) 100%
  );
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero > .hero-video-bg {
  position: absolute;
  z-index: 0;
}

/* ─────────────────────────────────────────────
   SECTION COMMONS
───────────────────────────────────────────── */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.section-heading em {
  font-style: italic;
  color: var(--accent);
}

/* ─────────────────────────────────────────────
   ABOUT
───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.about-body {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 40px;
}

/* ─────────────────────────────────────────────
   PROJECTS / APPLE PHOTO STACK
───────────────────────────────────────────── */
#projects {
  padding: 80px 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.62s var(--ease-ios) forwards;
}

/* ─── SINGLE FOLDER FAN ───────────────────────── */
.single-folder-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 120px 0 80px;
}

.single-folder {
  position: relative;
  width: 110px;
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
}

.sf-icon {
  position: relative;
  z-index: 10;
  width: 110px;
  height: auto;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 6px 20px rgba(58, 123, 213, 0.30));
}

.single-folder.is-open .sf-icon {
  transform: scale(1.08) translateY(-6px);
}

.sf-cards-ring {
  position: absolute;
  bottom: 52%;
  left: 50%;
  width: 0;
  height: 0;
  z-index: 5;
  pointer-events: none;
}

.sf-card {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 11px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 22px rgba(0,0,0,0.13);
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.25) rotate(0deg);
  transition:
    opacity   0.44s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.50s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: none;
  will-change: transform, opacity;
  cursor: pointer;
  pointer-events: none;
}

.sf-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-card-lbl {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  padding: 3px 4px;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
}

.sf-c1 { transition-delay: 0s;    }
.sf-c2 { transition-delay: 0.05s; }
.sf-c3 { transition-delay: 0.09s; }
.sf-c4 { transition-delay: 0.13s; }
.sf-c5 { transition-delay: 0.17s; }

.single-folder.is-open .sf-card {
  pointer-events: auto;
}

@keyframes sf-bob-1 {
  0%, 100% { transform: translate(calc(-50% - 120px), calc(-50% - 20px))  rotate(-24deg) scale(1)    translateY(0px);   }
  50%       { transform: translate(calc(-50% - 120px), calc(-50% - 28px))  rotate(-22deg) scale(1)    translateY(0px);   }
}
@keyframes sf-bob-2 {
  0%, 100% { transform: translate(calc(-50% - 62px),  calc(-50% - 106px)) rotate(-11deg) scale(1)    translateY(0px);   }
  50%       { transform: translate(calc(-50% - 62px),  calc(-50% - 115px)) rotate(-9deg)  scale(1)    translateY(0px);   }
}
@keyframes sf-bob-3 {
  0%, 100% { transform: translate(-50%,               calc(-50% - 128px)) rotate(0deg)   scale(1.06) translateY(0px);   }
  50%       { transform: translate(-50%,               calc(-50% - 138px)) rotate(1deg)   scale(1.06) translateY(0px);   }
}
@keyframes sf-bob-4 {
  0%, 100% { transform: translate(calc(-50% + 62px),  calc(-50% - 106px)) rotate(11deg)  scale(1)    translateY(0px);   }
  50%       { transform: translate(calc(-50% + 62px),  calc(-50% - 115px)) rotate(9deg)   scale(1)    translateY(0px);   }
}
@keyframes sf-bob-5 {
  0%, 100% { transform: translate(calc(-50% + 120px), calc(-50% - 20px))  rotate(24deg)  scale(1)    translateY(0px);   }
  50%       { transform: translate(calc(-50% + 120px), calc(-50% - 28px))  rotate(22deg)  scale(1)    translateY(0px);   }
}

.single-folder.is-open .sf-c1 {
  opacity: 1;
  transform: translate(calc(-50% - 120px), calc(-50% - 20px)) rotate(-24deg) scale(1);
  animation: sf-bob-1 2.8s ease-in-out 0.5s infinite;
}
.single-folder.is-open .sf-c2 {
  opacity: 1;
  transform: translate(calc(-50% - 62px), calc(-50% - 106px)) rotate(-11deg) scale(1);
  animation: sf-bob-2 3.1s ease-in-out 0.55s infinite;
}
.single-folder.is-open .sf-c3 {
  opacity: 1;
  transform: translate(-50%, calc(-50% - 128px)) rotate(0deg) scale(1.06);
  animation: sf-bob-3 2.6s ease-in-out 0.48s infinite;
}
.single-folder.is-open .sf-c4 {
  opacity: 1;
  transform: translate(calc(-50% + 62px), calc(-50% - 106px)) rotate(11deg) scale(1);
  animation: sf-bob-4 3.3s ease-in-out 0.6s infinite;
}
.single-folder.is-open .sf-c5 {
  opacity: 1;
  transform: translate(calc(-50% + 120px), calc(-50% - 20px)) rotate(24deg) scale(1);
  animation: sf-bob-5 2.9s ease-in-out 0.52s infinite;
}

@keyframes sf-close-1 {
  0%   { opacity: 1; transform: translate(calc(-50% - 120px), calc(-50% - 20px))  rotate(-24deg) scale(1);    }
  60%  { opacity: 0.6; transform: translate(calc(-50% - 40px),  calc(-50% - 8px))   rotate(-8deg)  scale(0.7);  }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0.2);                                  }
}
@keyframes sf-close-2 {
  0%   { opacity: 1; transform: translate(calc(-50% - 62px),  calc(-50% - 106px)) rotate(-11deg) scale(1);    }
  60%  { opacity: 0.6; transform: translate(calc(-50% - 22px),  calc(-50% - 40px))  rotate(-5deg)  scale(0.7);  }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0.2);                                  }
}
@keyframes sf-close-3 {
  0%   { opacity: 1; transform: translate(-50%,               calc(-50% - 128px)) rotate(0deg)   scale(1.06); }
  60%  { opacity: 0.6; transform: translate(-50%,               calc(-50% - 48px))  rotate(0deg)   scale(0.7);  }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0.2);                                  }
}
@keyframes sf-close-4 {
  0%   { opacity: 1; transform: translate(calc(-50% + 62px),  calc(-50% - 106px)) rotate(11deg)  scale(1);    }
  60%  { opacity: 0.6; transform: translate(calc(-50% + 22px),  calc(-50% - 40px))  rotate(5deg)   scale(0.7);  }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0.2);                                  }
}
@keyframes sf-close-5 {
  0%   { opacity: 1; transform: translate(calc(-50% + 120px), calc(-50% - 20px))  rotate(24deg)  scale(1);    }
  60%  { opacity: 0.6; transform: translate(calc(-50% + 40px),  calc(-50% - 8px))   rotate(8deg)   scale(0.7);  }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0.2);                                  }
}

.single-folder.is-closing .sf-c1 {
  pointer-events: none;
  animation: sf-close-1 0.48s cubic-bezier(0.4, 0, 0.6, 1) forwards !important;
}
.single-folder.is-closing .sf-c2 {
  pointer-events: none;
  animation: sf-close-2 0.44s cubic-bezier(0.4, 0, 0.6, 1) 0.03s forwards !important;
}
.single-folder.is-closing .sf-c3 {
  pointer-events: none;
  animation: sf-close-3 0.42s cubic-bezier(0.4, 0, 0.6, 1) 0.05s forwards !important;
}
.single-folder.is-closing .sf-c4 {
  pointer-events: none;
  animation: sf-close-4 0.44s cubic-bezier(0.4, 0, 0.6, 1) 0.03s forwards !important;
}
.single-folder.is-closing .sf-c5 {
  pointer-events: none;
  animation: sf-close-5 0.48s cubic-bezier(0.4, 0, 0.6, 1) forwards !important;
}

.single-folder.is-closing .sf-icon {
  transform: scale(1) translateY(0px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─────────────────────────────────────────────
   FEATURED WORK (Samad-like cards)
───────────────────────────────────────────── */
.fw-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.fw-card {
  grid-column: span 3;
  border-radius: 18px;
  border: 1px solid rgba(69, 90, 107, 0.30);
  background: linear-gradient(180deg, rgba(17, 18, 20, 0.62), rgba(17, 18, 20, 0.36));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  position: relative;

  transform: translateY(10px);
  opacity: 0;
  transition:
    transform 0.30s cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 0.30s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  will-change: transform, opacity;
}

.fw-card.in {
  transform: translateY(0);
  opacity: 1;
}

.fw-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: radial-gradient(600px 200px at 30% 0%, rgba(52, 164, 223, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.fw-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 197, 241, 0.42);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62), 0 0 40px rgba(52, 164, 223, 0.10);
}

.fw-card:hover::before {
  opacity: 1;
}

.fw-thumb {
  height: 150px;
  background: rgba(9, 16, 26, 0.35);
  border-bottom: 1px solid rgba(69, 90, 107, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fw-body {
  padding: 14px;
}

.fw-kind {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(178, 184, 186, 0.92);
  margin-bottom: 10px;
}

.fw-title {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.fw-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 1080px) {
  .fw-card {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  .fw-card {
    grid-column: span 12;
  }

  .fw-thumb {
    height: 180px;
  }
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */

.btn-brutalist {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  padding: 10px 17px;
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--glass-shadow);
  transition:
    background-color 0.24s var(--ease-ios),
    box-shadow 0.24s var(--ease-ios),
    color 0.24s var(--ease-ios),
    transform 0.24s var(--ease-ios);
  white-space: nowrap;
}
.btn-brutalist:hover {
  color: var(--accent);
  background: var(--glass-fill-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-2px);
}

/* Primary CTA */
.btn-primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  border: 1px solid rgba(13,13,13,.08);
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 16px 34px rgba(13,13,13,.16);
  transition:
    background-color 0.24s var(--ease-ios),
    box-shadow 0.24s var(--ease-ios),
    transform 0.24s var(--ease-ios);
}
.btn-primary:hover {
  background: #1A1A1A;
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 22px 44px rgba(13,13,13,.20);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 10px 17px;
  background: var(--glass-fill);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--glass-shadow);
  transition:
    background-color 0.24s var(--ease-ios),
    box-shadow 0.24s var(--ease-ios),
    color 0.24s var(--ease-ios),
    transform 0.24s var(--ease-ios);
}
.btn-ghost:hover {
  color: var(--accent);
  background: var(--glass-fill-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   SKILL TAGS
───────────────────────────────────────────── */
.skill-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.58);
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

/* ─────────────────────────────────────────────
   SKILLS STRIP
───────────────────────────────────────────── */
.skills-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
  overflow: hidden;
}

.skills-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.skills-inner .dot { color: var(--rule); user-select: none; }

/* ─────────────────────────────────────────────
   CTA BAND
───────────────────────────────────────────── */
.cta-band {
  padding: 100px 0;
  border-top: 1px solid var(--rule);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* ─────────────────────────────────────────────
   PAGE HERO (inner pages)
───────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 70px) 0 60px;
  border-bottom: 1px solid var(--rule);
}

.page-hero .section-tag {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.58s 0.1s var(--ease-ios) forwards;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 12px 0 20px;
  
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.68s var(--entry-delay, 0.2s) var(--ease-ios) forwards;
}
.page-title em { font-style: italic; color: var(--accent); }

.page-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.65;
  
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.58s var(--entry-delay, 0.3s) var(--ease-ios) forwards;
}

/* ─────────────────────────────────────────────
   WORK PAGE
───────────────────────────────────────────── */
.work-block {
  padding: 48px 0;
}

.work-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.work-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 250px;
}

.work-role-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.work-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.work-period {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 6px;
  text-align: right;
}

.work-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 66ch;
  margin-bottom: 28px;
}

.work-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.proof-thumb {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.62);
  cursor: pointer;
  background: rgba(255,255,255,.24);
  padding: 0;
  box-shadow:
    0 1px 0 rgba(255,255,255,.72) inset,
    0 16px 34px rgba(13,13,13,.08);
  transition: border-color 0.24s var(--ease-ios), box-shadow 0.24s var(--ease-ios), transform 0.24s var(--ease-ios);
}
.proof-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.34s var(--ease-ios), filter 0.34s var(--ease-ios);
}
.proof-thumb:hover {
  border-color: rgba(0,87,255,.28);
  box-shadow:
    0 1px 0 rgba(255,255,255,.82) inset,
    0 22px 44px rgba(13,13,13,.13);
  transform: translateY(-3px);
}
.proof-thumb:hover img {
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.035);
}

.proof-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,13,13,0.42);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.24s var(--ease-ios);
}
.proof-thumb:hover .proof-label { opacity: 1; }

.work-tags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 230px;
  justify-content: flex-end;
  min-height: 28px;
  transition: max-width 0.48s cubic-bezier(.16,1,.3,1);
}

.work-tags .skill-tag {
  white-space: nowrap;
}

.work-tags .tag-more {
  opacity: 0.68;
  filter: blur(2.8px);
  transform: translateX(8px);
  max-width: 0;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
  border-color: transparent;
  transition: opacity 0.42s cubic-bezier(.16,1,.3,1), filter 0.42s cubic-bezier(.16,1,.3,1), transform 0.42s cubic-bezier(.16,1,.3,1), max-width 0.48s cubic-bezier(.16,1,.3,1), padding 0.42s cubic-bezier(.16,1,.3,1), border-color 0.42s cubic-bezier(.16,1,.3,1);
}

.tag-overflow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition: opacity 0.3s cubic-bezier(.16,1,.3,1), transform 0.3s cubic-bezier(.16,1,.3,1);
}

.work-side:hover .work-tags {
  max-width: 560px;
}

.work-side:hover .work-tags .tag-more {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
  max-width: 180px;
  padding-left: 10px;
  padding-right: 10px;
  border-color: var(--rule);
}

.work-side:hover .tag-overflow {
  opacity: 0;
  transform: translateX(4px);
}

.work-link-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.work-icon-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--glass-fill);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--glass-shadow);
  transition: border-color 0.24s var(--ease-ios), transform 0.24s var(--ease-ios), color 0.24s var(--ease-ios), background-color 0.24s var(--ease-ios), box-shadow 0.24s var(--ease-ios);
}

.work-icon-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.work-icon-link:hover {
  border-color: rgba(0,87,255,.28);
  color: var(--accent);
  background: var(--glass-fill-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-2px);
}

.work-icon-x {
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.content-vault-note {
  font-size: 13px;
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.content-card {
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 20px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.52), rgba(253,252,249,.30));
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.82) inset,
    0 18px 44px rgba(13,13,13,.08);
}

.content-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.content-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}

.content-type {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.content-card p {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.content-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─────────────────────────────────────────────
   CONTACT PAGE
───────────────────────────────────────────── */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.52), rgba(253,252,249,.30));
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.82) inset,
    0 16px 42px rgba(13,13,13,.07);
  transition:
    transform 0.24s var(--ease-ios),
    border-color 0.24s var(--ease-ios),
    box-shadow 0.24s var(--ease-ios),
    background 0.24s var(--ease-ios);
  position: relative;
  overflow: hidden;
}
.contact-card:last-child { border-bottom: 1px solid rgba(255,255,255,.64); }
.contact-card:hover .contact-arrow { color: var(--accent); transform: translateX(4px); }

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.88);
  background:
    linear-gradient(145deg, rgba(255,255,255,.66), rgba(253,252,249,.42));
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 22px 54px rgba(13,13,13,.12);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: var(--ink);
  background: var(--glass-fill);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--glass-shadow);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.contact-platform {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-handle {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.contact-arrow {
  font-size: 20px;
  color: var(--muted);
  transition: color 0.24s var(--ease-ios), transform 0.24s var(--ease-ios);
}

/* HIRE CHAT MODAL */
.hire-chat-open { overflow: hidden; }
.hire-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  padding: 20px;
  background: rgba(13,13,13,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}
.hire-chat-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  animation: hireChatBgIn .42s cubic-bezier(0.32, 0.72, 0, 1) both;
}
.hire-chat-modal.is-closing {
  pointer-events: none;
  animation: hireChatBgOut .42s cubic-bezier(0.32, 0.72, 0, 1) both;
}
.hire-chat-panel {
  width: min(400px, 100%);
  max-height: 620px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.55);
  background: linear-gradient(135deg, rgba(255,255,255,0.72) 0%, rgba(245,242,237,0.52) 100%);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.90) inset,
    0 -1px 0 rgba(0,0,0,0.06) inset,
    0 22px 64px rgba(0,0,0,.18),
    0 6px 18px rgba(0,0,0,.08);
  transform: translateY(-56px) scale(.98);
  transform-origin: 50% 0%;
  opacity: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}
.hire-chat-modal[aria-hidden="false"] .hire-chat-panel {
  animation: hireChatPanelIn .42s cubic-bezier(0.32, 0.72, 0, 1) both;
}
.hire-chat-modal.is-closing .hire-chat-panel {
  animation: hireChatPanelOut .42s cubic-bezier(0.32, 0.72, 0, 1) both;
}
.hire-chat-topbar {
  width: calc(100% - 24px);
  margin: 12px 12px 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  flex-shrink: 0;
}
.hire-chat-back {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.86);
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.24s var(--ease-ios), box-shadow 0.24s var(--ease-ios), background-color 0.24s var(--ease-ios);
}
.hire-chat-back:hover {
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 24px rgba(13,13,13,.10);
  transform: translateY(-1px);
}
.hire-chat-back svg {
  width: 19px;
  height: 19px;
}
.hire-chat-title-pill {
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
  padding: 5px 20px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  min-width: 112px;
}
.hire-chat-title-name {
  font-size: 15px;
  font-weight: 700;
  color: #000000;
}
.hire-chat-title-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}
.hire-chat-profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
  display: block;
  flex-shrink: 0;
}
.hire-chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  user-select: none;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  flex-shrink: 0;
  overflow: hidden;
}
.hire-chat-avatar--mini {
  width: 30px;
  height: 30px;
  margin-bottom: 2px;
}
.hire-chat-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.hire-chat-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 6px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,.7) 7%, #000 16%, #000 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,.7) 7%, #000 16%, #000 100%);
}
.hire-chat-day {
  text-align: center;
  font-size: 12px;
  color: #9E9EA3;
  margin-bottom: 6px;
  user-select: none;
  letter-spacing: .01em;
}
.hire-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hire-chat-msg {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2,.9,.2,1);
}
.hire-chat-msg.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hire-chat-msg--assistant {
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 6px;
}
.hire-chat-msg--user {
  width: 100%;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-end;
}
.hire-chat-bubble {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: min(75%, 32rem);
  min-width: 64px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: anywhere;
}
.hire-chat-link {
  display: inline;
  max-width: 100%;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.hire-chat-bubble--assistant {
  color: var(--ink);
  background: #E9E9EB;
  border-radius: 20px 20px 20px 6px;
}
.hire-chat-bubble--assistant .hire-chat-link {
  color: var(--accent);
}
.hire-chat-bubble--user {
  color: #fff;
  background: var(--accent);
  border-radius: 20px 20px 6px 20px;
}
.hire-chat-bubble--user .hire-chat-link {
  color: #FFFFFF;
}
.hire-chat-bubble--assistant::after,
.hire-chat-bubble--user::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 16px;
}
.hire-chat-bubble--assistant::after {
  left: -6px;
  background: #E9E9EB;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.hire-chat-bubble--user::after {
  right: -6px;
  background: var(--accent);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.hire-chat-bubble--typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-right: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.66) 0%, rgba(233,233,235,.78) 100%);
  border: 1px solid rgba(255,255,255,.48);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}
.hire-chat-bubble--typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8E8E93;
  display: block;
  animation: typingDot 1.15s infinite;
}
.hire-chat-bubble--typing span:nth-child(2) { animation-delay: .18s; }
.hire-chat-bubble--typing span:nth-child(3) { animation-delay: .36s; }
.hire-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
  padding-left: 0;
}
.hire-chat-chip-wrap {
  width: calc(100% - 24px);
  margin: 0 12px 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 16px;
  background: rgba(255,255,255,.20);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  flex-shrink: 0;
}
.hire-chat-chip {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background-color 0.24s var(--ease-ios), border-color 0.24s var(--ease-ios), transform 0.24s var(--ease-ios);
}
.hire-chat-chip:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-1px);
}
.hire-chat-input-wrap {
  width: calc(100% - 24px);
  margin: 0 12px 12px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  flex-shrink: 0;
}
.hire-chat-input {
  flex: 1;
  background: #F0EDE8;
  border: 1.5px solid var(--rule);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  line-height: 1.45;
}
.hire-chat-input:focus {
  outline: none;
  border-color: var(--accent);
}
.hire-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,87,255,.35);
  transition: opacity 0.24s var(--ease-ios), transform 0.24s var(--ease-ios), box-shadow 0.24s var(--ease-ios);
}
.hire-chat-send svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.hire-chat-send:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,87,255,.30);
}

/* ─────────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-ios);
}
.lightbox:not([aria-hidden="true"]) {
  opacity: 1;
  pointer-events: all;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,.7);
  backdrop-filter: blur(8px);
}
.lb-panel {
  position: relative;
  width: min(1100px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  background:
    linear-gradient(145deg, rgba(255,255,255,.66), rgba(253,252,249,.42));
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 30px 80px rgba(0,0,0,.22);
}
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
.lb-counter { font-size: 13px; color: var(--muted); }
.lb-btns { display: flex; gap: 8px; }
.lb-btns button {
  width: 34px; height: 34px;
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(155%);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
  box-shadow: var(--glass-shadow);
  transition: background-color 0.24s var(--ease-ios), box-shadow 0.24s var(--ease-ios), transform 0.24s var(--ease-ios), color 0.24s var(--ease-ios);
}
.lb-btns button:hover {
  color: var(--accent);
  background: var(--glass-fill-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-2px);
}
.lb-img {
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  display: block;
}

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFloatIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroRingSpin {
  to { transform: rotate(360deg); }
}

@keyframes heroAura {
  0%, 100% { opacity: .58; transform: scale(.96); }
  50% { opacity: .9; transform: scale(1.04); }
}

@keyframes heroStatusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.86); }
}

@keyframes scanLine {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes hireChatPanelIn {
  from { opacity: 0; transform: translateY(-56px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hireChatPanelOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-56px) scale(.98); }
}

@keyframes hireChatBgIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hireChatBgOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* scroll-triggered reveals */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(.992);
  transition:
    opacity 0.58s var(--ease-ios) var(--reveal-delay, 0s),
    transform 0.62s var(--ease-ios) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─────────────────────────────────────────────
   CURSOR
───────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  a, button, .btn, .home, .nav-link, .pill-btn, .fw-card {
    cursor: url("/assets/cursors/hand.png") 10 4, pointer !important;
  }
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .project-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }
  .project-footer { align-items: flex-end; flex-direction: row; flex-wrap: wrap; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .work-header { flex-direction: column; gap: 8px; }
  .work-side { align-items: flex-start; min-width: 0; }
  .work-period { text-align: left; }
  .work-tags { justify-content: flex-start; max-width: 100%; }
}

@media (max-width: 600px) {
  .nav-links { font-size: 12px; }
  .nav-link { padding: 5px 8px; }
  .nav-pill { justify-content: space-between; }
  .container { padding: 0 18px; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .hero-avatar { width: 104px; height: 104px; margin-bottom: 22px; }
  .hero-badge { font-size: 11px; letter-spacing: .05em; }
  .hero-actions { width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { justify-content: center; min-width: 136px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-avatar, .hero-avatar::before, .hero-avatar-ring, .hero-badge, .hero-badge-dot, .hero-eyebrow, .hero-name, .hero-line, .hero-actions, .scroll-cue { animation: none; opacity: 1; transform: none; }
  .reveal { transition: none; }
  .scroll-line::after { animation: none; }
  #site, .lightbox, .lb-panel, .fw-card, .nav-ink { transition: none; }
}






