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

:root {
  --bg:           #0B0A13;
  --bg-2:         #111118;
  --bg-card:      #111020;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.18);
  --text:         #f0f0f5;
  --text-muted:   #8888a0;
  --text-dim:     #767690;
  --accent:       #FE3C5C;
  --accent-2:     #A855F7;
  --accent-3:     #FF9E7A;
  --accent-blue:  #3B6EF6;
  --accent-blue-2:#6C97F8;
  --tag-bg:       rgba(254,60,92,0.12);
  --tag-color:    #FF8FB0;
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --font:         'Inter', 'DM Sans', system-ui, sans-serif;
  --font-display: 'DM Sans', 'Inter', system-ui, sans-serif;
  --nav-h:        72px;
  --max-w:        1200px;
  --transition:   0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Typography ─────────────────────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; }
p { color: var(--text-muted); line-height: 1.75; }

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

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

.hero .container {
  padding-right: 0;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ─── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  /* Frosted glass */
  background: rgba(12,12,18,0.45);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 32px rgba(0,0,0,0.12);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* Deepen the glass once the page is scrolled */
.nav.scrolled {
  background: rgba(12,12,18,0.62);
  border-bottom-color: rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 10px 40px rgba(0,0,0,0.28);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* Fallback for browsers without backdrop-filter */
  .nav { background: rgba(10,10,15,0.92); }
  .nav.scrolled { background: rgba(10,10,15,0.96); }
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Logo wordmark image */
.logo-img {
  height: 30px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a.active {
  color: var(--text) !important;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  animation: nav-underline 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes nav-underline {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hidden on desktop — shown inside mobile menu only */
.nav-mobile-resume { display: none; }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 0 28px rgba(168,85,247,0.35), 0 0 8px rgba(254,60,92,0.3);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  box-shadow: 0 0 44px rgba(168,85,247,0.5), 0 0 16px rgba(254,60,92,0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border-hover);
}

.btn svg { width: 16px; height: 16px; }
.btn-primary svg { transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1); }
.btn-primary:hover svg { transform: translate(3px, -3px); }
.btn-ghost svg { transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1); }
.btn-ghost:hover svg { transform: translateX(5px); }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* ── New textured mesh hero ── */
.hero-bg-v2 {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 75% 20%,  #FE3C5Cc9 0%,  transparent 60%),
    radial-gradient(ellipse 50% 55% at 40% 60%,  #3b6df6a4 0%,  transparent 60%),
    radial-gradient(ellipse 60% 40% at 65% 55%,  #8B3CF7 0%,  transparent 60%),
    radial-gradient(ellipse 80% 80% at 50% 50%,  #0a0a0f 40%, transparent 100%);
  background-color: #0d0a18;
  animation: meshPulse 10s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes meshPulse {
  0%   { filter: brightness(1); }
  100% { filter: brightness(1.1); }
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  filter: url(#grain-filter);
  background: #fff;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 30%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
  z-index: 2;
}
.hero-ghost {
  position: absolute;
  right: 0px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(14rem, 28vw, 32rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 1;
}

.hero-content-v2 {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 990px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  transform: translateX(40px);
}
.hero-greeting {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.hero-title-v2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 24px;
  text-indent: 150px;
}
.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: none;
  margin-left: 0;
}

@media (max-width: 767px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 72px;
  }

  .hero-content-v2 {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-greeting {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .hero-title-v2 {
    font-size: 1.9rem;
    line-height: 1.12;
    text-indent: 20px;
    margin-bottom: 18px;
  }

  .hero-sub {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hero-ghost {
    font-size: clamp(6rem, 26vw, 10rem);
    right: -20px;
  }
}

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

/* Animated mesh gradient background */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 18% 55%, rgba(254,60,92,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 55% at 82% 28%, rgba(59,110,246,0.16) 0%, transparent 58%),
    radial-gradient(ellipse 55% 60% at 60% 85%, rgba(255,126,166,0.10) 0%, transparent 52%);
  animation: hshift 12s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, var(--bg) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

@keyframes hshift {
  0%   { opacity: 1; transform: scale(1) translateX(0); }
  50%  { opacity: 0.8; transform: scale(1.05) translateX(-2%); }
  100% { opacity: 1; transform: scale(1.02) translateX(2%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(254,60,92,0.12);
  border: 1px solid rgba(254,60,92,0.28);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tag-color);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title { margin-bottom: 24px; }

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.75;
}

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

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeInUp 1s 1.5s both;
}
.scroll-line {
  width: 1.2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── Section Header ─────────────────────────────────────────────── */
.section-header {
  margin-bottom: 56px;
}
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 540px; }

/* ─── UX Projects ───────────────────────────────────────────────── */
.labs-section {
  background: var(--bg);
  padding: 96px 0 96px;
}
/* Header uses the default dark-theme colors (coral eyebrow, light text). */

/* ── Editorial project rows ── */
.ux-projects {
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.ux-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.ux-row.reverse .ux-visual { order: 2; }

/* Big mockup slot (drop an image in via .ux-mockup) */
.ux-visual {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, #17161d 0%, #211b22 100%);
  border: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.ux-visual:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 28px 64px rgba(0,0,0,0.45);
  cursor: none;
}
.ux-mockup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.ux-num {
  position: absolute;
  top: 16px;
  left: 24px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(255,255,255,0.12);
}
.ux-visual-arrow { display: none; }

/* ── Floating cursor label on project cards ── */
.ux-cursor-label {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  /* position is updated instantly via JS — no transition here */
}
.ux-cursor-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: rgba(30, 28, 40, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.ux-cursor-label.visible .ux-cursor-inner {
  opacity: 1;
  transform: scale(1);
}
.ux-cursor-inner svg { width: 14px; height: 14px; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.ux-cursor-icon-spin svg { animation: spin 0.9s linear infinite; }

/* Text side */
.ux-info { max-width: 470px; }
.ux-row.reverse .ux-info { margin-left: 0; }
.ux-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ux-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 16px;
}
.ux-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.ux-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border: none;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 28px rgba(168,85,247,0.35), 0 0 8px rgba(254,60,92,0.3);
  transition: box-shadow var(--transition), transform var(--transition);
}
.ux-link:hover {
  box-shadow: 0 0 44px rgba(168,85,247,0.5), 0 0 16px rgba(254,60,92,0.4);
  transform: translateY(-1px);
}
.ux-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: currentColor;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.ux-link:hover .ux-link-icon { transform: translateX(5px); }
.ux-link-icon svg { width: 16px; height: 16px; }

/* Project tags — cobalt blue on the dark work section (uniform across rows).
   Filled CTA buttons/arrows stay pink everywhere for consistency.
   .tag.tag-light raises specificity so it beats the base .tag rule. */
.tag.tag-light { background: rgba(59,110,246,0.16); color: var(--accent-blue-2); }

/* ── Graphic-design banner (one box + CTA, beneath UX work) ── */
.gd-banner-section { padding: 80px 0; }
.gd-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 40px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}
.gd-banner:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.gd-banner-text { max-width: 620px; }
.gd-banner .eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}
.gd-banner h2 { color: var(--text); margin-bottom: 10px; }
.gd-banner p { color: var(--text-muted); font-size: 0.95rem; }
.gd-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.gd-banner-cta .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}
.gd-banner:hover .gd-banner-cta .icon { transform: translateX(4px); }
.gd-banner-cta svg { width: 18px; height: 18px; }

/* Legacy tag styles (still used in graphic design section) */
.tag {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--tag-bg);
  color: var(--tag-color);
  letter-spacing: 0.02em;
}
.tag.green { background: rgba(255,158,122,0.12); color: #FFB59A; } /* peach */
.tag.pink  { background: rgba(254,60,92,0.14);  color: #FF8FB0; } /* coral */
.tag.blue  { background: rgba(255,126,166,0.12); color: #FFA9C4; } /* rose */

/* Legacy card link (graphic design section) */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}
.card-link:hover { gap: 10px; }
.card-link svg { width: 14px; height: 14px; }

/* ─── Graphic Design Grid ────────────────────────────────────────── */
.gd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.gd-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.gd-thumb {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Uniform warm-dark image placeholders (subtle coral tint) */
.gd-thumb.g1,
.gd-thumb.g2,
.gd-thumb.g3,
.gd-thumb.g4,
.gd-thumb.g5,
.gd-thumb.g6 { background: linear-gradient(135deg, #181318, #251a22); }

.gd-thumb-icon {
  font-size: 2.5rem;
  opacity: 0.5;
  filter: grayscale(0.3);
}

.gd-body { padding: 16px 20px; }
.gd-body h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.gd-body p  { font-size: 0.82rem; color: var(--text-dim); }

/* ─── About Page ─────────────────────────────────────────────────── */
.about-hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 96px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: stretch;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.about-photo-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(254,60,92,0.08), rgba(255,158,122,0.06));
}
.about-photo svg { width: 48px; height: 48px; opacity: 0.3; }
.about-photo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-content { }

.about-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 64px 0;
}

.about-below-grid {
  max-width: 720px;
  padding-bottom: 8px;
}

.about-skills-section {
  padding-bottom: 8px;
}

.about-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.about-skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--card-accent, var(--accent));
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.about-skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.about-skill-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.about-skill-icon svg { width: 20px; height: 20px; }

.about-approach-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
  max-width: 640px;
}

.about-approach-item {}

.about-approach-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.about-approach-title-lg {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.15;
}

.about-approach-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.about-skill-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.about-skill-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.about-tools-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
}

.about-tool-group {}

.about-tool-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.about-tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}
.about-tool-chip:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.about-tool-chip img {
  display: block;
  flex-shrink: 0;
  opacity: 0.7;
}
.about-content .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 16px;
}

.about-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.about-content .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}
.about-content p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 32px 0;
}
.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.skill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* About — sub-headings and content lists */
.about-subhead {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 40px 0 18px;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}
.about-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.about-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.about-personal {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-personal li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.about-personal .emoji {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
}
.about-personal .emoji svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.about-actions {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ─── Case Study Page ────────────────────────────────────────────── */
.cs-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}

/* Hero with full-bleed background image */
.cs-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cs-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cs-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8,8,14,0.92) 0%,
    rgba(8,8,14,0.80) 50%,
    rgba(8,8,14,0.30) 100%
  );
}
.cs-hero.has-bg-image {
  position: relative;
  overflow: hidden;
  padding-bottom: 100px;
}
.cs-hero.has-bg-image .container { position: relative; z-index: 1; }
.cs-hero.has-bg-image .cs-stats {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  display: inline-flex;
}
.cs-hero.has-bg-image h1 { max-width: 680px; }

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  transition: color var(--transition);
}
.cs-back:hover { color: var(--text); }
.cs-back svg { width: 14px; height: 14px; }

