/* ============================================================================
   YUYU.NG — Design System & Stylesheet
   A clean, non-WordPress implementation
   ============================================================================ */

/* ── @font-face: Atyp Display ──────────────────────────────────────────────── */
@font-face {
  font-family: 'Atyp';
  src: url('../fonts/AtypDisplay-Regular.woff2') format('woff2'),
    url('../fonts/AtypDisplay-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atyp';
  src: url('../fonts/AtypDisplay-Medium.woff2') format('woff2'),
    url('../fonts/AtypDisplay-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atyp';
  src: url('../fonts/AtypDisplay-Semibold.woff2') format('woff2'),
    url('../fonts/AtypDisplay-Semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  font-family: 'Atyp', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg: #05000A;
  --bg-card: #131320;
  --bg-card-hover: #1a1a2e;
  --bg-surface: #05000A;
  --text: #e8e6f0;
  --text-muted: #8a8694;
  --text-dim: #5c586a;
  --accent-1: #DE0EFF;
  --accent-2: #751CFF;
  --gradient: linear-gradient(65deg, var(--accent-1), var(--accent-2));
  --gradient-text: linear-gradient(65deg, #DE0EFF, #751CFF);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(222, 14, 255, 0.15);
  --container: 1200px;
  --header-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-muted {
  color: var(--text-muted);
}

.grad-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient-bordered badge / pill — reusable */
.grad-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  background:
    linear-gradient(#12041A, #12041A) padding-box,
    linear-gradient(45deg, #F505FF, #731CFF) border-box;
  border: 2px solid transparent;
  border-radius: 10px 30px 30px 10px;
}

/* ── Fade-in Animation ─────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.fade-in.visible {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0) scale(1);
}

.mobile-br {
  display: none;
}

/* ── Tooltip ──────────────────────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 14px;
  background: rgba(20, 10, 30, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(20, 10, 30, 0.92);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 100;
}

[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.96) !important;
}

.btn svg {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(222, 14, 255, 0.25);
}

.btn-primary::after,
.btn-cv::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: none;
}

.btn-primary:hover::after,
.btn-cv:hover::after {
  animation: shine 0.7s ease-in-out;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 200%; }
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(222, 14, 255, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border-hover);
  color: var(--text);
  background: rgba(81, 44, 111, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-outline:hover {
  border-color: var(--accent-1);
  background: rgba(222, 14, 255, 0.06);
  color: #fff;
}

.btn-cv {
  background: var(--gradient);
  color: #fff;
  border-radius: 60px 0 60px 60px;
  box-shadow: 0 4px 20px rgba(222, 14, 255, 0.25);
}

.btn-cv:hover {
  box-shadow: 0 6px 30px rgba(222, 14, 255, 0.4);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

/* ── Section Styles ────────────────────────────────────────────────────────── */
section {
  padding: 100px 0;
}

.section-emoji {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
}

.section-title {
  margin-top: 20px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  height: var(--header-h);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease,
    backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

.site-header.scrolled {
  background: rgba(18, 8, 32, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  height: 29px;
  width: auto;
}

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

.nav-links a {
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.nav-links--desktop a {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links--desktop>li>a {
  color: #ffffff;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a.active {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links a.active:hover {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

/* Desktop Dropdown */
.nav-links--desktop .has-dropdown {
  position: relative;
}

/* Invisible hover bridge */
.nav-links--desktop .has-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 32px;
}

.nav-links--desktop .has-dropdown>a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform var(--transition);
}

.nav-links--desktop .dropdown {
  position: absolute;
  top: calc(100% + 24px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: rgba(18, 8, 32, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

/* Speech bubble tail */
.nav-links--desktop .dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 8px solid rgba(255, 255, 255, 0.08);
}

.nav-links--desktop .dropdown::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 7px solid rgba(18, 8, 32, 0.95);
}

.nav-links--desktop .has-dropdown:hover .dropdown,
.nav-links--desktop .has-dropdown.active .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-links--desktop .dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.82rem;
  border-radius: 6px;
  position: relative;
  z-index: 1;
  color: #ffffff;
  background: transparent;
  transition: color 0.2s ease;
}

.nav-links--desktop .dropdown a.active {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.nav-links--desktop .dropdown a:hover {
  color: #fff;
}

.dropdown-hover-pill {
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  border-radius: 6px;
  background: var(--gradient);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), height 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.2s ease;
}

.nav-icon {
  display: none;
}

.mobile-nav-panel {
  display: none;
}

.nav-cta {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 10px 16px;
  transition: opacity var(--transition);
}

.nav-cta:hover {
  opacity: 0.8;
}

.nav-cta svg {
  -webkit-text-fill-color: initial;
  fill: var(--accent-1);
}

/* Mobile panel copyright */
.mobile-panel-copyright {
  margin: auto 24px 40px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 400;
  text-align: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px;
  z-index: 1001;
  position: relative;
}

.menu-toggle-label {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  padding-top: 5px;
  transition: opacity 0.3s ease;
}

.menu-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle-bars span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
  border-radius: 2px;
}

.menu-toggle.active .menu-toggle-label {
  opacity: 0;
}

.menu-toggle.active .menu-toggle-bars span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-toggle-bars span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ══════════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 860px;
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
  background: #05000a url('../img/hero-bg.png') center / cover no-repeat;
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--header-h) + 20px) 40px 0;
}

.hero-headline {
  text-align: center;
  z-index: 2;
}

.hero-headline h1 {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 16px;
  color: #fff;
}

/* Rotating Words */
.rotating-words {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  height: 1.2em;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotating-words .word {
  display: inline-block;
  position: absolute;
  left: 0;
  right: 0;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: scale(1.3);
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotating-words .word.active {
  position: relative;
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

.rotating-words .word.exit {
  opacity: 0;
  transform: scale(0.8);
  filter: blur(8px);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  padding: 0 24px;
  position: relative;
  z-index: 1;
  margin-top: auto;
  margin-bottom: -30px;
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.hero-avatar-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: url(#sticker-outline);
  -webkit-mask-image: conic-gradient(from 0deg, black var(--border-angle), transparent var(--border-angle));
  mask-image: conic-gradient(from 0deg, black var(--border-angle), transparent var(--border-angle));
}

.hero-avatar-border.draw-animation {
  animation: drawBorder 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@media (max-width: 768px) {
  .hero-avatar-border {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    opacity: 0;
  }
  .hero-avatar-border.draw-animation {
    animation: fadeBorder 1.5s ease-out forwards;
  }
}

@keyframes drawBorder {
  0% {
    --border-angle: 0deg;
  }

  100% {
    --border-angle: 360deg;
  }
}

@keyframes fadeBorder {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.hero-avatar {
  width: 630px;
  height: auto;
  max-width: 80vw;
  position: relative;
  z-index: 2;
  margin-top: 0;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.hero-avatar-container {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  margin-top: 0px;
}

.scan-line-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  -webkit-mask-image: url('../img/hero_img.webp');
  -webkit-mask-size: 100% auto;
  -webkit-mask-repeat: no-repeat;
  mask-image: url('../img/hero_img.webp');
  mask-size: 100% auto;
  mask-repeat: no-repeat;
}

.scan-line-mask::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0.2) 2px,
      transparent 2px,
      transparent 4px);
  pointer-events: none;
}

.hero-prop {
  width: 234px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

/* 3D Sticker Container — Three.js handles the animation */
.sticker-3d {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  z-index: 1;
}

.sticker-glare {
  display: none;
}

.hero-prop-left {
  margin-right: -50px;
}

.hero-prop-right {
  margin-left: -50px;
}

/* ============================================================================
   Tech Stack Carousel
   ============================================================================ */
.stack-carousel {
  padding: 40px 0 50px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border);
}

/* Fade edges */
.stack-carousel::before,
.stack-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.stack-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.stack-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.stack-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.stack-track:hover {
  animation-play-state: paused;
}

.stack-slide {
  display: flex;
  gap: 32px;
  padding-right: 32px;
  flex-shrink: 0;
}

.stack-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
  position: relative;
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), background 0.3s ease, border-color 0.3s ease;
}

.stack-item:hover {
  transform: translateY(-8px) scale(1.15);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.stack-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stack-item[data-label="Vercel"] img,
.stack-item[data-label="GitHub"] img {
  filter: brightness(0) invert(1);
}

/* Tooltip label on hover */
.stack-item::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--card);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid var(--border);
}

.stack-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-14px);
  }
}

/* Hero Bottom Bar */
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  padding: 0 24px;
  margin: 0 auto;
  margin-top: -150px;
  padding-bottom: 20px;
  z-index: 3;
  position: relative;
}

.hero-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.hero-tagline {
  max-width: 340px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.hero-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a2a2a2;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.hero-cta {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  padding: 16px 28px;
  flex-shrink: 0;
}

.hero-cta-text {
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PROJECTS
   ══════════════════════════════════════════════════════════════════════════════ */
.projects {
  background: var(--bg-surface);
}

.projects-hero {
  padding: calc(var(--header-h) + 60px) 0 80px !important;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: transparent;
  border: none;
  border-radius: 0;
  transition: all var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-cover {
  height: 420px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.project-cover-img {
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition);
  z-index: 0;
}

.project-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}

.project-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-20deg);
  z-index: 2;
  transition: none;
}

.project-card:hover .project-cover::after {
  opacity: 1;
}

.project-card:hover .project-cover::before {
  animation: shineProject 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shineProject {
  0% { left: -150%; }
  100% { left: 150%; }
}

.project-link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(10px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: rgba(60, 10, 90, 0.7);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  box-shadow: 0 8px 30px rgba(117, 28, 255, 0.4);
  transition: all var(--transition);
  white-space: nowrap;
}

.project-card:hover .project-link {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.project-link:hover {
  background: var(--gradient);
  box-shadow: 0 10px 40px rgba(117, 28, 255, 0.6);
}

.project-info {
  padding: 16px 4px;
}

.project-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.project-info h3 a:hover {
  color: var(--accent-1);
}

.project-type {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #DE0EFF, #5E0EFF);
  padding: 3px 10px;
  border-radius: 8px;
  display: inline-block;
}

.project-meta {
  margin-top: 12px;
}

.project-meta p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0;
  border-radius: 50px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.status-active {
  color: var(--text-muted);
  background: transparent;
}

.status-active .dot {
  background: #62EB1A;
  box-shadow: 0 0 6px #62EB1A;
}

.status-discontinued {
  color: var(--text-muted);
  background: transparent;
}

.status-discontinued .dot {
  background: #EB1A1A;
}

.status-in-progress {
  color: var(--text-muted);
  background: transparent;
}

.status-in-progress .dot {
  background: #F59E0B;
  box-shadow: 0 0 6px #F59E0B;
}

/* ══════════════════════════════════════════════════════════════════════════════
   MY STARTUPS
   ══════════════════════════════════════════════════════════════════════════════ */
.startups {
  background: var(--bg-surface);
}

/* ══════════════════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════════════════════════════════════ */
.testimonials {
  background: var(--bg);
}

.floater-wrap {
  position: relative;
  overflow: visible;
  display: flex;
  justify-content: center;
  pointer-events: none;
  margin-top: -112px;
  margin-bottom: -112px;
  z-index: 1;
}

.testimonial-floater {
  width: 224px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  transition: none;
  will-change: transform, opacity;
}

.testimonials-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.testimonials-left h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.testimonial-deco {
  max-width: 300px;
  margin-top: 24px;
  filter: drop-shadow(0 0 30px rgba(222, 14, 255, 0.1));
}

.quote-icon {
  width: 50px;
  margin-bottom: 24px;
}

.testimonial-slider {
  position: relative;
  min-height: 200px;
}

.testimonial-slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateX(20px);
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  transform: translateX(0);
}

.testimonial-slide blockquote {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-author img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.testimonial-author strong {
  display: block;
  font-size: 1.1rem;
}

.testimonial-author span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.slider-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.slider-btn:hover {
  border-color: var(--accent-1);
  color: #fff;
  background: rgba(222, 14, 255, 0.1);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dots .dot-btn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  padding: 0;
}

.slider-dots .dot-btn.active {
  background: var(--accent-1);
  width: 24px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   WORK EXPERIENCE
   ══════════════════════════════════════════════════════════════════════════════ */
.experience {
  background: var(--bg-surface);
}

.experience-cta {
  text-align: right;
}

.experience-cta p {
  margin-bottom: 12px;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.experience-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: all var(--transition);
  flex-wrap: wrap;
  gap: 16px;
}

.experience-card:hover {
  background: transparent;
}

.exp-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-left img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xs);
  object-fit: contain;
  margin-bottom: 8px;
}

.exp-left h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.exp-company {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 2px;
}

.exp-location {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.exp-right {
  text-align: right;
}

.exp-date {
  font-size: 1.05rem;
  font-weight: 500;
}

.exp-duration {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.experience-card.exp-hidden {
  display: none;
}

.experience-card.exp-reveal {
  display: flex;
  animation: expReveal 0.5s ease forwards;
}

@keyframes expReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Featured Experience Card ─────────────────────────────────────────── */
.experience-card--featured {
  border-left: 2px solid var(--accent-1);
}

.exp-featured-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-1);
  background: rgba(154, 19, 255, 0.1);
  padding: 2px 8px;
  border-radius: 50px;
}

/* ── Experience Info Button ────────────────────────────────────────────── */
.exp-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exp-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  overflow: hidden;
}

.exp-info-btn svg {
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.exp-info-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.exp-info-btn:hover svg {
  animation: iconSlideUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes iconSlideUp {
  0% { transform: translateY(0); }
  49% { transform: translateY(-20px); }
  50% { transform: translateY(20px); opacity: 0; }
  51% { opacity: 1; }
  100% { transform: translateY(0); }
}

/* ── Company Info Modal ────────────────────────────────────────────────── */
.exp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.exp-modal {
  position: relative;
  width: 90%;
  max-width: 440px;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 52px 32px 32px;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-modal-overlay.active .exp-modal {
  transform: translateY(0) scale(1);
}

/* Modal window dots */
.exp-modal-dots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.exp-modal-close,
.exp-modal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  display: block;
  flex-shrink: 0;
}

.exp-modal-close {
  background: #ff5f57;
  cursor: pointer;
  transition: all 0.15s ease;
}

.exp-modal-close:hover {
  background: #ff3b30;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.7);
}

.exp-modal-close svg {
  display: none;
}

.exp-modal-dot--yellow {
  background: rgba(254, 188, 46, 0.35);
  cursor: not-allowed;
}

.exp-modal-dot--green {
  background: rgba(39, 201, 63, 0.35);
  cursor: not-allowed;
}

.exp-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.exp-modal-header img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: contain;
  background: transparent;
  border: none;
}

.exp-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.exp-modal-role {
  display: none;
}

.exp-modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.exp-modal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.exp-modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.exp-modal-link--website {
  background: var(--gradient);
  color: #fff;
  border: none;
}

.exp-modal-link--website:hover {
  box-shadow: 0 4px 20px rgba(154, 19, 255, 0.4);
  transform: translateY(-1px);
}

.exp-modal-link--social {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.exp-modal-link--social:hover {
  background: rgba(154, 19, 255, 0.2);
  border-color: rgba(154, 19, 255, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.load-more-wrap {
  text-align: left;
  margin-top: 32px;
}

.load-more-wrap .btn {
  min-width: 180px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CTA
   ══════════════════════════════════════════════════════════════════════════════ */
.cta-section {
  text-align: center;
  padding: 120px 0;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  margin-bottom: 12px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 3em;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: gap 0.3s ease, transform 0.3s ease;
}

.cta-link svg {
  width: 0.85em;
  height: 0.85em;
  -webkit-text-fill-color: initial;
  transition: transform 0.3s ease;
}

.cta-link:hover {
  gap: 24px;
}

.cta-link:hover svg {
  transform: translateX(6px);
}

/* ══════════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════════ */
.site-footer {
  padding: 60px 0 40px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

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

.footer-brand .footer-logo {
  margin: 0;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  transition: fill var(--transition);
}

.footer-social a:hover {
  background: var(--gradient);
  transform: scale(1.1);
}

.footer-social a:hover svg {
  fill: #fff;
}

.footer-col-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-links li a {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  overflow: hidden;
}

.footer-col-links li a:hover {
  color: #fff;
}

.footer-col-links li a:hover svg {
  animation: diagonalSwoosh 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes diagonalSwoosh {
  0% { transform: translate(0, 0); }
  49% { transform: translate(15px, -15px); }
  50% { transform: translate(-15px, 15px); opacity: 0; }
  51% { opacity: 1; }
  100% { transform: translate(0, 0); }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.copyright {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 1.2rem;
  transition: all var(--transition);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .project-cover {
    height: 300px;
  }

  .project-grid {
    align-items: start;
  }

  .testimonials-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .testimonial-deco {
    display: none;
  }

  .nav-links--desktop {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Hero tablet */
  .hero {
    min-height: 780px;
  }

  .hero-headline h1 {
    font-size: 56px;
  }

  .hero-avatar {
    width: 480px;
  }

  .hero-prop {
    width: 140px;
  }

  .hero-prop-left {
    margin-right: -40px;
  }

  .hero-prop-right {
    margin-left: -40px;
  }

  .hero-bottom {
    margin-top: -70px;
  }

  /* ── Immersive Mobile Nav ─────────────────────────────────────────────────── */
  .mobile-nav-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(165deg, #0a0a12 0%, #0d0518 40%, #05000a 100%);
    z-index: 998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-panel.open {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .mobile-nav-panel .nav-links {
    display: flex;
    flex-direction: column;
    padding: var(--header-h) 24px 40px;
    gap: 0;
    align-items: stretch;
  }

  /* Staggered entry animation */
  .mobile-nav-panel.open .nav-links>li {
    opacity: 0;
    transform: translateX(-20px);
    animation: menuSlideIn 0.4s ease forwards;
  }

  .mobile-nav-panel.open .nav-links>li:nth-child(1) {
    animation-delay: 0.05s;
  }

  .mobile-nav-panel.open .nav-links>li:nth-child(2) {
    animation-delay: 0.1s;
  }

  .mobile-nav-panel.open .nav-links>li:nth-child(3) {
    animation-delay: 0.15s;
  }

  .mobile-nav-panel.open .nav-links>li:nth-child(4) {
    animation-delay: 0.2s;
  }

  .mobile-nav-panel.open .nav-links>li:nth-child(5) {
    animation-delay: 0.25s;
  }

  .mobile-nav-panel.open .nav-links>li:nth-child(6) {
    animation-delay: 0.3s;
  }

  @keyframes menuSlideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* Menu links — large, bold */
  .mobile-nav-panel .nav-links>li>a {
    font-size: 1.5rem;
    font-weight: 400;
    padding: 18px 0;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: color 0.3s ease;
  }

  .mobile-nav-panel .nav-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
  }

  .mobile-nav-panel .nav-links>li>a:hover .nav-icon {
    opacity: 1;
  }

  .mobile-nav-panel .nav-links>li>a:hover,
  .mobile-nav-panel .nav-links>li>a.active {
    color: #fff;
  }

  .mobile-nav-panel .nav-links>li>a.active .nav-icon {
    opacity: 1;
  }

  .mobile-nav-panel .nav-links>li>a.active {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .mobile-nav-panel .nav-links>li>a.active .nav-icon {
    stroke: var(--accent-1);
    -webkit-text-fill-color: initial;
  }

  /* Dropdown chevron */
  .mobile-nav-panel .has-dropdown>a::after {
    content: '';
    border: none;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(-45deg);
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    -webkit-text-fill-color: initial;
  }

  .mobile-nav-panel .has-dropdown.expanded>a::after {
    transform: rotate(45deg);
  }

  /* Dropdown panel */
  .mobile-nav-panel .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: auto;
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .mobile-nav-panel .has-dropdown.expanded .dropdown {
    max-height: 300px;
    padding: 24px 0 16px 20px;
  }

  .mobile-nav-panel .dropdown a {
    font-size: 1.15rem;
    font-weight: 400;
    padding: 4px 0;
    color: #ffffff;
    border-bottom: none;
  }

  .mobile-nav-panel .dropdown a.active {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
  }

  .mobile-nav-panel .dropdown a:hover {
    color: var(--accent-1);
    background: transparent;
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-content {
    padding: calc(var(--header-h) + 20px) 16px 0;
  }

  .hero-headline h1 {
    font-size: 46.5px;
  }

  .mobile-br {
    display: block;
  }

  /* Hide props, center avatar */
  .hero-prop {
    display: none;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-avatar-container {
    margin-top: 10px;
  }

  .hero-avatar {
    width: 85vw;
    max-width: 400px;
    margin-top: 0;
  }

  /* CTA sits below hero image, tagline below */
  .hero-visual {
    margin-bottom: 0;
  }

  .hero-bottom-left {
    display: contents; /* Unwraps children so they can participate in .hero-bottom flex grid */
  }

  .hero-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-top: 0;
    padding: 16px 16px 30px;
  }

  .hero-cta {
    width: 90vw;
    max-width: 420px;
    justify-content: center;
    order: 1;
    position: relative;
    z-index: 5;
    margin-top: -28px;
  }

  .hero-tagline {
    max-width: 100%;
    order: 2;
  }

  .hero-profile-link {
    order: 3;
    text-align: center;
  }

  /* Other sections */
  .project-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .exp-right {
    text-align: left;
  }

  .experience-cta {
    text-align: left;
  }

  .cta-link {
    font-size: 2em;
  }

  /* Floater */
  .testimonial-floater {
    opacity: 0.05 !important;
  }

  .floater-wrap {
    overflow: hidden;
  }

  .testimonial-slide blockquote {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    text-align: center;
    align-items: center;
  }

  .footer-tagline {
    max-width: 100%;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col-links {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {

  /* Hero small mobile */
  .hero-content {
    padding: calc(var(--header-h) + 10px) 12px 0;
  }

  .hero-headline h1 {
    font-size: 46.5px;
  }

  .hero-avatar {
    width: 90vw;
    max-width: 340px;
  }

  .hero-bottom {
    margin-top: 0;
    gap: 16px;
    padding-bottom: 20px;
  }

  .hero-tagline {
    font-size: 0.85rem;
  }

  .hero-cta {
    padding: 14px 24px;
    font-size: 0.78rem;
  }

  /* Other sections */
  .exp-left h3 {
    font-size: 1.2rem;
  }

  .exp-left img {
    width: 56px;
    height: 56px;
  }

  .cta-link {
    font-size: 1.6em;
  }

  .cta-section {
    padding: 80px 0;
  }

  .project-cover {
    height: 280px;
  }

  .testimonial-author img {
    width: 52px;
    height: 52px;
  }

  .slider-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  /* Modal → Bottom Sheet on mobile */
  .exp-modal-overlay {
    align-items: flex-end;
  }

  .exp-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 28px 24px 36px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
  }

  .exp-modal-overlay.active .exp-modal {
    transform: translateY(0);
  }

  .exp-modal::before {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    border-radius: 4px;
    top: 10px;
    background: rgba(255, 255, 255, 0.2);
  }

  .exp-modal-header {
    margin-top: 8px;
  }
}

/* ============================================================================
   About Page Styles
   ============================================================================ */
.about-hero {
  padding: calc(var(--header-h) + 60px) 0 80px;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 24px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-bio p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-image-wrapper {
  position: relative;
  z-index: 1;
}

.about-image-wrapper img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

.about-image-glow {
  position: absolute;
  inset: -20px;
  background: var(--gradient);
  border-radius: var(--radius);
  filter: blur(60px);
  opacity: 0.15;
  z-index: 1;
}

/* ── About Hero Collage ───────────────────────────────────────────────────── */
.about-collage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  perspective: 1200px;
}

.collage-float-wrapper {
  position: absolute;
  will-change: transform;
  z-index: 2;
  transition: z-index 0s 0.6s;
}

.collage-float-wrapper:hover {
  z-index: 10;
  transition-delay: 0s;
}

.collage-float-wrapper--back {
  bottom: 10px;
  right: 10px;
  z-index: 2;
}

.collage-float-wrapper--front {
  top: 10px;
  left: 60px;
  z-index: 3;
}

.collage-float-wrapper--mouse {
  bottom: -20px;
  right: -20px;
  z-index: 4;
}

.about-collage:not(.is-visible) .collage-float-wrapper {
  opacity: 0;
}

.about-collage.is-visible .collage-float-wrapper--back {
  animation: wrapper-roll-slide 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both, float-back 6s ease-in-out infinite alternate 1.2s;
}

.about-collage.is-visible .collage-float-wrapper--front {
  animation: wrapper-roll-slide 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both, float-front 7s ease-in-out infinite alternate 1.35s;
}

.about-collage.is-visible .collage-float-wrapper--mouse {
  animation: wrapper-slide-right 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both, float-mouse 5.5s ease-in-out infinite alternate 1.5s;
}

.collage-photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 24px 48px -12px rgba(0, 0, 0, 0.4),
    0 12px 24px -8px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  will-change: transform, box-shadow;
}

.collage-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.15);
  pointer-events: none;
}

.collage-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Back photo */
.collage-photo--back {
  width: 280px;
  height: 220px;
  transform: rotate(-6deg);
}

/* Front photo */
.collage-photo--front {
  width: 320px;
  height: 310px;
  transform: rotate(4deg);
}

.collage-float-wrapper:hover .collage-photo {
  transform: rotate(0deg) scale(1.08) translateY(-10px);
  box-shadow: 
    0 40px 80px -15px rgba(0, 0, 0, 0.6),
    0 20px 40px -10px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 1);
}

.collage-float-wrapper:hover .collage-photo img {
  transform: scale(1.05);
}

.collage-artifact {
  border-radius: 12px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-artifact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logi mouse */
.collage-artifact--mouse {
  width: 220px;
  height: auto;
  border: none;
  box-shadow: none;
  background: transparent;
  overflow: visible;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.35));
  transform: rotate(10deg);
  will-change: transform, filter;
}

.collage-float-wrapper:hover .collage-artifact--mouse {
  transform: rotate(4deg) scale(1.15) translateY(-15px);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.5));
}

.collage-artifact--mouse img {
  object-fit: contain;
}

.collage-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, var(--accent-1) 0%, var(--accent-2) 100%);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 1;
  animation: pulse-glow 6s ease-in-out infinite alternate;
}

@keyframes wrapper-roll-slide {
  0% { transform: translate3d(200px, 100px, 0) rotate(75deg); opacity: 0; }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
}

@keyframes wrapper-slide-right {
  0% { transform: translate3d(150px, 0, 0); opacity: 0; }
  100% { transform: translate3d(0, 0, 0); opacity: 1; }
}

@keyframes float-back {
  0% { transform: translateY(0px) translateX(0px); }
  100% { transform: translateY(-16px) translateX(-8px); }
}

@keyframes float-front {
  0% { transform: translateY(0px) translateX(0px); }
  100% { transform: translateY(-20px) translateX(6px); }
}

@keyframes float-mouse {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-18px); }
}

@keyframes pulse-glow {
  0% { opacity: 0.12; transform: scale(1); filter: blur(80px); }
  100% { opacity: 0.22; transform: scale(1.1); filter: blur(100px); }
}

@media (max-width: 768px) {
  .about-collage {
    min-height: 380px;
  }

  .collage-float-wrapper--back {
    right: auto;
    left: 50%;
    margin-left: -40px;
  }

  .collage-float-wrapper--front {
    right: auto;
    left: 50%;
    margin-left: -140px;
  }

  .collage-float-wrapper--mouse {
    right: auto;
    left: 50%;
    margin-left: 10px;
  }

  .collage-photo--back {
    width: 220px;
    height: 180px;
  }

  .collage-photo--front {
    width: 250px;
    height: 250px;
  }

  .collage-artifact--mouse {
    width: 140px;
  }
}

.about-panoramic {
  width: 100%;
  height: 40vh;
  min-height: 350px;
  max-height: 500px;
  position: relative;
  clip-path: inset(0 0 0 0); /* Constrains the fixed pseudo-element */
}

.about-panoramic::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../img/fixed.webp');
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* We rely on position: fixed instead of attachment */
  z-index: -1;
  pointer-events: none;
  transform: translateZ(0); /* Hardware acceleration */
}

.about-story,
.about-wordpress {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* Two-column sticky accordion layout */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-story-accordion {
  position: sticky;
  top: calc(var(--header-h) + 30px);
}

/* About page accordion */
.about-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-radius: 50px;
  border: none;
  background: #512c6f;
  color: #e9e9e9;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.about-accordion-item.active .about-accordion-trigger {
  background: var(--gradient);
  color: #fff;
}

.about-accordion-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.about-accordion-item.active .about-accordion-chevron {
  transform: rotate(180deg);
}

.about-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 24px;
}

.about-accordion-item.active .about-accordion-panel {
  padding: 20px 24px 4px;
}

.about-accordion-panel p {
  font-size: 0.95rem;
  color: rgba(233, 233, 233, 0.7);
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-accordion-panel p:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  line-height: 1.2;
}

@media (max-width: 768px) {

  .about-grid,
  .story-grid,
  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrapper {
    display: flex;
    justify-content: center;
  }

  .about-story-accordion {
    position: static;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* ============================================================================
   Case Study Page
   ============================================================================ */

/* ── 1. Back Nav ──────────────────────────────────────────────────────────── */
.cs-nav {
  padding: calc(var(--header-h) + 30px) 0 0;
}

.cs-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.cs-back-link:hover {
  color: var(--accent-1);
}

/* ── 2. Headline + Status ─────────────────────────────────────────────────── */
.cs-headline {
  padding: 40px 0 30px;
}

.cs-title {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 32px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
}

.cs-meta-value {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}

/* ── 3. Masthead Cover ────────────────────────────────────────────────────── */
.cs-masthead {
  padding: 0 0 60px;
}

.cs-masthead-img img {
  width: 100%;
  max-width: 1140px;
  height: auto;
  aspect-ratio: 1140 / 743;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cs-masthead-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.cs-masthead-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.cs-masthead-carousel-item {
  flex: 0 0 100%;
  scroll-snap-align: center;
}
.cs-masthead-img img,
.cs-masthead-carousel-item img {
  width: 100%;
  aspect-ratio: 1140 / 743;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.cs-carousel-dots {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.cs-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(155, 14, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.cs-dot:hover {
  background: rgba(155, 14, 255, 1);
}

.cs-dot.active {
  width: 24px;
  background: linear-gradient(90deg, #DE0EFF, #5E0EFF);
}

/* ── 4. Summary + Buttons ─────────────────────────────────────────────────── */
.cs-summary {
  padding: 0 0 80px;
  border-bottom: 1px solid var(--border);
}

.cs-summary-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: flex-start;
}

.cs-summary-text {
  max-width: 700px;
}

.cs-summary-text p {
  font-size: 1.1rem;
  color: rgba(233, 233, 233, 0.68);
  line-height: 1.8;
  margin-bottom: 16px;
}

.cs-tech-stack-section {
  margin-top: 32px;
  margin-bottom: 24px;
}

.cs-tech-stack-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  font-weight: 500;
}

.cs-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cs-tech-item {
  width: 100%;
  padding: 16px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  justify-content: center;
  transition: all 0.3s ease;
}

.cs-tech-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.cs-tech-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.cs-tech-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  text-align: center;
}

.cs-summary-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: all 0.25s ease;
}

.cs-btn svg {
  flex-shrink: 0;
}

/* Continue Reading — dark purple pill with subtle inset border */
.cs-btn--read {
  background: rgba(100, 40, 180, 0.25);
  border: 1.5px solid rgba(140, 60, 220, 0.4);
  box-shadow: inset 0 0 20px rgba(120, 40, 200, 0.15);
}

.cs-btn--read:hover {
  background: rgba(100, 40, 180, 0.4);
  border-color: rgba(140, 60, 220, 0.6);
  transform: translateY(-2px);
  box-shadow: inset 0 0 20px rgba(120, 40, 200, 0.2), 0 8px 24px rgba(100, 40, 180, 0.2);
}

/* Visit Website — gradient purple-to-magenta pill */
.cs-btn--visit {
  background: linear-gradient(135deg, #7B2FFF 0%, #D416FF 100%);
  border: none;
  box-shadow: 0 4px 20px rgba(180, 30, 255, 0.3);
}

.cs-btn--visit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(180, 30, 255, 0.45);
  filter: brightness(1.1);
}

.cs-summary-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.cs-deco-img {
  width: 350px;
  height: auto;
  opacity: 0.6;
  will-change: transform, opacity;
  pointer-events: none;
}

.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── 5. Two-Column Sticky Content ─────────────────────────────────────────── */
.cs-content {
  padding: 80px 0;
}

.cs-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 80px;
}

.cs-section.cs-section-full {
  display: block;
}

.cs-section:last-child {
  margin-bottom: 0;
}

.cs-section-heading {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
}

.cs-section-heading h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.cs-section-body > *:first-child {
  margin-top: 0;
}

.cs-section-body p {
  font-size: 1.05rem;
  color: rgba(233, 233, 233, 0.68);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ── Project Navigation ───────────────────────────────────────────────────── */
.cs-project-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-nav-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 12px;
  max-width: 40%;
  transition: opacity 0.3s ease;
}

.cs-nav-link:hover {
  opacity: 0.7;
}

.cs-nav-link.next {
  text-align: right;
  align-items: flex-end;
}

.cs-nav-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cs-nav-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.cs-nav-desc {
  font-size: 0.95rem;
  color: rgba(233, 233, 233, 0.4);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .cs-project-nav {
    flex-direction: column;
    gap: 32px;
  }
  .cs-nav-link {
    max-width: 100%;
  }
  .cs-nav-link.next {
    text-align: left;
    align-items: flex-start;
  }
}

.cs-section-body a {
  color: var(--accent-1);
  text-decoration: underline;
}

.cs-section-body a:hover {
  color: var(--accent-2);
}

.cs-section-body img {
  width: 100%;
  border-radius: var(--radius);
  margin: 24px 0;
  border: 1px solid var(--border);
}

/* ── Stats Grid ───────────────────────────────────────────────────────────── */
.cs-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border-radius: 8px;
  background: #161616;
  border: 1px solid #2a2a2a;
}

.stat-trend {
  font-size: 0.85rem;
  font-weight: 500;
}

.trend-up {
  color: #99cc00;
}

.trend-down {
  color: #ff6b6b;
}

.stat-value {
  font-size: 2.8rem;
  font-weight: 600;
  color: #e9e9e9;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #a2a2a2;
  line-height: 1.3;
}

/* ── Features Accordion ───────────────────────────────────────────────────── */
.cs-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-radius: 50px;
  border: none;
  background: #512c6f;
  color: #e9e9e9;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.accordion-item.active .accordion-trigger {
  background: var(--gradient);
  color: #fff;
}

.accordion-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 24px;
}

.accordion-item.active .accordion-panel {
  padding: 20px 24px 4px;
}

.accordion-panel p {
  font-size: 0.95rem;
  color: rgba(233, 233, 233, 0.7);
  line-height: 1.7;
}

/* ── Prefooter CTA ────────────────────────────────────────────────────────── */
.prefooter-cta {
  text-align: center;
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.prefooter-cta h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  margin-bottom: 12px;
}

/* ── Case Study Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cs-section {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 60px;
  }

  .cs-section-heading {
    position: static;
  }

  .cs-section-heading h2 {
    font-size: 1.8rem;
  }

  .cs-summary-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cs-summary-deco {
    display: none;
  }

  .cs-stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 2.2rem;
  }
}

/* ============================================================================
   Start A Project — Conversational Form
   ============================================================================ */
.sap-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
}

