/* =============================================
   PAGE LOADER
   ============================================= */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-400);
  animation: loader-pulse 1s ease-in-out infinite;
}
@keyframes loader-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.2); }
}

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

:root {
  --black: #f2f0ec;        /* inverted: light text */
  --white: #0e0e0e;        /* inverted: dark bg */
  --gray-100: #181818;     /* surface */
  --gray-200: #242424;     /* border / divider */
  --gray-300: #383838;     /* stronger border */
  --gray-400: #6a6a6a;     /* muted text */
  --gray-600: #999690;     /* secondary text */
  --gray-800: #d4d1cb;     /* light hover */

  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --nav-height: 72px;
  --section-padding: clamp(80px, 10vw, 140px);
  --container: 1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* =============================================
   LAYOUT HELPERS
   ============================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.section-header {
  max-width: var(--container);
  margin: 0 auto clamp(48px, 6vw, 72px);
  padding: 0 clamp(20px, 5vw, 60px);
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--black);
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.nav.scrolled {
  background: rgba(14,14,14,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--gray-200);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--black);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--black); }

.nav-resume {
  font-size: 14px;
  font-weight: 600;
  color: var(--white) !important;
  background: var(--black);
  padding: 8px 18px;
  border-radius: 100px;
  border: none;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-resume:hover {
  background: var(--gray-800) !important;
  transform: translateY(-1px);
}

/* ---- Nav right group ---- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Theme Toggle ---- */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--gray-200);
  color: var(--black);
  transform: scale(1.08);
}

.theme-toggle:active {
  transform: scale(0.92);
}

/* Smooth cross-fade when theme switches */
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition:
    background-color 0.4s ease,
    color            0.4s ease,
    border-color     0.4s ease,
    box-shadow       0.4s ease !important;
}

.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:last-child  { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  padding: 24px clamp(20px, 5vw, 60px);
  gap: 24px;
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-link:last-child { border-bottom: none; padding-bottom: 0; }

.mobile-link--resume {
  color: var(--black);
  font-weight: 700;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background: var(--gray-800);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.btn-ghost {
  background: var(--gray-100);
  color: var(--black);
  border: none;
}

.btn-ghost:hover {
  background: var(--gray-200);
  transform: translateY(-1px);
}

.btn-large {
  padding: 18px 40px;
  font-size: 16px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 60px) clamp(40px, 5vw, 60px);
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-400);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6.5vw, 96px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 28px;
  max-width: 16ch;
}

.hero-title em {
  font-style: normal;
  color: var(--gray-400);
}

.hero-title-regular {
  font-weight: 400;
}

.hero-title-muted {
  font-style: normal;
  color: var(--gray-400);
}

.gradient-text {
  font-style: normal;
  background: linear-gradient(90deg, #6d28d9, #9333ea, #ec4899, #f97316, #ca8a04, #6d28d9);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 7s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 400;
  color: var(--gray-600);
  max-width: 44ch;
  line-height: 1.65;
  margin-bottom: 44px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


/* =============================================
   WORK / PROJECTS
   ============================================= */
.work {
  padding: var(--section-padding) 0;
  background: var(--white);
}

/* ---- Microsoft Journey Banner ---- */
.msft-banner-wrap {
  max-width: var(--container);
  margin: clamp(48px, 8vw, 96px) auto clamp(48px, 6vw, 72px);
  padding: 0 clamp(20px, 5vw, 60px);
}

.msft-banner {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 36px) clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 32px;
  align-items: center;
}

.msft-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.msft-orb--1 {
  width: 360px; height: 360px;
  background: transparent;
  top: -120px; right: 160px;
}
.msft-orb--2 {
  width: 220px; height: 220px;
  background: transparent;
  bottom: -80px; right: 20px;
}

.msft-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 12px;
}
.msft-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray-400);
  flex-shrink: 0;
}

.msft-banner-title {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 10px;
}
.msft-banner-title em {
  font-style: normal;
  background: linear-gradient(90deg, #a78bfa, #ec4899, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.msft-banner-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  max-width: 48ch;
  margin-bottom: 20px;
}

#openStoriesThumb {
  cursor: pointer;
  transition: transform 0.25s ease;
}
#openStoriesThumb:hover { transform: scale(1.03); }
#openStoriesThumb:focus-visible { outline: 2px solid var(--black); outline-offset: 6px; border-radius: 8px; }

.msft-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.msft-banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.msft-cta-play {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Stacked card deck */
.msft-banner-right {
  position: relative;
  height: 200px;
}
.msft-card-stack {
  position: relative;
  width: 100%;
  height: 100%;
}
.msft-sc {
  position: absolute;
  width: 160px; height: 220px;
  border-radius: 20px;
  top: 50%; left: 50%;
}
.msft-sc--3 {
  background: #262626;
  transform: translate(-50%, -50%) rotate(-7deg) translateY(12px);
}
.msft-sc--2 {
  background: #383838;
  transform: translate(-50%, -50%) rotate(4deg) translateY(4px);
}
.msft-sc--1 {
  background:
    linear-gradient(to top, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0) 58%),
    #333333 url("Images/msft-tile-design-system.png") center / cover no-repeat;
  transform: translate(-50%, -50%) rotate(-2deg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  overflow: hidden;
}
.msft-sc-year {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  font-family: var(--font-sans);
  margin-bottom: 6px;
}
.msft-sc-label {
  font-family: var(--font-sans);
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.2;
}

/* ---- Story Viewer Modal ---- */
.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.story-viewer.is-open {
  opacity: 1;
  pointer-events: all;
}

.sv-wrap {
  position: relative;
  width: 420px;
  height: 88vh;
  max-height: 820px;
  border-radius: 22px;
  overflow: hidden;
  background: #0a0520;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}

/* Progress bars */
.sv-progress-row {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 20px 16px 0;
  display: flex;
  gap: 4px;
  z-index: 10;
}
.sv-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  overflow: hidden;
}
.sv-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
}

/* Header */
.sv-top-bar {
  position: absolute;
  top: 34px; left: 0; right: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}
.sv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sv-brand-m {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-sans);
  color: #fff;
}
.sv-brand span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  font-family: var(--font-sans);
}
.sv-close-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  transition: background 0.2s;
}
.sv-close-btn:hover { background: rgba(255,255,255,0.22); }

/* Slide area */
.sv-slide-area {
  width: 100%;
  height: 100%;
  position: relative;
}
.sv-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.sv-slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Story image — fills the frame, anchored to top, aspect ratio preserved */
.sv-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  z-index: 0;
}

/* Big ghost year in bg */
.sv-bg-year {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-sans);
  font-size: 130px;
  font-weight: 400;
  color: rgba(255,255,255,0.04);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.04em;
  user-select: none;
  line-height: 1;
}

