/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg-dark:       #0d1117;
  --bg-surface:    #161b27;
  --bg-light:      #f5f5f7;
  --text-primary:  #ffffff;
  --text-muted:    rgba(255,255,255,0.55);
  --text-dark:     #0d1117;
  --text-body:     #3a3f4b;

  --teal:          #0dbfb8;   /* site-wide accent: nav, homepage, about */
  --teal-rgb:      13,191,184;
  --teal-dim:      rgba(13,191,184,0.12);
  --cyan:          #fe5af8;   /* Site Planner case study */
  --cyan-dim:      rgba(254,90,248,0.12);
  --purple:        #a57eee;   /* Angie case study */
  --purple-dim:    rgba(165,126,238,0.12);
  --amber:         #f5a623;   /* Editor Onboarding case study */
  --amber-dim:     rgba(245,166,35,0.12);
  --yellow:        #c5d928;

  --border:        rgba(255,255,255,0.08);
  --radius-lg:     20px;
  --radius-xl:     32px;

  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --glow-color:   rgba(13,191,184,0.10);
  --scroll-color: var(--teal);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg-dark); color: var(--text-primary); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Typography ─────────────────────────────────────────────── */
.display-xl { font-family: var(--font-display); font-style: normal; font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
.display-lg { font-family: var(--font-display); font-style: normal; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 600; line-height: 1.1;  letter-spacing: -0.01em; }
.display-md { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.label      { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.body-lg    { font-size: 1.125rem; line-height: 1.7; }
.body-md    { font-size: 1rem; line-height: 1.6; }

/* ─── Nav ─────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(13,17,23,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-left { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.nav-logo span { color: var(--teal); }
.nav-status { display: flex; align-items: center; gap: 0.75rem; }
.nav-status-text { font-size: 1rem; color: var(--text-muted); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--scroll-color, var(--teal));
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--yellow); color: var(--bg-dark);
  padding: 0.5rem 1.25rem; border-radius: 100px;
  font-size: 0.875rem; font-weight: 600;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ─── Hamburger ────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Mobile overlay menu ──────────────────────────────────────── */
.nav-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,0.97);
  backdrop-filter: blur(20px) saturate(180%);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.3s;
}
.nav-mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s;
}
.nav-mobile-menu a {
  font-size: clamp(2.25rem, 12vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition: color 0.2s, opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-mobile-menu.open a { opacity: 1; transform: translateY(0); }
.nav-mobile-menu.open a:nth-child(2) { transition-delay: 0.06s; }
.nav-mobile-menu a:hover { color: var(--teal); }

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 2.5rem 5rem;
  max-width: 1200px; margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2rem;
}
.hero-eyebrow-dot {
  display: inline-block; vertical-align: baseline; margin-left: 3px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title { margin-bottom: 1.5rem; }
.hero-title .accent { color: var(--teal); }

/* ─── Hero Word Reveal ───────────────────────────────────────── */
@keyframes wordReveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes markerSweep {
  to { background-position: left; }
}
.hero-word {
  display: inline-block;
  opacity: 0;
  animation: wordReveal 0.65s ease forwards;
  animation-delay: calc(var(--i, 0) * 110ms);
}
.hero-title.words-split { opacity: 1; transform: none; transition: none; }
.hero-title.words-split .accent {
  background: linear-gradient(to right, var(--teal) 50%, #fff 50%);
  background-size: 200%;
  background-position: right;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: markerSweep 0.5s ease forwards;
  animation-delay: calc(var(--i, 3) * 110ms + 650ms);
}
.hero-sub {
  max-width: 600px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex; gap: 4rem; flex-wrap: wrap;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.stat-value { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--teal); }
.stat-label { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.35rem; white-space: nowrap; }

/* ─── Section Labels ─────────────────────────────────────────── */
.section-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3rem;
  padding: 0 2.5rem;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}

/* ─── Case Study Cards ─────────────────────────────────────────── */
.case-studies {
  padding: 5rem 0 8rem;
}
.case-studies-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 2.5rem;
  max-width: 1200px; margin: 0 auto 3rem;
}
.cards-grid {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: grid;
  grid-template-columns: 1fr 42%;
  min-height: 360px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.card-cyan   { background: linear-gradient(160deg, #130612 0%, #0d1117 55%, #0e0b15 100%); }
.card-purple { background: linear-gradient(160deg, #0e0a16 0%, #0d1117 55%, #0c0a15 100%); }
.card-amber  { background: linear-gradient(160deg, #130e00 0%, #0d1117 55%, #110d05 100%); }

.card-cyan:hover  {
  border-color: rgba(254,90,248,0.22);
  box-shadow: 0 0 0 1px rgba(254,90,248,0.18), 0 32px 64px rgba(254,90,248,0.1);
}
.card-purple:hover {
  border-color: rgba(165,126,238,0.22);
  box-shadow: 0 0 0 1px rgba(165,126,238,0.18), 0 32px 64px rgba(165,126,238,0.1);
}

.card-inner {
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-top { display: flex; flex-direction: column; }
.card-bottom { display: flex; flex-direction: column; gap: 0; }

.card-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem; border-radius: 100px;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.25rem;
  align-self: flex-start;
}
.tag-cyan   { background: var(--cyan-dim);   color: var(--cyan); }
.tag-purple { background: var(--purple-dim); color: var(--purple); }
.tag-amber  { background: var(--amber-dim);  color: var(--amber); }

.card-title {
  font-family: 'Playfair Display', serif;
  font-style: normal;
  font-weight: 600;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #fff;
}
.card-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 34ch;
}

.card-metrics {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding-top: 2rem;
  margin-bottom: 2rem;
}
.card-metrics > div { flex: 1; }
.metric-divider {
  width: 1px;
  height: 2.5rem;
  background: transparent;
  align-self: center;
  flex: none;
  margin: 0 2rem;
}
.metric-value {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.card-cyan   .metric-value { color: var(--cyan); }
.card-purple .metric-value { color: var(--purple); }
.card-amber  .metric-value { color: var(--amber); }
.metric-label { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.3rem; }
.mobile-br { display: none; }

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.card-cta { font-size: 0.875rem; font-weight: 500; }
.card-cyan   .card-cta { color: var(--cyan); }
.card-purple .card-cta { color: var(--purple); }
.card-amber  .card-cta { color: var(--amber); }

.card-arrow {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.case-card:hover .card-arrow { transform: translate(3px, -3px); }
.card-cyan:hover   .card-arrow { border-color: rgba(254,90,248,0.4);  color: var(--cyan); }
.card-purple:hover .card-arrow { border-color: rgba(165,126,238,0.4); color: var(--purple); }

.placeholder-amber { background: linear-gradient(160deg, #1f1500 0%, #f5a62308 60%, #0d1117 100%); }

.card-coming-soon { cursor: default; }
.card-coming-soon .card-footer { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.coming-soon-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Card visual — right column */
.card-visual {
  position: relative;
  overflow: hidden;
}
.card-cyan   .card-visual { background: linear-gradient(90deg, rgba(254,90,248,0.02) 0%, rgba(254,90,248,0.07) 100%); }
.card-purple .card-visual { background: linear-gradient(90deg, rgba(165,126,238,0.02) 0%, rgba(165,126,238,0.07) 100%); }
.card-amber  .card-visual { background: linear-gradient(90deg, rgba(245,166,35,0.02)  0%, rgba(245,166,35,0.07)  100%); }
.card-visual img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
  opacity: 0.85;
  transition: opacity 0.4s ease, transform 0.6s ease;
}
.case-card:hover .card-visual img {
  opacity: 1;
  transform: scale(1.03);
}

.card-visual-placeholder {
  width: 100%; height: 100%;
}
.placeholder-cyan {
  background: linear-gradient(160deg, #3d1038 0%, #fe5af812 60%, #1a0919 100%);
}
.placeholder-purple {
  background: linear-gradient(160deg, #271040 0%, #a57eee14 60%, #10091c 100%);
}

/* ── Shelfy card visual ─────────────────────────────── */
.shelfy-card-visual {
  background: #f0ece6;
}
.shelfy-cover-img {
  object-fit: contain !important;
  object-position: center center !important;
  opacity: 0.95 !important;
  padding: 1.5rem 0.5rem;
  transform: translateY(var(--shelfy-parallax, 0px));
  will-change: transform;
  transition: opacity 0.4s ease, transform 0.6s ease;
}
.case-card:hover .shelfy-cover-img {
  opacity: 1 !important;
  transform: translateY(var(--shelfy-parallax, 0px)) scale(1.03);
}

/* ── Angie card visual composition ─────────────────────────────── */
@keyframes angie-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
.angie-card-comp {
  position: absolute;
  inset: 0;
}
.card-visual img.angie-card-gallery {
  position: absolute;
  right: 24px; top: 24px;
  width: 44.8%;
  height: calc(100% - 24px);
  object-fit: cover;
  object-position: top center;
  z-index: 1;
}
.card-visual img.angie-card-prompt {
  position: absolute;
  left: 4%;
  bottom: 10%;
  width: 62%;
  height: auto;
  object-fit: unset;
  z-index: 2;
  animation: angie-float 4.5s ease-in-out infinite;
}
img.angie-card-mobile { display: none; }
@media (max-width: 900px) {
  .card-visual img.angie-card-gallery { width: 55%; }
  .card-visual img.angie-card-prompt {
    left: 3%;
    bottom: 10%;
    width: 68%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card-visual img.angie-card-prompt { animation: none; }
}

/* ── Blob visual ──────────────────────────────────────────────── */
.blob-container {
  position: relative;
}
.blob {
  --size: 340px;
  height: var(--size);
  width: var(--size);
  margin: auto;
  position: relative;
  filter: blur(calc(var(--size) / 25));
  transition: 3s all;
}
.blob > span {
  height: var(--size);
  width: var(--size);
  position: absolute;
  display: block;
  top: calc(50% - var(--size) / 2);
  transition: 2s all 0.25s ease-in-out;
}
.blob > span:first-child  { left:  calc(50% - var(--size) / 2); }
.blob > span:nth-child(2) { right: calc(50% - var(--size) / 2); }
.blob > span::before {
  content: "";
  display: block;
  opacity: 0.6;
  height: 100%;
  width: 100%;
  transition: 2s all 0.25s ease-in-out, 1.5s opacity, background-size 1.5s;
  animation: blob-rotate 16s infinite linear both;
  mask:
    radial-gradient(circle, #000 50%, transparent 50%) 50% 50% / var(--size) var(--size),
    radial-gradient(circle, #000 50%, transparent 50%) 110% 10% / calc(var(--size) / 1.3) calc(var(--size) / 1.3),
    radial-gradient(circle, #000 50%, transparent 50%) -20% 20% / calc(var(--size) / 1.2) calc(var(--size) / 1.2),
    radial-gradient(circle, #000 50%, transparent 50%) 10% 110% / calc(var(--size) / 1.3) calc(var(--size) / 1.3);
  mask-repeat: no-repeat;
}
.blob > span:nth-child(2)::before { animation-direction: reverse; }
.blob > span:first-child::before {
  background:
    radial-gradient(circle, #a0f7fc 50%, transparent 50%) 50% 50% / 0 0,
    linear-gradient(#ea58f8, #b28df2, #a0f7fc 40%) 50% 50% / 100% 100%;
  background-repeat: no-repeat;
}
.blob > span:nth-child(2)::before {
  background:
    radial-gradient(circle, #f8a0f7 50%, transparent 50%) 50% 50% / 0 0,
    linear-gradient(#ea58f8, #a0f7fc) 50% 50% / 100% 100%;
  background-repeat: no-repeat;
}
@keyframes blob-rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(365deg); }
}

/* ── Floater base ── */
.floater { position: absolute; }

/* ── Floater: Chat ── */
.floater-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  left: -8px;
  top: -69px;
}
.message-bot, .message-user {
  font-size: 13px;
  height: 54px;
  text-align: left;
}
.message-bot {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 8px 20px 8px 12px;
  line-height: 1.3;
  color: rgba(255,255,255,0.9);
  background: rgba(254, 90, 248, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(254, 90, 248, 0.22);
  border-radius: 16px 16px 16px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  animation: 10s floater-chat-bot-msg infinite both;
}
.message-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: -48px;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 16px 16px 0 16px;
  align-self: flex-end;
  color: rgba(255,255,255,0.85);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  animation: 10s floater-chat-user-msg infinite both;
}
.floater-chat .message-user img {
  border: 1px solid #fff;
  border-radius: 100%;
  height: 32px;
  width: 32px;
  flex-shrink: 0;
  object-fit: cover;
}
@keyframes floater-chat-bot-msg {
  0%, 90%, 100% { transform-origin: bottom left;  transform: scale(0.8); opacity: 0; }
  7.5%          { transform-origin: bottom left;  transform: scale(1.05); opacity: 1; }
  13%, 85%      { transform-origin: bottom left;  transform: scale(1);    opacity: 1; }
}
@keyframes floater-chat-user-msg {
  0%, 2.5%, 90%, 100% { transform-origin: bottom right; transform: scale(0.8);  opacity: 0; }
  10%                 { transform-origin: bottom right; transform: scale(1.05); opacity: 1; }
  15.5%, 85%          { transform-origin: bottom right; transform: scale(1);    opacity: 1; }
}

/* ── Floater: Generator ── */
.floater-generator {
  display: flex;
  flex-direction: column;
  gap: 8px;
  right: -100px;
  bottom: -80px;
  width: 150px;
  padding: 12px 14px;
  font-weight: 400;
  text-align: left;
  border-radius: 16px;
  animation: 10s floater-generator-panel infinite both;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}
.generator-heading {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.01em;
}
.generator-skeleton {
  width: 100%;
  height: 54px;
  border-radius: 4px;
  background: linear-gradient(45deg, rgba(255,255,255,0.02), rgba(255,255,255,0.09) 20%, rgba(255,255,255,0.04), rgba(255,255,255,0.09) 80%, rgba(255,255,255,0.02));
}
.generator-skeleton::after {
  content: "";
  display: block;
  height: 3px;
  width: 30px;
  background: rgba(255,255,255,0.18);
  margin: 5px;
  border-radius: 9999px;
}
.generator-skeleton-global {
  height: 28px;
  background: linear-gradient(45deg, rgba(160,247,252,0.03), rgba(160,247,252,0.12) 20%, rgba(160,247,252,0.06), rgba(160,247,252,0.12) 80%, rgba(160,247,252,0.03));
}
.generator-skeleton-global::after { background: rgba(160,247,252,0.22); }
.floater-generator .generator-skeleton:nth-child(4) { animation: 10s floater-gen-skel-1 infinite both; }
.floater-generator .generator-skeleton:last-child    { height: 32px; animation: 10s floater-gen-skel-2 infinite both; }
@keyframes floater-generator-panel {
  0%, 5%, 90%, 100% { transform-origin: bottom right; transform: scale(0.9);   opacity: 0; }
  12.5%             { transform-origin: bottom right; transform: scale(1.025); opacity: 1; }
  20%, 85%          { transform-origin: bottom right; transform: scale(1);     opacity: 1; }
}
@keyframes floater-gen-skel-1 {
  0%, 7%     { opacity: 0; clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
  14.5%, 85% { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
@keyframes floater-gen-skel-2 {
  0%, 9%     { opacity: 0; transform-origin: left center; transform: scaleX(0); }
  16.5%, 85% { opacity: 1; transform-origin: left center; transform: scaleX(1); }
}

/* ── Floater: Image ── */
.floater-image {
  left: -8px;
  bottom: -20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: 10s floater-img-wrap infinite both;
}
.floater-image .image-skeleton {
  display: block;
  height: 12px;
  width: 80px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
}
.floater-image .image-skeleton:first-child  { animation: 10s floater-img-skel-1 infinite both; }
.floater-image .image-skeleton:nth-child(2) { width: 120px; animation: 10s floater-img-skel-2 infinite both; }
.floater-image .image-placeholder {
  display: grid;
  place-items: center;
  height: 80px;
  width: 92px;
  border-radius: 16px;
  animation: 10s floater-img-placeholder infinite both;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
@keyframes floater-img-wrap {
  0%, 85%   { opacity: 1; transform: scale(1); }
  90%, 100% { transform-origin: bottom left; transform: scale(0.8); opacity: 0; }
}
@keyframes floater-img-skel-1 {
  0%, 10%    { opacity: 0; transform-origin: left center; transform: scaleX(0); }
  17.5%, 85% { opacity: 1; transform-origin: left center; transform: scaleX(1); }
}
@keyframes floater-img-skel-2 {
  0%, 13%    { opacity: 0; transform-origin: left center; transform: scaleX(0); }
  20.5%, 85% { opacity: 1; transform-origin: left center; transform: scaleX(1); }
}
@keyframes floater-img-placeholder {
  0%, 17%  { transform-origin: bottom left; transform: scale(0.8);  opacity: 0; }
  24.5%    { transform-origin: bottom left; transform: scale(1.025); opacity: 1; }
  32%, 85% { transform-origin: bottom left; transform: scale(1);     opacity: 1; }
}

/* ── Blob inside card-visual ── */
.card-visual .blob-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  zoom: 0.72;
}

/* ── Reduced motion (blob + floaters) ── */
@media (prefers-reduced-motion: reduce) {
  .blob > span::before,
  .floater-chat, .message-bot, .message-user,
  .floater-generator, .floater-generator .generator-skeleton,
  .floater-image, .floater-image .image-skeleton, .floater-image .image-placeholder {
    animation: none;
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}

/* ─── Philosophy Strip ────────────────────────────────────────── */
.philosophy {
  padding: 6rem 2.5rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.philosophy-inner { max-width: 1200px; margin: 0 auto; }
.philosophy-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 4rem; flex-wrap: wrap; gap: 1rem;
}
.philosophy-header h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.pillar { border-left: 2px solid var(--border); padding-left: 1.5rem; }
.pillar-number { font-size: 0.75rem; font-weight: 600; color: var(--teal); letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.pillar-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; }
.pillar-body { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Highlights index (about page) ──────────────────────────── */
.highlights-index {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 2rem;
}
.index-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.index-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
  min-width: 130px;
  padding-top: 0.25em;
}
.index-dots {
  flex: 1;
  min-width: 2rem;
  height: 1px;
  margin-top: 0.7em;
  align-self: flex-start;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.28) 0px,
    rgba(255,255,255,0.28) 3px,
    transparent 3px,
    transparent 10px
  );
}
.index-right {
  max-width: 520px;
}
.index-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.index-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.index-body a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(13, 191, 184, 0.4);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.index-body a:hover {
  color: var(--text-primary);
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
.highlights-photo-strip {
  display: flex;
  gap: 0.75rem;
  margin-top: 3rem;
  height: clamp(220px, 26vw, 300px);
  align-items: stretch;
}
.strip-img {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  flex-shrink: 0;
}
/* Width proportions based on natural image ratio */
.strip-img:nth-child(1) { flex: 1.5; }  /* hackathon 3:2 landscape */
.strip-img:nth-child(2) { flex: 1.8; }  /* speaker 16:9 landscape  */
.strip-img:nth-child(3) { flex: 1; }    /* podcast ~1:1 square */
.strip-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(13,17,23,0.72) 100%);
  pointer-events: none;
}
.strip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.strip-img:nth-child(1) img {
  object-position: center 70%;
  transform: scale(1.35);
  transform-origin: center 70%;
}
.strip-img:nth-child(2) img {
  object-position: right center;
}
.strip-img:nth-child(3) img {
  object-position: 80% top;
}

/* ─── Contact CTA ─────────────────────────────────────────────── */
.contact {
  padding: 8rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(13,191,184,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.contact-inner { max-width: 600px; margin: 0 auto; position: relative; }
.contact h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.contact-sub { color: var(--text-muted); font-size: 1.125rem; line-height: 1.6; margin-bottom: 2.5rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--yellow); color: var(--bg-dark);
  padding: 0.875rem 2rem; border-radius: 100px;
  font-size: 1rem; font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }
.contact-links { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; }
.contact-links a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s; }
.contact-links a:hover { color: var(--text-primary); }
.contact-divider { color: var(--border); }

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}
.footer-lead { color: var(--teal); font-weight: 600; font-size: 0.875rem; }
.footer-plain { color: var(--text-muted); font-size: 0.875rem; }
.footer-sep { color: rgba(255,255,255,0.2); font-size: 0.875rem; user-select: none; }
.footer-link {
  font-size: 0.875rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s;
}
.footer-link:hover { color: var(--text-primary); }
.footer-icon { display: flex; align-items: center; }

/* ─── About Page ─────────────────────────────────────────────── */
.about-hero {
  display: flex;
  align-items: center;
  padding: 10rem 2.5rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 5rem;
}
.about-photo {
  flex: 0 0 auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
.about-text { flex: 1; min-width: 0; }
.about-overline {
  color: var(--teal);
  display: block;
  margin-bottom: 1.5rem;
}
.about-title { margin-bottom: 2rem; }
.about-accent { color: var(--teal); }
.about-bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.about-bio p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.about-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.btn-secondary {
  display: inline-flex; align-items: center;
  padding: 0.875rem 2rem; border-radius: 100px;
  font-size: 1rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-primary);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); }
.about-contact-link {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.about-contact-link:hover { color: var(--text-primary); }
.nav-links a.nav-active { color: var(--text-primary); }

/* ─── Case Study Page ─────────────────────────────────────────── */
.cs-hero {
  padding: 8rem 2.5rem 4rem;
  max-width: 900px; margin: 0 auto;
}
.cs-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.cs-title { margin-bottom: 1rem; }
.cs-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  color: var(--text-muted); line-height: 1.6;
  max-width: 650px; margin-bottom: 2rem;
}
.cs-meta { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.cs-meta-item { font-size: 0.875rem; color: var(--text-muted); }
.cs-meta-item strong { color: var(--text-primary); display: block; margin-bottom: 0.25rem; }

/* Full-bleed visual */
.cs-visual-hero {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  margin: 2rem 0 5rem;
}
.cs-visual-hero img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
.cs-visual-placeholder-hero {
  width: 100%; height: 480px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-muted);
}

/* Case study sections */
.cs-section {
  max-width: 900px; margin: 0 auto;
  padding: 0 2.5rem 4rem;
}
.cs-section-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.cs-section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; }
.cs-section p { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.7; }


/* Role bullets */
.role-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.role-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  font-size: 1.0625rem; color: var(--text-muted); line-height: 1.6;
}
.role-list li::before {
  content: '→';
  flex-shrink: 0;
  font-weight: 600;
  margin-top: 0.05em;
}

/* Image grid */
.cs-images {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin: 2rem 0;
}
.cs-images img { border-radius: var(--radius-lg); }
.cs-images .img-full { grid-column: 1 / -1; }

/* Teaser callout */
.cs-teaser {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 4rem 0 2rem;
  text-align: center;
}
.cs-teaser h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.cs-teaser p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.9375rem; }

/* Back nav — fixed below the nav bar, always visible while scrolling */
.cs-back {
  position: fixed;
  top: 4.5rem;
  left: 1.5rem;
  z-index: 101;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8125rem; color: var(--text-muted);
  padding: 0.4rem 0.875rem 0.4rem 0.625rem;
  background: rgba(13,17,23,0.72);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.cs-back:hover { color: var(--text-primary); background: rgba(13,17,23,0.92); }

/* ─── Case Study: Editorial Layout ──────────────────────────────── */

/* Hero — asymmetric split, image bleeds off right edge */
.cs-hero-editorial {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2.5rem 5rem;
  max-width: 1360px;
  margin: 0 auto;
  gap: 4rem;
}
.cs-hero-text { flex: 1; min-width: 0; }
.cs-hero-image-wrap {
  flex: 0 0 30%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-right: -5vw;
  min-height: 520px;
  align-self: stretch;
}
.cs-hero-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
}

/* Full-bleed section images */
.cs-bleed {
  margin-left: calc(-50vw + 50%);
  width: 100vw;
  height: clamp(280px, 40vw, 560px);
  overflow: hidden;
  margin-bottom: 5rem;
}
.cs-bleed img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
}

/* Placeholder for images not yet swapped in */
.cs-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font);
  opacity: 0.7;
}

/* Decisions 2-column grid */
.cs-decisions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3.5rem;
  margin: 2rem 0;
}
.cs-decision {
  padding-left: 1.25rem;
  border-left: 2px solid var(--border);
}
.cs-decision p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Product images — asymmetric heights, break uniform card rhythm */
.cs-product-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.25rem;
  margin: 2rem 0;
}
.cs-product-grid > *:first-child {
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cs-product-grid > *:last-child {
  height: 272px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-self: end;
}
.cs-product-grid img,
.cs-product-grid video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
}
.cs-product-grid--single {
  grid-template-columns: 1fr;
}
.cs-product-grid--single > * {
  height: auto !important;
  border-radius: 8px !important;
  overflow: hidden;
}
.cs-product-grid--single img,
.cs-product-grid--single video {
  height: auto;
  object-fit: unset;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Gallery strip — 3 process/research images with captions */
.cs-gallery-strip {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto 8rem;
  padding: 0 2.5rem;
  box-sizing: border-box;
}
.cs-gallery-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  min-width: 0;
}
.cs-gallery-item-image {
  flex: 0 0 42%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cs-gallery-item-image img {
  width: 100%;
  height: auto;
  display: block;
}
.cs-gallery-item-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-top: 0.25rem;
}
.cs-gallery-caption {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255,255,255,0.9);
  margin: 0;
}
.cs-gallery-principle {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}
@media (max-width: 700px) {
  .cs-gallery-item {
    flex-direction: column;
    gap: 1rem;
  }
  .cs-gallery-item-image {
    flex: none;
    width: 100%;
  }
}

/* Impact — inline oversized numbers, no background box */
.cs-impact {
  display: flex;
  margin: 3.5rem 0 2.5rem;
}
.cs-impact-item {
  flex: 1;
  padding: 0 2.5rem;
  border-left: 1px solid var(--border);
}
.cs-impact-item:first-child { padding-left: 0; border-left: none; }
.cs-impact-value {
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.cs-impact-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Next case study — full-viewport panel */
.cs-next-project {
  display: block;
  position: relative;
  height: 100vh;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
}
.cs-next-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(0.3);
  transition: filter 0.5s ease;
  display: block;
}
.cs-next-project:hover .cs-next-bg { filter: brightness(0.45); }
.cs-next-inner {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
}
.cs-next-eyebrow {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem; display: block;
}
.cs-next-title {
  font-family: var(--font-display);
  font-style: normal; font-weight: 600;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 1.05; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 1.25rem;
}
.cs-next-arrow {
  font-style: normal; display: inline-block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cs-next-project:hover .cs-next-arrow { transform: translate(12px, -12px); }

/* ─── Scroll Reveal ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.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; }

/* ─── Cursor Glow ──────────────────────────────────────────────── */
.cursor-glow {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  transition: background 0.08s linear;
}

/* ─── Scroll Progress Bar ──────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 0%;
  background: var(--scroll-color, var(--teal));
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ─── Reduced Motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity 0.3s ease; transform: none; }
  .case-card, .btn-primary { transition: opacity 0.2s; }
  .hero-eyebrow-dot { animation: none; opacity: 1; }
  .nav-hamburger span, .nav-mobile-menu, .nav-mobile-menu a { transition: none; }
  .hero-word { opacity: 1; animation: none; }
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Nav */
  nav { padding: 1rem 1.5rem; justify-content: flex-start; gap: 0.75rem; }
  .nav-left { flex: 1; }
  .nav-links .nav-link-hide { display: none; }
  .nav-links { gap: 1rem; }
  .nav-status { display: none; }
  .nav-hamburger { display: flex; }
  .cs-back { top: 4.25rem; left: 1rem; }

  /* Hero */
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; }

  /* Case study cards — fix double-padding: remove inner padding since parent has 1.5rem */
  .case-studies { padding: 4rem 1.5rem 6rem; }
  .case-studies-label { padding: 0; }
  .cards-grid { padding: 0; gap: 1.25rem; }
  .case-card { grid-template-columns: 1fr; grid-template-rows: 260px auto; }
  .card-visual { order: -1; }
  .card-inner { padding: 2.5rem 2rem; }
  .mobile-br { display: inline; }
  .card-visual .blob-container { zoom: 0.46; top: calc(50% + 18px); }
  .card-visual .floater-chat { gap: 7px; }
  .card-visual .message-bot { padding: 8px 12px 8px 10px; gap: 8px; }
  .card-visual .message-bot svg { width: 22px; height: 22px; flex-shrink: 0; }
  .card-visual .message-user { padding: 8px 10px; }
  .card-title { font-size: clamp(2.25rem, 8vw, 3rem); }
  .card-subtitle { font-size: 1rem; }
  .card-tag { font-size: 0.75rem; }
  .metric-label { font-size: 0.875rem; }
  .metric-divider { margin: 0 1.25rem; }

  /* About */
  .about-hero {
    flex-direction: column;
    padding: 7rem 1.5rem 4rem;
    gap: 2.5rem;
  }
  .about-photo {
    flex: none;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    align-self: flex-start;
  }

  /* Philosophy */
  .philosophy { padding: 4rem 1.5rem; }
  .pillars { grid-template-columns: 1fr; gap: 2rem; }
  .index-row { flex-wrap: wrap; gap: 0.5rem; }
  .index-dots { display: none; }
  .index-right { max-width: 100%; }
  .highlights-photo-strip {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: 200px;
  }
  .highlights-photo-strip::-webkit-scrollbar { display: none; }
  .strip-img { flex: 0 0 72vw; scroll-snap-align: start; }

  /* Contact + footer */
  .contact { padding: 5rem 1.5rem; }
  footer { padding: 1.75rem 1.5rem; }

  /* Case study pages */
  .cs-hero { padding: 7rem 1.5rem 3rem; }
  .cs-section { padding: 0 1.5rem 3rem; }
  .cs-images { grid-template-columns: 1fr; }
  .cs-images .img-full { grid-column: 1; }
  .cs-gallery-strip { padding: 0 1.5rem; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 4rem; }
  .cs-decisions { grid-template-columns: 1fr; gap: 1.75rem; }
  .cs-product-grid { grid-template-columns: 1fr; }
  .cs-product-grid:not(.cs-product-grid--single) > *:first-child,
  .cs-product-grid:not(.cs-product-grid--single) > *:last-child { height: 240px; align-self: auto; }
  .cs-impact { flex-direction: column; gap: 0; }
  .cs-impact-item {
    border-left: none; padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem; padding-bottom: 1.5rem;
  }
  .cs-impact-item:first-child { border-top: none; padding-top: 0; }
  .cs-next-title { font-size: clamp(2.75rem, 11vw, 4.5rem); }

  /* Editorial hero */
  .cs-hero-editorial {
    flex-direction: column;
    min-height: auto;
    padding: 7rem 1.5rem 3rem;
    gap: 2.5rem;
  }
  .cs-hero-image-wrap {
    flex: none;
    width: calc(100% + 3rem);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    min-height: 280px;
    border-radius: 0;
    align-self: auto;
  }
}

@media (max-width: 600px) {
  /* Nav */
  nav { padding: 1rem 1.25rem; }

  /* Hero */
  .hero { padding: 6rem 1.25rem 3rem; }
  .hero-stats { gap: 1.5rem; flex-direction: column; }

  /* Cards */
  .case-studies { padding: 3rem 1.25rem 5rem; }
  .case-card { grid-template-rows: 230px auto; }
  .card-inner { padding: 2rem 1.5rem; }
  .card-visual .blob-container { zoom: 0.42; top: calc(50% + 16px); }
  .card-visual .floater-chat { gap: 7px; }
  .card-visual .message-bot { padding: 8px 12px 8px 10px; gap: 8px; }
  .card-visual .message-bot svg { width: 22px; height: 22px; flex-shrink: 0; }
  .card-visual .message-user { padding: 8px 10px; }
  .card-title { font-size: clamp(2rem, 10vw, 2.75rem); }
  .card-subtitle { font-size: 1rem; }
  .card-metrics { flex-wrap: wrap; gap: 1rem; }
  .metric-divider { display: none; }

  /* About */
  .about-hero { padding: 6rem 1.25rem 3rem; }
  .about-photo { width: 150px; height: 150px; border-radius: 50%; }

  /* Philosophy */
  .philosophy { padding: 3rem 1.25rem; }

  /* Contact + footer */
  .contact { padding: 4rem 1.25rem; }
  footer { padding: 1.5rem 1.25rem; }

  /* Case study pages */
  .cs-back { top: 4.25rem; left: 0.75rem; }
  .cs-hero { padding: 6rem 1.25rem 2.5rem; }
  .cs-section { padding: 0 1.25rem 2.5rem; }
  .cs-gallery-strip { padding: 0 1.25rem; margin-bottom: 3rem; }
  .cs-meta { gap: 1.25rem; flex-direction: column; }
  .cs-impact-value { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .cs-next-title { font-size: clamp(2.25rem, 12vw, 3.5rem); }

  /* Editorial hero */
  .cs-hero-editorial { padding: 6rem 1.25rem 2.5rem; }
  .cs-hero-image-wrap {
    width: calc(100% + 2.5rem);
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }
  .cs-hero-image-wrap {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
    min-height: 240px;
  }
}

/* ─── Theme Toggle Button ───────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.25); }
.theme-icon-moon { display: none; }

/* ─── Light Mode Overrides ──────────────────────────────────── */

/* 1. Tokens
   Elevation logic flips vs dark:
   dark = lighter surface lifts off dark base
   light = white surface lifts off gray base, shadow replaces gradient as elevation signal */
[data-theme="light"] {
  --bg-dark:      #f2f4f7;   /* page floor — cool light gray */
  --bg-surface:   #ffffff;   /* elevated surfaces — white lifts off the gray base */
  --text-primary: #0d1117;
  --text-muted:   rgba(13,17,23,0.50);
  --border:       rgba(13,17,23,0.08);

  --teal:         #0a9e98;
  --teal-rgb:     10,158,152;
  --teal-dim:     rgba(10,158,152,0.10);

  --cyan:         #c0169b;
  --cyan-dim:     rgba(192,22,155,0.09);

  --purple:       #6c3fd4;
  --purple-dim:   rgba(108,63,212,0.09);

  --amber:        #c07c00;
  --amber-dim:    rgba(192,124,0,0.09);

  --glow-color:   rgba(10,158,152,0.06);
}

/* 2. Body */
[data-theme="light"] body { background: var(--bg-dark); color: var(--text-primary); }

/* 3. Nav — floats above gray page, shadow replaces border as separator */
[data-theme="light"] nav {
  background: rgba(242,244,247,0.88);
  box-shadow: 0 1px 0 rgba(13,17,23,0.07), 0 4px 20px rgba(13,17,23,0.04);
}
[data-theme="light"] .nav-mobile-menu {
  background: rgba(242,244,247,0.97);
}
[data-theme="light"] .theme-toggle:hover { border-color: rgba(13,17,23,0.25); }
[data-theme="light"] .theme-icon-sun  { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

/* 4. Hero accent animation — sweeps to dark text instead of white */
[data-theme="light"] .hero-title.words-split .accent {
  background: linear-gradient(to right, var(--teal) 50%, #0d1117 50%);
  background-size: 200%;
  background-position: right;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: markerSweep 0.5s ease forwards;
  animation-delay: calc(var(--i, 3) * 110ms + 650ms);
}

/* 5. Cards — white elevated surface + shadow. Accent stays in tag/metrics/CTA only. */
[data-theme="light"] .case-card {
  background: #ffffff;
  border-color: rgba(13,17,23,0.06);
  box-shadow: 0 2px 8px rgba(13,17,23,0.05), 0 8px 32px rgba(13,17,23,0.04);
}
[data-theme="light"] .card-cyan:hover  {
  border-color: rgba(192,22,155,0.20);
  box-shadow: 0 2px 8px rgba(13,17,23,0.04), 0 16px 48px rgba(192,22,155,0.08);
}
[data-theme="light"] .card-purple:hover {
  border-color: rgba(108,63,212,0.20);
  box-shadow: 0 2px 8px rgba(13,17,23,0.04), 0 16px 48px rgba(108,63,212,0.08);
}
[data-theme="light"] .card-amber:hover {
  border-color: rgba(192,124,0,0.20);
  box-shadow: 0 2px 8px rgba(13,17,23,0.04), 0 16px 48px rgba(192,124,0,0.08);
}

[data-theme="light"] .card-cyan:hover   .card-arrow { border-color: rgba(192,22,155,0.4);  color: var(--cyan); }
[data-theme="light"] .card-purple:hover .card-arrow { border-color: rgba(108,63,212,0.4); color: var(--purple); }
[data-theme="light"] .card-amber:hover  .card-arrow { border-color: rgba(192,124,0,0.4);  color: var(--amber); }

/* 5a. Card visual column — barely-there tint, not a design element */
[data-theme="light"] .card-cyan   .card-visual { background: rgba(192,22,155,0.03); }
[data-theme="light"] .card-purple .card-visual { background: rgba(108,63,212,0.03); }
[data-theme="light"] .card-amber  .card-visual { background: rgba(192,124,0,0.03); }

/* 5b. Placeholders — off-white, accent is ghost-level only */
[data-theme="light"] .placeholder-cyan {
  background: linear-gradient(160deg, #fdf5fe 0%, #ffffff 60%, #fdf5fe 100%);
}
[data-theme="light"] .placeholder-purple {
  background: linear-gradient(160deg, #f8f5ff 0%, #ffffff 60%, #f8f5ff 100%);
}
[data-theme="light"] .placeholder-amber {
  background: linear-gradient(160deg, #fdfaf5 0%, #ffffff 60%, #fdfaf5 100%);
}

/* 6. Card title — white becomes dark */
[data-theme="light"] .card-title { color: #0d1117; }

/* 7. Buttons */
[data-theme="light"] .btn-primary,
[data-theme="light"] .nav-cta { color: #0d1117; }
[data-theme="light"] .btn-secondary {
  border-color: rgba(13,17,23,0.2);
  color: var(--text-primary);
}
[data-theme="light"] .btn-secondary:hover { border-color: rgba(13,17,23,0.45); }

/* 8. Floating UI elements (card-visual blob) */
[data-theme="light"] .message-bot {
  color: rgba(13,17,23,0.9);
  background: rgba(240, 171, 252, 0.4);
  border-color: rgba(240, 171, 252, 0.3);
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.1);
}
[data-theme="light"] .message-bot svg path {
  fill: #0d1117;
  stroke: #0d1117;
}
[data-theme="light"] .message-user {
  color: rgba(13,17,23,0.85);
  background: rgba(255, 255, 255, 0.5);
  border-color: #fff;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.1);
}

/* 8b. Blob opacity — higher on light bg so it's visible */
[data-theme="light"] .blob > span::before { opacity: 0.75; }
[data-theme="light"] .floater-generator {
  background: rgba(255,255,255,0.5);
  border-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
[data-theme="light"] .generator-heading { color: rgba(13,17,23,0.5); }
[data-theme="light"] .generator-skeleton {
  background: linear-gradient(45deg, rgba(244,244,244,0.2), rgba(244,244,244,1) 20%, rgba(244,244,244,0.5), rgba(244,244,244,1) 80%, rgba(244,244,244,0.2));
}
[data-theme="light"] .generator-skeleton::after { background: #b5b5b5; }
[data-theme="light"] .generator-skeleton-global {
  background: linear-gradient(45deg, rgba(217,255,241,0.3), rgba(217,255,241,1) 20%, rgba(217,255,241,0.5), rgba(217,255,241,1) 80%, rgba(217,255,241,0.3));
}
[data-theme="light"] .generator-skeleton-global::after { background: #b4efd6; }
[data-theme="light"] .image-skeleton {
  background: rgba(191,209,255,0.6);
  border-color: #c6d6fd;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.05);
}
[data-theme="light"] .floater-image .image-placeholder {
  background: rgba(255,255,255,0.5);
  border-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 9. CS back pill — tracks page bg color */
[data-theme="light"] .cs-back {
  background: rgba(242,244,247,0.88);
  border-color: rgba(13,17,23,0.10);
  color: var(--text-muted);
}
[data-theme="light"] .cs-back:hover {
  background: rgba(242,244,247,0.97);
  color: var(--text-primary);
}

/* 10. Photo strip overlay — fades to page bg instead of dark; lighter touch in light mode */
[data-theme="light"] .strip-img::after {
  background: linear-gradient(to bottom, transparent 55%, rgba(242,244,247,0.45) 100%);
}

/* 11. About page dotted rule */
[data-theme="light"] .index-dots {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(13,17,23,0.20) 0px,
    rgba(13,17,23,0.20) 3px,
    transparent 3px,
    transparent 10px
  );
}

/* 12. Gallery caption */
[data-theme="light"] .cs-gallery-caption { color: rgba(13,17,23,0.9); }

/* 13. Footer separator */
[data-theme="light"] .footer-sep { color: rgba(13,17,23,0.2); }

/* 14. Screenshot shadows — dark mode uses 40-62% opacity black; light needs airy layered shadows */
[data-theme="light"] .angie-wide-shot {
  box-shadow:
    0 2px 8px rgba(13,17,23,0.06),
    0 12px 40px rgba(13,17,23,0.08);
}
[data-theme="light"] .angie-bar-card {
  box-shadow:
    0 2px 8px rgba(13,17,23,0.06),
    0 12px 40px rgba(13,17,23,0.08);
}
[data-theme="light"] .angie-bar-card:hover {
  box-shadow:
    0 4px 16px rgba(13,17,23,0.08),
    0 20px 56px rgba(13,17,23,0.11);
}
[data-theme="light"] .sp-cascade-card {
  box-shadow:
    0 2px 8px rgba(13,17,23,0.06),
    0 12px 40px rgba(13,17,23,0.08);
}
[data-theme="light"] .sp-cascade-card:hover {
  box-shadow:
    0 4px 16px rgba(13,17,23,0.08),
    0 20px 56px rgba(13,17,23,0.11);
}

/* 15. cs-next-project — image panel replaced by surface section, like philosophy/contact */
[data-theme="light"] .cs-next-project {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
[data-theme="light"] .cs-next-bg {
  display: none;
}
[data-theme="light"] .cs-next-eyebrow { color: var(--text-muted); }
[data-theme="light"] .cs-next-title   { color: var(--text-primary); }