.sap-convo {
  width: 640px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

/* ── Progress ─────────────────────────────────────────────────────────────── */
.sap-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  margin-bottom: 60px;
  overflow: hidden;
}

.sap-progress-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: 100px;
  transition: width 0.5s ease;
  width: 0;
}

/* ── Question cards ───────────────────────────────────────────────────────── */
.sap-q {
  display: none;
  animation: sapFadeIn 0.4s ease;
  min-height: 320px;
}

.sap-q.active {
  display: block;
}

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

.sap-greeting {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.sap-question {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #fff;
}

.sap-hint {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Input ────────────────────────────────────────────────────────────────── */
.sap-convo-input {
  width: 100%;
  padding: 16px 0;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 400;
  outline: none;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.sap-convo-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.sap-convo-input:focus {
  border-bottom-color: var(--accent-1);
}

.sap-convo-input.sap-invalid {
  border-bottom-color: #EB1A1A;
}

.sap-options.sap-invalid .sap-option {
  border-color: #EB1A1A;
  color: #EB1A1A;
}

/* Textarea */
.sap-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px;
  margin-top: 4px;
}

.sap-textarea:focus {
  border-color: var(--accent-1);
}

/* Date input */
input[type="date"].sap-convo-input {
  color-scheme: dark;
}

/* ── Option pills (project type) ──────────────────────────────────────────── */
.sap-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.sap-option {
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sap-option:hover {
  border-color: var(--accent-1);
  color: #fff;
}

.sap-option.selected {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
.sap-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
}

.sap-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sap-nav-next {
  background: var(--gradient);
  color: #fff;
  margin-left: auto;
}

.sap-nav-next:hover {
  box-shadow: 0 4px 24px rgba(154, 19, 255, 0.4);
  transform: translateY(-1px);
}

.sap-nav-back {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sap-nav-back:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ── Send Method Step ─────────────────────────────────────────────────────── */
.sap-send-step {
  text-align: center;
}

.sap-send-step .sap-question {
  text-align: center;
}

.sap-send-step .sap-hint {
  text-align: center;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.sap-send-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.sap-send-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sap-send-btn:hover {
  border-color: var(--accent-1);
  background: rgba(154, 19, 255, 0.06);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(154, 19, 255, 0.15);
}

.sap-send-label {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.sap-send-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .sap-question {
    font-size: 1.4rem;
  }

  .sap-convo-input {
    font-size: 1rem;
  }

  .sap-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .sap-send-options {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   Gallery Page
   ============================================================================ */
.gallery {
  padding: calc(var(--header-h) + 60px) 0 80px;
}

.gallery-grid {
  column-count: 3;
  column-gap: 24px;
  margin-top: 40px;
}

.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  will-change: transform;
}

.gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.1);
}

@media (max-width: 992px) {
  .gallery-grid {
    column-count: 2;
    column-gap: 16px;
  }
  .gallery-item {
    margin-bottom: 16px;
  }
}

/* ============================================================================
   Gallery Custom Cursor
   ============================================================================ */
.gallery-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-cursor.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-item, .gallery-item img {
  cursor: none;
}

/* ============================================================================
   Preloader
   ============================================================================ */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #05000a;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #120820 0%, #F505FF 50%, #731CFF 100%);
  position: absolute;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(245, 5, 255, 0.4);
}

.preloader-spinner::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  background: #05000a;
  border-radius: 50%;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.preloader-icon {
  position: absolute;
  width: 36px;
  height: 36px;
  z-index: 2;
  animation: pulse-icon 1.2s ease-in-out infinite alternate;
}

@keyframes pulse-icon {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}
/* ============================================================================
   Blog & Writing
   ============================================================================ */
.blog-hero {
  padding: calc(var(--header-h) + 80px) 0 60px;
}

.blog-grid {
  display: block;
  column-count: 1;
  column-gap: 40px;
}

@media (min-width: 768px) {
  .blog-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    column-count: 3;
  }
}

.blog-card {
  break-inside: avoid-column;
  margin-bottom: 40px;
  background-color: var(--card);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}

.blog-card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(10, 5, 15, 0.95) 0%, rgba(10, 5, 15, 0.8) 50%, rgba(10, 5, 15, 0.7) 100%);
  z-index: 1;
  pointer-events: none;
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  z-index: 2;
  position: relative;
  flex-grow: 1;
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  padding: 32px;
  height: 100%;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.blog-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--accent-1);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-1);
  margin-top: auto;
}

