/* ============================================
   ANJLI NAIR PORTFOLIO — GLOBAL STYLESHEET
   ============================================ */

/* 1. Design Tokens */
:root {
  /* Colors */
  --color-bg: #FAFAF8;
  --color-surface: #F2F0EC;
  --color-border: #E0DDD8;
  --color-muted: #9A9590;
  --color-text: #1A1A1A;
  --color-text-soft: #4A4744;
  --color-white: #FFFFFF;
  --color-black: #0D0D0D;
  --color-tag-bg: #EDEAE5;

  /* Typography */
  --font-primary: 'Outfit', sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.75rem;
  --text-6xl: 5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-padding: clamp(1.5rem, 5vw, 4rem);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* 2. Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* 3. Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-padding);
}

/* 4. Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: var(--space-5);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  transition: opacity var(--transition-fast);
}

.nav__logo:hover {
  opacity: 0.6;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-soft);
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--cta {
  color: var(--color-text);
  font-weight: var(--fw-semibold);
  border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--color-text);
  color: var(--color-white);
  border-color: var(--color-text);
}

/* Burger (mobile) */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

/* 5. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn--primary:hover {
  background: var(--color-black);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-text);
}

/* 6. Hero */
.hero {
  padding-top: clamp(4rem, 10vw, 8rem);
  padding-bottom: var(--space-24);
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero__split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-8) var(--space-16);
  align-items: start;
}

/* Left: text content */
.hero__content {
  grid-column: 1;
  padding-top: var(--space-12);
  display: flex;
  flex-direction: column;
}

.hero__name {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-5xl));
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-3);
}

.hero__role {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-xl));
  font-weight: var(--fw-light);
  color: var(--color-muted);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-8);
}

.hero__subtitle {
  font-size: clamp(var(--text-sm), 1.2vw, var(--text-base));
  color: var(--color-text-soft);
  max-width: 46ch;
  line-height: 1.75;
  margin-bottom: var(--space-10);
}

.hero__ctas {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__ctas .btn {
  min-width: 160px;
  justify-content: center;
}

/* Right: two independent floating layers — photo + glass skills card */

.hero__right {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  height: clamp(380px, 50vw, 540px);
  overflow: visible;
  /* Inset so floating elements have room to move without hitting viewport edge */
  padding: 20px 20px 24px 0;
}

/* Photo — layer 1 (further from viewer, moves less on parallax) */
.hero__photo-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 74%;
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.12);
  will-change: transform;
  /* JS handles all transforms — no CSS animation here */
}

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

/* Skills card — layer 2 (closer to viewer, moves more on parallax) */
.hero__skills-card {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 66%;
  max-width: 380px;
  background: rgba(28, 28, 28, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 24px 28px;
  z-index: 2;
  will-change: transform;
  /* JS handles all transforms */
}

.skills-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-12);
  left: var(--container-padding);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  opacity: 0.4;
}

.hero__scroll-hint span {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 60px;
  height: 1px;
  background: var(--color-text);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-muted);
  animation: slide-line 2s ease infinite;
}

@keyframes slide-line {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* 7. Section Shared */
.section-header {
  margin-bottom: var(--space-12);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}

/* 8. Work / Projects — Expand-on-Hover List */
.work {
  padding-bottom: var(--space-32);
}

/* Project list */
.projects-list {
  border-top: 1px solid var(--color-border);
}

.project-row {
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
}

/* Header row (always visible) */
.project-row__header {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-4);
  transition: background var(--transition-fast);
}

.project-row:hover .project-row__header {
  background: var(--color-surface);
}

.project-row__num {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-muted);
  min-width: 2.5ch;
  flex-shrink: 0;
}

.project-row__info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.project-row__title {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.project-row__tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.project-row__cta {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-muted);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--transition-base), transform var(--transition-base), color var(--transition-fast);
}

.project-row:hover .project-row__cta,
.project-row.is-expanded .project-row__cta {
  opacity: 1;
  transform: translateX(0);
  color: var(--color-text);
}

/* Expandable panel */
.project-row__expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--color-surface);
}

.project-row.is-expanded .project-row__expand {
  max-height: 500px;
}

.project-row__expand-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-8);
  padding: 0 var(--space-4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.15s, transform 0.3s ease 0.15s, padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-row.is-expanded .project-row__expand-inner {
  padding: var(--space-8) var(--space-4);
  opacity: 1;
  transform: translateY(0);
}

.project-row__expand-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  padding-left: calc(2.5ch + var(--space-8));
}