/* Gradient overlay behind the bottom title + description for legibility */
.sv-slide::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 75%;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.7) 30%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Slide content */
.sv-slide-inner {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 28px 44px;
  z-index: 2;
}
.sv-slide-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-sans);
  margin-bottom: 14px;
}
.sv-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255,255,255,0.6) !important;
}
.sv-slide-year {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sv-slide-title {
  font-family: var(--font-sans);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.sv-slide-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
  font-family: var(--font-sans);
  max-width: 32ch;
}

/* Nav zones */
.sv-nav-btn {
  position: absolute;
  top: 0; bottom: 0;
  width: 45%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 5;
}
.sv-nav-btn--prev { left: 0; }
.sv-nav-btn--next { right: 0; }

@media (max-width: 500px) {
  .sv-wrap {
    width: 100%;
    height: 100svh;
    max-height: none;
    border-radius: 0;
  }
  .story-viewer { background: #000; }
}

/* =============================================
   PROJECTS — editorial row layout
   ============================================= */
.projects-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  border-top: 1px solid var(--gray-200);
}

.project-card {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: none;
  cursor: pointer;
  transition: opacity 0.2s;
  position: relative;
}

.project-card:hover { opacity: 0.85; }

.project-card:hover .project-image-inner {
  transform: scale(1.03);
}

/* Thumbnail */
.project-image {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.project-image-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* Info column */
.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  position: relative;
}

/* Large muted index number */
.project-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gray-300);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.project-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.project-year {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.project-meta::before {
  content: '';
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray-300);
  order: 1;
}

.project-year { order: 2; }


.project-name {
  font-family: var(--font-sans);
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--black);
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 44ch;
}

.project-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
  transition: gap 0.2s;
}


.project-card:hover .project-link { gap: 12px; }

/* Project card background gradients */
.proj-bg-1 { background: #141414; }
.proj-bg-2 { background: #111111; }
.proj-bg-3 { background: #161616; }

/* Phone mock (Project 1 — Onboarding) */
.mock-phone {
  width: 140px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 12px 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.mock-phone-screen { display: flex; flex-direction: column; gap: 10px; }
.mock-onb-header { display: flex; justify-content: space-between; align-items: center; }
.mock-onb-logo { width: 28px; height: 8px; background: rgba(255,255,255,0.3); border-radius: 4px; }
.mock-onb-step { font-size: 7px; color: rgba(255,255,255,0.4); font-family: var(--font-sans); font-weight: 600; }
.mock-onb-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; }
.mock-onb-icon { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,0.15); }
.mock-onb-title { width: 80%; height: 7px; background: rgba(255,255,255,0.5); border-radius: 4px; }
.mock-onb-sub { width: 65%; height: 5px; background: rgba(255,255,255,0.2); border-radius: 4px; }
.mock-onb-prompts { display: flex; flex-direction: column; gap: 5px; }
.mock-prompt-chip { height: 20px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; }
.mock-prompt-chip--2 { opacity: 0.7; }
.mock-prompt-chip--3 { opacity: 0.5; }
.mock-onb-cta { height: 22px; background: rgba(255,255,255,0.4); border-radius: 11px; }

/* Document + DAB mock (Project 2 — Previewer) */
.mock-doc-preview {
  width: 200px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.mock-doc-body { padding: 16px 14px 12px; display: flex; flex-direction: column; gap: 7px; }
.mock-doc-line { height: 6px; background: rgba(255,255,255,0.2); border-radius: 3px; }
.mock-doc-line--short { width: 55%; }
.mock-doc-line--med { width: 75%; }
.mock-dab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.07);
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.mock-dab-chip {
  font-size: 9px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 4px 8px;
  border-radius: 100px;
  white-space: nowrap;
}
.mock-dab-chip--ai {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
}
.mock-dab-more {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-left: auto;
  display: flex;
  align-items: center;
  line-height: 1;
  padding-bottom: 2px;
}

/* Proactive cards mock (Project 3 — Proactive) */
.mock-proactive {
  width: 190px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-pa-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.mock-pa-card--faded { opacity: 0.4; transform: scale(0.97); transform-origin: center top; }
.mock-pa-eyebrow { width: 50%; height: 5px; background: rgba(255,255,255,0.2); border-radius: 3px; }
.mock-pa-title { height: 7px; background: rgba(255,255,255,0.5); border-radius: 4px; }
.mock-pa-title--short { width: 65%; }
.mock-pa-sub { height: 5px; width: 80%; background: rgba(255,255,255,0.2); border-radius: 3px; }
.mock-pa-actions { display: flex; gap: 6px; margin-top: 4px; }
.mock-pa-btn { flex: 1; height: 20px; background: rgba(255,255,255,0.1); border-radius: 100px; border: 1px solid rgba(255,255,255,0.15); }
.mock-pa-btn--primary { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); }

/* Mock UI elements */
.mock-ui {
  width: 80%;
  max-width: 320px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}

.mock-ui--1 { display: flex; flex-direction: column; gap: 12px; }
.mock-bar   { height: 8px; background: rgba(255,255,255,0.15); border-radius: 4px; width: 60%; }
.mock-block { height: 40px; background: rgba(255,255,255,0.1); border-radius: 8px; }
.mock-row   { display: flex; gap: 8px; }
.mock-pill  { height: 24px; flex: 1; background: rgba(255,255,255,0.12); border-radius: 100px; }
.mock-pill--sm { flex: 0.6; }
.mock-card  { height: 60px; background: rgba(255,255,255,0.07); border-radius: 10px; }

.mock-ui--2 { display: flex; align-items: center; gap: 16px; }
.mock-circle { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.18); flex-shrink: 0; }
.mock-lines  { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mock-line   { height: 10px; background: rgba(255,255,255,0.15); border-radius: 4px; }
.mock-line--short { width: 60%; }

.mock-ui--3 { display: flex; flex-direction: column; gap: 14px; }
.mock-nav-dots { display: flex; gap: 6px; }
.mock-nav-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.mock-hero-text { display: flex; flex-direction: column; gap: 8px; }
.mock-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-thumb { height: 40px; background: rgba(255,255,255,0.12); border-radius: 8px; }

.mock-ui--4 { display: flex; gap: 12px; width: 88%; max-width: 380px; }
.mock-sidebar { width: 40px; display: flex; flex-direction: column; gap: 8px; }
.mock-menu-item { height: 8px; background: rgba(255,255,255,0.12); border-radius: 4px; }
.mock-menu-item--active { background: rgba(255,255,255,0.35); }
.mock-content { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.mock-stat  { height: 28px; background: rgba(255,255,255,0.1); border-radius: 8px; }
.mock-chart { flex: 1; min-height: 48px; background: rgba(255,255,255,0.07); border-radius: 8px; }

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: var(--section-padding) 0;
  background: var(--gray-100);
}

/* About v2 — editorial layout */
.about-v2 {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto auto;
  gap: clamp(32px, 5vw, 56px) clamp(48px, 7vw, 88px);
  align-items: start;
}

.about-intro {
  grid-column: 1 / -1;
  max-width: 640px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.about-headline {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.about-intro .about-bio {
  margin: 0;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 80px;
}

.about-left .about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gray-200);
}

.about-left .about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.about-identity {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.about-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  letter-spacing: -0.01em;
}

.about-role {
  font-size: 13px;
  color: var(--gray-400);
  margin: 0;
}

.about-socials-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.about-socials-row .soc {
  display: inline-flex;
  color: var(--gray-400);
  transition: color 0.25s ease, transform 0.25s ease;
}
.about-socials-row .soc svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  display: block;
}
.about-socials-row .soc:hover { transform: translateY(-2px); }
.about-socials-row .soc-li:hover { color: #0A66C2; }
.about-socials-row .soc-yt:hover { color: #FF0000; }
.about-socials-row .soc-ig:hover { color: #d62976; }
.about-socials-row .soc-ig:hover svg path { fill: url(#igGrad); }
html[data-theme="light"] .about-socials-row .soc { color: #888; }

.about-bio {
  font-size: 13px;
  color: var(--gray-500);
  margin: 4px 0 0;
  line-height: 1.65;
}

/* Right: 2×2 grid */
.about-right--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.about-group {
  padding: 32px 32px 32px 0;
  border-bottom: 1px solid var(--gray-200);
}

.about-group:nth-child(even) {
  padding-left: 32px;
  padding-right: 0;
  border-left: 1px solid var(--gray-200);
}

.about-group:nth-last-child(-n+2) {
  border-bottom: none;
  padding-bottom: 0;
}

.about-group:first-child,
.about-group:nth-child(2) {
  padding-top: 0;
}

.about-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin: 0 0 16px;
}

.about-entries {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-entry-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.4;
}

.about-entry-sub {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0;
}

html[data-theme="light"] .about-name,
html[data-theme="light"] .about-entry-title { color: #111; }
html[data-theme="light"] .about-entry-sub,
html[data-theme="light"] .about-role { color: #666; }

@media (max-width: 900px) {
  .about-v2 { grid-template-columns: 1fr; }
  .about-intro { grid-column: 1; }
  .about-left { position: static; }
  .about-left .about-image-placeholder { aspect-ratio: 4/3; max-width: 320px; }
  .about-right--grid { grid-template-columns: 1fr; }
  .about-group:nth-child(even) { padding-left: 0; border-left: none; }
  .about-group:nth-last-child(-n+2) { border-bottom: 1px solid var(--gray-200); padding-bottom: 32px; }
  .about-group:last-child { border-bottom: none; }
}

.about-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
  margin-top: 12px;
  color: var(--black);
}

.about-text p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--gray-200);
}

.stat-number {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--black);
}

.stat-label {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 500;
}

.about-image-placeholder {
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gray-200);
  position: relative;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.about-tools span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gray-200);
  padding: 6px 14px;
  border-radius: 100px;
  color: var(--gray-600);
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: var(--section-padding) 0;
  background: #f2f0ec;     /* light bg — inverted contrast block */
  color: #0e0e0e;
}

.contact-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  display: block;
  margin-bottom: 24px;
}

.contact .section-label { color: #6a6a6a; }

.contact-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
  margin-top: 12px;
  max-width: 18ch;
  color: #0e0e0e;
}

.contact-sub {
  font-size: 16px;
  color: #666;
  margin-bottom: 44px;
  max-width: 42ch;
  line-height: 1.65;
}

.contact .btn-primary {
  background: #0e0e0e;
  color: #f2f0ec;
  margin-bottom: 48px;
}

.contact .btn-primary:hover {
  background: #2a2a2a;
  color: #f2f0ec;
}

.contact-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 7px 16px;
  border-radius: 100px;
  letter-spacing: 0.01em;
}

