/* Theme variables */
:root {
  /* Light theme - Refined editorial palette */
  --cream: #F0F4FB;
  --warm-white: #F7FAFF;
  --ink: #0B1530;
  --ink-light: #4B617C;
  --accent: #2563EB;
  --accent-2: #6366F1;
  --accent-light: #60A5FA;
  --accent-pale: rgba(37, 99, 235, 0.10);
  --gold: #0EA5E9;
  --gold-light: #38BDF8;
  --violet: #8B5CF6;
  --rose: #F472B6;
  --border: rgba(11, 21, 48, 0.10);
  --border-strong: rgba(11, 21, 48, 0.18);
  --shadow: 0 4px 40px rgba(11, 21, 48, 0.08);
  --shadow-lg: 0 12px 60px rgba(11, 21, 48, 0.14);
  --nav-bg: rgba(247, 250, 255, 0.72);
  --card-bg: #F0F4FB;
  --form-bg: #F0F4FB;
  --footer-bg: #0B1530;
  --footer-color: #F7FAFF;
  --aurora-a: #60A5FA;
  --aurora-b: #8B5CF6;
  --aurora-c: #38BDF8;
  --aurora-d: #F472B6;
  --aurora-alpha: 0.55;
  --grid-color: rgba(11, 21, 48, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] {
  --cream: #0E1526;
  --warm-white: #07090F;
  --ink: #EAF2FF;
  --ink-light: #9FB6D1;
  --accent: #60A5FA;
  --accent-2: #8B5CF6;
  --accent-light: #93C5FD;
  --accent-pale: rgba(96, 165, 250, 0.16);
  --gold: #38BDF8;
  --gold-light: #7DD3FC;
  --violet: #A78BFA;
  --rose: #F472B6;
  --border: rgba(234, 242, 255, 0.08);
  --border-strong: rgba(234, 242, 255, 0.16);
  --shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 60px rgba(0, 0, 0, 0.60);
  --nav-bg: rgba(12, 17, 30, 0.72);
  --card-bg: #0E1526;
  --form-bg: #0E1526;
  --footer-bg: #03060C;
  --footer-color: #EAF2FF;
  --aurora-a: #3B82F6;
  --aurora-b: #7C3AED;
  --aurora-c: #06B6D4;
  --aurora-d: #DB2777;
  --aurora-alpha: 0.42;
  --grid-color: rgba(234, 242, 255, 0.04);
  --glass-bg: rgba(16, 23, 40, 0.55);
  --glass-border: rgba(234, 242, 255, 0.10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--ink);
  overflow-x: hidden;
  max-width: 100vw;
  cursor: none;
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1), color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html { overflow-x: hidden; max-width: 100%; }

/* Pre-load lock - prevents FOUC scroll while transition plays */
body.pt-lock {
  overflow: hidden;
  height: 100vh;
}

/* Aurora mesh gradient */
.aurora-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: var(--warm-white);
  transition: background 0.6s ease;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: var(--aurora-alpha);
  mix-blend-mode: screen;
  will-change: transform;
  transition: background 0.6s ease, opacity 0.6s ease;
}

[data-theme="dark"] .aurora-blob {
  mix-blend-mode: screen;
}

html:not([data-theme="dark"]) .aurora-blob {
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.aurora-blob-1 {
  width: 60vw;
  height: 60vw;
  top: -20vw;
  left: -10vw;
  background: radial-gradient(circle at 30% 30%, var(--aurora-a), transparent 65%);
  animation: auroraFloat1 24s ease-in-out infinite;
}

.aurora-blob-2 {
  width: 55vw;
  height: 55vw;
  top: 20vh;
  right: -15vw;
  background: radial-gradient(circle at 60% 50%, var(--aurora-b), transparent 65%);
  animation: auroraFloat2 28s ease-in-out infinite;
}

.aurora-blob-3 {
  width: 45vw;
  height: 45vw;
  bottom: -10vh;
  left: 20vw;
  background: radial-gradient(circle at 40% 60%, var(--aurora-c), transparent 65%);
  animation: auroraFloat3 32s ease-in-out infinite;
}

.aurora-blob-4 {
  width: 40vw;
  height: 40vw;
  top: 55%;
  right: 20vw;
  background: radial-gradient(circle at 50% 50%, var(--aurora-d), transparent 65%);
  animation: auroraFloat4 36s ease-in-out infinite;
  opacity: calc(var(--aurora-alpha) * 0.7);
}

@keyframes auroraFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10vw, 8vh) scale(1.15); }
}
@keyframes auroraFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8vw, 12vh) scale(0.9); }
}
@keyframes auroraFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, -10vh) scale(1.1); }
}
@keyframes auroraFloat4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10vw, -6vh) scale(1.2); }
}

/* grid overlay disabled */
.aurora-grid { display: none !important; }

/* subtle grain */
.aurora-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

[data-theme="dark"] .aurora-grain {
  opacity: 0.10;
  mix-blend-mode: soft-light;
}

/* Global 3d canvas */
#global-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

/* Elevate content above the 3D canvas safely */
.hero-left,
.hero-right,
.about-text,
.about-right,
.projects-header,
.projects-grid,
.services-grid,
.stack-marquee-wrap,
.contact-channels,
.contact-form-card,
.section-label,
.section-title,
.section-subtitle {
  position: relative;
  z-index: 2;
}

/* Page transition */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: all;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.pt-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 50%, #14213d 0%, #0B1530 40%, #07090F 75%);
  transition: opacity 0.8s ease;
}

/* shimmer ribbon overlay */
.pt-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(40% 60% at 22% 28%, rgba(96, 165, 250, 0.40), transparent 70%),
    radial-gradient(35% 55% at 78% 72%, rgba(167, 139, 250, 0.36), transparent 70%),
    radial-gradient(30% 40% at 60% 18%, rgba(56, 189, 248, 0.28), transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: ptGlowDrift 8s ease-in-out infinite alternate;
}
@keyframes ptGlowDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, -1%) scale(1.06); }
}

.pt-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.pt-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  filter: blur(0.4px);
}

/* Outgoing burst: particles fly out, glow fades, bg shrinks, whole layer fades together */
.page-transition.pt-out {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.page-transition.pt-out .pt-bg {
  animation: ptBgOut 0.7s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}
.page-transition.pt-out .pt-glow {
  animation: ptGlowOut 0.5s ease forwards;
}
.page-transition.pt-out .pt-center {
  animation: ptFadeOut 0.4s ease forwards;
}
@keyframes ptBgOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08); }
}
@keyframes ptGlowOut {
  to { opacity: 0; transform: scale(0.92); }
}
@keyframes ptFadeOut {
  to { opacity: 0; transform: scale(0.96); }
}

.page-transition.pt-done {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.pt-center {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  text-align: center;
  padding: 0 20px;
}

.pt-logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
  opacity: 0;
  transform: translateY(20px);
  animation: ptLogoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.pt-logo span { color: #38BDF8; }

.pt-caption {
  font-family: 'DM Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(234, 242, 255, 0.7);
  opacity: 0;
  animation: ptCaptionIn 0.8s ease 0.5s forwards;
}

.pt-progress {
  width: min(260px, 60vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
  opacity: 0;
  animation: ptCaptionIn 0.6s ease 0.6s forwards;
  position: relative;
}
.pt-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38BDF8 0%, #60A5FA 50%, #A78BFA 100%);
  background-size: 200% 100%;
  animation: ptShine 2.4s linear infinite;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}
@keyframes ptShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.pt-percent {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(234, 242, 255, 0.85);
  opacity: 0;
  animation: ptCaptionIn 0.6s ease 0.7s forwards;
}

@keyframes ptLogoIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ptCaptionIn {
  to { opacity: 1; }
}

/* Custom cursor + trail */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  transition: background 0.3s, width 0.2s, height 0.2s;
  mix-blend-mode: difference;
  box-shadow: 0 0 14px var(--accent);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.25s, height 0.25s, opacity 0.25s, border-color 0.3s, background-color 0.3s;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0.55;
}

.cursor-ring.magnetic-active {
  width: 60px;
  height: 60px;
  background-color: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: var(--accent);
  opacity: 0.9;
}

.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
}
.cursor-trail .ct-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  filter: blur(0.5px);
  box-shadow: 0 0 8px var(--accent-2);
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 68px;
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.6s, box-shadow 0.3s, border-color 0.6s;
}

nav.nav-animate > * {
  opacity: 0;
}

/* LOGO */
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  position: relative;
}

.nav-logo span {
  color: var(--accent);
}

.nav-logo::before {
  content: '';
  position: absolute;
  inset: -6px -10px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: border-color 0.3s, background 0.3s;
}

