:root {
  --purple: #6244E4;
  --purple-dark: #4426C6;
  --cream: #FFFDEF;
  --offwhite: #F6F6F6;
  --yellow: #FFFF00;
  --dark: #111111;
  --white: #ffffff;
  --muted: rgba(98, 68, 228, 0.35);
  --font: 'Poppins', sans-serif;
  --font-mono: 'Sometype Mono', monospace;
  --nav-h: 72px;
  --max-w: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

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

a { text-decoration: none; }

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: var(--purple);
  border-bottom: 1px solid var(--purple-dark);
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--offwhite);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-accent {
  color: var(--yellow);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cream);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--cream);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover { color: var(--yellow); }
.nav-links a:hover::after { transform: scaleX(0); }
.nav-links a.active::after { transform: scaleX(1); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 11px 28px;
  border: 1px solid var(--cream);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--purple-dark);
  color: var(--white);
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-nav:hover {
  opacity: 0.85;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 96px) 48px 96px;
  background: var(--cream);
}

.hero-inner { max-width: var(--max-w); margin: 0 auto; }

.label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-dark);
  margin-bottom: 28px;
}

.hero-text {
  font-size: clamp(1.75rem, 3.4vw, 3.375rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--purple-dark);
}

/* ─── SKILLS ─────────────────────────────────────── */
.skills {
  background: var(--purple);
  padding: 72px 48px;
}

.skills-inner { max-width: var(--max-w); margin: 0 auto; }

.skills-intro {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--yellow);
  margin-bottom: 28px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 9px 20px;
  border: 1px solid var(--cream);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cream);
  transition: background 0.2s;
}

.tag:hover { background: rgba(255,255,255,0.12); }

/* .fade-up's transition shorthand would otherwise clobber the hover background transition above. */
.tag.fade-up { transition: opacity 0.65s ease, transform 0.65s ease, background 0.2s; }

/* ─── CASE STUDIES ───────────────────────────────── */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.case-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

@media (min-width: 1200px) {
  .case-card { aspect-ratio: 40 / 21; }
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover img { transform: scale(1.05); }

.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: background 0.3s;
}

.case-card:hover .case-overlay {
  background: linear-gradient(to top, rgba(68,38,198,0.92) 0%, rgba(98,68,228,0.4) 55%, transparent 100%);
}

.case-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 8px;
}

.case-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--offwhite);
  line-height: 1.3;
  margin-bottom: 8px;
}

.case-tags {
  font-size: 0.78rem;
  color: var(--offwhite);
  font-weight: 400;
  opacity: 0.85;
}

/* ─── COMPANIES ──────────────────────────────────── */
.companies {
  background: var(--cream);
  padding: 104px 48px;
  text-align: center;
}

.companies-inner { max-width: var(--max-w); margin: 0 auto; }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 10px;
}

.section-sub {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 64px;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  justify-content: center;
  justify-items: center;
  align-items: center;
  gap: 36px 56px;
  margin: 0 auto;
}

@media (min-width: 901px) {
  .logos-grid { column-gap: 28px; }
}

.logos-grid img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--purple);
  padding: 80px 48px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  border-top: 1px solid var(--purple-dark);
}

.footer-email {
  font-size: clamp(1.12rem, 2.88vw, 2.08rem);
  font-weight: 600;
  color: white;
  transition: opacity 0.2s;
}

.footer-email:hover { opacity: 0.75; }

.back-top {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.back-top:hover { color: white; }

.footer-quote {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  transition: color 0.2s;
  display: inline-block;
}

.footer-quote:hover {
  color: var(--yellow);
  animation: footer-quote-wiggle 0.4s ease;
}

@keyframes footer-quote-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-1.5deg); }
  75% { transform: rotate(1.5deg); }
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

/* ─── ABOUT PAGE ─────────────────────────────────── */
.about-hero {
  background: var(--purple);
  padding: calc(var(--nav-h) + 56px) 48px 56px;
}

.about-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.about-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.about-hero-text h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.about-hero-text .tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  font-weight: 500;
}

.about-hero-text p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 560px;
  font-style: italic;
}

.crafting {
  padding: 80px 48px;
  background: var(--cream);
}