.contact-details {
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 17px;
  font-weight: 600;
}
.contact-detail {
  color: #2a2a2a;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.contact-detail:hover { color: #000000; text-decoration: underline; }
.contact-detail-sep { color: #aaaaaa; font-weight: 400; }
html[data-theme="light"] .contact-detail { color: #e8e6e1; }
html[data-theme="light"] .contact-detail:hover { color: #ffffff; }
html[data-theme="light"] .contact-detail-sep { color: #666666; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 24px clamp(20px, 5vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-400);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

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

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

/* =============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image { max-width: 420px; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================= */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav-links  { display: none; }
  .nav-toggle { display: flex; }

  .hero-title { font-size: clamp(38px, 10vw, 56px); }

  .project-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-image { aspect-ratio: 16/9; }

  .msft-banner {
    grid-template-columns: 1fr;
  }
  .msft-banner-right { display: none; }

  .about-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .contact-title { max-width: 22ch; }
}

@media (max-width: 480px) {
  .hero-cta   { flex-direction: column; align-items: flex-start; }
  .about-stats { gap: 20px; }
}

/* =============================================
   PROJECT PAGES
   ============================================= */
.project-page { background: var(--white); color: var(--black); min-height: 100vh; }

/* Back nav */
.back-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  z-index: 100;
  background: rgba(14,14,14,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.3s, border-color 0.3s;
}
.back-nav.scrolled {
  background: rgba(14,14,14,0.92);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  transition: color 0.2s;
}
.back-link:hover { color: var(--black); }
.back-link-arrow { font-size: 18px; line-height: 1; }
.back-nav-right {
  display: flex;
  align-items: center;
}
.back-nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--black);
  white-space: nowrap;
}

/* Project hero */
.proj-hero {
  padding-top: var(--nav-height);
  padding-bottom: 0;
}
.proj-hero-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 100px) clamp(20px, 5vw, 60px) clamp(48px, 6vw, 72px);
}
.proj-hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.proj-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 5px 14px;
  border-radius: 100px;
}
.proj-tag--accent {
  color: var(--gray-600);
  background: var(--gray-100);
}
.proj-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-bottom: 28px;
  color: var(--black);
}
.proj-hero-sub {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--gray-600);
  max-width: 56ch;
  line-height: 1.65;
}
.proj-hero-meta {
  display: flex;
  gap: clamp(32px, 5vw, 64px);
  flex-wrap: wrap;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin-top: clamp(36px, 5vw, 56px);
}
.proj-meta-item {}
.proj-meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.proj-meta-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
}