.nav-logo:hover::before {
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* LINKS — center block */
.nav-links {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-links > a,
.nav-links > .nav-dropdown {
  position: relative;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-light);
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links > a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links > a:hover,
.nav-links > a:hover::after {
  color: var(--ink);
}

.nav-links > a:hover::after {
  width: 100%;
}

/* RIGHT BLOCK */
.nav-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-cta {
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 60%, transparent);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -6px color-mix(in srgb, var(--accent) 75%, transparent);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctrl-btn {
  width: 36px;
  height: 36px;
  background: var(--glass-bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.ctrl-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* HAMBURGER — desktop hidden */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-drop-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding: 0;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-drop-btn:hover,
.nav-dropdown:hover .nav-drop-btn {
  color: var(--ink);
}

/* Cinematic shortcut link in navbar */
.nav-cinematic-link {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 5px 13px 5px 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent) !important;
  font-weight: 600 !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.06em !important;
  text-transform: none !important;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav-cinematic-link:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: var(--accent);
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.nav-cinematic-link .nc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: ncPulse 2s infinite;
}
@keyframes ncPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.nav-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 8px;
  min-width: 170px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 2px;
  z-index: 300;
  animation: dropIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.nav-dropdown:hover .nav-drop-menu {
  display: flex;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 18px;
}

.nav-drop-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-light);
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.nav-drop-menu a:hover {
  background: var(--accent-pale);
  color: var(--accent);
}

/* MOBILE NAV DROPDOWN */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 20px 24px;
  gap: 16px;
  z-index: 199;
  animation: slideDown 0.3s ease;
}

.mobile-nav.open {
  display: flex;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-light);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--accent); }
.mobile-nav a:last-child { border-bottom: none; }


/* Hero */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px 40px;
  margin-top: -8px;
  position: relative;
  z-index: 2;
}

/* Entrance items start hidden; GSAP fromTo() reveals them. */
.entrance-item {
  will-change: transform, opacity;
  opacity: 0;
}
/* Fallback: if JS fails, show after 4s so content isn't lost */
body:not(.pt-loading) .entrance-item {
  animation: entranceFallback 0.5s ease 4s both;
}
@keyframes entranceFallback {
  to { opacity: 1; transform: none; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  width: fit-content;
  padding: 6px 12px;
  background: var(--accent-pale);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 40px;
  backdrop-filter: blur(6px);
}

.eyebrow-line {
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 4.8vw, 5.2rem);
  font-weight: 900;
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  display: inline;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title-gradient {
  background: linear-gradient(180deg, var(--ink) 40%, color-mix(in srgb, var(--ink) 60%, var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--ink-light);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-subtitle strong {
  color: var(--ink);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 15px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 55%, transparent);
  display: inline-block;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

.btn-outline {
  padding: 15px 32px;
  background: var(--glass-bg);
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: var(--accent-pale);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--ink);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(180deg, var(--ink) 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
}

/* HERO RIGHT */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  z-index: 0;
  pointer-events: none;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--warm-white) 6%, transparent 58%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}

.hero-glow-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--accent);
}

.hero-glow-2 {
  bottom: -10%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: var(--accent-2);
}

.hero-glow-3 {
  top: 30%;
  left: 20%;
  width: 40vw;
  height: 40vw;
  background: var(--gold);
}

.hero-card-float {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px 20px;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: var(--shadow);
  z-index: 5;
  transition: background 0.6s ease;
}

.hero-card-float.card-ai {
  bottom: 18%;
  right: 8%;
  animation: floatCard 4s ease-in-out infinite;
}

.hero-card-float.card-stack {
  top: 22%;
  left: 5%;
  animation: floatCard 5s ease-in-out infinite reverse;
}

.card-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  margin-bottom: 8px;
  font-family: 'DM Mono', monospace;
}

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

.chip {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: 'DM Mono', monospace;
}

.chip-accent {
  background: var(--accent-pale);
  color: var(--accent);
}

.chip-gold {
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  color: var(--gold);
}

.chip-dark {
  background: var(--border);
  color: var(--ink-light);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

/* floating ornaments across sections */
.floating-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.fo {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.45;
  animation: foFloat 14s ease-in-out infinite;
}

.fo-soft {
  filter: blur(80px);
  opacity: 0.25;
}

[data-theme="dark"] .fo { opacity: 0.32; }
[data-theme="dark"] .fo-soft { opacity: 0.18; }

.fo-1 { width: 180px; height: 180px; background: var(--accent); top: 10%; left: 12%; animation-duration: 16s; }
.fo-2 { width: 140px; height: 140px; background: var(--accent-2); top: 60%; left: 5%; animation-duration: 20s; animation-delay: -5s; }
.fo-3 { width: 220px; height: 220px; background: var(--gold); top: 20%; right: 10%; animation-duration: 22s; animation-delay: -8s; }
.fo-4 { width: 160px; height: 160px; background: var(--rose); bottom: 10%; right: 20%; animation-duration: 18s; animation-delay: -3s; }

.fo-a1 { width: 280px; height: 280px; background: var(--accent); top: -5%; right: -5%; }
.fo-a2 { width: 220px; height: 220px; background: var(--accent-2); bottom: -5%; left: 10%; animation-delay: -6s; }
.fo-p1 { width: 300px; height: 300px; background: var(--gold); top: 20%; left: -8%; }
.fo-p2 { width: 260px; height: 260px; background: var(--accent-2); bottom: 10%; right: -6%; animation-delay: -7s; }
.fo-s1 { width: 340px; height: 340px; background: var(--accent); top: -10%; left: -10%; }
.fo-s2 { width: 240px; height: 240px; background: var(--violet); bottom: -10%; right: -10%; animation-delay: -5s; }
.fo-st1 { width: 320px; height: 320px; background: var(--accent); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.fo-c1 { width: 300px; height: 300px; background: var(--accent-2); top: 0%; right: 10%; }
.fo-c2 { width: 220px; height: 220px; background: var(--accent); bottom: 10%; left: 5%; animation-delay: -5s; }

@keyframes foFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Scroll indicator (kept tiny — hidden by default since we now have scroll rail) */
.scroll-indicator { display: none !important; }
.scroll-indicator-old-x {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 5;
  opacity: 0.7;
}

.scroll-indicator-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border-strong), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-indicator-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollDrip 1.8s ease-in-out infinite;
}

@keyframes scrollDrip {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* Sections */
section {
  padding: 110px 60px;
  position: relative;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--ink-light);
  max-width: 500px;
  line-height: 1.75;
  font-weight: 300;
}

/* About */
#about {
  background: transparent;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-light);
  margin-bottom: 20px;
  font-weight: 300;
}

.about-text p strong {
  color: var(--ink);
  font-weight: 500;
}

.about-highlight {
  display: inline-block;
  background: var(--accent-pale);
  border-left: 3px solid var(--accent);
  padding: 18px 24px;
  border-radius: 0 10px 10px 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 24px 0;
  position: relative;
  backdrop-filter: blur(6px);
}

.about-highlight::before {
  content: '"';
  position: absolute;
  top: 4px;
  left: 12px;
  font-size: 2.2rem;
  color: var(--accent);
  opacity: 0.35;
  font-family: 'Playfair Display', serif;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.skill-card {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  backdrop-filter: saturate(150%) blur(12px);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-pale), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}

.skill-card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

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

.skill-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  position: relative;
}

.skill-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  position: relative;
}

.skill-level {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 500;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}

.skill-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
  width: 0%;
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 40%, transparent);
}


/* Projects */
#projects {
  background: transparent;
}

.projects-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  gap: 12px;
}

.projects-header .section-subtitle {
  max-width: 600px;
  margin: 0 auto;
}

.projects-header .section-label {
  justify-content: center;
}

/* Timeline */
.projects-timeline-wrapper {
  position: relative;
  margin-top: 60px;
  padding-bottom: 40px;
}

.timeline-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-strong) 10%, var(--border-strong) 90%, transparent);
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-zip {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  transform-origin: top center;
  transform: translateX(-50%) scaleY(0);
  z-index: 10;
  box-shadow: 0 0 16px var(--accent), 0 0 40px color-mix(in srgb, var(--accent) 30%, transparent);
}

.timeline-zip-head {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent), 0 0 50px color-mix(in srgb, var(--accent) 40%, transparent);
}

.timeline-zip-head::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  animation: ringPulse 1.8s ease-out infinite;
}

@keyframes ringPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Grid & Cards */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 100px;
  position: relative;
  z-index: 15;
  perspective: 1400px;
}

.project-card {
  opacity: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  width: 96%;
  margin: 0 auto;
}

.project-card.reverse {
  flex-direction: row-reverse;
}