.blog-read-more svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-read-more svg {
  transform: translateX(4px);
}

.blog-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ── Single Post Layout ─────────────────────────────────────────────────── */
.post-layout {
  padding: calc(var(--header-h) + 40px) 0 80px;
}

.post-header {
  max-width: 800px;
  margin: 0 auto 40px;
}

.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.post-back-link:hover {
  color: #fff;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 16px;
  flex-wrap: wrap;
}

.post-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
  color: #fff;
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 600;
  line-height: 1.3;
}

.post-content h2 { font-size: 1.8rem; }
.post-content h3 { font-size: 1.4rem; }

.post-content p {
  margin-bottom: 1.5em;
}

.post-content a {
  color: var(--accent-1);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-content a:hover {
  color: var(--accent-2);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2em 0;
}

.post-content blockquote {
  border-left: 4px solid var(--accent-1);
  padding-left: 24px;
  margin: 2em 0;
  font-style: italic;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  padding: 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content ul, .post-content ol {
  margin-bottom: 2em;
  padding-left: 24px;
}

.post-content ul li::marker {
  color: var(--accent-1);
}

.post-content ol li::marker {
  color: var(--accent-1);
  font-weight: 700;
}

.post-content li {
  margin-bottom: 0.75em;
  padding-left: 8px;
}

.post-content figure {
  margin: 2.5em 0;
}

.post-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 12px;
}

.post-content pre {
  background: #111;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid var(--border);
}

.post-content code {
  background: rgba(255,255,255,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: monospace;
}

.post-content pre code {
  background: transparent;
  padding: 0;
  color: #e2e2e2;
}

.post-content hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 3em 0;
}

.post-footer {
  max-width: 800px;
  margin: 60px auto 0;
}

.post-footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 40px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.post-author-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-author-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.post-author-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.post-substack-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--accent-1);
  font-weight: 500;
  text-decoration: none;
  margin-top: 8px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-substack-link:hover {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .post-author {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .post-author-info {
    align-items: center;
  }
}
