/* ============================================
   kunalsarin.com — Linear-inspired portfolio
   Pure HTML/CSS/JS. No build step.
   ============================================ */

/* ---------- Tokens (LIGHT MODE) ---------- */
:root {
  --bg-base: #F7F8FB;
  --bg-surface: #FFFFFF;
  --bg-elevated: #FFFFFF;

  --border-subtle: #E8EAF0;
  --border-default: #D6DAE3;
  --border-strong: #9CA3AF;

  --text-primary: #0A1F3D;
  --text-secondary: #4B5563;
  --text-tertiary: #6B7280;
  --text-disabled: #9CA3AF;

  --accent-purple: #4A56C2;
  --accent-purple-soft: rgba(74, 86, 194, 0.08);
  --accent-pink: #C97FBD;
  --accent-blue: #6760D6;
  --accent-amber: #D97706;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  background-image:
    radial-gradient(ellipse 1100px 700px at 88% -120px, rgba(74, 86, 194, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 900px 600px at 12% 115%, rgba(201, 127, 189, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 700px 500px at 50% 60%, rgba(103, 96, 214, 0.025) 0%, transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  color-scheme: light;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

::selection {
  background-color: rgba(94, 106, 210, 0.35);
  color: var(--text-primary);
}

/* ---------- Containers ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-read {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .container, .container-read { padding: 0 32px; }
}

/* ---------- Typography ---------- */
.display-xl {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.display-lg {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.display-md {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.body-lg { font-size: 16px; line-height: 1.65; }
.body    { font-size: 15px; line-height: 1.6;  }
.caption { font-size: 14px; line-height: 1.5;  }
.mono-sm {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.12em;
}
.mono-xs {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.15em;
}

@media (min-width: 768px) {
  .display-xl { font-size: 72px; }
  .display-lg { font-size: 56px; }
  .display-md { font-size: 40px; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 28px; }
  .h3 { font-size: 22px; }
  .body-lg { font-size: 18px; }
  .body    { font-size: 16px; }
}

.text-primary  { color: var(--text-primary);  }
.text-secondary{ color: var(--text-secondary);}
.text-tertiary { color: var(--text-tertiary); }
.text-accent   { color: var(--accent-purple); }
.text-italic   { font-style: italic; }
.text-light    { font-weight: 300; }
.text-medium   { font-weight: 500; }
.uppercase     { text-transform: uppercase; }
.text-center   { text-align: center; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background-color: transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background-color: rgba(247, 248, 251, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  transition: color 0.2s;
  line-height: 1;
  text-transform: uppercase;
}
.nav-logo:hover { color: var(--accent-purple); }
@media (min-width: 768px) {
  .nav-logo { font-size: 30px; }
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

@media (min-width: 1024px) {
  .nav-inner { padding: 0 32px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 96px 0 64px;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-name {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0;
}
.hero-intro {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 24px auto 0;
  max-width: 560px;
  line-height: 1.55;
}
.hero-brands {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 32px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero-name { font-size: 56px; letter-spacing: -0.03em; }
  .hero-intro { font-size: 20px; max-width: 620px; }
  .hero-brands { font-size: 13px; }
}

/* ---------- Gradient mesh (hero only) ---------- */
.gradient-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.gradient-mesh::before,
.gradient-mesh::after,
.gradient-mesh > span {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: meshFloat 30s ease-in-out infinite;
}
.gradient-mesh::before {
  width: 600px; height: 600px;
  background: var(--accent-purple);
  top: -100px; right: -100px;
  opacity: 0.16;
}
.gradient-mesh::after {
  width: 500px; height: 500px;
  background: var(--accent-pink);
  bottom: -150px; right: 200px;
  opacity: 0.12;
  animation-delay: -10s;
}
.gradient-mesh > span {
  width: 400px; height: 400px;
  background: var(--accent-blue);
  top: 30%; right: 35%;
  opacity: 0.08;
  animation-delay: -20s;
  display: block;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-30px, 20px); }
  66% { transform: translate(20px, -15px); }
}

/* ---------- Section ---------- */
.section {
  position: relative;
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}
.section.section-lg { padding: 96px 0; }

@media (min-width: 1024px) {
  .section { padding: 96px 0; }
  .section.section-lg { padding: 128px 0; }
}

.section-heading { margin-bottom: 48px; }
.section-heading .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.section-heading h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 720px;
}
.section-heading .lead {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 640px;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .section-heading h2 { font-size: 40px; }
}

/* ---------- Icon block (3-col) ---------- */
.icon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 56px;
}
@media (min-width: 768px) {
  .icon-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
@media (min-width: 1024px) {
  .icon-grid { gap: 56px; }
}
.icon-block { display: flex; flex-direction: column; gap: 12px; }
.icon-block .icon-wrap {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--accent-purple-soft);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
}
.icon-block .icon-wrap svg { width: 20px; height: 20px; }
.icon-block h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.icon-block p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}
@media (min-width: 768px) {
  .icon-block h3 { font-size: 22px; }
  .icon-block p { font-size: 16px; }
}

/* ---------- Case study cards (3-col) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}
@media (min-width: 768px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  /* When the last card would be alone on a row, span both columns so it doesn't orphan */
  .cards-grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.card {
  display: flex;
  flex-direction: column;
  padding: 4px;
  border-radius: var(--radius-lg);
  transition: box-shadow 0.3s, transform 0.3s;
  color: inherit;
}
.card.is-clickable { cursor: pointer; }
.card.is-clickable {
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  will-change: transform;
}
.card.is-clickable:hover {
  box-shadow: 0 20px 50px -20px rgba(74, 86, 194, 0.22), 0 0 0 1px rgba(74, 86, 194, 0.08);
}
.card.is-disabled { opacity: 0.7; cursor: default; }
.card-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(10, 31, 61, 0.04);
}
.card.is-clickable:hover .card-image {
  transform: scale(1.02);
}
.card-image span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.15em;
}
.card-body { padding: 0 8px; }
.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.card.is-clickable:hover .card-title { color: var(--accent-purple); }
.card.is-disabled .card-title { color: var(--text-secondary); }
.card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}
.card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 12px;
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}
.pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Decision card ---------- */
.decision-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px;
}
@media (min-width: 768px) {
  .decision-card { padding: 32px; }
}
.decision-card .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.decision-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.decision-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}
@media (min-width: 768px) {
  .decision-card h3 { font-size: 22px; }
  .decision-card p { font-size: 18px; }
}