.project-row__desc {
  font-size: var(--text-base);
  color: var(--color-text-soft);
  line-height: 1.75;
  max-width: 52ch;
}

.project-row__metrics {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.project-row__metric {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
}

.project-row__metric strong {
  color: var(--color-text);
  font-weight: var(--fw-semibold);
}

.project-row__expand-image {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--color-border);
  transition: opacity var(--transition-base);
}

.project-row__expand-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

.project-row__expand-image:hover {
  opacity: 0.9;
}

/* Shared tag style (used in project rows + case studies) */
.project-card__tag {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  background: var(--color-tag-bg);
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
}

/* 9. Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-12);
  padding-bottom: var(--space-8);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}

.footer__name {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.footer__link {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-soft);
  position: relative;
  transition: color var(--transition-fast);
}

.footer__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width var(--transition-base);
}

.footer__link:hover {
  color: var(--color-text);
}

.footer__link:hover::after {
  width: 100%;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
}

.footer__bottom p {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* 10. About Page */
.page-hero {
  padding-top: clamp(8rem, 14vw, 12rem);
  padding-bottom: var(--space-20);
}

.page-hero__label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}

.page-hero__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 14ch;
  margin-bottom: var(--space-8);
}

.page-hero__title em {
  font-style: italic;
  font-weight: var(--fw-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-16);
  padding-bottom: var(--space-24);
  align-items: start;
}

.about-image {
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  aspect-ratio: 3/4;
  position: sticky;
  top: var(--space-24);
}

.about-image__placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  background: var(--color-border);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.about-block__label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}

.about-block__text {
  font-size: clamp(var(--text-base), 1.2vw, var(--text-lg));
  color: var(--color-text-soft);
  line-height: 1.8;
}

.about-block__text+.about-block__text {
  margin-top: var(--space-4);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.about-tag {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-soft);
  background: var(--color-tag-bg);
  border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-4);
  border-radius: 100px;
}

.about-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* 11. Case Study Page */
.case-hero {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: var(--space-16);
}

.case-hero__meta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.case-hero__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 18ch;
  margin-bottom: var(--space-6);
}

.case-hero__summary {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-xl));
  color: var(--color-text-soft);
  max-width: 56ch;
  line-height: 1.7;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-px);
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-block: var(--space-16);
}

.case-stat {
  background: var(--color-white);
  padding: var(--space-8);
}