.crafting-inner { max-width: var(--max-w); margin: 0 auto; }

.crafting h2 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.contribution {
  padding: 80px 48px;
  background: var(--cream);
  border-top: 1px solid rgba(91,69,245,0.1);
}

.contribution-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.contribution h3 {
  font-size: 0.85rem;
  color: rgba(17,17,17,0.5);
  font-weight: 500;
  text-align: center;
  margin-bottom: 40px;
}

.contribution ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
}

.contribution ol li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  padding: 14px 0;
  border-bottom: 1px solid rgba(91,69,245,0.1);
}

.contribution ol li:last-child { border-bottom: none; }

.contribution ol li .num {
  font-size: 0.8rem;
  color: var(--purple);
  font-weight: 600;
  min-width: 16px;
}

.kpis {
  padding: 80px 48px;
  background: var(--cream);
}

.kpis-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.kpis h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--purple);
  text-align: center;
  margin-bottom: 40px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-card {
  border-radius: 8px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kpi-card:nth-child(1) { background: #4A36D4; }
.kpi-card:nth-child(2) { background: #6B5AF5; }
.kpi-card:nth-child(3) { background: #8F82F5; }
.kpi-card:nth-child(4) { background: #C8C2F8; }

.kpi-card .kpi-val {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.kpi-card .kpi-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.languages {
  padding: 80px 48px;
  background: var(--cream);
  text-align: center;
  border-top: 1px solid rgba(91,69,245,0.1);
}

.languages-inner { max-width: var(--max-w); margin: 0 auto; }

.languages h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 40px;
}

.lang-list {
  display: flex;
  justify-content: center;
  gap: 64px;
}

.lang-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lang-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
}

.lang-level {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

.toolkit {
  padding: 80px 48px;
  background: var(--cream);
  text-align: center;
  border-top: 1px solid rgba(91,69,245,0.1);
}

.toolkit-inner { max-width: var(--max-w); margin: 0 auto; }

.toolkit h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 40px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 480px;
  margin: 0 auto;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tool-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
}

.tool-item span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── CASE STUDY PAGE ────────────────────────────── */
.cs-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.cs-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.cs-hero-content {
  --hero-accent: white;
  --hero-shadow: 0 2px 12px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cs-hero-content.accent-biteme { --hero-accent: var(--purple); --hero-shadow: none; }
.cs-hero-content.accent-oetker { --hero-accent: #164498; --hero-shadow: none; }

.cs-hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: white;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.cs-hero-logo-img {
  width: 100%;
  max-width: 200px;
  height: auto;
}

.cs-hero-divider {
  width: 48px;
  height: 2px;
  background: var(--hero-accent);
  margin: 6px 0 2px;
}

.cs-hero-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hero-accent);
  text-shadow: var(--hero-shadow);
}

.cs-recap {
  text-align: center;
  margin-bottom: 56px;
}

.cs-recap-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.cs-recap-subtitle {
  font-size: 0.85rem;
  color: rgba(17,17,17,0.5);
}

.cs-meta {
  background: var(--cream);
  padding: 72px 48px;
}

.cs-meta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.cs-meta-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cs-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.cs-meta-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.meta-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
}

.meta-val {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.6;
}

.cs-meta p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(17,17,17,0.7);
}

.cs-challenge h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

.cs-challenge p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(17,17,17,0.7);
}

.cs-jump {
  background: var(--purple);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cs-jump-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-dark);
}

.cs-jump-links {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.cs-jump-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,1);
  transition: color 0.2s;
}

.cs-jump-links a:hover { color: var(--yellow); }

.cs-section {
  padding: 96px 48px;
  background: var(--cream);
}

/* Tighten the gap between Process and Product specifically, without touching
   the general section padding used everywhere else (Impact, Learnings, etc). */
#process { padding-bottom: 24px; }
#product { padding-top: 24px; }

/* Design System's Product section has no content of its own besides the
   heading — the showcase blocks sit right after it — so it needs its own,
   much tighter bottom padding rather than the shared 96px. */
.cs-section--empty { padding-bottom: 24px; }
#product.cs-section--empty h2 { margin-bottom: 0; }