.cs-hero-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cs-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 760px;
}

.cs-hero .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 48px;
}

.cs-stats {
  display: flex;
  gap: 28px 44px;
  flex-wrap: wrap;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.cs-stat { min-width: 120px; }

.cs-stat label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.cs-stat span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.cs-cover {
  margin-top: 64px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.cs-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.cs-placeholder svg { width: 48px; height: 48px; opacity: 0.3; }

.cs-placeholder.cs-p1,
.cs-placeholder.cs-p2,
.cs-placeholder.cs-p3,
.cs-placeholder.cs-p4 { background: linear-gradient(135deg, #181318, #251a22); }

/* ── Case study legacy centered layout ── */
.cs-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 24px;
}
.cs-content .cs-lead {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 8px;
}
.cs-content .about-subhead { margin-top: 40px; }

/* ── Case study sidebar layout ── */
.cs-body-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 80px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 24px 48px;
  align-items: start;
}
/* Prevent grid children from overflowing their column */
.cs-article { min-width: 0; overflow: hidden; }

.cs-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
}

.cs-sidebar-nav {
  list-style: none;
  border-left: 1px solid var(--border);
  padding: 0;
  margin: 0;
}
.cs-sidebar-link {
  display: block;
  padding: 9px 0 9px 18px;
  font-size: 0.83rem;
  line-height: 1.4;
  color: var(--text-dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color var(--transition), border-color var(--transition);
}
.cs-sidebar-link:hover { color: var(--text-muted); }
.cs-sidebar-link.active {
  color: var(--text);
  border-left-color: var(--accent);
  font-weight: 600;
}
/* Main anchor sections — same styling as regular links */
.cs-sidebar-link.cs-sidebar-main {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.83rem;
}
.cs-sidebar-link.cs-sidebar-main.active {
  color: var(--text);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* Phase sub-items — indented under Approach */
.cs-sidebar-link.sub {
  padding-left: 28px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
}
.cs-sidebar-link.sub:hover { color: var(--text-muted); }
.cs-sidebar-link.sub.active {
  color: var(--text);
  border-left-color: var(--accent);
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

/* Sidebar group label */
.cs-sidebar-group-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 16px 0 4px 18px;
}

/* ── Project meta strip (top of article, replaces hero stats) ── */
.cs-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 64px;
}
.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  flex: 1;
  min-width: 120px;
}
.cs-meta-item:last-child { border-right: none; }
.cs-meta-full {
  flex: 1 1 100%;
  border-right: none;
  border-top: 1px solid var(--border);
}
.cs-meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cs-meta-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ── Case study sections ── */
.cs-section {
  padding-bottom: 72px;
  scroll-margin-top: calc(var(--nav-h) + 32px);
}
.cs-section:last-child { padding-bottom: 0; }

.cs-section-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
.cs-p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 14px;
}
.cs-p:last-child { margin-bottom: 0; }

