/* =========================================================
   Tokens
   ========================================================= */
:root {
  --brand-50: #FDEAEF;
  --brand-100: #FAC8D5;
  --brand-200: #F4909F;
  --brand-300: #E8405A;
  --brand-400: #DB0A40;
  --brand-500: #A80832;
  --brand-600: #780525;
  --brand-700: #4D0318;
  --brand-800: #26010C;

  --text-primary: #1D1D1D;
  --text-secondary: #4A4948;
  --text-muted: #837C76;
  --border: #E8E8E8;
  --tint-pink: #FFF5F7;
  --tint-grey: #F3F3F1;
  --hover-tint: #F5F5F5;
  --bg-page: #FFFFFF;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --photo-border: transparent;
  --callout-bg: var(--brand-50);
  --callout-text: var(--text-primary);

  --container-width: 800px;

  /* Figma-chrome tokens: the toolbar/sidebar/canvas UI always stays
     dark, independent of the site's own light/dark theme. */
  --chrome-bg: #1E1E1E;
  --chrome-border: #383838;
  --chrome-text: #E4E4E4;
  --chrome-text-dim: #8C8C8C;
  --chrome-accent: #0D99FF;
  --chrome-accent-dim: rgba(13, 153, 255, 0.15);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-16: 64px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] {
  --text-primary: #FFFFFF;
  --text-secondary: #FFFFFFC7;
  --text-muted: #FFFFFFAD;
  --border: #2A2927;
  --tint-pink: #26010C;
  --tint-grey: #1A1A1A;
  --hover-tint: #1A1A1A;
  --bg-page: #0E0D0C;
  --nav-bg: rgba(14, 13, 12, 0.95);
  --photo-border: #1F1F1F;
  --callout-bg: var(--brand-800);
}

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

body {
  font-family: 'Geist', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--space-10) 20px 0;
}

/* =========================================================
   Canvas (dotted-grid background, Figma infinite-canvas motif)
   ========================================================= */
.page {
  position: relative;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* =========================================================
   Frame (bordered content block with a floating name tag,
   mimicking a selected Figma frame)
   ========================================================= */
.frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease;
}
.frame:hover { border-color: var(--chrome-accent); }
.frame:hover .frame-tag { color: var(--chrome-accent); }
.frame:hover .frame-handle { opacity: 1; }

.frame-tag {
  position: absolute;
  top: -22px;
  left: 0;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.15s ease;
}

.frame-handle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--bg-page);
  border: 1px solid var(--chrome-accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.frame-handle--tl { top: -4px; left: -4px; }
.frame-handle--tr { top: -4px; right: -4px; }
.frame-handle--bl { bottom: -4px; left: -4px; }
.frame-handle--br { bottom: -4px; right: -4px; }

.frame--hero {
  padding: var(--space-6);
  margin-bottom: var(--space-16);
}
.frame--hero .hero { margin-bottom: 0; }

.frame--photo {
  display: inline-block;
  width: 100%;
  padding: 6px;
  margin-bottom: 0;
}
.frame--photo .product-photo { margin: 0; }

/* =========================================================
   Nav (dark toolbar chrome)
   ========================================================= */
nav:not(.toc) {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-border);
  height: 56px;
  display: flex;
  align-items: center;
}

.nav-inner {
  width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-3);
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--chrome-border);
  flex-shrink: 0;
}

.toolbar-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--chrome-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--chrome-text-dim);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.toolbar-icon-btn:hover {
  color: var(--chrome-accent);
  border-color: var(--chrome-accent);
  background: var(--chrome-accent-dim);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 1; }
.logo img {
  height: 20px;
  width: auto;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  flex: 1;
  gap: var(--space-3);
}

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

.nav-links a {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  letter-spacing: -0.1px;
  text-decoration: none;
  color: var(--chrome-text-dim);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover {
  color: var(--chrome-text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--chrome-border);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: var(--space-16);
  line-height: 40px;
  width: 100%;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero h1 {
  font-family: 'Geist', sans-serif;
  font-size: 32px;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.4px;
  max-width: 700px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease forwards 0.05s;
}

.hero-photo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.15s;
}

.hero-bio {
  font-family: 'Geist', sans-serif;
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 29.6px;
  letter-spacing: -0.16px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.2s;
}

.hero-bio strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---- Location + availability row ---- */
.hero-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.3s;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.hero-location .pin-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.hero-location .mumbai-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--text-primary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2BAE66;
  flex-shrink: 0;
}