/* Pull the block that follows the full-bleed PDF/showcase visuals up, since
   the source images carry a lot of trailing empty/shadow space of their own. */
.cs-visual-case + #impact,
.cs-visual-case + #learnings {
  margin-top: -80px;
  position: relative;
}

.cs-showcase.big-mockups + .cs-showcase.big-mockups { margin-top: -200px; }

.cs-showcase.big-mockups + #impact {
  margin-top: -220px;
  position: relative;
}

/* BiteMe / Speedy Ramen: Learnings is a title + single paragraph, not a grid
   of cards like Impact — it doesn't need the same large heading gap. */
#learnings h2 { margin-bottom: 24px; }

.cs-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.cs-section h2 {
  font-size: clamp(3rem, 7.2vw, 6rem);
  font-weight: 900;
  color: var(--purple);
  text-align: center;
  margin-bottom: 72px;
}

.cs-feature {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 80px;
}

.cs-process-wireframe { width: 70% !important; margin: 0 auto; }

.cs-feature img {
  width: 100%;
  display: block;
}

.cs-feature-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 16px;
}

.cs-feature-text p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(17,17,17,0.65);
}

.cs-feature-text p + p { margin-top: 16px; }

.cs-role {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}

.cs-role-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.2;
}

.cs-role-text p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(17,17,17,0.65);
}

.cs-role-text p + p { margin-top: 16px; }

/* Product feature blocks: text overlaid on a near-full-bleed image (tablet + desktop). */
.cs-feature.product {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: flex;
  align-items: center;
  min-height: 560px;
  margin-bottom: -220px;
}

.cs-feature.product .cs-feature-text {
  position: absolute;
  top: 18%;
  transform: translateY(-50%);
  max-width: 300px;
  z-index: 2;
  text-align: left;
}

.cs-feature.product.media-right .cs-feature-text {
  left: max(48px, calc((100vw - var(--max-w)) / 2 + 48px));
  margin-left: 40px;
}

.cs-feature.product.media-left .cs-feature-text {
  right: max(140px, calc((100vw - var(--max-w)) / 2 + 140px));
  margin-right: -20px;
}

.cs-feature.product .cs-feature-media { display: flex; }
.cs-feature.product .cs-feature-media img {
  display: block;
  width: 120vw;
  max-width: 1900px;
  height: auto;
}

.cs-feature.product.media-right .cs-feature-media { margin-left: auto; margin-right: -10px; }
.cs-feature.product.media-left .cs-feature-media { margin-right: auto; margin-left: -140px; }

/* Desktop only: tighten spacing between blocks further */
@media (min-width: 1200px) {
  .cs-feature.product { margin-bottom: -370px; }
}

/* Mobile only: drop the overlay entirely, stack text then mockup. Tablet keeps the desktop overlay layout. */
@media (max-width: 900px) {
  .cs-feature.product {
    position: static;
    width: auto;
    margin-left: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 80px;
  }
  .cs-feature.product .cs-feature-text {
    position: static;
    transform: none;
    max-width: none;
    left: auto;
    right: auto;
    margin: 0;
    order: 1;
  }
  .cs-feature.product .cs-feature-media { order: 2; }
  .cs-feature.product .cs-feature-media img { width: 100%; max-width: 100%; }
  .cs-feature.product.media-right .cs-feature-media,
  .cs-feature.product.media-left .cs-feature-media { margin: 0; }
}

/* ─── NUMBERED STEPS (e.g. BiteMe) ───────────────── */
.cs-steps {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-bottom: 80px;
}

.cs-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
}

.cs-step-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  -webkit-text-stroke: 1.5px var(--purple);
}

.cs-step-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.cs-step-content p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(17,17,17,0.65);
  max-width: 620px;
  margin-bottom: 24px;
}

.cs-step-content img {
  width: 100%;
  max-width: 560px;
  display: block;
}

/* ─── ADVANTAGES ROW (e.g. BiteMe) ───────────────── */
.cs-advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.cs-advantage img {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
}

.cs-advantage h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 10px;
}

.cs-advantage p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(17,17,17,0.65);
}

/* ─── LEARNINGS (discontinued projects) ─────────── */
.cs-learnings-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(17,17,17,0.7);
}