/* ── Goal cards ── */
.cs-goal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.cs-goal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.cs-goal-label {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.cs-goal-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Double diamond ── */
.cs-diamond-wrap {
  margin: 36px 0 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 24px 8px 12px;
}
.cs-diamond-svg { width: 100%; height: auto; display: block; }

/* ── Phase chapter header (replaces badge/pill) ── */
.cs-phase-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-bottom: 28px;
}
.cs-phase-header .ph-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs-phase-header .ph-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cs-phase-header .ph-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.cs-phase-header.coral  .ph-name { color: var(--accent); }
.cs-phase-header.blue   .ph-name { color: var(--accent-blue-2); }
.cs-phase-header.purple .ph-name { color: #b48bfc; }
.cs-phase-header .ph-sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 6px;
  white-space: nowrap;
}

/* ── Tab switcher ── */
.cs-tabs { margin-top: 24px; }

.cs-tab-list {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.cs-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.cs-tab-btn:hover { color: var(--text); }
.cs-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.cs-tab-panel { display: none; }
.cs-tab-panel.active { display: block; animation: fadeInUp 0.25s ease both; }

/* Methods inside tabs */
.cs-tab-method {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.cs-tab-method:last-child { border-bottom: none; }
.cs-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}
.cs-tab-method-body {}
.cs-tab-method-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}
.cs-tab-method-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Sub-section title with number ── */
.cs-accent-bullets li::marker { color: var(--accent); }