/* Hero outcome stats — recruiter-first impact */
.proj-hero-stats {
  display: flex;
  gap: clamp(28px, 5vw, 72px);
  flex-wrap: wrap;
  margin-top: clamp(36px, 5vw, 56px);
}
.proj-hero-stat {
  position: relative;
  padding-left: 18px;
}
.proj-hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--gray-200);
}
.proj-hero-stat-num {
  font-family: var(--font-sans);
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--black);
  margin-bottom: 10px;
}
.proj-hero-stat-label {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.45;
  max-width: 20ch;
}

/* One-line takeaway under a visual */
.proj-takeaway {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-top: 20px;
  padding-left: 16px;
  border-left: 2px solid var(--gray-200);
}
.proj-takeaway strong { color: var(--black); font-weight: 600; }

/* Condensed role strip */
.proj-rolestrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 8px;
}
.proj-role-item {
  background: var(--gray-100);
  padding: 22px 24px;
}
.proj-role-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 6px;
}
.proj-role-item p {
  font-size: 13px !important;
  color: var(--gray-600) !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}
@media (max-width: 720px) {
  .proj-rolestrip { grid-template-columns: 1fr; }
}

/* Project visual banner */
.proj-banner {
  width: 100%;
  height: clamp(260px, 36vw, 520px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius-xl);
  margin-bottom: clamp(40px, 5vw, 56px);
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: var(--gray-100);
}
.proj-banner-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 48px);
}

/* Project content body */
.proj-body {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 60px);
}

.proj-video-wrap {
  margin-top: clamp(32px, 5vw, 48px);
  margin-bottom: clamp(48px, 7vw, 80px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}

.proj-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.proj-section { margin-bottom: clamp(48px, 7vw, 80px); }
.proj-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
  display: block;
}
.proj-section h2 {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}
.proj-section p {
  font-size: 18px;
  color: #ffffff;
  line-height: 1.8;
  margin-bottom: 16px;
}
.proj-section p:last-child { margin-bottom: 0; }

/* Callout / highlight block */
.proj-callout {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 28px 28px 24px;
  margin: 32px 0;
}
.proj-callout::before {
  content: '\201C';
  display: block;
  font-size: 120px;
  line-height: 0.6;
  color: var(--gray-300);
  font-family: var(--font-serif);
  margin-bottom: -8px;
}
.proj-callout p {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.8vw, 24px);
  font-style: normal;
  font-weight: 600;
  color: var(--black);
  line-height: 1.5;
  margin: 0;
}

/* Decision cards */
.proj-decisions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.proj-decision {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
}
.proj-decision-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  padding-top: 2px;
}
.proj-decision h3 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}
.proj-decision p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin: 0;
}

/* Content type cards */
.proj-content-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.proj-content-type {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.proj-content-type-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  background: var(--gray-200);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 14px;
}

.proj-content-type h3 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.proj-content-type p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin: 0 0 8px;
}

.proj-content-type-eg {
  font-size: 12px !important;
  color: var(--gray-400) !important;
  font-style: italic;
  margin-top: 12px !important;
}

html[data-theme="light"] .proj-content-type h3 {
  color: var(--gray-900);
}

html[data-theme="light"] .proj-content-type p {
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .proj-content-types { grid-template-columns: 1fr; }
}

/* Slideshow */
.proj-slideshow-section {
  margin: clamp(32px, 5vw, 48px) 0;
}

.proj-slideshow-header {
  margin-bottom: 28px;
}

.proj-slideshow-header .proj-section-label {
  display: block;
  margin-bottom: 8px;
}

.proj-slideshow {
  position: relative;
  overflow: hidden;
}

.proj-slideshow-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  cursor: grab;
  user-select: none;
}

.proj-slideshow-track:active { cursor: grabbing; }

.proj-slide {
  flex: 0 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.proj-slide img {
  width: 100%;
  border-radius: var(--radius-xl);
  pointer-events: none;
}

/* Override generic img rule — theme classes must win inside slides */
.proj-slide .theme-img-light { display: none; }
.proj-slide .theme-img-dark  { display: block; }
html[data-theme="light"] .proj-slide .theme-img-light { display: block; }
html[data-theme="light"] .proj-slide .theme-img-dark  { display: none; }

.proj-slideshow-fade-left,
.proj-slideshow-fade-right {
  position: absolute;
  top: 0;
  bottom: 32px;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}

.proj-slideshow-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}

.proj-slideshow-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}

.proj-slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.proj-slideshow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: var(--gray-300);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s, width 0.25s;
}

.proj-slideshow-dot.active {
  background: var(--black);
  width: 20px;
  border-radius: 100px;
}

html[data-theme="light"] .proj-slideshow-dot.active {
  background: var(--gray-900);
}

.proj-slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.proj-slideshow-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
  flex-shrink: 0;
}

.proj-slideshow-arrow:hover:not(:disabled) {
  background: var(--gray-200);
  color: var(--gray-700);
}

.proj-slideshow-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Impact stats */
.proj-impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.proj-impact-stat {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.proj-impact-num {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
  color: #8b5cf6;
}
.proj-impact-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.4;
}

/* ==========================================
   Impact section visual components (im-*)
   ========================================== */

.im-group-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-top: 36px;
  margin-bottom: 14px;
}

.im-group-label--quality {
  margin-top: 40px;
}

/* ── Activation wrap ── */
.im-activation-wrap {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px 24px 18px;
  margin-bottom: 16px;
}

.im-activation-header {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.im-activation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-300);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.im-sku-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 560px) {
  .im-sku-grid { grid-template-columns: 1fr; }
}

.im-sku-card {
  background: var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 20px 18px;
}

.im-sku-card--premium {
  background: var(--gray-200);
}

.im-sku-val {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
  color: #8b5cf6;
}

.im-sku-val--premium {
  color: #d97706;
}

.im-sku-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 2px;
}

.im-sku-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray-400);
}

.im-platform-note {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray-400);
  padding-top: 2px;
}

/* ── ~40K headline card ── */
.im-headline-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  margin-bottom: 16px;
  border: 1px solid var(--gray-200);
}

@media (max-width: 560px) {
  .im-headline-card { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.im-headline-num {
  font-family: var(--font-sans);
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: #8b5cf6;
  flex-shrink: 0;
}

.im-headline-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.3;
}

.im-headline-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ── Reversal card ── */
.im-reversal-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 4px;
  border: 1px solid var(--gray-200);
}

.im-reversal-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  color: #10b981;
}

.im-reversal-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.im-reversal-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ── Quality & Guardrails ── */
.im-quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .im-quality-grid { grid-template-columns: 1fr; }
}

.im-quality-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 20px;
}

.im-quality-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gray-200);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.im-quality-text {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
}

.im-quality-text strong {
  color: var(--black);
  font-weight: 600;
}

/* Bullet list */
.proj-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proj-list li {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.proj-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gray-400);
  font-size: 14px;
}