@media (max-width: 900px) {
  .cs-step { grid-template-columns: 48px 1fr; gap: 20px; }
  .cs-step-num { font-size: 2rem; }
  .cs-advantages { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── VISUAL CASE STUDY (full PDF page, sits between Product and Impact/Learnings) ─── */
.cs-visual-case {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.cs-visual-case-img { display: block; width: 100%; }

.cs-vc-block {
  position: relative;
  padding: 100px 48px;
}

.cs-vc-block.yellow { background: var(--yellow); }
.cs-vc-block.purple { background: var(--purple); }
.cs-vc-block.cream { background: var(--cream); }

.cs-vc-block.has-circle::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--yellow);
  z-index: 1;
}

.cs-vc-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 64px;
}

.cs-vc-block.media-right .cs-vc-inner { flex-direction: row; }
.cs-vc-block.media-left .cs-vc-inner { flex-direction: row-reverse; }
.cs-vc-block.center .cs-vc-inner { justify-content: center; text-align: center; }

.cs-vc-text { flex: 1; max-width: 460px; }

.cs-vc-block.purple .cs-vc-text,
.cs-vc-block.purple .cs-vc-text p { color: white; }

.cs-vc-block.yellow .cs-vc-text,
.cs-vc-block.cream .cs-vc-text { color: var(--dark); }

.cs-vc-text h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.cs-vc-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(17,17,17,0.7);
}

.cs-vc-block.purple .cs-vc-text p { color: rgba(255,255,255,0.85); }

.cs-vc-media {
  flex: 1;
  position: relative;
  z-index: 5;
}

.cs-vc-media img {
  width: 100%;
  max-width: 420px;
  display: block;
}

.cs-vc-media.bleed-down { margin-bottom: -180px; }
.cs-vc-media.bleed-up { margin-top: -180px; }
.cs-vc-media.bleed-both { margin-top: -180px; margin-bottom: -180px; }

.cs-vc-logo-vert {
  flex: 0 0 auto;
  max-width: 140px;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.cs-vc-logo-vert img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .cs-vc-block { padding: 64px 24px; }
  .cs-vc-inner { flex-direction: column !important; gap: 32px; text-align: center; }
  .cs-vc-text { max-width: none; }
  .cs-vc-media.bleed-down,
  .cs-vc-media.bleed-up,
  .cs-vc-media.bleed-both { margin: 0; }
  .cs-vc-media img { max-width: 320px; margin: 0 auto; }
  .cs-vc-block.has-circle::before { width: 90px; height: 90px; top: -30px; }
}

/* ─── FEATURE SHOWCASE (e.g. GH Go screen-by-screen walkthrough) ── */
.cs-showcase {
  --showcase-accent: var(--purple);
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 80px 48px;
  background: var(--cream);
}

.cs-showcase.dark { background: var(--showcase-accent); }
.cs-showcase.accent-pink { --showcase-accent: #F94D66; }
.cs-showcase.accent-orange { --showcase-accent: #D9581F; }

.cs-showcase-text { flex: 1; max-width: 420px; }
.cs-showcase-media { flex: 1; display: flex; justify-content: center; }
.cs-showcase-media img { width: 100%; max-width: 420px; display: block; }

.cs-showcase-text h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.cs-showcase.dark .cs-showcase-text h3 { color: white; }

.cs-showcase-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(17,17,17,0.65);
}

.cs-showcase.dark .cs-showcase-text p { color: rgba(255,255,255,0.85); }

.cs-showcase.media-left { flex-direction: row-reverse; }

/* One-off oversized-mockup treatment (Design System Product blocks), matching the PDF reference. */
.cs-showcase.big-mockups { padding: 0 48px; }
.cs-showcase-media img.big-img { width: 130%; max-width: 600px; }
.cs-showcase-media img.big-img-2 { width: 180%; max-width: 900px; transform: translateX(-250px); }

.cs-showcase-text.shift-up { transform: translateY(-118px); }
.cs-showcase-text.shift-up.visible { transform: translateY(-150px); }
.cs-showcase-text.shift-up-more { transform: translateY(-218px); }
.cs-showcase-text.shift-up-more.visible { transform: translateY(-250px); }

@media (min-width: 901px) {
  .cs-showcase.big-mockups { padding: 150px; }
}

@media (max-width: 900px) {
  .cs-showcase.big-mockups { padding: 56px 24px; }
  .cs-showcase-media img.big-img,
  .cs-showcase-media img.big-img-2 { width: 100%; max-width: 420px; transform: none; }
  .cs-showcase-text.shift-up,
  .cs-showcase-text.shift-up.visible,
  .cs-showcase-text.shift-up-more,
  .cs-showcase-text.shift-up-more.visible { transform: none; }
}

.cs-showcase-callouts { flex: 1; max-width: 460px; display: flex; flex-direction: column; gap: 32px; }
.cs-showcase-callouts h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--showcase-accent);
}
.cs-showcase.dark .cs-showcase-callouts h3 { color: white; }
.cs-showcase-callouts h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.cs-showcase.dark .cs-showcase-callouts h4 { color: white; }
.cs-showcase-callouts p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(17,17,17,0.65);
}
.cs-showcase.dark .cs-showcase-callouts p { color: rgba(255,255,255,0.85); }