/* Timeline dot */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--warm-white);
  border: 2px solid var(--accent);
  z-index: 15;
  box-shadow: 0 0 0 5px var(--warm-white), 0 0 20px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover .timeline-dot {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.4);
  box-shadow: 0 0 0 5px var(--warm-white), 0 0 30px var(--accent);
}

/* Media Side */
.project-media-side {
  width: 42%;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-visual {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.project-card:hover .project-visual {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px var(--accent),
              0 24px 60px color-mix(in srgb, var(--accent) 22%, transparent),
              0 8px 30px rgba(0,0,0,0.22);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center center;
}

.project-card:hover .project-visual img {
  transform: scale(1.06);
}

.project-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 40%,
    rgba(255,255,255,0.10) 50%,
    transparent 60%);
  background-size: 200% 100%;
  background-position: -100% 0;
  z-index: 2;
  transition: background-position 0s;
  pointer-events: none;
}

.project-card:hover .project-visual::before {
  animation: shimmerPass 0.8s ease forwards;
}

@keyframes shimmerPass {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

.project-visual::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.4s;
}

.project-index-num {
  position: absolute;
  top: 14px; left: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 4;
  font-weight: 600;
}

.project-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.project-badge-inline::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.project-badge { display: none; }

.project-media-footer {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 4px;
}

.project-card.reverse .project-media-footer {
  justify-content: flex-end;
}

/* Content Side */
.project-content-side {
  width: 42%;
  height: 280px;
  flex: none;
  padding: 32px 30px;
  background: var(--glass-bg);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.05);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.project-content-side::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 160px; height: 160px;
  background: radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s;
  opacity: 0;
}

.project-card:hover .project-content-side::before { opacity: 1; }

.project-card:hover .project-content-side {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px var(--accent),
              0 28px 60px color-mix(in srgb, var(--accent) 14%, transparent),
              0 8px 30px rgba(0,0,0,0.10);
  border-color: var(--accent);
}

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

.project-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  padding: 3px 9px;
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.project-card:hover .project-tag {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.project-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.65;
  margin-bottom: 14px;
  font-weight: 400;
  display: block;
}
.project-desc.expanded { display: block; }
.btn-toggle-desc { display: none !important; }

.btn-toggle-desc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 8px;
  width: fit-content;
}

.btn-toggle-desc:hover {
  border-color: var(--accent);
  background: transparent;
}

.btn-toggle-desc .arrow {
  transition: transform 0.25s ease;
  display: inline-block;
}

.btn-toggle-desc.open .arrow {
  transform: rotate(180deg);
}

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

.project-links { display: flex; gap: 10px; }

.project-link {
  font-size: 0.7rem;
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  background: var(--glass-bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(8px);
}

.project-link:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 40%, transparent);
}

.project-card.hidden { display: none; }

.view-more-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-view-more {
  padding: 14px 34px;
  background: var(--glass-bg);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 40px;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.btn-view-more::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 0;
  border-radius: 40px;
}

.btn-view-more:hover::before { transform: scaleX(1); }

.btn-view-more span {
  position: relative;
  z-index: 1;
  transition: color 0.35s;
}

.btn-view-more:hover span { color: #fff; }
.btn-view-more:hover { border-color: var(--accent); }

/* Services */
#services {
  padding: 130px 10%;
  text-align: center;
  background: transparent;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* soft themed wash — blends with aurora instead of fighting it */
#services::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 60%),
    radial-gradient(ellipse at 80% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#services > * { position: relative; z-index: 2; }

#services .section-subtitle {
  max-width: 700px;
  margin: 0 auto 60px auto;
}

#services .section-label {
  color: var(--accent);
  margin: 0 auto 12px auto;
}

#services .section-label::before {
  background: var(--accent);
}

#services .section-title {
  color: var(--ink);
  margin: 0 auto 20px auto;
  background: linear-gradient(180deg, var(--ink) 50%, color-mix(in srgb, var(--ink) 45%, var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#services .section-subtitle {
  color: var(--ink-light);
  margin: 0 auto 60px auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 2;
}

.service-card {
  border: 1px solid var(--border);
  background: var(--glass-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
  text-align: left;
  box-shadow: 0 6px 24px -12px rgba(11, 21, 48, 0.18);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-pale), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(-6px);
  box-shadow: 0 22px 56px -18px color-mix(in srgb, var(--accent) 35%, transparent),
              0 8px 24px -8px rgba(11, 21, 48, 0.20);
}

.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: translateX(100%); }

.service-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: color-mix(in srgb, var(--ink) 8%, transparent);
  position: absolute;
  top: 12px;
  right: 20px;
  line-height: 1;
  user-select: none;
  transition: color 0.35s;
}

.service-card:hover .service-number {
  color: color-mix(in srgb, var(--accent) 22%, transparent);
}

.service-icon {
  font-size: 1.9rem;
  margin-bottom: 18px;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
  transform: translateY(-3px) rotate(-6deg) scale(1.05);
}

.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
  position: relative;
}

.service-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-light);
  font-weight: 300;
  position: relative;
}

/* Stack marquee */
#stack {
  background: transparent;
  overflow: hidden;
}

.stack-marquee-wrap {
  overflow: hidden;
  margin-top: 40px;
  position: relative;
}

.stack-marquee-wrap::before,
.stack-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.stack-marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--warm-white), transparent);
}

.stack-marquee-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--warm-white), transparent);
}

.stack-marquee {
  display: flex;
  gap: 16px;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.stack-marquee:hover {
  /* keep running on hover */
  animation-play-state: running;
}

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

.stack-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 40px;
  white-space: nowrap;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--ink-light);
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.stack-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 22%, transparent);
}

.stack-item span {
  font-size: 1rem;
}

/* Contact — "let's connect" */

/* Desktop: ct-reveal items start hidden for GSAP stagger */
.ct-reveal {
  opacity: 0;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding: 120px 60px 100px;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.contact-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.contact-gradient-1 {
  width: 600px;
  height: 600px;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, var(--accent), transparent 70%);
}

.contact-gradient-2 {
  width: 500px;
  height: 500px;
  bottom: -15%;
  left: -8%;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
}

.contact-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left side */
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
}

.contact-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: contactDotPulse 2.5s ease-in-out infinite;
}

@keyframes contactDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

.contact-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.ch-line {
  display: block;
}

.ch-line-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtext {
  font-size: 1rem;
  color: var(--ink-light);
  line-height: 1.7;
  max-width: 440px;
}

/* Channel cards */
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.channel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.channel-card:hover {
  border-color: var(--accent);
  transform: translateX(6px);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 15%, transparent);
}

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

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

.channel-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-pale), color-mix(in srgb, var(--accent-2) 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon {
  font-size: 1.2rem;
}

.channel-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.channel-name {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-light);
}

.channel-detail {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}

.channel-arrow {
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.channel-card:hover .channel-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Right side — form card with glow border */
.contact-right {
  perspective: 1000px;
  display: flex;
  align-items: stretch;
}

.contact-form-card {
  position: relative;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, var(--border-strong), color-mix(in srgb, var(--accent) 20%, var(--border)));
  transition: box-shadow 0.5s;
  width: 100%;
  display: flex;
}

.contact-form-card:hover {
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 18%, transparent),
              0 30px 80px rgba(0,0,0,0.12);
}

.form-glow {
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: conic-gradient(from 180deg at 50% 50%, var(--accent), var(--accent-2), var(--accent));
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.6s;
  z-index: 0;
}

.contact-form-card:hover .form-glow {
  opacity: 0.25;
}

.form-inner {
  position: relative;
  z-index: 1;
  background: var(--warm-white);
  border-radius: 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

/* Card header — terminal style */
.form-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card-bg) 50%, var(--warm-white));
}

.form-card-dots {
  display: flex;
  gap: 7px;
}

.form-card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.form-card-dots span:nth-child(1) { background: #FF5F57; }
.form-card-dots span:nth-child(2) { background: #FEBC2E; }
.form-card-dots span:nth-child(3) { background: #28C840; }

.form-card-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.form-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28C840;
  box-shadow: 0 0 8px #28C840;
  animation: statusBlink 2.5s ease-in-out infinite;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Form body */
.form-body {
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.78rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--warm-white) 60%, var(--card-bg));
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Submit button — pill with icon */
.form-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 28px 28px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 60px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 8px 28px -6px color-mix(in srgb, var(--accent) 50%, transparent);
  position: relative;
  overflow: hidden;
}

.form-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 60px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.form-submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 44px -8px color-mix(in srgb, var(--accent) 55%, transparent);
}

.form-submit-btn:hover::before { opacity: 1; }