.case-stat__value {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.case-stat__label {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.case-body {
  max-width: 72ch;
  margin: 0 auto;
  padding-top: var(--space-12);
  padding-bottom: var(--space-32);
}

.case-section {
  margin-bottom: var(--space-16);
}

.case-section__label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}

.case-section__title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.case-section__text {
  font-size: var(--text-base);
  color: var(--color-text-soft);
  line-height: 1.8;
}

.case-section__list {
  font-size: var(--text-base);
  color: var(--color-text-soft);
  line-height: 1.8;
  padding-left: var(--space-5);
  margin-top: var(--space-4);
}

.case-section__list li {
  margin-bottom: var(--space-3);
}

.case-section__list li:last-child {
  margin-bottom: 0;
}

.case-image-full {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  margin-top: var(--space-8);
  margin-bottom: var(--space-2);
  overflow: hidden;
  border: 3px solid var(--color-white);
  box-shadow: 0 0 8px rgba(162,162,162,0.25);
}

.case-image-full img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Case study — coloured insight / idea / result cards ── */
.case-card {
  border-radius: 14px;
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.case-card__title {
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
  line-height: 1.5;
}
.case-card__body {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  line-height: 1.6;
}
.case-card--insight { background: #eaf2ec; }
.case-card--idea    { background: var(--color-surface); }
.case-card--red     { background: #f7dede; }
.case-card--orange  { background: #f7eede; }
.case-card--green   { background: #def5d5; }
.case-card--neutral { background: var(--color-surface); }

/* ── Case study — inline image row (2 or 3 col) ── */
.case-image-row {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  align-items: flex-start;
}
.case-image-row img {
  flex: 1;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 3px solid var(--color-white);
  box-shadow: 0 0 8px rgba(162,162,162,0.25);
}

/* ── Case study — text + screenshot side-by-side ── */
.case-split {
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
  margin-bottom: var(--space-10);
}
.case-split--center {
  align-items: center;
}
.case-split__text { flex: 1; }
.case-split__image {
  flex-shrink: 0;
  width: clamp(240px, 45%, 460px);
  border-radius: var(--radius-md);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 8px rgba(162,162,162,0.25);
  object-fit: cover;
}

/* ── Case study — "How might we" callout ── */
.case-hmw {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.5;
  text-align: center;
  background: var(--color-surface);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  margin-block: var(--space-6);
}

/* ── Case study — result card with icon ── */
.case-card__inner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.case-card__icon {
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  flex-grow: 0;
  margin-top: 3px;
}

/* ── Case study — sticky TOC ── */
.case-toc {
  position: fixed;
  right: clamp(1rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 20;
  text-align: right;
}
.case-toc__item {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.03em;
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: block;
  padding: 1px 0;
  white-space: nowrap;
}
.case-toc__num {
  font-weight: var(--fw-semibold);
}
.case-toc__item:hover,
.case-toc__item.is-active {
  color: var(--color-text);
}
@media (max-width: 1280px) {
  .case-toc { display: none; }
}

/* ── Case study — ideation image grid ── */
.case-ideation-grid {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
  align-items: stretch;
  height: 100%;
}
.case-ideation-grid__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 0 0 45%;
  align-self: stretch;
}
.case-ideation-grid__left img {
  flex: 1;
  min-height: 0;
  width: 100%;
  border-radius: var(--radius-md);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 8px rgba(162,162,162,0.25);
  object-fit: cover;
  object-position: left center;
  display: block;
}
.case-ideation-grid__right {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-md);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 8px rgba(162,162,162,0.25);
  object-fit: cover;
  object-position: left center;
  display: block;
  align-self: stretch;
  width: 100%;
}
@media (max-width: 640px) {
  .case-ideation-grid { flex-direction: column; }
  .case-ideation-grid__left { flex: none; }
}

/* ── Case study — image caption ── */
.case-caption {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-align: center;
  margin-top: calc(var(--space-1) * -1);
  margin-bottom: var(--space-6);
}

/* ── Case study — experiment sub-section ── */
.case-experiment {
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px dashed var(--color-border);
}
.case-experiment:first-of-type {
  margin-top: var(--space-8);
  border-top: none;
  padding-top: 0;
}

/* ── Case study — numbered section dividers ── */
.case-section[id^="section-"]:not(#section-01) {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-12);
}
.case-section[id^="section-"] {
  margin-top: 0;
}

.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.case-nav__link {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-soft);
  transition: color var(--transition-fast);
}

.case-nav__link:hover {
  color: var(--color-text);
}

/* ══ SNAPSHOT PAGES ═════════════════════════════════════ */

.snap-hero__subtitle {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: var(--space-2);
  margin-bottom: var(--space-8);
}

.snap-body {
  max-width: 72ch;
  margin: 0 auto;
  padding-bottom: var(--space-8);
}

.snap-section {
  margin-bottom: var(--space-10);
}

.snap-section__heading {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.snap-section__text {
  font-size: var(--text-base);
  color: var(--color-text-soft);
  line-height: 1.8;
}

.snap-section__list {
  list-style: disc;
  padding-left: var(--space-5);
  font-size: var(--text-base);
  color: var(--color-text-soft);
  line-height: 1.8;
}

.snap-section__list li {
  margin-bottom: var(--space-2);
}

.snap-section__list li:last-child {
  margin-bottom: 0;
}

/* ── Tag chips on inner pages ────────────────────────── */

.case-hero__meta .tag,
.snap-body .tag {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  background: var(--color-tag-bg);
  border: none;
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
}

/* Snapshot hero — tighten title→subtitle gap, reduce title size */
.snap-page .case-hero__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  margin-bottom: var(--space-2);
}

/* ── Dive Deeper ─────────────────────────────────────── */

.dive-deeper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-6) var(--space-16);
  text-decoration: none;
  color: var(--color-text);
  cursor: pointer;
}

.dive-deeper__waves {
  display: block;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dive-deeper:hover .dive-deeper__waves {
  transform: translateY(4px);
}

.dive-deeper__label {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color var(--transition-base);
}

.dive-deeper:hover .dive-deeper__label {
  color: var(--color-text);
}

.dive-deeper__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-muted);
  animation: deeperBob 2.2s ease-in-out infinite;
  transition: background var(--transition-base);
}

.dive-deeper:hover .dive-deeper__dot {
  background: var(--color-text);
}

@keyframes deeperBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ── Water transition overlay ─────────────────────────── */

#water-overlay {
  position: fixed;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 115vh;
  transform: translateY(100%);
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  will-change: transform;
}