@media (max-width: 900px) {
  .cs-showcase { flex-direction: column; padding: 56px 24px; gap: 32px; text-align: center; }
  .cs-showcase.media-left { flex-direction: column; }
  .cs-showcase-text { max-width: none; }
  .cs-showcase-callouts { max-width: none; text-align: left; }
}

.cs-impact {
  background: var(--cream);
  padding: 96px 48px 100px;
}

.cs-impact-inner { max-width: var(--max-w); margin: 0 auto; }

.cs-impact h2 {
  font-size: clamp(3rem, 7.2vw, 6rem);
  font-weight: 900;
  color: var(--purple);
  text-align: center;
  margin-bottom: 48px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.impact-card {
  background: var(--purple);
  border-radius: 8px;
  padding: 40px 36px;
  font-family: 'Courier New', Courier, monospace;
}

.impact-card .impact-val {
  font-family: var(--font);
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  min-height: 1.5em;
  display: flex;
  align-items: center;
}

.impact-icon { height: 0.7em; width: auto; display: block; }

.impact-card .impact-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.impact-card .impact-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

/* ─── PROCESS: BEFORE/AFTER COMPARE ─────────────── */
.cs-compare { margin-top: 96px; }

.cs-compare-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--purple);
  text-align: center;
  margin-bottom: 40px;
}

.cs-compare-tag {
  display: none;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
}

.cs-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.cs-compare-label {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 20px;
}

.cs-compare-label strong { font-weight: 700; }

.cs-compare-label em {
  font-style: italic;
  font-weight: 400;
  color: rgba(17,17,17,0.55);
}

.cs-compare-col { text-align: center; }

.cs-compare-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: rgba(17,17,17,0.75);
}

.cs-compare-flow .arrow { color: var(--purple); }

/* ─── VISUAL LANGUAGE / STYLE SCAPE ─────────────── */
.cs-stylescape {
  padding: 96px 48px;
  background: var(--cream);
}

.cs-stylescape-inner { max-width: var(--max-w); margin: 0 auto; }

.cs-stylescape h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--purple);
  text-align: center;
  margin-bottom: 16px;
}

.cs-stylescape-sub {
  font-size: 0.85rem;
  color: rgba(17,17,17,0.55);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.stylescape-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}

.stylescape-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.stylescape-grid .wide { grid-column: span 2; }
.stylescape-grid .tall { grid-row: span 2; }

/* ─── CASE STUDY FOOTER (PREV / NEXT) ───────────── */
.cs-footer {
  background: var(--purple);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--purple-dark);
}

.cs-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.cs-nav-link:hover { color: white; }
.cs-nav-link.next { flex-direction: row-reverse; }

.other-projects {
  padding: 0 48px 80px;
  background: var(--cream);
}

.other-projects-inner { max-width: var(--max-w); margin: 0 auto; }

.other-projects-inner::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(98,68,228,0.15);
  margin: 0 0 70px;
}

.other-projects h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--purple);
  text-align: center;
  margin-bottom: 32px;
}

.other-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.other-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.other-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.other-card:hover img { transform: scale(1.05); }