.form-btn-icon {
  display: flex;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-submit-btn:hover .form-btn-icon {
  transform: translateX(4px);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.footer-top-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), var(--accent), transparent);
  opacity: 0.7;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 60px;
  flex-wrap: wrap;
  gap: 24px;
}

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

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--footer-color);
}

.footer-logo span {
  color: var(--accent);
}

.footer-tagline {
  font-size: 0.75rem;
  color: rgba(234, 242, 255, 0.45);
  font-family: 'DM Sans', sans-serif;
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: 0.8rem;
  color: rgba(234, 242, 255, 0.6);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.25s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(234, 242, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(234, 242, 255, 0.55);
  text-decoration: none;
  transition: all 0.3s;
}

.footer-socials a:hover {
  color: #fff;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(234, 242, 255, 0.06);
  padding: 20px 60px;
  text-align: center;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(234, 242, 255, 0.35);
  font-family: 'DM Mono', monospace;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Cv download dropdown */
.cv-dropdown {
  position: relative;
}

.cv-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--glass-bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 8px;
  min-width: 190px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 2px;
  z-index: 300;
  animation: dropIn 0.2s ease;
}

.cv-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.cv-dropdown:hover .cv-drop-menu,
.cv-dropdown.open .cv-drop-menu {
  display: flex;
}

.cv-drop-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-light);
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.cv-drop-menu a:hover {
  background: var(--accent-pale);
  color: var(--accent);
}

/* I18n hidden */
[data-lang].lang-hidden { display: none; }

/* Responsive */
@media (max-width: 900px) {
  nav {
    padding: 0 20px;
    width: 100%;
    max-width: 100vw;
    left: 0;
    right: 0;
    box-sizing: border-box;
  }
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .nav-hamburger { display: flex; }

  /* Prevent any nav-item animation from leaving items offscreen on mobile */
  nav.nav-animate > * { opacity: 1 !important; transform: none !important; }

  /* Loader: lock viewport width + no scroll nudges */
  .page-transition {
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
  }
  .pt-layer-3 {
    background: linear-gradient(180deg, #0B1530, #1E3A8A);
  }

  #cursor,
  #cursorRing,
  .cursor,
  .cursor-ring,
  .cursor-trail {
    display: none !important;
  }

  body { cursor: auto !important; }

  .hero-title { font-size: clamp(2.6rem, 11vw, 3.5rem); }

  #typing-text {
    display: inline-block;
    min-height: 1.2em;
    vertical-align: bottom;
  }

  #hero {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }

  .hero-left {
    padding: 40px 20px 20px;
    text-align: center;
    align-items: center;
  }

  .hero-eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-right {
    min-height: 320px;
  }

  section {
    padding: 80px 24px;
  }

  #about, #contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Contact section mobile */
  .contact-section {
    padding: 60px 20px 50px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-left {
    text-align: center;
    align-items: center;
  }

  .contact-headline {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    text-align: center;
  }

  .contact-subtext {
    max-width: 100%;
    font-size: 0.92rem;
    text-align: center;
  }

  .contact-eyebrow {
    justify-content: center;
  }

  .contact-gradient {
    opacity: 0.2;
    filter: blur(80px);
  }

  .contact-channels {
    width: 100%;
  }

  .channel-card {
    padding: 14px 16px;
    transition: none;
  }
  .channel-card:hover {
    transform: none;
    box-shadow: none;
  }
  .channel-card::before { display: none; }
  .channel-arrow { display: none; }

  .contact-form-card {
    border-radius: 18px;
    transition: none;
  }
  .contact-form-card:hover {
    box-shadow: none;
  }
  .form-glow { display: none; }
  .form-inner {
    border-radius: 16px;
  }
  .form-card-header {
    padding: 12px 20px;
  }
  .form-body {
    padding: 24px 20px 20px;
    gap: 18px;
  }
  .form-submit-btn {
    margin: 0 20px 20px;
    transition: none;
  }
  .form-submit-btn:hover {
    transform: none;
  }

  /* Footer mobile */
  .site-footer .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    gap: 20px;
  }
  .footer-brand { align-items: center; }
  .footer-nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .footer-socials { justify-content: center; }
  .footer-bottom { padding: 16px 20px; }

  .project-card, .project-card.reverse {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding-left: 0;
    /* Mobile: drop heavy 3D context to keep scroll smooth */
    transform-style: flat;
  }

  .timeline-track, .timeline-zip { display: none; }
  .timeline-dot { display: none; }

  /* Mobile perf: kill perspective + heavy hover transforms on the grid */
  .projects-grid {
    perspective: none;
    gap: 48px;
  }

  .project-media-side {
    width: 100%;
    margin-left: 0;
  }

  /* Mobile perf: disable backdrop-filter (very expensive while scrolling) */
  .project-content-side {
    width: 100%;
    height: auto;
    margin-left: 0;
    padding: 22px;
    border-radius: 16px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--surface, var(--glass-bg));
    transition: none;
  }
  .project-content-side::before { display: none; }

  /* Mobile perf: turn off shimmer + img scale hover (no real hover anyway) */
  .project-visual {
    width: 100%;
    height: 0;
    padding-bottom: 60%;
    position: relative;
    transition: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }
  .project-visual::before { display: none; }
  .project-card:hover .project-visual,
  .project-card:hover .project-content-side,
  .project-card:hover .project-visual img {
    transform: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }

  .project-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
  }

  .project-index-num {
    top: 10px;
    left: 10px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .project-link {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .project-media-footer { justify-content: flex-start !important; }

  .services-grid { grid-template-columns: 1fr 1fr; }

  .hero-glow {
    opacity: 0.35;
    width: 80vw;
    height: 80vw;
  }

  .hero-bg-overlay {
    background: radial-gradient(circle at top left, var(--warm-white) 0%, transparent 70%);
  }

  .hero-card-float { transform: scale(0.85); z-index: 6; }
  .hero-card-float.card-stack { top: 5%; left: 5%; }
  .hero-card-float.card-ai { bottom: 5%; right: 5%; }

  .hero-stats {
    gap: 20px;
    justify-content: center;
    width: 100%;
    margin-top: 24px;
    padding-top: 24px;
  }

  .aurora-grid {
    opacity: 0.35;
    background-size: 48px 48px;
  }

  /* Keep floating orbs but lighter and fewer per section */
  .floating-orbs .fo { opacity: 0.35; filter: blur(70px); }
  .floating-orbs .fo-soft { opacity: 0.22; filter: blur(90px); }
  .floating-orbs .fo:nth-child(n+3) { display: none; }

  .scroll-indicator { display: none; }

  /* Anchor mobile menu to current nav height (nav shrinks to 58px on scroll) */
  .mobile-nav { top: var(--nav-h, 68px); }

  /* Tap target for expandable project description */
  .btn-toggle-desc { min-height: 36px; }

  /* Keep aurora readable with slightly softer blobs (but not faded flat) */
  .aurora-blob { opacity: calc(var(--aurora-alpha) * 0.75); filter: blur(90px); }

  /* Per-section subtle washes so below-hero doesn't read flat on mobile */
  #about::after,
  #projects::after,
  #services::after,
  #stack::after,
  #contact::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(ellipse at 15% 10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%),
      radial-gradient(ellipse at 85% 90%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 55%);
  }
  #projects::after {
    background:
      radial-gradient(ellipse at 80% 15%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 55%),
      radial-gradient(ellipse at 15% 85%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 55%);
  }
  #stack::after {
    background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
  }
  #services::after {
    background:
      radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 60%),
      radial-gradient(ellipse at 80% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
  }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.4rem, 10vw, 3rem); }

  #typing-text {
    display: inline-block;
    min-height: 2.4em;
    vertical-align: top;
  }

  .skills-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  nav { padding: 0 16px; height: 60px; }

  section { padding: 70px 20px; }

  .section-title { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }

  .hero-left { padding: 30px 18px 10px; }
  .hero-right { min-height: 280px; }
  .hero-card-float { padding: 12px 14px; border-radius: 12px; }
  .card-title { font-size: 0.62rem; }
  .chip { font-size: 0.64rem; padding: 3px 8px; }

  .hero-stats { gap: 14px; flex-wrap: wrap; }
  .stat-number { font-size: 1.8rem; }

  #services { padding: 90px 20px; }

  .service-card { padding: 22px 20px; border-radius: 14px; }
  .service-number { font-size: 2.3rem; }

  .about-highlight { padding: 14px 18px; font-size: 0.95rem; }

  .project-content-side { padding: 18px; border-radius: 14px; }
  .project-name { font-size: 1.15rem; }
  .project-desc { font-size: 0.82rem; }
  .project-link { padding: 7px 12px; font-size: 0.68rem; }
  .btn-toggle-desc { font-size: 0.62rem; padding: 5px 10px; }

  .stack-item { padding: 10px 18px; font-size: 0.74rem; }

  .site-footer .footer-content { padding: 24px 16px; }
  .site-footer .footer-bottom { padding: 14px 16px; }
  .footer-nav { gap: 12px; }
  .footer-socials a { width: 34px; height: 34px; }

  /* Loader scale down on small screens */
  .pt-logo { font-size: 1.9rem; }
  .pt-caption { font-size: 0.66rem; letter-spacing: 0.22em; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .aurora-blob, .fo, .scroll-indicator-line::after { animation: none !important; }
}