#water-overlay .water-wave {
  width: 100%;
  display: block;
  flex-shrink: 0;
  margin-bottom: -2px;
}

#water-overlay .water-body {
  flex: 1;
  background: #0D0D0D;
  position: relative;
  overflow: hidden;
}

#water-overlay.rising {
  pointer-events: all;
  animation: waterRise 0.92s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

#water-overlay.sinking {
  transform: translateY(0%);
  animation: waterSink 0.92s cubic-bezier(0.76, 0, 0.24, 1) 0.1s forwards;
}

@keyframes waterRise {
  from { transform: translateY(100%); }
  to   { transform: translateY(0%); }
}

@keyframes waterSink {
  from { transform: translateY(0%); }
  to   { transform: translateY(112%); }
}


/* ── Surface nav on case study pages ─────────────────── */

.case-surface {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-soft);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}

.case-surface:hover { color: var(--color-text); }

/* 12. Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in--delay {
  transition-delay: 0.2s;
}

/* 13. Mobile Nav */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 99;
  transform: translateY(-110%);
  transition: transform var(--transition-base);
}

.nav__mobile.open {
  transform: translateY(0);
  display: flex;
}

/* 14. Responsive */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .hero {
    padding-top: var(--space-12);
    min-height: auto;
    padding-bottom: var(--space-12);
  }

  .hero__split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    /* The "Medium Gap" */
    display: flex;
    flex-direction: column;
  }

  .hero__name {
    margin-bottom: var(--space-1);
  }

  .hero__role {
    margin-bottom: var(--space-6);
    /* The "Small Gap" */
  }

  .hero__subtitle {
    margin-bottom: 0;
  }

  .hero__content {
    order: 1;
    padding-top: 0;
  }

  .hero__ctas {
    order: 3;
    width: 100%;
    display: flex;
    gap: var(--space-3);
  }

  .hero__ctas .btn {
    flex: 1;
    min-width: 0;
    padding-inline: var(--space-2);
  }

  .hero__right {
    order: 2;
    grid-column: auto;
    grid-row: auto;
    height: auto;
    /* Allow content to define height */
    width: 100%;
    padding: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__photo-wrap {
    position: relative;
    /* Change from absolute to relative */
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero__skills-card {
    position: absolute;
    width: 90%;
    max-width: 340px;
    bottom: -20px;
    right: -10px;
    padding: 16px 20px;
    z-index: 2;
  }

  .skills-text {
    font-size: var(--text-xs);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    aspect-ratio: 1/1;
    position: static;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__links {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__scroll-hint {
    display: flex;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
  }

  .hero__scroll-hint span {
    display: none;
    /* Hide text on mobile to save space */
  }

  .hero__scroll-line {
    width: 40px;
  }

  /* Snapshot hero — mobile fixes */
  .snap-page .case-hero {
    padding-top: var(--space-8);
  }

  .snap-page .case-hero__meta {
    margin-bottom: var(--space-4);
  }

  .snap-hero__subtitle {
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    margin-bottom: var(--space-6);
  }
}

@media (max-width: 480px) {
  .hero__ctas {
    flex-direction: row;
    /* Keep them side-by-side if they fit */
    gap: var(--space-2);
  }

  .btn {
    font-size: var(--text-xs);
    padding: var(--space-3) var(--space-2);
  }
}

/* 15. Selection */
::selection {
  background: var(--color-text);
  color: var(--color-white);
}

/* 16. Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

/* ══════════════════════════════════════════════════════
   17. TWO-SECTION SCROLL — Homepage only
══════════════════════════════════════════════════════ */

/* Lock body when scroll container exists (desktop) */
body:has(.scroll-container) {
  height: 100%;
  overflow: hidden;
}

html:has(.scroll-container) {
  height: 100%;
}

.scroll-container {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

/* ── Scene ─────────────────────────────────────────── */
.scene {
  height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
}

/* ══ SECTION 1: ME ══════════════════════════════════ */
.scene--me {
  background: var(--color-bg);
  display: flex;
  align-items: center;
  padding: 0 clamp(2rem, 3.7vw, 3.3rem);
}

/* 3-column grid */
.me__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(0.75rem, 1.5vw, 1.875rem);
  width: 100%;
  height: clamp(400px, 75svh, 640px);
}

/* ── Col 1: Identity ─────────────────────────────── */
.me__col {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 6vh, 3rem) clamp(1.5rem, 2.8vw, 2.5rem);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.me__col--identity,
.me__col--info {
  background: var(--color-surface);
}

.me__col--identity {
  justify-content: space-between;
}

.me__name-block {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.me__name {
  font-size: clamp(var(--text-4xl), 7.5vw, 6.8rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin-bottom: var(--space-4);
}

.me__role {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.me__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  opacity: 0;
  transform: translateY(12px);
  animation: slideUp 0.8s ease 0.4s forwards;
}

.me__contact-link {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-soft);
  position: relative;
  width: fit-content;
  transition: color var(--transition-fast);
}

.me__contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width var(--transition-base);
}

.me__contact-link:hover {
  color: var(--color-text);
}

.me__contact-link:hover::after {
  width: 100%;
}

/* ── Col 2: Photo ────────────────────────────────── */
.me__col--photo {
  padding: 0;
  overflow: hidden;
}

.me__photo-wrap {
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fadeIn 1s ease 0.3s forwards;
}

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

/* ── Col 3: Info ─────────────────────────────────── */
.me__col--info {
  justify-content: flex-start;
  gap: var(--space-8);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(16px);
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* Hide scrollbar when card is tall enough to show all content */
@media (min-height: 780px) {
  .me__col--info {
    overflow-y: hidden;
  }
}

.me__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.me__intro-text {
  font-size: clamp(var(--text-sm), 1.1vw, var(--text-base));
  color: var(--color-text);
  line-height: 1.65;
  letter-spacing: 0.02em;
}

/* Skills + hobbies block */
.me__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: auto;
  /* push skills/hobbies to bottom of col */
}

.me__divider {
  border: none;
  border-top: 1px solid var(--color-border);
}

.me__detail-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  color: #b8b4b4;
  margin-bottom: var(--space-2);
}

.me__detail-text {
  font-size: var(--text-sm);
  color: #555;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

/* "Know more about me →" link — visible on all screen sizes */
.me__know-more-link {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-soft);
  text-decoration: none;
  position: relative;
  width: fit-content;
  transition: color var(--transition-fast);
}

.me__know-more-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width var(--transition-base);
}

.me__know-more-link:hover {
  color: var(--color-text);
}

.me__know-more-link:hover::after {
  width: 100%;
}

/* ══ SECTION 2: MY WORK ═════════════════════════════ */
.scene--work {
  background: var(--color-bg);
  display: flex;
  align-items: flex-start;
  padding: clamp(4rem, 6vw, 5rem) clamp(2rem, 3.7vw, 3.3rem) clamp(2rem, 3.7vw, 3.3rem);
  scroll-snap-align: start;
  height: auto;
  min-height: auto;
}

/* Mobile label — hidden on desktop */
.work__mobile-label {
  display: none;
}

/* Stacked full-width cards */
.work__grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

/* ── Individual project card ── */
.project-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-xl);
  background: #2a2826;
  min-height: clamp(280px, 35vw, 380px);
}