/* ---------- Bullet list (with purple dots) ---------- */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bullet-list li {
  display: flex;
  gap: 16px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.bullet-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background-color: var(--accent-purple);
  margin-top: 10px;
}
@media (min-width: 768px) {
  .bullet-list li { font-size: 18px; }
}

/* ---------- Case study layout ---------- */
.case-study { padding: 128px 0 64px; }
.case-study .back-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 48px;
  transition: color 0.2s;
}
.case-study .back-link:hover { color: var(--text-primary); }
.case-study-hero {
  margin-bottom: 64px;
}
.case-study-hero-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-xl);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}
.case-study-hero-image span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.15em;
}
.case-study-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.case-study-hero h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  max-width: 800px;
}
.case-study-hero .lead {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
}
@media (min-width: 768px) {
  .case-study-hero h1 { font-size: 56px; line-height: 1.05; }
  .case-study-hero .lead { font-size: 20px; }
}

.cs-body {
  display: flex;
  flex-direction: column;
  gap: 96px;
}
.cs-body section { }
.cs-body .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.cs-body h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .cs-body h2 { font-size: 28px; }
}
.cs-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.cs-body p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}
.cs-body p em { color: var(--text-primary); font-style: italic; }
.cs-body p:last-child { margin-bottom: 0; }
.cs-body ol, .cs-body ul {
  margin-left: 24px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}
.cs-body ol li::marker {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 13px;
}
.cs-body ul li::marker { color: var(--accent-purple); }
.cs-body ul li, .cs-body ol li { padding-left: 6px; margin-bottom: 6px; }

@media (min-width: 768px) {
  .cs-body p, .cs-body ol, .cs-body ul { font-size: 18px; }
}

/* Quoted PM / Leadership frame */
.frame-quote {
  border-left: 2px solid var(--accent-purple);
  padding-left: 24px;
  margin-bottom: 24px;
}
.frame-quote .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.frame-quote p {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.6;
}

/* Decisions list (legacy stacked layout — kept for fallback) */
.decisions { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Carousel ---------- */
.carousel-section { position: relative; }
.carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.carousel-header h2 { margin-bottom: 0; }
.carousel-nav { display: flex; gap: 8px; flex-shrink: 0; }
.carousel-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.carousel-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background-color: var(--bg-elevated);
}
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.carousel-btn svg { width: 16px; height: 16px; }

.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}
.carousel::-webkit-scrollbar { height: 4px; }
.carousel::-webkit-scrollbar-track { background: transparent; }
.carousel::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 2px; }

.carousel > .decision-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 280px;
}

.carousel-progress {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.2em;
  margin-top: 24px;
  text-transform: uppercase;
}
.carousel-progress strong { color: var(--text-primary); font-weight: 500; }