.cs-sub-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.cs-sub-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Method item (bold label + description) ── */
.cs-method { margin-bottom: 20px; }
.cs-method-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}
.cs-method p { margin: 0; font-size: 0.93rem; }

/* ── Callout box ── */
.cs-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(254,60,92,0.07);
  border: 1px solid rgba(254,60,92,0.22);
  border-left: 3px solid #FE3C5C;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 28px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.cs-callout .cs-callout-icon { flex-shrink: 0; font-size: 1.1rem; }

/* ── Check / goals list ── */
.cs-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.cs-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.cs-check-list li::before {
  content: '✓';
  font-size: 0.9rem;
  font-weight: 700;
  color: #FE3C5C;
  flex-shrink: 0;
  margin-top: 1px;
  width: auto;
  height: auto;
  background: none;
  border: none;
  border-radius: 0;
}

/* Blue phase sections (Develop + Deliver) get blue bullets */
#develop .cs-check-list li::before,
#deliver .cs-check-list li::before { color: var(--accent-blue-2); }
#develop .about-list li::before,
#deliver .about-list li::before { background: var(--accent-blue-2); }
#develop .cs-accent-bullets li::marker,
#deliver .cs-accent-bullets li::marker { color: var(--accent-blue-2); }

/* ── Pain point cards ── */
.cs-pain-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}
.cs-pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.cs-pain-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.cs-pain-card p { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ── Role cards 2×2 grid ── */
.cs-role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.cs-role-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px 24px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.cs-role-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Uniform cobalt top border on all role cards */
.cs-role-card { border-top: 2px solid var(--accent-blue); }

/* Icon badge */
.cs-role-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.cs-role-icon { background: rgba(59,110,246,0.13); color: var(--accent-blue-2); }
.cs-role-icon svg { width: 20px; height: 20px; }

.cs-role-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.cs-role-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 640px) {
  .cs-role-grid { grid-template-columns: 1fr; }
}