/* ==========================================
   Bento grid — Impact section (im-bento-*)
   ========================================== */
.im-bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.im-bento-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

/* Hero: ~40K — spans 2 cols */
.im-bento-hero {
  grid-column: span 2;
  background: var(--gray-100);
}

.im-bento-num {
  font-family: var(--font-sans);
  font-size: clamp(56px, 8vw, 88px);
  font-weight: 400;
  line-height: 1;
  color: #8b5cf6;
}

/* Reversal — green */
.im-bento-reversal {
  background: var(--gray-100);
}

.im-bento-icon {
  font-size: 32px;
  line-height: 1;
  color: #10b981;
  margin-bottom: 8px;
}

/* Non-enterprise — purple */
.im-bento-sku1 {
  background: var(--gray-100);
}

.im-bento-sku1 .im-bento-val {
  color: #8b5cf6;
}

/* Premium — amber */
.im-bento-sku2 {
  background: var(--gray-100);
}

.im-bento-sku2 .im-bento-val {
  color: #d97706;
}

/* Stable — neutral */
.im-bento-stable {
  background: var(--gray-100);
}

.im-bento-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.im-bento-val {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 10px;
}

.im-bento-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.im-bento-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 6px;
}

.im-bento-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.55;
}

@media (max-width: 700px) {
  .im-bento {
    grid-template-columns: 1fr 1fr;
  }
  .im-bento-hero { grid-column: 1 / -1; }
}

@media (max-width: 440px) {
  .im-bento {
    grid-template-columns: 1fr;
  }
}

/* Image placeholder boxes */
.proj-img-box {
  margin: clamp(32px, 5vw, 48px) 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.proj-img {
  width: 100%;
  display: block;
  border-radius: var(--radius-xl);
}

.proj-img-caption {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin: 0 0 16px 0;
}

.proj-img-ph {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray-400);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  text-align: center;
  padding: 40px;
  transition: background 0.2s;
}

.proj-img-ph:hover {
  background: var(--gray-200);
}

.proj-img-ph-icon {
  font-size: 32px;
  opacity: 0.4;
  line-height: 1;
}

/* ==========================================
   Response View — Proactive Assistance
   ========================================== */
.rv-wrap {
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
}
.rv-head {
  margin-bottom: 36px;
}
.rv-scenarios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.rv-scenario-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 14px;
}
.rv-phone {
  background: var(--gray-200);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rv-phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.rv-phone-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
  background: var(--gray-300);
  padding: 4px 12px;
  border-radius: 100px;
}
.rv-phone-pill--action {
  background: rgba(139,92,246,0.2);
  color: #a78bfa;
}
.rv-phone-time,
.rv-phone-count {
  font-size: 11px;
  color: var(--gray-400);
}
.rv-section-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 4px 0 2px;
}
.rv-section-head--gap { margin-top: 8px; }

/* Meeting card */
.rv-meeting-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-100);
  border-radius: 12px;
  padding: 10px 12px;
  opacity: 1;
  transition: opacity 0.2s;
}
.rv-meeting-card--dim { opacity: 0.5; }
.rv-meeting-time {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  min-width: 42px;
}
.rv-meeting-body { flex: 1; min-width: 0; }
.rv-meeting-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.rv-meeting-meta {
  display: flex;
  align-items: center;
  gap: 3px;
}
.rv-meeting-ppl {
  font-size: 10px;
  color: var(--gray-400);
  margin-left: 4px;
}
.rv-meeting-action {
  font-size: 10px;
  font-weight: 600;
  color: var(--black);
  background: var(--gray-300);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Email card */
.rv-email-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--gray-100);
  border-radius: 12px;
  padding: 10px 12px;
}
.rv-email-card--dim { opacity: 0.5; }
.rv-email-body { flex: 1; min-width: 0; }
.rv-email-from {
  font-size: 11px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}