/* Cursor tap ripple (cinematic click effect) */
.cursor-taps {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9996;
  overflow: hidden;
}
.cursor-tap {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 90%, white);
  transform: translate(-50%, -50%) scale(0.4);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: cursorTapRing 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.cursor-tap::before { content: none; }
.cursor-tap::after { content: none; }
@keyframes cursorTapRing {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0.95; border-width: 1px; }
  100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; border-width: 0.4px; }
}

/* press state for cursor */
.cursor-ring.is-press {
  width: 22px !important;
  height: 22px !important;
  border-color: color-mix(in srgb, var(--accent) 100%, white) !important;
  background-color: color-mix(in srgb, var(--accent) 25%, transparent) !important;
}

@media (hover: none), (pointer: coarse) {
  .cursor-taps { display: none !important; }
}

/* About — cinema */
.about-cinema {
  display: block !important;
  grid-template-columns: none !important;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 6vw, 80px) clamp(60px, 9vw, 130px) !important;
  gap: 0 !important;
  position: relative;
}

.about-cinema__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 22px;
  margin-bottom: clamp(40px, 6vw, 70px);
  border-bottom: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
}
.about-cinema__head .section-label {
  margin: 0;
  background: transparent;
  border: 0;
  padding: 0;
  letter-spacing: 0.22em;
}
.about-cinema__index {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--ink-light);
}

.about-cinema__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 5vw, 70px);
  align-items: stretch;
}

.about-cinema__story {
  display: flex;
  flex-direction: column;
}