/* Image area — always visible, desaturated + dark by default */
.project-card__image-area {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  overflow: hidden;
  opacity: 1;
  z-index: 0;
  background: #3b3837;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.55);
  transition: filter 0.55s ease;
}

.project-card:hover .project-card__image-area {
  filter: grayscale(0%) brightness(0.82);
}

/* Bottom fade for text legibility */
.project-card__image-area::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to bottom, transparent, #000);
  z-index: 1;
}

/* Left fade */
.project-card__image-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 28%;
  height: 100%;
  background: linear-gradient(to right, #000, transparent);
  z-index: 1;
}

/* Card content — anchored to bottom-left */
.project-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: inherit;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  gap: var(--space-2);
}

.project-card__title {
  font-size: clamp(var(--text-2xl), 3.5vw, 3rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fafaf8;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.project-card__tags .project-card__tag {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  color: var(--color-text);
  background: var(--color-bg);
  border-radius: 100px;
  padding: 3px 10px;
  text-transform: none;
}

.project-card__subtitle {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.55);
}

/* ── About link ── */
.about-link {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  z-index: 10;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.about-link:hover {
  color: var(--color-text);
}

/* ══ SCROLL INDICATOR ═══════════════════════════════ */
.scroll-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 10;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.4s ease;
  text-decoration: none;
}

.scroll-indicator:hover {
  opacity: 1;
}

/* Hide indicators while scrolling */
.is-scrolling .scroll-indicator {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator--bottom {
  bottom: var(--space-8);
  flex-direction: column;
  animation: bob 2.4s ease-in-out 1.5s infinite;
  color: var(--color-muted);
}

.scroll-indicator--bottom .scroll-indicator__label {
  color: var(--color-muted);
}

.scroll-indicator--bottom .scroll-indicator__line {
  background: var(--color-border);
}

.scroll-indicator--bottom svg {
  color: var(--color-muted);
}

.scroll-indicator--top {
  top: var(--space-4);
  flex-direction: column-reverse;
}

.scroll-indicator__label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
}

.scroll-indicator__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-text);
}