.rv-email-subject {
  font-size: 11px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rv-email-preview {
  font-size: 10px;
  color: var(--gray-400);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rv-email-action {
  font-size: 10px;
  font-weight: 600;
  color: var(--black);
  background: var(--gray-300);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

/* Action item card */
.rv-action-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-100);
  border-radius: 12px;
  padding: 10px 12px;
}
.rv-action-card--dim { opacity: 0.5; }
.rv-action-source {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}
.rv-action-source--email  { background: rgba(59,130,246,0.15); color: #60a5fa; }
.rv-action-source--chat   { background: rgba(139,92,246,0.15); color: #a78bfa; }
.rv-action-source--meeting{ background: rgba(16,185,129,0.15); color: #34d399; }
.rv-action-body { flex: 1; min-width: 0; }
.rv-action-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
  line-height: 1.35;
}
.rv-action-from {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--gray-400);
}
.rv-action-btn {
  font-size: 10px;
  font-weight: 600;
  color: var(--black);
  background: var(--gray-300);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Avatars */
.rv-avatar {
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rv-avatar--lg { width: 28px; height: 28px; flex-shrink: 0; }
.rv-avatar--a { background: #f87171; }
.rv-avatar--b { background: #fb923c; }
.rv-avatar--c { background: #facc15; }
.rv-avatar--d { background: #34d399; }
.rv-avatar--e { background: #60a5fa; }
.rv-avatar--f { background: #a78bfa; }

@media (max-width: 680px) {
  .rv-scenarios { grid-template-columns: 1fr; }
}

/* ==========================================
   Interactive Prototype
   ========================================== */

.proto-wrap {
  max-width: var(--container);
  margin: 0 auto clamp(40px, 6vw, 64px);
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.proto-hint {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray-400);
  text-align: center;
}

.proto-hint strong {
  color: var(--gray-600);
  font-weight: 600;
}

/* Phone shell */
.proto-shell {
  width: 260px;
  aspect-ratio: 720 / 1560;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.38);
}

/* Screen layers — stacked absolutely */
.proto-layer {
  position: absolute;
  inset: 0;
  transition: opacity 0.45s ease;
}

.proto-layer--off {
  opacity: 0;
  pointer-events: none;
}

/* Full-frame image (screen 1) */
.proto-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Clip image so baked-in toast is hidden (screens 2–4) */
.proto-img--clip2 {
  height: 89%;
  object-fit: cover;
  object-position: top center;
}

/* Clip image so baked-in chat bar is hidden (screen 5) */
.proto-img--clip5 {
  height: 85%;
  object-fit: cover;
  object-position: top center;
}

/* White strip at the bottom that replaces the clipped area */
.proto-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proto-fill--toast {
  height: 11%;
}

.proto-fill--chat {
  height: 15%;
  border-top: 1px solid #f0f0f0;
  padding: 0 10px;
}

/* Home indicator (decorative) */
.proto-homebar {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 3px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 100px;
}

/* ---- Toast pill ---- */
.proto-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(16px);
  /* no transition by default — transitions set by state classes */
}

.proto-toast--in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.38s ease, transform 0.42s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.proto-toast--out {
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.3s ease, transform 0.32s ease;
}

.proto-toast-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.proto-toast-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
}

/* ---- Chat row ---- */
.proto-chat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.proto-chat-input {
  flex: 1;
  background: #f4f4f4;
  border-radius: 18px;
  padding: 7px 12px;
  min-height: 32px;
  display: flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 10px;
  color: #1a1a1a;
  line-height: 1.4;
  overflow: hidden;
}

.proto-chat-caret {
  display: none;
  width: 1.5px;
  height: 11px;
  background: #4f46e5;
  margin-left: 1px;
  vertical-align: middle;
  flex-shrink: 0;
  animation: proto-blink 0.9s step-end infinite;
}

@keyframes proto-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.proto-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4f46e5;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.35;
  transition: opacity 0.2s, transform 0.15s, background 0.25s;
}

.proto-send-btn:not([disabled]) {
  opacity: 1;
}

.proto-send-btn:not([disabled]):active {
  transform: scale(0.86);
}

/* Invisible tap target over "Turn on" button in NO1.png */
.proto-turnon-target {
  position: absolute;
  top: 80%;
  left: 6%;
  right: 6%;
  height: 7.5%;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 14px;
}

/* Restart button */
.proto-restart {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s;
}

.proto-restart:hover {
  color: var(--black);
}

/* Project nav (prev/next) */
.proj-nav {
  border-top: 1px solid var(--gray-200);
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 60px);
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.proj-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: opacity 0.2s;
}
.proj-nav-link:hover { opacity: 0.7; }
.proj-nav-link--next { text-align: right; }
.proj-nav-dir {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.proj-nav-title {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 400;
  color: var(--black);
}

/* Banner mock UIs for project pages */
.proj-banner-phone {
  width: clamp(100px, 12vw, 160px);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: clamp(14px, 2vw, 24px);
  padding: clamp(8px, 1.5vw, 16px) clamp(6px, 1.2vw, 12px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 12px);
}
.proj-banner-phone--offset { transform: translateY(20px); opacity: 0.6; }

.pbp-header { display: flex; justify-content: space-between; }
.pbp-dot    { width: 24px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.3); }
.pbp-steps  { display: flex; gap: 3px; }
.pbp-step   { width: 8px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.15); }
.pbp-step--active { background: rgba(255,255,255,0.5); width: 16px; }

.pbp-icon { width: clamp(28px, 4vw, 44px); height: clamp(28px, 4vw, 44px); border-radius: 12px; background: rgba(255,255,255,0.15); align-self: center; }
.pbp-t1   { height: 7px; background: rgba(255,255,255,0.45); border-radius: 4px; }
.pbp-t2   { height: 5px; width: 70%; background: rgba(255,255,255,0.2); border-radius: 3px; }
.pbp-chip { height: clamp(14px, 2.5vw, 20px); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; }
.pbp-chip--2 { opacity: 0.6; }
.pbp-cta  { height: clamp(16px, 2.5vw, 22px); background: rgba(255,255,255,0.35); border-radius: 100px; }

/* DAB doc mock */
.proj-banner-doc {
  width: clamp(160px, 20vw, 280px);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: clamp(10px, 1.5vw, 18px);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.pbd-header { padding: clamp(8px, 1.5vw, 14px); border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; gap: 5px; }
.pbd-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.pbd-body { padding: clamp(10px, 2vw, 18px); display: flex; flex-direction: column; gap: clamp(5px, 1vw, 9px); }
.pbd-line { height: 6px; background: rgba(255,255,255,0.18); border-radius: 3px; }
.pbd-line--s { width: 55%; }
.pbd-line--m { width: 75%; }
.pbd-dab { padding: clamp(7px, 1.2vw, 12px); background: rgba(255,255,255,0.06); border-top: 1px solid rgba(255,255,255,0.1); display: flex; gap: 5px; align-items: center; }
.pbd-chip { font-size: clamp(7px, 1vw, 10px); font-family: var(--font-sans); font-weight: 600; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); padding: 3px 7px; border-radius: 100px; white-space: nowrap; }
.pbd-chip--ai { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); }

/* Proactive cards mock large */
.proj-banner-pa {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: clamp(180px, 22vw, 280px);
}
.pbpa-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: clamp(12px, 2vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.pbpa-card--dim { opacity: 0.45; transform: scale(0.97); transform-origin: top center; }
.pbpa-ey { width: 45%; height: 5px; background: rgba(255,255,255,0.2); border-radius: 3px; }
.pbpa-t  { height: 7px; background: rgba(255,255,255,0.45); border-radius: 4px; }
.pbpa-t--s { width: 65%; }
.pbpa-s  { height: 5px; width: 80%; background: rgba(255,255,255,0.2); border-radius: 3px; }
.pbpa-actions { display: flex; gap: 6px; margin-top: 4px; }
.pbpa-btn { flex: 1; height: clamp(16px, 2.5vw, 22px); background: rgba(255,255,255,0.08); border-radius: 100px; border: 1px solid rgba(255,255,255,0.14); }
.pbpa-btn--p { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }

@media (max-width: 768px) {
  .proj-hero-meta { gap: 24px; }
  .proj-decisions { grid-template-columns: 1fr; }
  .proj-decision { grid-template-columns: 1fr; }
  .proj-decision-num { display: none; }
  .proj-nav { flex-direction: column; align-items: flex-start; }
  .proj-nav-link--next { align-self: flex-end; text-align: right; }
}

/* =============================================
   RESEARCH CHART
   ============================================= */
.rc-wrap {
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  font-family: var(--font-sans);
}

.rc-head { margin-bottom: 32px; }

.rc-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.rc-title {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 6px;
}

.rc-subtitle {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 20px;
}

.rc-source {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: -12px;
  margin-bottom: 20px;
  font-style: italic;
}

.rc-legend { display: flex; gap: 20px; }

.rc-leg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-400);
}

.rc-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.rc-leg-dot--o { background: var(--black); }
.rc-leg-dot--i { background: var(--gray-400); }

.rc-group { margin-bottom: 28px; }

.rc-group + .rc-group {
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.rc-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 18px;
}

.rc-segment { margin-bottom: 20px; }
.rc-segment:last-child { margin-bottom: 0; }

.rc-seg-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 10px;
}

.rc-bar {
  display: grid;
  grid-template-columns: 68px 1fr 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.rc-bar:last-child { margin-bottom: 0; }

.rc-bar-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rc-bar--o .rc-bar-label { color: var(--gray-600); }
.rc-bar--i .rc-bar-label { color: var(--gray-400); }

.rc-track {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}

html[data-theme="light"] .rc-track { background: rgba(0,0,0,0.07); }

.rc-fill {
  height: 100%;
  border-radius: 100px;
  width: max(calc(var(--p) * 1%), 3px);
}
.rc-bar--o .rc-fill { background: var(--black); }
.rc-bar--i .rc-fill { background: var(--gray-400); }

.rc-pct {
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}
.rc-bar--o .rc-pct { color: var(--black); }
.rc-bar--i .rc-pct { color: var(--gray-400); }

.rc-new-users {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.rc-nu-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.rc-nu-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rc-nu-card {
  background: var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
}

.rc-nu-platform {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.rc-nu-val {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  color: #8b5cf6;
  line-height: 1;
}

@media (max-width: 480px) {
  .rc-bar { grid-template-columns: 58px 1fr 38px; gap: 8px; }
}

/* =============================================
   GOAL CARD
   ============================================= */
.gc-wrap {
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  font-family: var(--font-sans);
}

.gc-head { margin-bottom: 32px; }

.gc-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.gc-title {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 6px;
}

.gc-subtitle {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Current vs Target */
.gc-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.gc-compare-item {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

html[data-theme="light"] .gc-compare-item { background: rgba(0,0,0,0.04); }

.gc-compare-item--goal {
  background: var(--gray-200);
}

.gc-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.gc-compare-item--now .gc-badge {
  background: rgba(255,255,255,0.08);
  color: var(--gray-400);
}

.gc-compare-item--goal .gc-badge {
  background: var(--gray-300);
  color: var(--black);
}

.gc-compare-val {
  font-family: var(--font-sans);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
}

.gc-compare-item--now .gc-compare-val { color: var(--gray-400); }

.gc-compare-item--goal .gc-compare-val {
  color: #8b5cf6;
}

.gc-compare-desc {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.5;
}

.gc-compare-arrow {
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Progress bar */
.gc-progress-wrap { margin-bottom: 32px; }

.gc-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 10px;
  gap: 8px;
}

.gc-bar {
  display: flex;
  height: 44px;
  border-radius: 100px;
  overflow: hidden;
  gap: 4px;
}

.gc-bar-filled {
  width: 25%;
  background: var(--black);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gc-bar-filled-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}

.gc-bar-gap {
  flex: 1;
  background: var(--gray-200);
  border-radius: 100px;
  display: flex;
  align-items: center;
  padding-left: 16px;
}

.gc-bar-gap-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  white-space: nowrap;
}

.gc-bar-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--gray-400);
  padding: 0 2px;
}

/* Impact */
.gc-impact {
  background: var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.gc-impact-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.gc-impact-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.gc-impact-val {
  font-family: var(--font-sans);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  color: #8b5cf6;
  line-height: 1;
  white-space: nowrap;
}

.gc-impact-meta { flex: 1; min-width: 180px; }

.gc-impact-unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.gc-impact-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
}

@media (max-width: 560px) {
  .gc-compare { grid-template-columns: 1fr; }
  .gc-compare-arrow { transform: rotate(90deg); }
}

/* =============================================
   Design Explorations — full-bleed marquee
   ============================================= */

/* Full-viewport breakout from the proj-body container */
.explore-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: clamp(48px, 7vw, 80px);
  background: #111;
  overflow: hidden;
}

.explore-label-row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px clamp(20px, 5vw, 60px) 28px;
}

.explore-label-row .proj-section-label {
  color: rgba(255, 255, 255, 0.4);
}

.explore-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 8px;
  max-width: 52ch;
  line-height: 1.6;
}