/* ── Impact stats grid ── */
.cs-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 24px;
}
.cs-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px 20px 20px;
}
.cs-stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 10px;
}
.cs-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .cs-stats-grid { grid-template-columns: 1fr; }
}

/* ── Live CTA button ── */
.cs-live-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  background: transparent;
  border: 1.5px solid rgba(254,60,92,0.4);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  margin: 28px 0 8px;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cs-live-cta:hover {
  background: rgba(254,60,92,0.08);
  border-color: rgba(254,60,92,0.85);
  color: #fff;
  box-shadow: 0 0 18px rgba(254,60,92,0.2);
  transform: translateY(-1px);
}
.cs-live-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.cs-live-cta:hover svg { transform: translate(3px, -3px); }

/* ── Interaction video ── */
.cs-video-wrap {
  margin: 32px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.cs-video-placeholder svg { width: 40px; height: 40px; opacity: 0.4; }

/* ── Phone mockup screen carousel ── */
.cs-screen-carousel {
  position: relative;
  margin: 32px 0;
  overflow: hidden;
}

.cs-screen-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 24px 0 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.cs-screen-strip::-webkit-scrollbar { display: none; }

/* Carousel controls */
.cs-screen-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.cs-screen-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}
.cs-screen-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cs-screen-btn:disabled { opacity: 0.3; pointer-events: none; }
.cs-screen-btn svg { width: 14px; height: 14px; }

.cs-screen-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}
.cs-screen-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-hover);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width var(--transition), background var(--transition);
}
.cs-screen-dot.active {
  width: 22px;
  border-radius: 100px;
  background: var(--accent);
}

.cs-phone-mockup {
  flex-shrink: 0;
  width: 220px;
  scroll-snap-align: start;
}

.cs-phone-shell {
  position: relative;
  background: #1a1a24;
  border-radius: 36px;
  padding: 12px 8px 16px;
  border: 2px solid #2e2e3e;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}

.cs-phone-shell::before {
  content: '';
  display: block;
  width: 60px;
  height: 8px;
  background: #111;
  border-radius: 100px;
  margin: 0 auto 8px;
}

.cs-phone-screen {
  height: 420px;
  border-radius: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(145deg, #17161d, #211b22);
  position: relative;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Thin scrollbar inside the phone */
.cs-phone-screen::-webkit-scrollbar { width: 3px; }
.cs-phone-screen::-webkit-scrollbar-track { background: transparent; }
.cs-phone-screen::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

.cs-phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.cs-phone-screen-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.72rem;
  text-align: center;
  padding: 8px;
  line-height: 1.4;
}

.cs-phone-shell::after {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: #333;
  border-radius: 100px;
  margin: 10px auto 0;
}

/* ── Deliverables list ── */
.cs-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.cs-deliverables li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.cs-deliverables li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 860px) {
  .cs-body-layout { grid-template-columns: 1fr; gap: 0; padding-top: 48px; }
  .cs-sidebar { position: sticky; top: var(--nav-h); margin-bottom: 40px; z-index: 10; background: rgba(13, 10, 24, 0.95); backdrop-filter: blur(8px); min-width: 0; overflow: hidden; }
  .cs-sidebar-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    border-left: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Mobile nav: show Overview, Challenge, Discover, Define, Develop, Deliver — hide My Role, divider, Approach, Key Takeaways */
  .cs-sidebar-nav li:nth-child(n+3):nth-child(-n+5) { display: none; }
  .cs-sidebar-nav li:nth-child(n+10) { display: none; }
  /* Page-specific mobile hide (e.g. financial-tools) */
  .cs-sidebar-nav li.cs-mobile-hide { display: none; }

  .cs-sidebar-link {
    border: none;
    border-left: none;
    border-radius: 0;
    padding: 12px 16px;
    margin-left: 0;
    font-size: 0.83rem;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition);
  }
  .cs-sidebar-link.active {
    background: none;
    color: var(--text);
    border-color: transparent;
    border-bottom-color: var(--accent);
    font-weight: 600;
  }
  .cs-goal-grid { grid-template-columns: 1fr; }
}