/* ---------- Constellation graphics ---------- */
.constellation {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.constellation .c-lines line {
  stroke: var(--text-tertiary);
  stroke-width: 0.8;
  stroke-opacity: 0.45;
}
.constellation .c-nodes circle {
  fill: var(--text-tertiary);
  fill-opacity: 0.65;
}
.constellation .c-highlights circle {
  fill: var(--accent-purple);
}
.constellation .c-glow circle {
  fill: var(--accent-purple);
  fill-opacity: 0.14;
}

.constellation--hero {
  width: clamp(280px, 32vw, 460px);
  height: clamp(200px, 22vw, 320px);
  top: 14%;
  right: 4%;
  opacity: 0.85;
  animation: constellationDrift 30s ease-in-out infinite;
}
.constellation--hero-left {
  width: clamp(200px, 22vw, 320px);
  height: clamp(150px, 16vw, 220px);
  bottom: 18%;
  left: 4%;
  opacity: 0.5;
  animation: constellationDrift 38s ease-in-out infinite reverse;
}
.constellation--accent {
  width: clamp(140px, 14vw, 200px);
  height: clamp(100px, 10vw, 140px);
  top: -12px;
  right: -8px;
  opacity: 0.45;
}

@keyframes constellationDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-12px, 8px) rotate(-0.8deg); }
  66% { transform: translate(8px, -6px) rotate(0.5deg); }
}

/* Section heading needs to be relative for accent constellation positioning */
.section-heading-wrap {
  position: relative;
  margin-bottom: 48px;
}

/* Pull quote (reflection) */
.pull-quote {
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .pull-quote { font-size: 28px; }
}

/* Caption pair */
.figure {
  margin: 48px 0;
}
.figure-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.figure-image span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.15em;
  padding: 16px;
  text-align: center;
}
.figure figcaption {
  margin-top: 16px;
  max-width: 640px;
}
.figure figcaption .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.figure figcaption p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Next CTA strip */
.next-strip {
  border-top: 1px solid var(--border-subtle);
  padding-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .next-strip { flex-direction: row; align-items: center; }
}
.next-strip p {
  font-size: 20px;
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
}
.next-strip .links {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.link-accent {
  font-size: 15px;
  color: var(--accent-purple);
  font-weight: 500;
  transition: color 0.2s;
}
.link-accent:hover { color: var(--text-primary); }

/* ---------- About page ---------- */
.about-wrap { padding: 128px 0 64px; }

.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin: 48px 0 80px;
  align-items: start;
}
@media (min-width: 768px) {
  .about-hero {
    grid-template-columns: 360px 1fr;
    gap: 72px;
    margin: 64px 0 96px;
  }
}
@media (min-width: 1024px) {
  .about-hero { grid-template-columns: 400px 1fr; gap: 96px; }
}

.about-portrait {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-portrait-caption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-intro p {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}
.about-intro p.lead {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .about-intro p { font-size: 22px; }
  .about-intro p.lead { font-size: 28px; }
}

/* What I work with grid */
.toolkit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
}
@media (min-width: 640px) { .toolkit { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .toolkit { grid-template-columns: repeat(3, 1fr); gap: 56px; } }

.toolkit-col h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.toolkit-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toolkit-col li {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 500;
}
.toolkit-col li span {
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 14px;
  margin-left: 8px;
}
.about-body p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}
.about-body p.lead { color: var(--text-primary); font-weight: 500; }
.about-body .punchline {
  font-size: 22px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
  margin-top: 16px;
}
.about-body a { color: var(--accent-purple); text-decoration: underline; text-underline-offset: 4px; transition: color 0.2s; }
.about-body a:hover { color: var(--text-primary); }

/* Contact block */
.contact-block { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--border-subtle); }
.contact-block .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.contact-block h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}
@media (min-width: 768px) { .contact-block h2 { font-size: 36px; } }
.contact-block p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.contact-links { display: flex; flex-wrap: wrap; gap: 24px; }
.contact-links a {
  font-size: 18px;
  color: var(--accent-purple);
  font-weight: 500;
  transition: color 0.2s;
}
.contact-links a:hover { color: var(--text-primary); }
.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 32px;
  transition: color 0.2s;
}
.resume-link:hover { color: var(--text-primary); }

/* ---------- About teaser on home ---------- */
.about-teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .about-teaser-grid { grid-template-columns: 1fr 2fr; gap: 48px; }
}
.about-teaser-grid .col-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.about-teaser-grid .col-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-teaser-grid .col-content .lead {
  font-size: 22px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .about-teaser-grid .col-content .lead { font-size: 24px; }
}
.about-teaser-grid .col-content p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.about-teaser-grid .col-content .links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 128px;
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: flex-end; }
}
.footer-left p:first-child {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}
.footer-left p:last-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  margin-top: 4px;
}
.footer-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-links a {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- Fade-up entrance ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 120ms; }
.delay-2 { animation-delay: 240ms; }
.delay-3 { animation-delay: 320ms; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utilities */
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mt-24 { margin-top: 96px; }
.mb-12 { margin-bottom: 48px; }
.flex-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Case study prev/next nav ---------- */
.case-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border-subtle);
}
@media (min-width: 640px) {
  .case-nav { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.case-nav-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease-out, border-color 0.2s, box-shadow 0.3s;
  color: inherit;
  text-decoration: none;
  align-items: flex-start;
}
.case-nav-link.case-nav-next { align-items: flex-end; }
.case-nav-link.case-nav-next .case-nav-title { text-align: right; }
.case-nav-link:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 16px 36px -12px rgba(74, 86, 194, 0.18);
  transform: translateY(-2px);
}
.case-nav-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.case-nav-link:hover .case-nav-label { color: var(--accent-purple); }
.case-nav-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
}
@media (min-width: 768px) {
  .case-nav-title { font-size: 20px; }
}