.about-cinema__title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--ink);
}
.about-cinema__title em {
  font-style: italic;
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.ac-line {
  display: block;
  overflow: hidden;
  line-height: 1;
}
.ac-fill {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
.about-cinema__title.is-on .ac-fill {
  transform: translateY(0);
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-cinema__title.is-on [data-acsplit].ac-fill,
.about-cinema__title.is-on .ac-line:nth-child(1) .ac-fill { transition-delay: 0s; }
.about-cinema__title.is-on .ac-line:nth-child(2) .ac-fill { transition-delay: 0.12s; }
.about-cinema__title.is-on .ac-line:nth-child(3) .ac-fill { transition-delay: 0.24s; }

.about-cinema__lead {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 56ch;
  margin: 0 0 22px;
}

.about-cinema__beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.ac-beat {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ac-beat.is-on { opacity: 1; transform: translateY(0); }
.ac-beat__num {
  font-family: 'DM Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  padding-top: 4px;
}
.ac-beat__copy {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-light);
  margin: 0;
  max-width: 56ch;
}
.ac-beat::after {
  content: "";
  position: absolute;
  inset: 0 -16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  opacity: 0;
  transform: scaleX(0.96);
  transform-origin: left center;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
  pointer-events: none;
}
.ac-beat:hover { transform: translateY(0) translateX(8px); }
.ac-beat:hover::after { opacity: 1; transform: scaleX(1); }
.ac-beat:hover .ac-beat__num { color: var(--accent-2); }

.about-cinema__pull {
  margin: auto 0 0;
  padding: 22px 0 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-top: 1px solid var(--border);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-cinema__pull.is-on { opacity: 1; transform: translateY(0); }
.about-cinema__pull em {
  display: inline-block;
  color: var(--accent);
  font-style: italic;
  font-size: 1.4em;
  vertical-align: -0.18em;
  margin: 0 4px;
  line-height: 1;
}

/* Right panel */
.about-cinema__panel {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.about-cinema__panel .ac-panel__rows { flex: 1; }
.ac-panel__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.ac-panel__hed {
  letter-spacing: 0.22em;
}
.ac-panel__dots {
  display: inline-flex;
  gap: 6px;
}
.ac-panel__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  display: inline-block;
}
.ac-panel__dots i:nth-child(1) { background: #ef6b5e; }
.ac-panel__dots i:nth-child(2) { background: #f4bf4f; }
.ac-panel__dots i:nth-child(3) { background: #5cd97a; }
.ac-panel__title {
  flex: 1;
  text-align: center;
  text-transform: lowercase;
  letter-spacing: 0.12em;
}
.ac-panel__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-size: 0.66rem;
  color: var(--accent);
}
.ac-panel__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: ncPulse 1.6s infinite;
}

.ac-panel__rows {
  display: flex;
  flex-direction: column;
}
.ac-row {
  all: unset;
  cursor: none;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.35s ease, padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ac-row:last-child { border-bottom: 0; }
.ac-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ac-row:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  padding-left: 24px;
}
.ac-row:hover::before { transform: scaleY(1); }
.ac-row__key {
  grid-row: span 2;
  font-size: 1.2rem;
  text-align: center;
}
.ac-row__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.ac-row__lvl {
  font-family: 'DM Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-align: right;
}
.ac-row:hover .ac-row__lvl { color: var(--accent); }
.ac-row__bar {
  grid-column: 2 / -1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.ac-row__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.ac-row.is-on .ac-row__bar i {
  width: var(--w, 80%);
}

.ac-panel__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.ac-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
}
.ac-meta:last-child { border-right: 0; }
.ac-meta__k {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.ac-meta__v {
  font-size: 0.86rem;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.ac-meta__v--accent { color: var(--accent); }

@media (max-width: 1100px) {
  .about-cinema__grid { grid-template-columns: 1fr; align-items: start; }
  .about-cinema__panel { position: relative; }
  .about-cinema__pull { margin-top: 32px; }
}

@media (max-width: 720px) {
  .about-cinema { padding: 80px 18px 60px !important; }
  .about-cinema__title {
    font-size: clamp(2rem, 9.2vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
  }
  .about-cinema__lead { font-size: 1.05rem; }
  .ac-beat { grid-template-columns: 44px 1fr; padding: 18px 0; }
  .ac-beat__copy { font-size: 0.95rem; }
  .ac-row { grid-template-columns: 30px 1fr auto; padding: 14px 14px; gap: 4px 10px; }
  .ac-row:hover { padding-left: 18px; }
  .ac-row__name { font-size: 0.95rem; }
  .ac-panel__meta { grid-template-columns: 1fr 1fr; }
  .ac-meta { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .ac-meta:nth-child(2n) { border-right: 0; }
  .ac-meta:nth-last-child(-n+2) { border-bottom: 0; }
}

/* Services — cinema (accordion list) */
.svc-cinema {
  padding: clamp(80px, 12vw, 160px) clamp(20px, 6vw, 80px) clamp(80px, 10vw, 140px) !important;
  text-align: left !important;
}
.svc-cinema::before { display: none !important; }
.svc-cinema > * { position: relative; z-index: 2; }

.svc-cinema__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 22px;
  margin-bottom: clamp(28px, 4vw, 50px);
  border-bottom: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
}
.svc-cinema__head .section-label {
  margin: 0 !important;
  background: transparent;
  border: 0;
  padding: 0;
  letter-spacing: 0.22em;
}
.svc-cinema__index {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--ink-light);
}

.svc-cinema__title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  color: var(--ink);
  text-align: left !important;
  display: block;
  overflow: visible;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-cinema__title.is-on { opacity: 1; transform: translateY(0); }
.svc-cinema__title em {
  font-style: italic;
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-left: 0.25em;
  line-height: 1.15;
  padding-bottom: 0.06em;
}
[data-svcsplit] {
  display: inline-block;
  vertical-align: baseline;
}
[data-svcsplit] > .svc-fill { display: inline; }

.svc-cinema__lead {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.05rem, 1.4vw, 1.4rem);
  color: var(--ink-light);
  max-width: 60ch;
  margin: 0 0 clamp(40px, 6vw, 70px) 0 !important;
  text-align: left !important;
}

.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.svc-row {
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  /* fade-up reveal — triggers when row enters mid-viewport zone */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1), transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.svc-row.is-shown { opacity: 1; transform: translateY(0); }

.svc-row__head {
  display: grid;
  grid-template-columns: 70px 1fr auto 60px;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  transition: padding 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-row__head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-row.is-open .svc-row__head { padding-left: 18px; padding-right: 18px; }
.svc-row.is-open .svc-row__head::after { width: 100%; }

.svc-row__num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 400;
  color: var(--ink-light);
  letter-spacing: -0.02em;
  transition: color 0.5s ease;
}
.svc-row.is-open .svc-row__num {
  color: var(--accent);
}

.svc-row__name {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.5s ease;
}
.svc-row.is-open .svc-row__name {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.svc-row__tags {
  display: inline-flex;
  gap: 6px;
}
.svc-row__tags i {
  font-style: normal;
  font-family: 'DM Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--ink-light);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  transition: border-color 0.5s ease, color 0.5s ease, background 0.5s ease;
}
.svc-row.is-open .svc-row__tags i {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* Indicator: thin vertical line that rotates to horizontal as section opens */
.svc-row__indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  position: relative;
}
.svc-row__line {
  display: block;
  width: 1.4px;
  height: 18px;
  background: var(--ink-light);
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), background 0.5s ease, height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-row.is-open .svc-row__line {
  transform: rotate(90deg);
  background: var(--accent);
  height: 26px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
}

.svc-row__body {
  height: 0;
  overflow: hidden;
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-row__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: stretch;
  padding: 8px 4px 36px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-row.is-open .svc-row__inner {
  opacity: 1;
  transform: translateY(0);
}
.svc-row.is-open .svc-row__inner {
  opacity: 1;
  transform: translateY(0);
}

.svc-row__text {
  padding-left: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.svc-row__copy {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  max-width: 56ch;
}
.svc-row__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc-row__points li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-light);
  position: relative;
  padding-left: 20px;
  letter-spacing: 0;
}
.svc-row__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 1px;
  background: var(--accent);
}
.svc-row__media {
  position: relative;
  min-height: clamp(220px, 26vw, 320px);
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    radial-gradient(circle at 70% 70%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 60%),
    color-mix(in srgb, var(--ink) 4%, transparent);
  border: 1px solid var(--border-strong);
  display: block;
}
.svc-row__caption {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
  z-index: 5;
  padding: 5px 10px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Floating tech icons inside the frame — physics driven */
.svc-icons {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}
.svc-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 10%, transparent), color-mix(in srgb, var(--ink) 4%, transparent));
  border: 1px solid var(--border-strong);
  color: var(--ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  transform: translate3d(-200px, -200px, 0) scale(0);
  opacity: 0;
  transition: opacity 0.4s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  -webkit-touch-callout: none;
}
.svc-icon svg {
  width: 56%;
  height: 56%;
  pointer-events: none;
}
.svc-row.is-open .svc-icon {
  opacity: 1;
}
.svc-icon.is-grab {
  cursor: grabbing;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 18px 50px -10px color-mix(in srgb, var(--accent) 50%, transparent), inset 0 1px 0 rgba(255,255,255,0.08);
  z-index: 4;
}

/* tooltip on hover */
.svc-icon::after {
  content: attr(data-tip);
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translate(-50%, 100%);
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  pointer-events: none;
}
.svc-icon:hover::after { opacity: 1; }
.svc-icon:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--accent);
  box-shadow: 0 14px 40px -10px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 1px 0 rgba(255,255,255,0.07);
}

.svc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.svc-foot__link {
  color: var(--ink);
  letter-spacing: 0.16em;
  position: relative;
  padding: 6px 0;
}
.svc-foot__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-foot__link:hover { color: var(--accent); }
.svc-foot__link:hover::after { transform: scaleX(1); }

@media (max-width: 900px) {
  .svc-row__head { grid-template-columns: 50px 1fr 30px; gap: 14px; padding: 22px 0; }
  .svc-row__tags { display: none; }
  .svc-row__num { font-size: 1.3rem; }
  .svc-row__name { font-size: clamp(1.4rem, 6vw, 2.2rem); }
  .svc-row__inner { grid-template-columns: 1fr; padding-bottom: 28px; }
  .svc-row__text { padding-left: 0; }
  .svc-row__copy { font-size: 1rem; }
  .svc-row__media { min-height: 220px; height: 220px; }
  .svc-icon { width: 54px; height: 54px; border-radius: 14px; }
  .svc-icon--lg { width: 64px; height: 64px; border-radius: 18px; }
}
@media (max-width: 720px) {
  .svc-cinema { padding: 80px 18px 60px !important; }
  .svc-cinema__title { font-size: clamp(2.4rem, 13vw, 4.2rem); }
  .svc-foot { flex-direction: column; gap: 14px; align-items: flex-start; }
}


/* Form row (side by side fields) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-row .form-field { margin: 0; }

@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; gap: 16px; }
}


/* Inline icons in skill rows + stack marquee */
.ac-row__key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.ac-row__key svg {
  width: 16px;
  height: 16px;
  display: block;
}
.ac-row:hover .ac-row__key {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.stack-item {
  gap: 10px;
}
.stack-item span {
  font-size: 1.05rem;
  filter: saturate(1.1);
}


/* Interactive pal — friendly ghost with feet, theme aware */
:root {
  --pal-body: #0B1530;
  --pal-eye: #ffffff;
  --pal-mouth: #ffffff;
  --pal-foot: rgba(11, 21, 48, 0.85);
  --pal-accent: #2563EB;
  --pal-bubble-bg: rgba(255, 255, 255, 0.96);
  --pal-bubble-border: rgba(11, 21, 48, 0.14);
  --pal-bubble-text: #0B1530;
  --pal-halo: rgba(37, 99, 235, 0.30);
  --pal-badge-bg: #2563EB;
  --pal-badge-fg: #ffffff;
}
[data-theme="dark"] {
  --pal-body: #EAF2FF;
  --pal-eye: #0B1530;
  --pal-mouth: #0B1530;
  --pal-foot: rgba(234, 242, 255, 0.85);
  --pal-accent: #60A5FA;
  --pal-bubble-bg: rgba(20, 24, 38, 0.94);
  --pal-bubble-border: rgba(96, 165, 250, 0.35);
  --pal-bubble-text: #EAF2FF;
  --pal-halo: rgba(96, 165, 250, 0.4);
  --pal-badge-bg: #0B1530;
  --pal-badge-fg: #60A5FA;
}

.pal {
  position: fixed;
  left: 0;
  top: 0;
  width: 56px;
  height: 64px;
  z-index: 90;
  pointer-events: auto;
  will-change: transform;
  transform: translate3d(80vw, 80vh, 0);
  transition: opacity 0.6s ease;
  opacity: 0;
}
.pal.is-on { opacity: 1; }

.pal__halo {
  position: absolute;
  inset: -22px -16px 6px -16px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, var(--pal-halo), transparent 65%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
  animation: palHalo 4.2s ease-in-out infinite;
}
@keyframes palHalo {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

.pal__body {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.30));
  animation: palFloat 3.4s ease-in-out infinite;
}
@keyframes palFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.pal.is-jump .pal__body { animation: palJump 0.5s ease-out; }
@keyframes palJump {
  0% { transform: translateY(0) scaleY(1) scaleX(1); }
  30% { transform: translateY(-14px) scaleY(1.1) scaleX(0.92); }
  60% { transform: translateY(2px) scaleY(0.86) scaleX(1.1); }
  100% { transform: translateY(0) scaleY(1) scaleX(1); }
}

.pal__svg { width: 100%; height: 100%; overflow: visible; }
.pal__head {
  fill: var(--pal-body);
  transition: fill 0.45s ease, transform 0.3s ease;
}
.pal__foot {
  fill: var(--pal-foot);
  transition: fill 0.45s ease, transform 0.3s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.pal.is-walk .pal__foot--l { animation: palStepL 0.55s ease-in-out infinite; }
.pal.is-walk .pal__foot--r { animation: palStepR 0.55s ease-in-out infinite; }
@keyframes palStepL {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes palStepR {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(0); }
}

.pal__eye circle {
  fill: var(--pal-eye);
  transition: r 0.16s ease, fill 0.45s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.pal.is-blink .pal__eye circle { r: 0.6; }
.pal.is-scared .pal__eye circle { r: 6; }

.pal__mouth {
  fill: none;
  stroke: var(--pal-mouth);
  stroke-width: 3;
  stroke-linecap: round;
  transition: d 0.3s ease, stroke 0.45s ease;
}
.pal.is-scared .pal__mouth { d: path('M44 62 Q50 58 56 62'); }
.pal.is-happy .pal__mouth { d: path('M42 58 Q50 68 58 58'); }

.pal__hand ellipse {
  fill: var(--pal-body);
  transition: fill 0.45s ease;
}
.pal__hand { transform-box: fill-box; transform-origin: center; }
.pal__hand--r ellipse { transform-origin: 86px 64px; transform-box: fill-box; }
.pal.is-wave .pal__hand--r {
  animation: palWave 0.5s ease-in-out 4;
  transform-origin: 86px 64px;
  transform-box: fill-box;
}
@keyframes palWave {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(2px, -7px) rotate(-25deg); }
  75% { transform: translate(-2px, -7px) rotate(25deg); }
}

/* code badge attached to the pal (looks like phone in screenshot) */
.pal__badge {
  position: absolute;
  right: -8px;
  top: 36%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pal-badge-bg);
  color: var(--pal-badge-fg);
  border-radius: 7px;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.06) inset;
  z-index: 3;
  transform: rotate(-8deg);
  animation: palBadge 3.6s ease-in-out infinite;
}
@keyframes palBadge {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-3px); }
}