.cs-empty {
  text-align: center;
  padding: 80px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  margin: 0 24px;
  max-width: 780px;
  margin: 0 auto 80px;
}
.cs-empty h3 { margin-bottom: 12px; color: var(--text-dim); font-weight: 500; }
.cs-empty p { font-size: 0.9rem; max-width: 400px; margin: 0 auto; }

/* ─── Graphic Design Page ────────────────────────────────────────── */
.gd-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 64px;
}

.gd-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gd-full-grid .gd-card-lg {
  grid-column: span 2;
}
.gd-card-lg .gd-thumb {
  aspect-ratio: 16/9;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  scroll-margin-top: var(--nav-h);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.footer-fun {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}
.footer-fun span {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1.5px solid rgba(254,60,92,0.4);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.footer-contact-links a:hover {
  background: rgba(254,60,92,0.08);
  border-color: rgba(254,60,92,0.85);
  color: #fff;
  box-shadow: 0 0 18px rgba(254,60,92,0.2);
  transform: translateY(-1px);
}
.footer-contact-links a svg { width: 14px; height: 14px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ─── Divider ────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ─── Fade In Animation ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) both; }
.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.2s; }
.fade-in-3 { animation-delay: 0.35s; }
.fade-in-4 { animation-delay: 0.5s; }

/* ─── Mobile hamburger ───────────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Contact Section (Minimal) ─────────────────────────────────── */
.contact-section {
  padding: 110px 0 96px;
  border-top: 1px solid var(--border);
  scroll-margin-top: var(--nav-h);
}
.contact-minimal {
  text-align: left;
  max-width: 990px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.contact-minimal .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
}
.contact-email-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 5px;
  transition: color var(--transition), border-color var(--transition);
}
.contact-email-cta:hover {
  color: var(--text);
  border-color: var(--accent);
}
.contact-email-cta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.contact-email-cta:hover svg { transform: translate(3px, -3px); }
.contact-links-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-minimal .footer-contact-links { justify-content: flex-start; }
.contact-text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}
.contact-text-link:hover { color: var(--text); }
.contact-text-link svg { width: 12px; height: 12px; }
.contact-sep { color: var(--border-hover); font-size: 1rem; user-select: none; }

/* ─── Minimal Footer Bar ─────────────────────────────────────────── */
.footer-bar {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bar .footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ─── Ripple Effect ─────────────────────────────────────────────── */
.has-ripple { position: relative; overflow: hidden; }
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: scale(0);
  animation: ripple-expand 0.55s cubic-bezier(0.2,0,0,1) forwards;
  pointer-events: none;
}
@keyframes ripple-expand { to { transform: scale(4.5); opacity: 0; } }