/* ---------- Back-to-top floating button ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  z-index: 60;
  box-shadow: 0 8px 24px -8px rgba(10, 31, 61, 0.18);
  padding: 0;
  cursor: pointer;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: 0 12px 28px -8px rgba(74, 86, 194, 0.25);
}
.back-to-top svg { width: 18px; height: 18px; }
@media (min-width: 768px) {
  .back-to-top { bottom: 32px; right: 32px; width: 48px; height: 48px; }
  .back-to-top svg { width: 20px; height: 20px; }
}

/* ---------- Inline SVG illustrations ---------- */
.illust {
  width: 100%;
  height: 100%;
  display: block;
}
.illust-card,
.illust-hero,
.illust-figure {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #FAFBFE 0%, #F2F4F9 100%);
  overflow: hidden;
}
.card-image,
.case-study-hero-image,
.figure-image {
  background-color: transparent;
  border-color: var(--border-subtle);
}

/* ---------- Scroll progress bar (case studies) ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
  z-index: 100;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
font-size: 22px;
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 24px;
}

/* ============================================
   Background motion — subtle drift
   ============================================ */
body {
  background-size: 200% 200%, 200% 200%, 200% 200%;
  animation: bgDrift 60s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  0% { background-position: 88% -120px, 12% 115%, 50% 60%; }
  50% { background-position: 80% 4%, 22% 95%, 56% 64%; }
  100% { background-position: 92% -100px, 8% 120%, 46% 56%; }
}

/* Hero section — gradient mesh drift */
.hero .gradient-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero .gradient-mesh span {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 50% 40% at 25% 30%, rgba(74, 86, 194, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 75% 70%, rgba(201, 127, 189, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(103, 96, 214, 0.10) 0%, transparent 60%);
  filter: blur(40px);
  animation: meshDrift 28s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  50%  { transform: translate3d(2%, -3%, 0) scale(1.08); opacity: 1; }
  100% { transform: translate3d(-2%, 3%, 0) scale(1.04); opacity: 0.9; }
}

/* Constellation: gentle pulse on glow nodes */
.constellation .c-glow circle {
  transform-origin: center;
  animation: glowPulse 6s ease-in-out infinite;
}
.constellation .c-glow circle:nth-child(2) {
  animation-delay: 2s;
}
.constellation .c-glow circle:nth-child(3) {
  animation-delay: 4s;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.18); }
}
/* Subtle line draw on hero constellation */
.constellation--hero .c-lines line,
.constellation--hero-left .c-lines line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: lineDraw 3s ease-out forwards, lineFloat 18s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s), 3s;
}
.constellation--hero .c-lines line:nth-child(1) { --delay: 0.2s; }
.constellation--hero .c-lines line:nth-child(2) { --delay: 0.4s; }
.constellation--hero .c-lines line:nth-child(3) { --delay: 0.6s; }
.constellation--hero .c-lines line:nth-child(4) { --delay: 0.8s; }
.constellation--hero .c-lines line:nth-child(5) { --delay: 1.0s; }
.constellation--hero .c-lines line:nth-child(6) { --delay: 1.2s; }
.constellation--hero .c-lines line:nth-child(7) { --delay: 1.4s; }
.constellation--hero .c-lines line:nth-child(8) { --delay: 1.6s; }
@keyframes lineDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes lineFloat {
  0%, 100% { opacity: 0.9; }
  50%      { opacity: 0.5; }
}

/* Subtle hover-lift on hero-name */
.hero-name { will-change: transform; }
.hero-name:hover { transform: translateY(-2px) scale(1.01); transition: transform 0.5s ease-out; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  body, .hero .gradient-mesh span, .constellation .c-glow circle,
  .constellation--hero .c-lines line, .constellation--hero-left .c-lines line {
    animation: none !important;
  }
}

/* ============================================
   Lightbox / figure modal
   ============================================ */