/* ---- Primary button (Copy Email on Home, Resume on About) ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--brand-400);
  color: #fff;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.35s;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover { background: var(--brand-500); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary svg { width: 16px; height: 16px; flex-shrink: 0; }

/* =========================================================
   About page
   ========================================================= */
.hero-gif {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.05s;
}

.bio-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bio-section p {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -0.16px;
  line-height: 29.6px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.2s;
}

.about-photo {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 8px;
  display: block;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.15s;
}

/* =========================================================
   Case study — hero variant
   ========================================================= */
.hero.hero--case {
  padding-top: 0;
  align-items: center;
  text-align: center;
}
.hero--case h1 {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tag {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 450;
  letter-spacing: -0.2px;
  line-height: 24px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 4px;
}

/* =========================================================
   Case study — meta row (inspector-panel look)
   ========================================================= */
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  text-align: left;
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--tint-grey);
}
.meta-label {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 24px;
  margin-bottom: 2px;
}
.meta-value {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 29.6px;
  letter-spacing: -0.16px;
}

/* =========================================================
   Case study — section content
   ========================================================= */
.section-block {
  width: 100%;
  text-align: left;
  margin-bottom: 0;
}

.section-block h2 {
  font-family: 'Geist', sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 26.4px;
  letter-spacing: -0.66px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-block h3 {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 29.6px;
  letter-spacing: -0.16px;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-block p,
.section-content {
  width: 100%;
  text-align: left;
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 29.6px;
  letter-spacing: -0.16px;
  color: var(--text-secondary);
}

.special-label {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.14px;
  line-height: 16px;
  color: var(--brand-400);
  margin-bottom: 12px;
}

.feedback-list {
  width: 100%;
  text-align: left;
  list-style: disc;
  padding-left: 20px;
}
.feedback-list li {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  line-height: 29.6px;
  letter-spacing: -0.16px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.feedback-list li:last-child { margin-bottom: 0; }

.product-photo {
  width: 100%;
  height: auto;
  border: 1px solid var(--photo-border);
  border-radius: 6px;
  display: block;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.15s;
}
.product-photo.wide {
  width: 100vw;
  max-width: 1100px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.img-caption {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  margin-top: -12px;
}

.objective-block {
  width: 100%;
  text-align: left;
  border-left: 3px solid var(--brand-400);
  padding: 12px 20px;
  background: var(--tint-pink);
  border-radius: 0 6px 6px 0;
}
.objective-block p {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 29.6px;
  letter-spacing: -0.16px;
  color: var(--text-secondary);
}

.divider {
  width: 100%;
  border: none;
  border-top: 1px solid var(--border);
}
.spacer-divider { width: 100%; height: 20px; }

.impact-grid {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.impact-stat {
  background: var(--tint-grey);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.impact-number {
  font-family: 'Geist Mono', monospace;
  font-size: 36px;
  font-weight: 600;
  color: var(--brand-400);
  line-height: 1;
}
.impact-desc {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 29.6px;
  letter-spacing: -0.16px;
}

.learnings-grid {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.learning-card h3 {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-400);
  margin-bottom: 8px;
  line-height: 29.6px;
  letter-spacing: -0.16px;
}
.learning-card p {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 29.6px;
  letter-spacing: -0.16px;
}

/* =========================================================
   Before / after slider
   ========================================================= */
.ba-wrap { width: 100%; }
.ba-slider {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
}
.ba-after { display: block; width: 100%; height: auto; pointer-events: none; }
.ba-before-wrap { position: absolute; top: 0; left: 0; bottom: 0; width: 50%; overflow: hidden; }
.ba-before-wrap .ba-before {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  max-width: none;
  pointer-events: none;
  object-fit: cover;
  object-position: left top;
}
.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ba-handle {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 18px;
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  flex-shrink: 0;
  line-height: 1;
}
.ba-label {
  position: absolute;
  bottom: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  pointer-events: none;
}
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }

/* =========================================================
   Layers panel (full-height, flush left, like Figma's own
   Pages/Layers panel docked under the toolbar)
   ========================================================= */
.toc {
  display: flex;
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  width: 240px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 20px 24px 24px;
  overflow-y: auto;
  background: var(--bg-page);
  border-right: 1px solid var(--border);
  z-index: 10;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* ---- Layers panel: Pages group ---- */
.toc-group-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
  margin-bottom: 10px;
}

.toc-pages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.toc-page-link {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.1px;
  color: var(--text-muted);
  opacity: 0.55;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.toc-page-link:hover { opacity: 0.85; }
.toc-page-link.active {
  opacity: 1;
  color: var(--brand-400);
  font-weight: 600;
}
.toc-page-link-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.toc-divider-h {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ---- Layers panel: Sections group (per-page anchors) ---- */
.toc-section-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.toc-section-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.toc-track {
  position: relative;
  width: 2px;
  flex-shrink: 0;
  align-self: stretch;
}
.toc-track-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  background: var(--border);
  border-radius: 1px;
}
.toc-track-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--brand-400);
  border-radius: 1px;
  transition: transform 0.2s ease, height 0.2s ease;
}

.toc-items {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.toc-items a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.1px;
  color: var(--text-muted);
  opacity: 0.55;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.toc-items a:hover { opacity: 0.85; }
.toc-items a.active {
  opacity: 1;
  color: var(--brand-400);
  font-weight: 600;
}
.toc.toc--hidden { opacity: 0; visibility: hidden; }

.layer-icon {
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.6;
  flex-shrink: 0;
}

/* =========================================================
   Case study — image grid (side-by-side, click-to-zoom source)
   ========================================================= */
.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.shot-grid-item { width: 100%; }
.grid-photo {
  width: 100%;
  height: auto;
  border: 1px solid var(--photo-border);
  border-radius: 6px;
  display: block;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.15s;
}
.shot-grid.wide {
  width: 100vw;
  max-width: 1100px;
  margin-left: 50%;
  transform: translateX(-50%);
}
.shot-grid-item .img-caption { margin-top: 8px; text-align: left; }

@media (max-width: 1339px) {
  .toc { display: none; }
  .shot-grid.wide {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    transform: none;
  }
  .shot-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Homepage — recent works
   ========================================================= */
.recent-label {
  font-family: 'Geist Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: -0.14px;
  line-height: 28px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.25s;
}

#work {
  margin-bottom: 80px;
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: background-color 0.16s ease, border-color 0.15s ease;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.3s;
}
.project-link:not(:last-child) { margin-bottom: var(--space-8); }
.project-link:hover {
  background-color: var(--hover-tint);
  border-color: var(--chrome-accent);
}

.project-img-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}

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

.project-meta {
  position: relative;
  padding: 12px 0 0;
}

.project-title {
  font-family: 'Geist', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 26px;
}

.project-desc {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 29.6px;
  letter-spacing: -0.16px;
  width: 100%;
}

.project-tag {
  position: absolute;
  right: 0;
  top: 28px;
  font-family: 'Geist Mono', monospace;
  font-weight: 700;
  font-size: 13.9px;
  color: var(--brand-400);
  letter-spacing: -0.7px;
  line-height: 16.8px;
}

/* =========================================================
   Scroll-reveal utility
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* =========================================================
   Footer (stacked: get in touch / message)
   ========================================================= */
.footer-outer {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 auto;
}
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: 'Geist', sans-serif;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-label {
  font-family: 'Geist Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: -0.14px;
  line-height: 28px;
}
.footer-links {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: -0.16px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  line-height: 29.6px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-links .sep { margin: 0 9px; color: var(--text-muted); }

.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
}

.footer-bottom { display: flex; }
.footer-date {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: -0.16px;
  line-height: 22px;
}

/* =========================================================
   Case study — section eyebrow label (small label above h2)
   ========================================================= */
.section-eyebrow {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.learnings-grid--stack { grid-template-columns: 1fr; }

/* =========================================================
   Click-to-zoom lightbox (used across all case studies)
   ========================================================= */
.zoomable { cursor: zoom-in; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, background-color 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close.is-open { opacity: 1; visibility: visible; }

/* =========================================================
   Case study — TaabiProcure spacing (page-specific, same in
   both themes — do not fold color rules into this block)
   ========================================================= */
.case-taabi .section-block { margin-bottom: 60px; }
.case-taabi .section-block h2 { margin-bottom: 16px; }
.case-taabi .section-content,
.case-taabi .section-block p {
  margin-bottom: 32px;
}
.case-taabi .section-content:last-child,
.case-taabi .section-block p:last-child {
  margin-bottom: 0;
}
.case-taabi .feedback-list { margin-bottom: 32px; }
.case-taabi .img-caption { margin-top: 8px; }

/* =========================================================
   Callout (used in TaabiProcure)
   ========================================================= */
.callout-primary {
  display: flex;
  column-gap: 12px;
  box-sizing: border-box;
  border-radius: 8px;
  background: var(--callout-bg);
  padding: 12px;
  margin: 0 0 32px;
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 29.6px;
  letter-spacing: -0.16px;
  color: var(--callout-text);
}

.callout-primary::before {
  content: '';
  flex-shrink: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--brand-500);
}

.case-disclaimer {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 20px;
  text-align: center;
  width: 100%;
}

/* =========================================================
   Theme toggle — View Transition circular reveal
   ========================================================= */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* =========================================================
   Ghost cursors (Figma multiplayer-presence easter egg)
   ========================================================= */
.ghost-cursors {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
}

.ghost-cursor {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  opacity: 0.9;
  will-change: transform;
}

.ghost-cursor svg { width: 16px; height: 16px; flex-shrink: 0; }

.ghost-cursor-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  padding: 2px 8px;
  border-radius: 0 4px 4px 4px;
  white-space: nowrap;
  transform: translate(8px, 1px);
  box-shadow: var(--shadow-sm);
}

.ghost-cursor--1 { color: #DB0A40; animation: ghost-wander-1 52s ease-in-out infinite; }
.ghost-cursor--1 .ghost-cursor-tag { background: #DB0A40; }
.ghost-cursor--2 { color: #0D99FF; animation: ghost-wander-2 64s ease-in-out infinite; }
.ghost-cursor--2 .ghost-cursor-tag { background: #0D99FF; }
.ghost-cursor--3 { color: #F5A623; animation: ghost-wander-3 45s ease-in-out infinite; }
.ghost-cursor--3 .ghost-cursor-tag { background: #F5A623; }
.ghost-cursor--4 { color: #2BAE66; animation: ghost-wander-4 70s ease-in-out infinite; }
.ghost-cursor--4 .ghost-cursor-tag { background: #2BAE66; }

@keyframes ghost-wander-1 {
  0%   { transform: translate(8vw, 22vh); }
  22%  { transform: translate(68vw, 12vh); }
  48%  { transform: translate(78vw, 58vh); }
  74%  { transform: translate(30vw, 74vh); }
  100% { transform: translate(8vw, 22vh); }
}
@keyframes ghost-wander-2 {
  0%   { transform: translate(85vw, 30vh); }
  25%  { transform: translate(45vw, 68vh); }
  55%  { transform: translate(15vw, 45vh); }
  80%  { transform: translate(55vw, 15vh); }
  100% { transform: translate(85vw, 30vh); }
}
@keyframes ghost-wander-3 {
  0%   { transform: translate(20vw, 78vh); }
  30%  { transform: translate(60vw, 82vh); }
  60%  { transform: translate(90vw, 40vh); }
  85%  { transform: translate(40vw, 20vh); }
  100% { transform: translate(20vw, 78vh); }
}
@keyframes ghost-wander-4 {
  0%   { transform: translate(50vw, 10vh); }
  28%  { transform: translate(10vw, 60vh); }
  58%  { transform: translate(35vw, 88vh); }
  82%  { transform: translate(75vw, 65vh); }
  100% { transform: translate(50vw, 10vh); }
}

@media (max-width: 900px) {
  .ghost-cursors { display: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .nav-inner { width: 100%; padding: 0 20px; }
  .container { padding: var(--space-10) 20px 0; }
  .hero h1 { width: 100%; font-size: 26px; line-height: 32px; max-width: 100%; }
  .project-tag { position: static; display: block; margin-top: 8px; }
  .footer-outer { padding: 0px; }
  .hero--case h1 { font-size: 26px; }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 60px;
    margin-bottom: 60px;
  }
  footer { gap: 20px; }
  .hero--case h1 { font-size: 22px; }
  .meta-row { flex-direction: column; gap: 16px; }
  .impact-grid, .learnings-grid { grid-template-columns: 1fr; }
}