/* speech bubble */
.pal__bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -10px) scale(0.6);
  transform-origin: 50% 110%;
  white-space: nowrap;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--pal-bubble-text);
  background: var(--pal-bubble-bg);
  border: 1px solid var(--pal-bubble-border);
  padding: 9px 14px;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255,255,255,0.04) inset;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 4;
}
.pal__bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: inherit;
  border-right: 1px solid var(--pal-bubble-border);
  border-bottom: 1px solid var(--pal-bubble-border);
}
.pal.is-talk .pal__bubble {
  opacity: 1;
  transform: translate(-50%, -2px) scale(1);
}

@media (hover: none), (pointer: coarse) {
  /* keep pal visible on touch but locked to bottom strip */
  .pal { display: block; }
}
@media (max-width: 900px) {
  /* allow pal to show on mobile too (it walks along the bottom) */
  .pal { display: block !important; }
}


/* About paragraphs (replaces 01/02/03 beats) */
.about-cinema__paragraphs {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 22px;
}
.ac-para {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-light);
  margin: 0;
  max-width: 62ch;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ac-para.is-on { opacity: 1; transform: translateY(0); }


/* Mobile performance — keep animations but lighter */
@media (max-width: 720px) {
  /* lighter aurora & orbs to free GPU */
  .aurora-blob { filter: blur(80px) !important; }
  .floating-orbs .fo { filter: blur(60px) !important; opacity: 0.2 !important; }
  .floating-orbs .fo:nth-child(n+3) { display: none; }

  /* simpler shadow on cards */
  .skill-card, .service-card, .project-card, .channel-card {
    box-shadow: none !important;
  }

  /* svc icons keep physics on mobile too (drag + gravity) */
  .svc-icon {
    /* ensure pointer-events stay enabled for drag on touch */
  }

  /* svc body keeps animation but slightly faster on mobile so it feels responsive */
  .svc-row__body { transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
  .svc-row__inner { transition: opacity 0.5s ease 0.05s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s; }

  /* mobile hint that head is tappable */
  .svc-row__head { cursor: pointer; }

  /* pal hidden on mobile already, but ensure */
  .pal { display: none !important; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
}


/* Hero meta — sub-info row under cta buttons */
.hero-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.hero-meta__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--glass-bg);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-meta__pill--ghost {
  background: transparent;
  color: var(--ink-light);
  border-color: var(--border);
}
.hero-meta__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5cf08c;
  box-shadow: 0 0 10px rgba(92, 240, 140, 0.7);
  animation: heroMetaPulse 1.6s infinite ease-in-out;
}
@keyframes heroMetaPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.6; }
}
.hero-meta__sep {
  color: color-mix(in srgb, var(--ink-light) 60%, transparent);
  font-style: italic;
}
@media (max-width: 720px) {
  .hero-meta { gap: 8px; font-size: 0.62rem; letter-spacing: 0.12em; }
  .hero-meta__pill { padding: 5px 10px; }
  .hero-meta__sep { display: none; }
}


/* About extras — location tag + mini stats */
.ac-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-family: 'DM Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 22px;
  width: fit-content;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ac-tag.is-on { opacity: 1; transform: translateY(0); }
.ac-tag__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5cf08c;
  box-shadow: 0 0 10px rgba(92, 240, 140, 0.7);
  animation: heroMetaPulse 1.6s infinite ease-in-out;
}

.ac-stats {
  list-style: none;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ac-stats.is-on { opacity: 1; transform: translateY(0); }
.ac-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 10px;
}
.ac-stat__num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
}
.ac-stat__num i {
  font-style: italic;
  color: var(--accent);
  font-size: 0.65em;
  margin-left: 2px;
  font-weight: 400;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ac-stat__lbl {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
}

@media (max-width: 720px) {
  .ac-stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 14px 0; }
  .ac-stat__num { font-size: 1.4rem; }
  .ac-stat__lbl { font-size: 0.56rem; letter-spacing: 0.12em; }
  .ac-tag { font-size: 0.58rem; padding: 6px 10px; gap: 8px; }
}


/* Hero stats v2 — editorial 3-column with count-up */
.hero-stats-v2 {
  list-style: none;
  margin: 36px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 480px;
}
.hs-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hs-stat__num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.hs-stat__suf {
  font-family: 'DM Mono', monospace;
  font-style: normal;
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  align-self: flex-start;
  margin-top: 0.18em;
  margin-left: 4px;
  text-transform: lowercase;
}
.hs-stat__suf em {
  font-style: normal;
  margin-left: 1px;
}
.hs-count { display: inline-block; font-variant-numeric: tabular-nums; }
.hs-stat__lbl {
  font-family: 'DM Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
}
@media (max-width: 720px) {
  .hero-stats-v2 { grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding-top: 18px; margin-top: 28px; }
  .hs-stat__num { font-size: 1.5rem; }
  .hs-stat__lbl { font-size: 0.58rem; letter-spacing: 0.12em; }
}


/* About panel — extra "what i deliver" block */
.ac-panel__bar--sub {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
}
.ac-panel__deliver {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.ac-panel__deliver li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  position: relative;
  transition: background 0.35s ease;
}
.ac-panel__deliver li:first-child { border-top: 0; }
.ac-panel__deliver li:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.ac-deliver__k {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 2px;
}
.ac-deliver__v {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink);
}

@media (max-width: 720px) {
  .ac-panel__deliver li { grid-template-columns: 70px 1fr; padding: 10px 14px; gap: 10px; }
  .ac-deliver__k { font-size: 0.56rem; letter-spacing: 0.14em; }
  .ac-deliver__v { font-size: 0.78rem; }
  .ac-panel__bar--sub { padding: 12px 14px; }
}