.other-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.other-cat {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 4px;
}

.other-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
}

/* ─── CV PAGE ────────────────────────────────────── */
.cv-body {
  padding: calc(var(--nav-h) + 64px) 48px 96px;
  background: var(--cream);
}

.cv-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.cv-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding: 32px 0;
}

.cv-section:first-child { padding-top: 0; }
.cv-section.divider { border-bottom: 1px solid rgba(91,69,245,0.12); }

.cv-left h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--purple);
  line-height: 1.2;
  margin-bottom: 12px;
}

.cv-left .company {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 4px;
}

.cv-left .period {
  font-size: 0.9rem;
  font-weight: 500;
  color: #444444;
  margin-bottom: 4px;
}

.cv-left .duration {
  font-size: 0.9rem;
  color: #787878;
}

.cv-left .explore-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-dark);
  transition: gap 0.2s;
}

.cv-left .explore-link:hover { gap: 10px; }

.cv-right .role-intro {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--purple);
  font-weight: 600;
  max-width: 620px;
}

.cv-right h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: #444444;
  margin-bottom: 16px;
}

.cv-right p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #787878;
  max-width: 700px;
}

.cv-right p + p { margin-top: 16px; }

.cv-right .role-sub {
  font-size: 0.9rem;
  color: #787878;
  line-height: 1.7;
}

/* ─── WORK REFERENCE PAGE ────────────────────────── */
.ref-hero {
  background: var(--purple);
  padding: calc(var(--nav-h) + 48px) 48px 48px;
  text-align: center;
}

.ref-hero h1 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.ref-body {
  background: var(--purple);
  padding: 0 48px 80px;
}

.ref-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ref-doc {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.ref-doc iframe {
  width: 100%;
  height: 1120px;
  border: none;
  display: block;
}

/* ─── ANIMATIONS ─────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .navbar { padding: 0 24px; }
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--purple);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--purple-dark);
    z-index: 199;
  }

  .hero { padding: calc(var(--nav-h) + 56px) 24px 56px; }
  .skills { padding: 48px 24px; }
  .companies { padding: 64px 24px; }
  .footer { padding: 56px 24px 40px; }
  .cv-body { padding: calc(var(--nav-h) + 64px) 24px 96px; }
  .cv-section { grid-template-columns: 30% 1fr; gap: 32px; }

  .cs-meta-inner { grid-template-columns: 1fr; gap: 32px; }
  .cs-meta-row { grid-template-columns: 1fr; gap: 24px; }
  .cs-meta-side { flex-direction: row; gap: 24px; }
  .cs-meta-side .cs-meta-block { flex: 1; }
  .cs-role { grid-template-columns: 1fr; gap: 16px; }
  .impact-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .lang-list { gap: 32px; }
  .about-hero { padding: calc(var(--nav-h) + 32px) 24px 40px; }
  .crafting { padding: 56px 24px; }
  .contribution { padding: 56px 24px; }
  .kpis { padding: 56px 24px; }
  .languages { padding: 56px 24px; }
  .toolkit { padding: 56px 24px; }
  .cs-meta { padding: 56px 24px; }
  .cs-section { padding: 64px 24px; }
  .cs-jump { padding: 32px 24px; }
  .cs-jump-links { flex-wrap: wrap; gap: 20px; }
  .cs-impact { padding: 64px 24px 100px; }
  .ref-body { padding: 0 24px 56px; }
  .ref-doc iframe { height: 800px; }
  .cs-footer { padding: 32px 24px; }

  /* Before/After: swap centered heading for inline Before/After tags */
  .cs-compare-grid { grid-template-columns: 1fr; gap: 32px; }
  .cs-compare-heading { display: none; }
  .cs-compare-tag { display: block; }

  /* Other Projects: edge-to-edge snap carousel, inset margins on first/last card */
  .other-projects { padding: 0 0 56px; }
  .other-projects-inner::before { margin-left: 24px; margin-right: 24px; width: auto; }
  .other-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    scroll-padding-right: 24px;
    gap: 16px;
    padding: 0 24px;
    margin: 0;
    -webkit-overflow-scrolling: touch;
  }
  .other-grid::-webkit-scrollbar { display: none; }
  .other-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
  }
}