.figure-image { position: relative; }
.figure-image.is-zoomable { cursor: zoom-in; }
.figure-image.is-zoomable::after {
  content: "↗";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(10, 31, 61, 0.85);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.figure-image.is-zoomable:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 61, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox-inner {
  position: relative;
  max-width: min(1400px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lightbox-img {
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  background: #fff;
}
.lightbox-caption {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  text-align: center;
  letter-spacing: 0.04em;
}
.lightbox-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  color: var(--text-primary);
  border: none;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}
.lightbox-close:hover { transform: scale(1.08); }

body.lightbox-open { overflow: hidden; }

/* ============================================
   Case-study hero image (real screenshot)
   ============================================ */
.case-study-hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow:
    0 30px 60px -20px rgba(10, 31, 61, 0.18),
    0 10px 25px -10px rgba(10, 31, 61, 0.12);
  border: 1px solid var(--border-subtle);
}
@media (max-width: 768px) {
  .case-study-hero-img { border-radius: var(--radius-lg); }
}

/* ============================================
   Editorial section numbering
   ============================================ */
.section-num {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--accent-purple);
  letter-spacing: 0.18em;
  margin-right: 4px;
}

/* ============================================
   About — Looking-for 3-column grid
   ============================================ */
.looking-for-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .looking-for-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
.looking-col h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.looking-col p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   About — Three principles
   ============================================ */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .principles { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.principle {
  padding: 28px 24px 28px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.principle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -16px rgba(74, 86, 194, 0.18);
  border-color: var(--border-default);
}
.principle-numeral {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 36px;
  line-height: 1;
  color: var(--accent-purple);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.principle h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}
.principle p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   Contact teaser block
   ============================================ */
.contact-teaser {
  max-width: 720px;
}
.contact-teaser .links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ============================================
   DNA helix hero canvas (replaces gradient-mesh patchwork)
   ============================================ */
.dna-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Vignette so the typography always reads cleanly over the helix */
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%,
      rgba(247, 248, 251, 0.55) 0%,
      rgba(247, 248, 251, 0.10) 55%,
      transparent 80%),
    linear-gradient(180deg,
      transparent 0%,
      transparent 60%,
      rgba(247, 248, 251, 0.6) 100%);
}
/* Re-anchor hero content above the canvas + scrim */
.hero { position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 2; }

/* Kill the previous patchwork ::before/::after blobs on the hero by hiding any leftover gradient-mesh */
.hero .gradient-mesh,
.hero .gradient-mesh::before,
.hero .gradient-mesh::after,
.hero .gradient-mesh > span { display: none !important; }

/* ============================================
   EDITORIAL REBUILD — hero, brand row, restraint
   ============================================ */

/* Kill all prior motion noise */
.dna-canvas { display: none !important; }
.hero-scrim { display: none !important; }
.constellation--hero,
.constellation--hero-left { display: none !important; }
body { animation: none !important; background-attachment: scroll; }
.gradient-mesh,
.gradient-mesh::before,
.gradient-mesh::after,
.gradient-mesh > span { display: none !important; }
.constellation .c-glow circle,
.constellation--hero .c-lines line,
.constellation--hero-left .c-lines line { animation: none !important; }

/* ---- Hero, editorial layout ---- */
.hero {
  min-height: auto;
  padding: 180px 0 80px;
  display: block;
  text-align: left;
  overflow: visible;
  background: transparent;
}
.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-weight: 500;
}
.hero-display {
  font-family: var(--font-sans);
  font-size: clamp(48px, 9vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 32px;
  max-width: 14ch;
}
.hero-display em {
  font-style: normal;
  font-weight: 300;
  color: var(--accent-purple);
}
.hero-lede {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 32ch;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.hero-lede strong {
  font-weight: 600;
  color: var(--text-primary);
}
.hero-sub {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--text-tertiary);
  max-width: 48ch;
  margin: 0 0 48px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-base);
  border: 1px solid var(--text-primary);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--accent-purple);
  border-color: var(--accent-purple);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: var(--text-primary);
  background: var(--bg-surface);
}