/* ─── Animated Hero Background ───────────────────────────────────── */
.hero-anim-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #060609;
  z-index: 0;
}
.hab-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;
}
.hab-1 {
  width: 62%; height: 75%;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.9) 0%, rgba(109,40,217,0.5) 45%, transparent 70%);
  top: 0%; left: -18%;
  animation: hab1 16s ease-in-out infinite;
}
.hab-2 {
  width: 58%; height: 68%;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.85) 0%, rgba(29,78,216,0.4) 45%, transparent 70%);
  top: 10%; right: -18%;
  animation: hab2 13s ease-in-out infinite;
}
.hab-3 {
  width: 48%; height: 45%;
  background: radial-gradient(ellipse at center, rgba(20,184,166,0.55) 0%, transparent 70%);
  bottom: -8%; left: 22%;
  animation: hab3 19s ease-in-out infinite;
}
.hab-4 {
  width: 32%; height: 32%;
  background: radial-gradient(ellipse at center, rgba(168,0,74,0.65) 0%, transparent 70%);
  top: -6%; right: 18%;
  animation: hab4 11s ease-in-out infinite;
}
.hab-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 58% 52% at 50% 48%, rgba(6,6,9,0.92) 0%, rgba(6,6,9,0.60) 38%, transparent 100%);
}
@keyframes hab1 {
  0%,100% { transform: translate(0px,0px) scale(1); }
  30%     { transform: translate(50px,70px) scale(1.10); }
  65%     { transform: translate(-35px,25px) scale(0.94); }
}
@keyframes hab2 {
  0%,100% { transform: translate(0px,0px) scale(1); }
  40%     { transform: translate(-65px,-45px) scale(1.12); }
  75%     { transform: translate(-15px,55px) scale(1.05); }
}
@keyframes hab3 {
  0%,100% { transform: translate(0px,0px); }
  50%     { transform: translate(70px,-85px); }
}
@keyframes hab4 {
  0%,100% { transform: translate(0px,0px) scale(1); }
  50%     { transform: translate(-55px,65px) scale(1.22); }
}

/* hero text readability over animated bg */
.hero-title-v2 { color: #ffffff !important; }
.hero-greeting { color: rgba(255,255,255,0.72) !important; }
.hero-title-grad { background: none !important; -webkit-text-fill-color: #ffffff !important; color: #ffffff !important; }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ux-projects { gap: 56px; }
  .ux-row { grid-template-columns: 1fr; gap: 24px; }
  .ux-row.reverse .ux-visual { order: 0; }
  .ux-info, .ux-row.reverse .ux-info { max-width: none; margin-left: 0; }
  .gd-banner { padding: 32px; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid .card-featured { grid-column: 1; }
  .gd-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; aspect-ratio: 3/2; max-width: 400px; }
  .gd-full-grid { grid-template-columns: repeat(2, 1fr); }
  .gd-full-grid .gd-card-lg { grid-column: span 2; }

  /* Nav: hide desktop links & CTA, show hamburger */
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .nav-cta  { display: none; }
  .hamburger { display: flex; }

  /* Open dropdown */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 0 20px;
    border-bottom: 1px solid var(--border);
    gap: 0;
    z-index: 99;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0;
    color: var(--text-dim);
  }
  .nav-links.open a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
  .nav-links.open a.active { color: var(--text); background: rgba(255,255,255,0.04); }
  .nav-links.open a.active::after { display: none; }

  /* View Resume item */
  .nav-links.open .nav-mobile-resume {
    display: block;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 4px;
  }
  .nav-links.open .nav-mobile-resume a { color: var(--text) !important; }
  .nav-links.open .nav-mobile-resume svg { width: 15px; height: 15px; flex-shrink: 0; }
}

@media (max-width: 640px) {
  .gd-grid { grid-template-columns: 1fr; }
  .gd-full-grid { grid-template-columns: 1fr; }
  .gd-full-grid .gd-card-lg { grid-column: span 1; }
  .gd-card-lg .gd-thumb { aspect-ratio: 4/3; }
  .skills-grid { grid-template-columns: 1fr; }
  .cs-stats { flex-direction: column; gap: 24px; }
  .cs-stats { padding: 20px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 0; }

  /* About skills: 3-col is too cramped → single column */
  .about-skills-grid { grid-template-columns: 1fr; }

  /* Case study hero: reduce top padding */
  .cs-hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 48px; }
  .cs-hero.has-bg-image { padding-bottom: 56px; }

  /* Case study body: tighter spacing */
  .cs-section { padding-bottom: 48px; }
  .cs-body-layout { padding-top: 32px; }
  .cs-sub-title { margin-top: 28px !important; }
}