/* Marquee overflow wrapper */
.explore-marquee {
  overflow: hidden;
  width: 100%;
  padding: 28px 0 48px;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

/* Scrolling track — two identical sets for seamless loop */
.explore-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: explore-slide 55s linear infinite;
}

.explore-marquee:hover:not(.is-dragging) .explore-track {
  animation-play-state: paused !important;
}

.explore-marquee { cursor: grab; }
.explore-marquee.is-dragging { cursor: grabbing; }
.explore-marquee.is-dragging .explore-track { animation-play-state: paused; }
.explore-marquee.is-dragging .explore-card { pointer-events: none; }

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

/* Individual phone card */
.explore-card {
  width: 160px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  background: #000;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.explore-card:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
}

.explore-card img {
  display: block;
  width: 100%;
  height: auto;
}

.explore-card--ph {
  height: 280px;
  background: var(--gray-200);
  opacity: 0.5;
}

/* Subsection label — within What I Designed */
.proj-subsection-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 32px 0 16px;
  border-top: 1px dotted var(--gray-200);
  margin-top: 8px;
}
.proj-subsection-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin: -8px 0 20px;
  max-width: 640px;
}
.proj-subsection-label + .proj-img-box,
.proj-subsection-label + .proj-video-wrap {
  margin-top: 0;
}
.proj-subsection-desc + .proj-img-box,
.proj-subsection-desc + .proj-video-wrap {
  margin-top: 0;
}

/* ==========================================
   Key Design Decisions — Visual Cards
   ========================================== */