/* ---- Brand-mark row ---- */
.brand-row {
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid var(--border-subtle);
}
.brand-row .container { max-width: 1100px; padding: 0 32px; }
.brand-row-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}
.brand-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 56px;
  padding: 0;
  margin: 0;
}
.brand-mark {
  font-family: var(--font-sans);
  color: var(--text-tertiary);
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  user-select: none;
}
.brand-mark:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}
/* Per-brand typographic styling — close enough to actual wordmarks without copying logos */
.brand-verizon {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 22px;
  text-transform: lowercase;
}
.brand-verizon::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  background: #E40523;
  border-radius: 1px;
  transform: rotate(45deg);
  margin-left: 4px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.brand-icici {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 22px;
}
.brand-icici::first-letter { color: #F37920; }
.brand-airtel {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: #ED1C24;
  opacity: 0.85;
}
.brand-hero {
  font-family: 'Anton', 'Impact', sans-serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.01em;
  text-transform: none;
}
.brand-mahindra {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.015em;
  color: #C8161D;
  opacity: 0.85;
}
.brand-bcg {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #006B3F;
  opacity: 0.85;
}
.brand-ikea {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0058A3;
  background: #FFDB00;
  padding: 6px 10px;
  border-radius: 4px;
  opacity: 0.85;
}

/* Tighten responsive */
@media (max-width: 768px) {
  .hero { padding: 120px 0 56px; }
  .hero-grid { padding: 0 24px; }
  .hero-display { font-size: clamp(40px, 12vw, 64px); margin-bottom: 24px; }
  .hero-lede { font-size: 19px; margin-bottom: 20px; }
  .hero-sub { font-size: 15px; margin-bottom: 32px; }
  .hero-ctas { width: 100%; }
  .btn-primary, .btn-ghost { flex: 1; justify-content: center; }
  .brand-list { gap: 24px 32px; }
  .brand-mark { font-size: 18px; }
  .brand-hero { font-size: 22px; }
}

/* ============================================
   FINAL HERO — typography first, hard-overrides
   ============================================ */
.hero {
  position: relative !important;
  min-height: auto !important;
  padding: 160px 24px 80px !important;
  display: block !important;
  text-align: left !important;
  overflow: visible !important;
  background: transparent !important;
}
.hero-grid {
  max-width: 1040px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: left !important;
}
.hero-grid > * { text-align: left !important; }

.hero-eyebrow {
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  color: var(--text-tertiary) !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  margin: 0 0 28px !important;
}

.hero-display {
  font-family: var(--font-sans) !important;
  font-size: clamp(44px, 8.5vw, 96px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.035em !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  margin: 0 0 36px !important;
  max-width: none !important;
  text-align: left !important;
  text-wrap: balance;
}
.hero-display em {
  font-style: normal !important;
  font-weight: 600 !important;
  color: var(--accent-purple) !important;
}

.hero-lede {
  font-family: var(--font-sans) !important;
  font-size: clamp(22px, 2.4vw, 30px) !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  color: var(--text-secondary) !important;
  max-width: 38ch !important;
  margin: 0 0 20px !important;
  letter-spacing: -0.01em !important;
}
.hero-lede strong {
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}

.hero-sub {
  font-family: var(--font-sans) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--text-tertiary) !important;
  max-width: 52ch !important;
  margin: 0 0 40px !important;
}

.hero-ctas {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin: 0 0 96px !important;
}
.btn-primary,
.btn-ghost {
  display: inline-flex !important;
  align-items: center !important;
  padding: 13px 22px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  border-radius: 999px !important;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
  letter-spacing: -0.005em !important;
}
.btn-primary {
  background: var(--text-primary) !important;
  color: var(--bg-base) !important;
  border: 1px solid var(--text-primary) !important;
}
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-purple) !important; border-color: var(--accent-purple) !important; }
.btn-ghost {
  background: transparent !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-default) !important;
}
.btn-ghost:hover { transform: translateY(-1px); border-color: var(--text-primary) !important; background: var(--bg-surface) !important; }

/* ============================================
   Brand row — restrained typography, no fake logos
   ============================================ */
.brand-row {
  padding-top: 32px !important;
  border-top: 1px solid var(--border-subtle) !important;
}
.brand-label {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--text-tertiary) !important;
  margin: 0 0 18px !important;
}
.brand-row-text {
  font-family: var(--font-sans) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  letter-spacing: -0.008em !important;
  color: var(--text-secondary) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  text-align: left !important;
}
.brand-row-text span {
  display: inline-block;
  padding: 0;
  margin: 0 4px 0 0;
}
.brand-row-text span + span::before {
  content: "·";
  display: inline-block;
  padding: 0 14px;
  color: var(--border-default);
  font-weight: 400;
}

/* Kill any leftover legacy brand-mark styling */
.brand-mark, .brand-list { display: none !important; }

/* Mobile */
@media (max-width: 768px) {
  .hero { padding: 110px 20px 56px !important; }
  .hero-display { font-size: clamp(40px, 12vw, 60px) !important; margin-bottom: 24px !important; }
  .hero-lede { font-size: 19px !important; margin-bottom: 16px !important; }
  .hero-sub { font-size: 15px !important; margin-bottom: 28px !important; }
  .hero-ctas { width: 100%; margin-bottom: 64px !important; }
  .btn-primary, .btn-ghost { flex: 1; justify-content: center !important; }
  .brand-row-text { font-size: 16px !important; }
  .brand-row-text span + span::before { padding: 0 10px; }
}

/* ============================================
   DARK HERO — cinematic background + mouse spotlight + serif accent
   ============================================ */