/* ══ KEYFRAMES ══════════════════════════════════════ */
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes bob {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(5px);
  }
}


/* ══ RESPONSIVE: MOBILE (<= 900px) ══════════════════ */
@media (max-width: 900px) {

  /* Disable snap scroll on mobile */
  body:has(.scroll-container),
  html:has(.scroll-container) {
    height: auto;
    overflow: auto;
  }

  .scroll-container {
    height: auto;
    overflow-y: visible;
    scroll-snap-type: none;
  }

  .scene {
    height: auto;
    min-height: 100svh;
    scroll-snap-align: none;
    scroll-snap-stop: unset;
    overflow: visible;
  }

  .scene--me {
    min-height: auto;
    padding: 0;
    display: block;
    align-items: stretch;
  }

  .me__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: auto;
  }

  .me__col {
    border-radius: 0;
    padding: 0;
    background: none;
  }

  /* Photo: full-width editorial strip at top */
  .me__col--photo {
    order: 1;
    display: block;
    position: static;
    width: 100%;
    height: 44svh;
    border-radius: 0;
    overflow: hidden;
  }

  .me__photo-wrap {
    width: 100%;
    height: 100%;
    animation: none;
    opacity: 1;
  }

  .me__photo-img {
    object-position: center 15%;
  }

  /* Identity: name + subtitle + contact below photo */
  .me__col--identity {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: clamp(1.25rem, 5vw, 2rem);
    padding-bottom: 0;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .me__name-block {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .me__name {
    font-size: clamp(var(--text-4xl), 12vw, var(--text-5xl));
  }

  .me__contact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-5);
    padding-top: var(--space-2);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
    animation: none;
    opacity: 1;
    transform: none;
  }

  /* Info: intro + collapsible skills/hobbies below identity */
  .me__col--info {
    order: 3;
    padding: clamp(1.25rem, 5vw, 2rem);
    padding-top: var(--space-6);
    gap: var(--space-6);
    opacity: 1;
    transform: none;
    animation: none;
  }

  /* Skills + hobbies — always visible on mobile */
  .me__details {
    overflow: visible;
    max-height: none;
    opacity: 1;
  }

  /* Scroll indicator — hide on mobile */
  .scroll-indicator {
    display: none;
  }

  /* Work section — normal flow on mobile */
  .scene--work {
    min-height: auto;
    flex-direction: column;
    overflow: visible;
    padding: 0;
    align-items: stretch;
  }

  /* "SELECTED PROJECTS" mobile label */
  .work__mobile-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    padding: var(--space-8) clamp(1.25rem, 5vw, 2rem) var(--space-4);
    border-top: 1px solid var(--color-border);
  }

  /* Cards: stacked vertically on mobile */
  .work__grid {
    height: auto;
    gap: var(--space-3);
    padding: 0 clamp(1.25rem, 5vw, 2rem) clamp(1.25rem, 5vw, 2rem);
  }

  .project-card {
    min-height: 220px;
    border-radius: var(--radius-lg);
  }

  .project-card__title {
    font-size: var(--text-xl);
  }

  .project-card__subtitle {
    font-size: 11px;
  }

  /* About link */
  .about-link {
    position: relative;
    display: block;
    text-align: center;
    padding: var(--space-8) 0;
    left: auto;
    transform: none;
    bottom: auto;
  }
}

/* ── Below 420px: stack name above photo ── */
/* (max-width: 420px block removed — editorial mobile layout now covers all mobile sizes) */

@media (max-width: 640px) {
  .case-split,
  .case-image-row {
    flex-direction: column;
  }
  .case-split__image {
    width: 100%;
  }
}

/* ══ BACK BUTTON (case studies + about) ══════════════ */
.case-back {
  padding-top: var(--space-6);
  padding-bottom: 0;
}

.case-back__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-soft);
  transition: color var(--transition-fast);
  letter-spacing: 0.01em;
}

.case-back__link:hover {
  color: var(--color-text);
}