/* CV page + homepage case grid: keep multi-column down through tablet and mobile
   landscape, only collapse to one column on narrow mobile portrait screens. */
@media (max-width: 600px) {
  .cv-section { grid-template-columns: 1fr; gap: 24px; }
  .case-grid { grid-template-columns: 1fr; }
}

/* ─── WORK REFERENCE (letter pages with shadows on purple) ─── */
.wr-section {
  background: var(--purple);
  padding: 140px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.wr-page {
  display: block;
  width: 100%;
  max-width: 760px;
  border-radius: 8px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.35);
}

@media (max-width: 900px) {
  .wr-section { padding: 80px 24px; gap: 40px; }
  .wr-page { box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
}

/* ─── ABOUT ME / SKILLS ─── */
/* Full-bleed purple background, decoupled from the content max-width below
   (background and content-width used to be on the same element, which meant
   the purple never reached the viewport edges on screens wider than 1280px). */
.am-hero {
  background: var(--purple);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 96px 48px;
  display: flex;
  justify-content: center;
}

/* Photo + text-content sit as one row, centered as a block within the
   full-bleed background above. */
.am-hero-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  max-width: var(--max-w);
  width: 100%;
}

.am-photo {
  flex: 0 0 auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Name+tagline and bio grouped together as a single column beside the photo. */
.am-hero-text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  max-width: 680px;
  color: white;
}

.am-hero-name h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0;
}

.am-tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.am-bio {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
}

.am-bio strong { font-weight: 700; }

.am-headline { background: var(--cream); padding: 80px 48px; text-align: center; }
.am-headline-svg { display: block; width: auto; height: auto; max-width: min(100%, 1280px); max-height: 80vh; margin: 0 auto; }

.am-contribution { background: var(--cream); padding: 0 48px 96px; }
.am-contribution-inner { max-width: var(--max-w); margin: 0 auto; }

.am-contribution-sub {
  font-size: 1.4rem;
  color: var(--purple);
  margin-bottom: 40px;
}

.am-list { display: flex; flex-direction: column; gap: 32px; }
.am-list li { display: flex; align-items: baseline; gap: 32px; }

.am-list-num {
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--purple);
  min-width: 40px;
}

.am-list-text { font-size: 1.15rem; color: var(--dark); }

.am-divider { border: none; border-top: 1px solid var(--muted); width: calc(100% - 96px); max-width: var(--max-w); margin: 0 auto; }

.am-kpis, .am-languages, .am-toolkit { background: var(--cream); padding: 96px 48px; }
.am-kpis-inner, .am-languages-inner, .am-toolkit-inner { max-width: var(--max-w); margin: 0 auto; }

.am-kpis h2, .am-languages h2, .am-toolkit h2 {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--purple-dark);
  text-align: center;
  margin-bottom: 56px;
}

.am-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.am-kpi-card {
  background: var(--purple);
  border-radius: 8px;
  padding: 40px 24px;
  text-align: center;
}

.am-kpi-val {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.am-kpi-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.am-lang-grid {
  display: flex;
  justify-content: center;
  gap: 96px;
}

.am-lang-item { text-align: center; }

.am-flag {
  display: block;
  width: 72px;
  height: auto;
  margin: 0 auto 16px;
}

.am-lang-name {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  color: var(--purple-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.am-lang-level {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.am-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
  justify-items: center;
}

.am-tool-item {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.am-tool-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 12px;
}

.am-tool-item p {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  color: var(--purple-dark);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .am-hero { padding: 64px 24px; }
  .am-hero-container { flex-direction: column; gap: 20px; }
  .am-hero-text-content { text-align: center; max-width: none; }
  .am-photo { width: 160px; height: 160px; }
  .am-headline { padding: 48px 24px; }
  .am-contribution { padding: 0 24px 64px; }
  .am-kpis, .am-languages, .am-toolkit { padding: 64px 24px; }
  .am-lang-grid { gap: 32px; flex-wrap: wrap; }
  .am-tool-grid { grid-template-columns: repeat(4, 1fr); gap: 24px 12px; }
  .am-tool-item { width: auto; }
  .am-tool-item p { display: none; }
}