/* When hero is dark, nav text needs to be light on top of the dark backdrop */
.has-dark-hero .nav:not(.is-scrolled) .nav-logo,
.has-dark-hero .nav:not(.is-scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.92) !important;
}
.has-dark-hero .nav:not(.is-scrolled) .nav-links a:hover {
  color: rgba(255, 255, 255, 1) !important;
}

.hero-dark {
  position: relative !important;
  display: block !important;
  text-align: left !important;
  overflow: hidden !important;
  padding: 180px 0 96px !important;
  min-height: 96vh !important;
  background: #050810 !important;
  color: #F4F6FB !important;
}
.hero-dark .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
/* Subtle dark vignette so left side of bg stays dark for text legibility */
.hero-dark .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(5, 8, 16, 0.85) 0%,
      rgba(5, 8, 16, 0.5) 35%,
      rgba(5, 8, 16, 0.2) 60%,
      rgba(5, 8, 16, 0) 100%
    ),
    linear-gradient(180deg,
      rgba(5, 8, 16, 0.4) 0%,
      rgba(5, 8, 16, 0) 30%,
      rgba(5, 8, 16, 0) 70%,
      rgba(5, 8, 16, 0.5) 100%
    );
}

/* Cursor spotlight — radial gradient that follows the mouse via CSS vars */
.hero-dark .hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      circle 420px at var(--mx, 70%) var(--my, 50%),
      rgba(255, 175, 130, 0.18),
      rgba(120, 150, 255, 0.10) 35%,
      rgba(0, 0, 0, 0) 70%
    );
  opacity: var(--spotlight-opacity, 0);
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}
.hero-dark:hover .hero-spotlight { opacity: 1; }

.hero-dark .hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 32px !important;
  text-align: left !important;
}
.hero-dark .hero-grid > * { text-align: left !important; }

.hero-dark .hero-eyebrow {
  font-family: 'Geist', 'Inter', system-ui, sans-serif !important;
  font-size: 12px !important;
  color: rgba(244, 246, 251, 0.55) !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  margin: 0 0 32px !important;
}

.hero-dark .hero-display {
  font-family: 'Geist', 'Inter', system-ui, sans-serif !important;
  font-size: clamp(54px, 9.5vw, 124px) !important;
  line-height: 1.0 !important;
  letter-spacing: -0.038em !important;
  font-weight: 600 !important;
  color: #F8FAFD !important;
  margin: 0 0 40px !important;
  max-width: none !important;
  text-align: left !important;
}
.hero-dark .serif-accent {
  font-family: 'Instrument Serif', 'EB Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: #FFD2B2 !important;
  letter-spacing: -0.02em !important;
}

.hero-dark .hero-lede {
  font-family: 'Geist', 'Inter', system-ui, sans-serif !important;
  font-size: clamp(20px, 2.2vw, 28px) !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  color: rgba(244, 246, 251, 0.78) !important;
  max-width: 40ch !important;
  margin: 0 0 20px !important;
  letter-spacing: -0.008em !important;
}
.hero-dark .hero-lede-strong {
  font-weight: 500 !important;
  color: #FFFFFF !important;
  border-bottom: 1px dashed rgba(255, 210, 178, 0.4);
  padding-bottom: 1px;
}

.hero-dark .hero-sub {
  font-family: 'Geist', 'Inter', system-ui, sans-serif !important;
  font-size: 15.5px !important;
  line-height: 1.6 !important;
  color: rgba(244, 246, 251, 0.55) !important;
  max-width: 52ch !important;
  margin: 0 0 44px !important;
}

.hero-dark .hero-ctas {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin: 0 0 110px !important;
}
.btn-primary-dark,
.btn-ghost-dark {
  display: inline-flex !important;
  align-items: center !important;
  padding: 14px 24px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  font-family: 'Geist', 'Inter', system-ui, sans-serif !important;
  border-radius: 999px !important;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
  letter-spacing: -0.005em !important;
}
.btn-primary-dark {
  background: #F8FAFD !important;
  color: #050810 !important;
  border: 1px solid #F8FAFD !important;
}
.btn-primary-dark:hover {
  transform: translateY(-1px);
  background: #FFD2B2 !important;
  border-color: #FFD2B2 !important;
  color: #050810 !important;
}
.btn-ghost-dark {
  background: transparent !important;
  color: rgba(244, 246, 251, 0.92) !important;
  border: 1px solid rgba(244, 246, 251, 0.24) !important;
}
.btn-ghost-dark:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 246, 251, 0.6) !important;
  background: rgba(244, 246, 251, 0.04) !important;
  color: #FFFFFF !important;
}