.kd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kd-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Visual area */
.kd-visual {
  padding: 24px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  position: relative;
}
.kd-visual--action { background: linear-gradient(135deg, #1a1230 0%, #2d1b4e 100%); }
.kd-visual--familiar { background: linear-gradient(135deg, #0f1e2e 0%, #1a2d40 100%); }
.kd-visual--scale { background: linear-gradient(135deg, #0e1f1a 0%, #1a3028 100%); align-items: center; justify-content: center; }

.kd-v-label {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: auto;
  padding-top: 8px;
  letter-spacing: 0.02em;
}

/* Action-first visual */
.kd-v-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kd-v-context {
  font-size: 9px;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kd-v-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.kd-v-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.kd-v-btn {
  font-size: 10px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.kd-v-btn--primary {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

/* Familiar patterns visual */
.kd-v-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 8px 10px;
}
.kd-v-row--dim { opacity: 0.4; }
.kd-v-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}
.kd-v-avatar--a { background: #60a5fa; }
.kd-v-avatar--b { background: #f87171; }
.kd-v-dot {
  font-size: 9px;
  font-weight: 700;
  color: #34d399;
  width: 22px;
  flex-shrink: 0;
}
.kd-v-dot--time { font-size: 8px; }
.kd-v-lines { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.kd-v-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.2);
}
.kd-v-line--name { width: 70%; }
.kd-v-line--sub  { width: 45%; background: rgba(255,255,255,0.1); }
.kd-v-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.kd-v-tag--email   { background: rgba(59,130,246,0.2);  color: #60a5fa; }
.kd-v-tag--cal     { background: rgba(52,211,153,0.2);  color: #34d399; }
.kd-v-tag--chat    { background: rgba(167,139,250,0.2); color: #a78bfa; }

/* Scale visual */
.kd-v-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}
.kd-v-pill--active {
  background: rgba(52,211,153,0.15);
  border-color: rgba(52,211,153,0.35);
  color: #34d399;
}
.kd-v-pill--ghost {
  border-style: dashed;
  opacity: 0.4;
}
.kd-v-arrow {
  font-size: 16px;
  color: rgba(255,255,255,0.2);
}
.kd-v-surface {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 8px 20px;
}

/* Text body */
.kd-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kd-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.06em;
}
.kd-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}
.kd-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

@media (max-width: 800px) {
  .kd-grid { grid-template-columns: 1fr; }
}

/* Entry points two-up layout */
.ep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ep-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ep-ph {
  aspect-ratio: 3/4 !important;
  border-radius: var(--radius-lg) !important;
}
.ep-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
}
.ep-img {
  display: block;
  width: 100%;
  height: auto;
}
.proj-full-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
}
.ep-caption {
  padding: 0 4px;
}
.ep-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}
.ep-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
}
@media (max-width: 600px) {
  .ep-grid { grid-template-columns: 1fr; }
}

/* Light mode — softer dark grey */
html[data-theme="light"] .explore-bleed {
  background: #1a1a1a;
}

/* ==========================================
   Project 1 Thumbnail  (tb1-*)
   ========================================== */

.tb1-bg {
  background: #0e0e0e;
  position: relative;
  overflow: hidden;
}

/* Card thumbnail on index.html */
.tb1-phones {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding-top: 28px;
}

.tb1-phone {
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  object-fit: cover;
  flex-shrink: 0;
}

.tb1-phone--back {
  width: 26%;
  transform: rotate(-6deg) translateY(14px);
  opacity: 0.7;
  z-index: 1;
}

.tb1-phone--mid {
  width: 33%;
  transform: translateY(-8px);
  z-index: 3;
}

.tb1-phone--front {
  width: 26%;
  transform: rotate(6deg) translateY(14px);
  opacity: 0.7;
  z-index: 1;
}

/* Label overlay at bottom of card thumbnail */
.tb1-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 22px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 400;
  color: #fff;
  line-height: 1.25;
  z-index: 10;
}

.tb1-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

/* Banner inside project-1.html */
.tb1-bg--banner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 2vw, 20px);
  padding-top: clamp(24px, 4vw, 48px);
}

.tb1-banner-phone {
  border-radius: clamp(14px, 2vw, 24px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: cover;
  flex-shrink: 0;
}

.tb1-banner-phone--1 {
  width: clamp(80px, 11vw, 160px);
  transform: rotate(-5deg) translateY(12px);
  opacity: 0.6;
}

.tb1-banner-phone--2 {
  width: clamp(90px, 13vw, 190px);
  transform: rotate(-2deg) translateY(4px);
  opacity: 0.85;
  z-index: 2;
}

.tb1-banner-phone--3 {
  width: clamp(100px, 14vw, 210px);
  transform: translateY(0);
  z-index: 3;
}

.tb1-banner-phone--4 {
  width: clamp(90px, 13vw, 190px);
  transform: rotate(2deg) translateY(4px);
  opacity: 0.85;
  z-index: 2;
}

.tb1-banner-phone--5 {
  width: clamp(80px, 11vw, 160px);
  transform: rotate(5deg) translateY(12px);
  opacity: 0.6;
}

/* Project-1 card thumbnail */
.proj1-thumb {
  background: #1e1e1e;
  padding: 0;
}

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

html[data-theme="light"] .proj1-thumb {
  background: #e8e8e8;
}

/* Hero image banner */
.proj-banner--img-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.proj-banner-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0;
  padding: 0;
}
html[data-theme="light"] .proj-banner {
  background-image: radial-gradient(circle, rgba(0,0,0,0.10) 1px, transparent 1px);
}

/* =============================================
   LIGHT MODE
   ============================================= */
html[data-theme="light"] {
  --black: #111111;
  --white: #f5f3ef;
  --gray-100: #ece9e3;
  --gray-200: #dbd8d2;
  --gray-300: #c0bdb7;
  --gray-400: #7a7872;
  --gray-600: #5a5855;
  --gray-800: #222220;
}

html[data-theme="light"] body {
  background-image: radial-gradient(circle, rgba(0,0,0,0.10) 1px, transparent 1px);
}

html[data-theme="light"] .nav.scrolled {
  background: rgba(245, 243, 239, 0.92);
}

html[data-theme="light"] .back-nav {
  background: rgba(245, 243, 239, 0.82);
}

html[data-theme="light"] .back-nav.scrolled {
  background: rgba(245, 243, 239, 0.95);
}

/* Contact: flip to dark block for contrast in light mode */
html[data-theme="light"] .contact {
  background: #111111;
  color: #f5f3ef;
}

html[data-theme="light"] .contact .section-label {
  color: #888888;
}

html[data-theme="light"] .contact-title {
  color: #f5f3ef;
}

html[data-theme="light"] .contact-sub {
  color: #aaaaaa;
}

html[data-theme="light"] .contact .btn-primary {
  background: #f5f3ef;
  color: #111111;
}

html[data-theme="light"] .contact .btn-primary:hover {
  background: #ffffff;
  color: #111111;
}

html[data-theme="light"] .contact-tag {
  color: #888888;
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}

/* ── Project page light mode fixes ── */
/* These elements use hardcoded #ffffff in base CSS; override for light mode */
html[data-theme="light"] .proj-section-label {
  color: var(--gray-400);
}

html[data-theme="light"] .proj-section h2 {
  color: var(--black);
}

html[data-theme="light"] .proj-section p {
  color: var(--gray-800);
}

html[data-theme="light"] .proj-decision h3 {
  color: var(--black);
}

html[data-theme="light"] .proj-decision p {
  color: var(--gray-600);
}

html[data-theme="light"] .proj-list li {
  color: var(--gray-800);
}

html[data-theme="light"] .proj-impact-label {
  color: var(--gray-600);
}

/* ==========================================
   Lightbox (shared)
   ========================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-media {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}
video.lightbox-media {
  outline: none;
  background: #000;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-nav--prev { left: 20px; }
.lightbox-nav--next { right: 20px; }
@media (max-width: 600px) {
  .lightbox-nav { display: none; }
}

/* ==========================================
   Theme-aware images
   ========================================== */
/* Default = dark mode */
.theme-img-light { display: none; }
.theme-img-dark  { display: block; }

html[data-theme="light"] .theme-img-light { display: block; }
html[data-theme="light"] .theme-img-dark  { display: none; }

/* Response image backgrounds */
.response-img {
  background: #181818;
}
html[data-theme="light"] .response-img {
  background: #ece9e3;
}