/* Mobile parity — visual punch on phones */
@media (max-width: 720px) {

  /* HERO: brighter glow + kinetic bg layer */
  #hero {
    padding-top: 110px !important;
    overflow: hidden;
  }
  .hero-bg-container {
    opacity: 1;
  }
  .hero-glow {
    opacity: 0.8 !important;
    filter: blur(80px);
  }
  .hero-glow-1 {
    width: 90vw !important;
    height: 90vw !important;
    top: -25%;
    left: -20%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 70%, transparent), transparent 70%) !important;
  }
  .hero-glow-2 {
    width: 85vw !important;
    height: 85vw !important;
    bottom: -25%;
    right: -25%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 60%, transparent), transparent 70%) !important;
  }
  .hero-glow-3 {
    width: 60vw !important;
    height: 60vw !important;
    top: 35%;
    left: 30%;
    background: radial-gradient(circle, color-mix(in srgb, var(--gold) 45%, transparent), transparent 70%) !important;
    opacity: 0.55 !important;
  }
  /* extra subtle grain ribbon at the top */
  #hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(70% 50% at 50% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
      radial-gradient(60% 60% at 100% 100%, color-mix(in srgb, var(--violet) 18%, transparent), transparent 70%);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
  }

  /* ABOUT mobile center */
  .about-cinema {
    text-align: center;
  }
  .about-cinema__head { justify-content: center; }
  .about-cinema__head .section-label {
    margin: 0 auto !important;
  }
  .about-cinema__story {
    text-align: center;
    align-items: center;
  }
  .ac-tag { margin-left: auto; margin-right: auto; }
  .about-cinema__title { text-align: center; }
  .about-cinema__lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .about-cinema__paragraphs {
    align-items: center;
  }
  .ac-para { text-align: center; max-width: none; }

  /* Show-more behaviour: collapsible paragraphs hidden until is-expanded */
  .ac-para--collapsible {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    transform: translateY(0);
    padding: 0;
    transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, margin 0.4s ease, padding 0.4s ease;
  }
  .about-cinema__paragraphs.is-expanded .ac-para--collapsible {
    max-height: 600px;
    opacity: 1;
    margin: 0;
    padding: 0;
  }
  .ac-para__toggle {
    display: inline-flex;
    margin: 14px auto 0;
    padding: 10px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--glass-bg);
    color: var(--ink);
    font-family: 'DM Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
  }
  .ac-para__toggle:hover { border-color: var(--accent); color: var(--accent); }

  /* Work mobile: zipline behind cards */
  .view-more-container {
    margin-top: 24px !important;
    margin-bottom: 0 !important;
  }
  .btn-view-more {
    width: auto;
  }
  .projects-timeline-wrapper {
    padding-left: 0;
    position: relative;
  }
  .timeline-track {
    display: block !important;
    left: 18px !important;
    right: auto !important;
    transform: none !important;
    width: 1px !important;
    background: linear-gradient(to bottom, transparent, var(--border-strong) 8%, var(--border-strong) 92%, transparent) !important;
    z-index: 0 !important;
  }
  .timeline-zip {
    display: block !important;
    left: 17px !important;
    right: auto !important;
    transform: scaleY(0);
    transform-origin: top center !important;
    width: 3px !important;
    z-index: 1 !important;
    background: linear-gradient(to bottom, var(--accent), var(--accent-2)) !important;
    box-shadow: 0 0 12px var(--accent), 0 0 32px color-mix(in srgb, var(--accent) 35%, transparent) !important;
  }
  .timeline-zip-head {
    display: block !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .timeline-dot {
    display: none !important;
  }
  .projects-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
  }
  .project-card {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .project-card.hidden { display: none !important; }
  .project-card.reverse { flex-direction: column !important; }

  /* Media side becomes the only "card" — full bleed image */
  .project-media-side {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
    border: 0;
  }
  .project-visual {
    border-radius: 14px !important;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    aspect-ratio: 16 / 10;
    background: var(--glass-bg);
    margin: 0 !important;
  }
  .project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .project-visual::before { display: none !important; }
  .project-index-num { display: none !important; }
  .project-media-footer {
    margin-top: 12px;
    padding: 0 0 0 56px;
    gap: 12px;
    flex-wrap: wrap;
  }

  /* Content side becomes a gap block — text "floating" beside zipline */
  .project-content-side {
    width: 100%;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 36px 0 36px 56px !important;
    border-radius: 0 !important;
  }
  .project-content-side::before { display: none !important; }
  .project-card:hover .project-content-side {
    transform: none !important;
    box-shadow: none !important;
  }

  /* Inline badge sits as a tag */
  .project-badge-inline {
    display: inline-flex;
    margin-bottom: 12px;
  }
  .project-name {
    font-size: 1.6rem !important;
    line-height: 1.1;
    margin-bottom: 12px;
  }
  .project-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-light);
    margin-bottom: 14px;
  }
  .project-tags {
    flex-wrap: wrap;
    gap: 6px;
  }
  .project-tag {
    font-size: 0.62rem !important;
    padding: 4px 10px !important;
  }

  /* The "Details" toggle isn't needed on this layout — keep but compact */
  .btn-toggle-desc {
    margin-top: 8px;
  }

  /* SERVICES mobile center */
  .svc-cinema {
    text-align: center;
  }
  .svc-cinema__head { justify-content: center; }
  .svc-cinema__head .section-label { margin: 0 auto !important; }
  .svc-cinema__title { text-align: center !important; }
  .svc-cinema__lead {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .svc-row__head {
    text-align: left;
  }
  .svc-row__inner { text-align: left; }
  .svc-foot { align-items: center; }

  /* Stack mobile: marquee keeps animating */
  /* (animation keeps running by default; particle physics disabled in another rule) */

  /* CONTACT channels: align icon+text optically center */
  .channel-card {
    grid-template-columns: 44px 1fr;
    display: grid;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    text-align: left;
  }
  .channel-icon-wrap {
    grid-row: span 2;
  }
  .channel-text {
    flex: none;
    gap: 4px;
  }
  .channel-name { font-size: 0.62rem; }
  .channel-detail { font-size: 0.86rem; line-height: 1.3; word-break: break-word; }

}

/* DESKTOP: contact channel optical center fix (also looks better on desktop) */
.channel-card {
  align-items: center;
}
.channel-text {
  justify-content: center;
}


/* Mobile: instant smooth handoff from loader to hero */
@media (max-width: 720px) {
  .page-transition {
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }
  .page-transition.pt-out {
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0s !important;
  }
  .page-transition.pt-out .pt-bg {
    animation-duration: 0.35s !important;
  }
  .page-transition.pt-out .pt-glow {
    animation-duration: 0.3s !important;
  }
  .page-transition.pt-out .pt-center {
    animation-duration: 0.25s !important;
  }
}


/* Mobile perf: reduce 3D canvas weight (lower opacity, capped pixels via JS) */
@media (max-width: 720px) {
  #hero-canvas { opacity: 0.6; }
  #global-canvas { opacity: 0.5; }
}


/* Navbar — segmented pills, icon + label, active state */
nav#navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 1080px;
  height: 60px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.35s ease;
}
nav#navbar.is-scrolled,
nav#navbar.scrolled {
  top: 10px;
  max-width: 980px;
}
/* Logo group (own pill) */
nav#navbar .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
html:not([data-theme="dark"]) nav#navbar .nav-logo {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(11, 21, 48, 0.08);
}
nav#navbar .nav-logo-dot { color: var(--accent); }

/* Center links group (own pill) */
nav#navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
html:not([data-theme="dark"]) nav#navbar .nav-links {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(11, 21, 48, 0.08);
}
nav#navbar .nav-links > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-light);
  background: transparent;
  border-radius: 999px;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
nav#navbar .nav-links > a::before,
nav#navbar .nav-links > a::after { display: none; }
nav#navbar .nav-links > a .nav-ico { flex-shrink: 0; opacity: 0.85; }
nav#navbar .nav-links > a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}
html:not([data-theme="dark"]) nav#navbar .nav-links > a:hover {
  background: rgba(11, 21, 48, 0.05);
}
nav#navbar .nav-links > a.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
nav#navbar .nav-links > a.is-active .nav-ico { opacity: 1; }

/* Right cluster group (own pill) */
nav#navbar .nav-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
html:not([data-theme="dark"]) nav#navbar .nav-right {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(11, 21, 48, 0.08);
}

/* Resume CTA */
nav#navbar .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
nav#navbar .nav-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 80%, transparent);
}

nav#navbar .cv-dropdown { position: relative; }
nav#navbar .cv-drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: rgba(11, 13, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 14px;
  padding: 6px;
  display: grid;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 50;
}
html:not([data-theme="dark"]) nav#navbar .cv-drop-menu {
  background: rgba(244, 242, 236, 0.95);
  border-color: rgba(11, 21, 48, 0.08);
}
nav#navbar .cv-dropdown:hover .cv-drop-menu,
nav#navbar .cv-dropdown.open .cv-drop-menu {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
nav#navbar .cv-drop-menu a {
  padding: 9px 12px;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  border-radius: 8px;
  color: var(--ink);
}
nav#navbar .cv-drop-menu a:hover { background: rgba(255, 255, 255, 0.06); color: var(--accent); }
html:not([data-theme="dark"]) nav#navbar .cv-drop-menu a:hover { background: rgba(11, 21, 48, 0.05); }

nav#navbar .nav-controls { display: inline-flex; align-items: center; gap: 4px; }
nav#navbar .nav-controls .ctrl-btn {
  width: 38px; height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: "DM Mono", monospace;
  font-size: 12px; font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
nav#navbar .nav-controls .ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}
html:not([data-theme="dark"]) nav#navbar .nav-controls .ctrl-btn:hover {
  background: rgba(11, 21, 48, 0.06);
}

nav#navbar .nav-hamburger {
  display: none;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  position: relative;
  cursor: pointer;
}
nav#navbar .nav-hamburger span {
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1.4px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.3s;
}
nav#navbar .nav-hamburger span:nth-child(1) { transform: translate(-50%, calc(-50% - 4px)); }
nav#navbar .nav-hamburger span:nth-child(2) { transform: translate(-50%, calc(-50% + 4px)); }
nav#navbar .nav-hamburger.open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
nav#navbar .nav-hamburger.open span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 1024px) {
  nav#navbar .nav-links > a span { display: none; }
  nav#navbar .nav-links > a { padding: 0 12px; }
}
@media (max-width: 900px) {
  nav#navbar .nav-links { display: none; }
  nav#navbar .nav-cta, nav#navbar .cv-dropdown { display: none; }
  nav#navbar .nav-hamburger { display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 720px) {
  nav#navbar { width: calc(100% - 16px); top: 10px; height: 54px; }
  nav#navbar .nav-logo { height: 44px; padding: 0 14px; font-size: 0.9rem; }
  nav#navbar .nav-right { height: 44px; }
  .scroll-rail { width: 2px; }
  .scroll-rail__dot { right: -2px; width: 6px; height: 6px; }
}