/* Dark brand row */
.brand-row-dark {
  border-top: 1px solid rgba(244, 246, 251, 0.14) !important;
  padding-top: 36px !important;
}
.brand-row-dark .brand-label {
  color: rgba(244, 246, 251, 0.45) !important;
}
.brand-row-dark .brand-row-text {
  color: rgba(244, 246, 251, 0.78) !important;
  font-family: 'Geist', 'Inter', system-ui, sans-serif !important;
  font-weight: 500 !important;
  font-size: 18px !important;
  letter-spacing: -0.005em !important;
}
.brand-row-dark .brand-row-text span + span::before {
  color: rgba(244, 246, 251, 0.25) !important;
}

/* ============================================
   STICKY-SCROLL — selected work section
   ============================================ */
.work-sticky { padding: 120px 0 !important; }
.work-sticky-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (min-width: 960px) {
  .work-sticky-grid {
    grid-template-columns: 380px 1fr;
    gap: 80px;
    align-items: start;
  }
}
.work-sticky-aside {
  position: relative;
}
@media (min-width: 960px) {
  .work-sticky-aside {
    position: sticky;
    top: 120px;
    align-self: start;
  }
}
.work-sticky-inner { max-width: 360px; }
.work-sticky-heading {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text-primary);
  margin: 12px 0 20px;
}
.work-sticky-lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 24px;
}
.work-sticky-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0;
}
.work-sticky-cards {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.work-sticky-cards .card {
  margin: 0;
}

/* Typography upgrade everywhere: use Geist if available */
body, p, h1, h2, h3, h4, h5, h6,
.card-title, .card-desc, .card-eyebrow,
.hero-name, .hero-intro, .hero-brands,
.eyebrow, .lead {
  font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
}

/* Mobile — stack everything */
@media (max-width: 768px) {
  .hero-dark { padding: 140px 0 64px !important; min-height: 100vh !important; }
  .hero-dark .hero-grid { padding: 0 22px !important; }
  .hero-dark .hero-display { font-size: clamp(44px, 13vw, 72px) !important; margin-bottom: 28px !important; }
  .hero-dark .hero-lede { font-size: 18px !important; }
  .hero-dark .hero-sub { font-size: 14px !important; }
  .hero-dark .hero-ctas { width: 100%; margin-bottom: 72px !important; }
  .btn-primary-dark, .btn-ghost-dark { flex: 1; justify-content: center !important; }
  .hero-dark .hero-spotlight { display: none; }
  .work-sticky { padding: 80px 0 !important; }
}

/* ============================================
   GLOBAL cursor glow — golden tone on light sections
   ============================================ */
.global-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  background:
    radial-gradient(
      circle 360px at var(--gmx, 50%) var(--gmy, 50%),
      rgba(255, 175, 90, 0.10),
      rgba(255, 200, 130, 0.05) 30%,
      rgba(0, 0, 0, 0) 65%
    );
  mix-blend-mode: multiply;
}
.global-spotlight.is-active { opacity: 1; }
/* Don't show global spotlight on the dark hero — it has its own */
.global-spotlight.over-dark { opacity: 0; }

@media (max-width: 768px) {
  .global-spotlight { display: none; }
}

/* ============================================
   CARD CTA — drop bg-fill hover, add arrow motion
   ============================================ */
.card.is-clickable {
  position: relative;
  transition: transform 0.3s ease;
}
.card.is-clickable .card-body {
  position: relative;
  padding-bottom: 56px;
}
.card.is-clickable .card-cta {
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
  transition: color 0.25s ease;
}
.card.is-clickable .card-cta-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
}
.card.is-clickable .card-cta-arrow::after {
  content: "→";
  display: inline-block;
  font-weight: 500;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.card.is-clickable:hover .card-cta {
  color: var(--accent-amber);
}
.card.is-clickable:hover .card-cta-arrow::after {
  transform: translateX(6px);
}
/* Subtle lift on whole card instead of bg fill */
.card.is-clickable:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 24px 50px -28px rgba(10, 31, 61, 0.18);
}

/* Kill the previous hover bg styling */
.card.is-clickable:hover {
  background: transparent !important;
}

/* ============================================
   UNIFIED eyebrow + section-num across all sections
   ============================================ */
.section-heading .eyebrow,
.work-sticky-inner .eyebrow,
.about-teaser-grid .col-eyebrow,
.principles + * .eyebrow {
  font-family: 'Geist Mono', 'Inter', monospace !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--text-tertiary) !important;
  margin-bottom: 18px !important;
}
.section-num {
  display: inline-block;
  font-family: 'Geist Mono', 'Inter', monospace !important;
  font-weight: 600;
  color: var(--accent-purple);
  letter-spacing: 0.16em;
  margin-right: 6px;
}

/* Bump section headings to use Geist with tighter tracking */
.section-heading h2,
.work-sticky-heading {
  font-family: 'Geist', 'Inter', system-ui, sans-serif !important;
  letter-spacing: -0.022em !important;
}
