@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

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

:root {
  --bg:            #fdfaf9;
  --surface:       #ffffff;
  --surface2:      #f5edf1;
  --border:        #e8d3da;
  --border-hover:  #c9a0b0;
  --text:          #120D10;
  --body:          #685E64;
  --caption:       #7A6872;
  --accent:        #C8346A;
  --accent-dim:    rgba(200, 52, 106, 0.07);
  --accent-border: rgba(200, 52, 106, 0.2);
  --shadow-sm:     0 2px 14px rgba(168, 84, 124, 0.07), 0 1px 3px rgba(200, 52, 106, 0.04);
  --shadow-md:     0 10px 44px rgba(148, 68, 108, 0.14), 0 3px 12px rgba(200, 52, 106, 0.06);

  /* backward-compat aliases */
  --muted:  var(--body);
  --muted2: var(--caption);
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── REDUCED MOTION ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── ANIMATION KEYFRAMES ─────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ─── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.32s; }

/* ─── CUSTOM CURSOR ───────────────────────────────────────────── */
.has-cursor * { cursor: none !important; }

.cursor-dot {
  position: fixed;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.12s ease, height 0.12s ease, opacity 0.15s ease;
  will-change: left, top;
}

.cursor-ring {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(200, 52, 106, 0.38);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.24s ease, height 0.24s ease, border-color 0.24s ease;
  will-change: left, top;
}

.cursor-ring--hover {
  width: 46px;
  height: 46px;
  border-color: rgba(200, 52, 106, 0.62);
}

.cursor-dot--click { width: 10px; height: 10px; opacity: 0.7; }

/* ─── NAVIGATION ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(253, 250, 249, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.5s ease both;
}

.nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.65; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--caption);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.22s ease;
}

.nav-links a:hover  { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

/* Resume pill — distinct from standard nav links */
.nav-links a.nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  padding: 0.28rem 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.22s ease;
  transform-origin: center;
}

.nav-hamburger.open span:first-child  { transform: translateY(6.25px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:last-child   { transform: translateY(-6.25px) rotate(-45deg); }

.nav-links a.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ─── LAYOUT ──────────────────────────────────────────────────── */
.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 9rem 2.6rem 6rem;
}

.page--wide {
  max-width: 1000px;
  margin: 0 auto;
  padding: 9rem 2.6rem 6rem;
}

/* ─── TYPOGRAPHY ──────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  color: var(--text);
}

h1 { font-size: 2.6rem; letter-spacing: -0.5px; line-height: 1.12; }
h2 { font-size: 1.5rem;  letter-spacing: -0.2px; line-height: 1.3; }
h3 { font-size: 1.05rem; letter-spacing: 0;       line-height: 1.4; }

p {
  font-family: 'Jost', sans-serif;
  color: var(--body);
  font-size: 0.93rem;
  line-height: 1.82;
}

p + p { margin-top: 0.9rem; }

strong { color: var(--text); font-weight: 500; }

.caption, .mono {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  color: var(--caption);
}

.tag {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.66rem;
  font-weight: 400;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  padding: 0.18rem 0.65rem;
  letter-spacing: 0.06em;
}

/* ─── DIVIDER ─────────────────────────────────────────────────── */
.divider     { border: none; border-top: 1px solid var(--border); margin: 3.5rem 0; }
.divider--sm { border: none; border-top: 1px solid var(--border); margin: 1.8rem 0; }

/* ─── SECTION LABEL ───────────────────────────────────────────── */
.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--caption);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

/* ─── ANIMATION KEYFRAMES ─────────────────────────────────────── */
@keyframes gradientFlow {
  0%   { background-position:   0% 50%; }
  33%  { background-position:  60% 80%; }
  66%  { background-position: 100% 30%; }
  100% { background-position:   0% 50%; }
}

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 54fr 46fr;
  gap: 5rem;
  align-items: center;
  min-height: calc(100vh - 9rem);
  padding-bottom: 5rem;
  position: relative;
  background: radial-gradient(
    ellipse 65% 70% at 28% 52%,
    rgba(200, 52, 106, 0.028) 0%,
    rgba(192, 160, 224, 0.018) 48%,
    transparent 72%
  );
}

/* ─── HERO AMBIENT GLOW ───────────────────────────────────────── */
.hero-text {
  position: relative;
  z-index: 1;
}

/* Lift text above glow layer */
.hero-eyebrow,
.hero-name,
.hero-tagline,
.hero-stats {
  position: relative;
  z-index: 1;
}

/* Glow container anchored to full hero section */
.hero-glow-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero:hover .hero-glow-container { opacity: 1; }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.hero-glow--1 {
  width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(200, 52, 106, 0.20) 0%, transparent 65%);
  top: -120px; left: -120px;
}

.hero-glow--2 {
  width: 580px; height: 580px;
  background: radial-gradient(circle, rgba(210, 100, 160, 0.15) 0%, transparent 65%);
  top: 15%; left: 18%;
}

.hero-glow--3 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(230, 160, 195, 0.12) 0%, transparent 65%);
  bottom: -80px; right: -60px;
}

/* ─── ABOUT AMBIENT GLOW ──────────────────────────────────────── */
.about-intro {
  position: relative;
}

.about-glow-container {
  position: absolute;
  inset: -120px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.about-intro:hover .about-glow-container { opacity: 1; }

.about-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.about-glow--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200, 52, 106, 0.18) 0%, transparent 65%);
  top: -100px; left: -80px;
}

.about-glow--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(210, 100, 160, 0.13) 0%, transparent 65%);
  top: 20%; right: 10%;
}

.about-glow--3 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(230, 160, 195, 0.10) 0%, transparent 65%);
  bottom: -60px; right: -40px;
}

.hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--caption);
  margin-bottom: 1.4rem;
  animation: fadeSlideUp 0.7s ease 0.1s both;
}

.hero-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 7rem;
  font-weight: 300;
  letter-spacing: -4px;
  line-height: 0.92;
  color: var(--text);
  margin-bottom: 2rem;
  animation: fadeSlideUp 0.75s ease 0.22s both;
  position: relative; /* needed for ::after gradient overlay */
}

/* Pastel gradient text fades in on hero hover */
.hero-name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  background: linear-gradient(
    118deg,
    #C8346A  0%,
    #d6b8e8  24%,
    #a8cedd  48%,
    #f2d4c8  72%,
    #C8346A  100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: gradientFlow 9s ease infinite;
  pointer-events: none;
  white-space: inherit;
}

.hero-text:hover .hero-name::after { opacity: 0.88; }

.hero-tagline {
  font-family: 'Jost', sans-serif;
  font-size: 0.93rem;
  line-height: 1.85;
  color: var(--body);
  max-width: 380px;
  animation: fadeSlideUp 0.75s ease 0.38s both;
}

.hero-stats {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  margin-top: 2.8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  animation: fadeSlideUp 0.75s ease 0.52s both;
}

.hero-image {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeSlideUp 1s ease 0.28s both;
  align-self: center;
}

/* ─── GEOMETRIC MOSAIC ────────────────────────────────────────── */
@keyframes mosaicIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 100%;
}

.mosaic-cell {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  cursor: default;
  animation: mosaicIn 0.28s cubic-bezier(0.34, 1.2, 0.64, 1) both;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.4s ease;
  will-change: transform;
}

.mosaic-cell:hover {
  transform: scale(1.14);
  z-index: 3;
  filter: brightness(1.08) saturate(1.12);
}

/* duotone overlay — stays on, softens slightly on hover */
.mosaic-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    hsl(var(--cell-hue, 340), 62%, 68%)  0%,
    hsl(var(--cell-hue, 340), 48%, 82%) 100%
  );
  mix-blend-mode: color;
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.mosaic-cell:hover::after { opacity: 0.55; }


/* Mosaic sliders */
.mosaic-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 0.8rem;
}

.mosaic-control {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mosaic-control-label {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.56rem !important;
  letter-spacing: 0.11em !important;
  text-transform: uppercase !important;
  color: var(--caption) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.mosaic-val {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 0.6rem;
}

.mosaic-control input[type="range"] {
  width: 100%;
  height: 2px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  display: block;
}

.mosaic-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mosaic-control input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.4);
  box-shadow: 0 0 0 4px rgba(200, 52, 106, 0.14);
}

.mosaic-control input[type="range"]:focus-visible {
  outline: none;
}

.mosaic-control input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(200, 52, 106, 0.22);
}

/* ─── STATS ───────────────────────────────────────────────────── */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-n {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: -0.4px;
  color: var(--text);
  line-height: 1;
}

.stat-l {
  font-family: 'Jost', sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  color: var(--caption);
  text-transform: uppercase;
}

/* standalone stats bar (used on work.html etc.) */
.stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2.2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ─── EDITORIAL PROJECT FEATURE (homepage) ────────────────────── */
.project-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.28s;
  margin-bottom: 2.8rem;
  position: relative;
}

.project-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--card-mx, 50%) var(--card-my, 50%),
    rgba(200, 52, 106, 0.06) 0%,
    transparent 60%
  );
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.project-feature:hover::before { opacity: 1; }

.project-feature:hover {
  border-color: var(--border-hover);
  box-shadow: 0 14px 52px rgba(148, 68, 108, 0.16), 0 3px 14px rgba(200, 52, 106, 0.07);
}

/* flipped layout for alternating editorial rhythm */
.project-feature--flip .project-feature-img  { order: 2; }
.project-feature--flip .project-feature-body { order: 1; }

.project-feature-img {
  overflow: hidden;
  min-height: 380px;
  background: var(--surface2);
  position: relative;
}

.project-feature-img-inner {
  width: 100%; height: 100%;
  transition: transform 0.68s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

.project-feature:hover .project-feature-img-inner { transform: scale(1.05); }

.project-feature-img-inner img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.project-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

.project-img-placeholder span {
  font-family: 'Jost', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--caption);
  text-transform: uppercase;
}

.project-feature-body {
  padding: 2.8rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  border-left: 1px solid var(--border);
}

.project-feature--flip .project-feature-body {
  border-left: none;
  border-right: 1px solid var(--border);
}

.project-feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-feature-year {
  font-family: 'Jost', sans-serif;
  font-size: 0.66rem;
  color: var(--caption);
  letter-spacing: 0.08em;
}

.project-feature-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.project-feature-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.project-feature-subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  color: var(--caption);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.project-feature-desc {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--body);
}

.project-feature-cta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  margin-top: 0.2rem;
}

.project-feature-cta-text {
  position: relative;
}

.project-feature-cta-text::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.project-feature:hover .project-feature-cta-text::after { width: 100%; }

.project-feature-cta-arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}

.project-feature:hover .project-feature-cta-arrow { transform: translateX(5px); }

/* ─── STANDARD CARDS (work.html, case studies) ────────────────── */
.card {
  display: block;
  padding: 1.8rem 2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.22s, box-shadow 0.25s, transform 0.22s;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card + .card { margin-top: 1rem; }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
}

.card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.1px;
}

.card-year {
  font-family: 'Jost', sans-serif;
  font-size: 0.66rem;
  color: var(--caption);
  white-space: nowrap;
  padding-top: 0.2rem;
  letter-spacing: 0.05em;
}

.card-desc {
  font-family: 'Jost', sans-serif;
  color: var(--body);
  font-size: 0.88rem;
  line-height: 1.78;
  margin-bottom: 1.2rem;
}

.card-tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

/* ─── EXPLORATION CARDS ───────────────────────────────────────── */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.explore-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.22s, box-shadow 0.25s, transform 0.22s;
}

.explore-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 10px 40px rgba(148, 68, 108, 0.14), 0 2px 10px rgba(200, 52, 106, 0.06);
  transform: translateY(-2px);
}

.explore-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.explore-card-img img { width: 100%; height: 100%; object-fit: cover; }

.explore-card-img-placeholder {
  font-family: 'Jost', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  color: var(--caption);
  text-transform: uppercase;
}

.explore-card-body { padding: 1.2rem 1.4rem 1.4rem; }

.explore-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.explore-card-desc {
  font-family: 'Jost', sans-serif;
  color: var(--body);
  font-size: 0.83rem;
  line-height: 1.72;
  margin-bottom: 1rem;
}

.explore-card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* ─── COMPACT WORK LIST ───────────────────────────────────────── */
.work-list { list-style: none; }

.work-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.work-item:first-child { border-top: 1px solid var(--border); }

.work-item-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  color: var(--text);
  flex-shrink: 0;
}

.work-item-sep { color: var(--border-hover); }

.work-item-desc {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  color: var(--body);
  flex: 1;
}

.work-item-year {
  font-family: 'Jost', sans-serif;
  font-size: 0.64rem;
  color: var(--caption);
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

/* ─── IMPACT BOXES ────────────────────────────────────────────── */
.impact-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2.5rem 0 0; }

.impact-box {
  flex: 1;
  min-width: 130px;
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.impact-n {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.impact-l {
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  color: var(--caption);
  text-transform: uppercase;
}

/* ─── IMAGE PLACEHOLDER ───────────────────────────────────────── */
.img-block {
  background: var(--surface2);
  border: 1px dashed var(--border-hover);
  border-radius: 8px;
  padding: 5rem 2rem;
  text-align: center;
  margin: 2.5rem 0;
  overflow: hidden;
}

.img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.img-block span {
  font-family: 'Jost', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  color: var(--caption);
  text-transform: uppercase;
}

.img-block--short { padding: 3rem 2rem; }
.img-block:has(img) { padding: 0; }

/* ─── CASE STUDY HEADER ───────────────────────────────────────── */
/* ─── TOKEN CASCADE DIAGRAM ───────────────────────────────── */
.token-cascade {
  background: #eef1f8;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  font-family: 'Courier New', monospace;
}

.tc-headers {
  display: grid;
  grid-template-columns: 1fr 2.5rem 1fr 2.5rem 1fr;
  margin-bottom: 1.4rem;
}

.tc-col-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a237e;
}

/* place labels in the node columns only (1, 3, 5) */
.tc-col-label:nth-child(2) { grid-column: 3; }
.tc-col-label:nth-child(3) { grid-column: 5; }

.tc-row {
  display: grid;
  grid-template-columns: 1fr 2.5rem 1fr 2.5rem 1fr;
  align-items: center;
  margin-bottom: 0.75rem;
}

.tc-row--multi {
  align-items: start;
}

.tc-node {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #fff;
  border: 1.5px solid #d0d5e8;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.tc-node--primitive { border-color: #c5cae9; }
.tc-node--semantic  { border-color: #b3bce8; }
.tc-node--component { border-color: #9fa8da; }

.tc-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.tc-label {
  font-size: 0.65rem;
  color: #2c2c4a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.tc-arrow {
  font-size: 1rem;
  color: #6979c9;
  text-align: center;
  justify-self: center;
  align-self: center;
}

.tc-arrow--fork {
  align-self: start;
  padding-top: 0.45rem;
}

.tc-node-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.tc-node-group .tc-node {
  flex: unset;
  width: 100%;
}

.case-header {
  padding-bottom: 0;
  margin-bottom: 0;
}

.case-header h1 {
  font-size: 3rem;
  margin-top: 0.9rem;
  line-height: 1.06;
  letter-spacing: -0.8px;
  max-width: none;
}

.case-header-desc {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.88;
  color: var(--body);
}

/* Cover image — between header text and meta strip */
.case-cover {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--surface2);
  border: 1px dashed var(--border-hover);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
  overflow: hidden;
}

.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-cover span {
  font-family: 'Jost', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  color: var(--caption);
  text-transform: uppercase;
}

/* ─── CASE STUDY META & METRICS ───────────────────────────────── */
.case-meta {
  display: flex;
  gap: 2.4rem;
  flex-wrap: wrap;
  padding: 1.8rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 3.5rem 0 0;
}

.case-meta-item { display: flex; flex-direction: column; gap: 0.35rem; }

/* ─── CASE SECTIONS ───────────────────────────────────────────── */
.case-section {
  padding-top: 4.8rem;
  padding-bottom: 2.8rem;
  margin-bottom: 0;
  border-top: 1px solid var(--border);
}

/* Use on the section immediately following a process-timeline to avoid double border */
.case-section--no-rule {
  border-top: none;
  padding-top: 3.6rem;
}

/* Small uppercase label above each section h2 */
.case-section-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.case-section-label::after {
  content: '\2014';
  font-size: 0.75rem;
  letter-spacing: 0;
  opacity: 0.45;
  font-weight: 400;
}

.case-section h2 {
  margin-bottom: 1.6rem;
  font-size: 1.65rem;
  letter-spacing: -0.3px;
}

/* Accent-colored italic in section titles */
.case-section h2 em {
  font-style: italic;
  color: var(--accent);
}

/* ─── PROCESS TIMELINE ────────────────────────────────────────── */
.process-timeline {
  display: flex;
  flex-direction: column;
  margin: 1.8rem 0;
}

.process-step {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: 1.6rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
}

.process-step:last-child { border-bottom: 1px solid var(--border); }

.process-step-n {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1.1;
  padding-top: 0.05rem;
}

.process-step-body h3 {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.process-step-body p { font-size: 0.86rem; line-height: 1.74; }

/* ─── COLOR PALETTE SWATCHES ──────────────────────────────────── */
.palette-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 1.8rem 0;
}

.palette-row {
  display: grid;
  grid-template-columns: 5rem repeat(13, 1fr);
  gap: 0;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
}

.palette-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--caption);
  text-transform: uppercase;
  padding-right: 0.8rem;
}

.palette-swatch {
  height: 2.6rem;
  position: relative;
}

.palette-stop-label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  color: var(--caption);
  text-align: center;
  margin-top: 0.3rem;
}

.callout {
  border-left: 2px solid var(--accent-border);
  padding: 1rem 1.4rem;
  margin: 1.8rem 0;
  background: linear-gradient(105deg, var(--accent-dim) 0%, rgba(192, 160, 224, 0.05) 100%);
  border-radius: 0 6px 6px 0;
  box-shadow: inset 0 0 0 1px rgba(200, 52, 106, 0.04);
}

.callout p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.68;
}

/* ─── NEXT PROJECT ────────────────────────────────────────────── */
.next-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: opacity 0.18s;
}

.next-project:hover { opacity: 0.58; }

.next-project-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--caption);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.next-project-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
}

.next-project-arrow { font-size: 1.2rem; color: var(--caption); }

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btn-row { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

.btn {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.18s;
  display: inline-block;
}

.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: #a8265a; }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--body);
  background: var(--surface);
}

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

/* ─── FOOTER ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  color: var(--caption);
  letter-spacing: 0.03em;
}

.footer-links { display: flex; gap: 1.4rem; list-style: none; }

.footer-links a {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  color: var(--caption);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--body); }

/* ─── ABOUT PAGE ──────────────────────────────────────────────── */
.about-lead {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5rem;
  align-items: start;
  margin-top: 2.4rem;
}

.about-lead-text h1 {
  font-size: 3.2rem;
  letter-spacing: -0.8px;
  margin-bottom: 2rem;
}

.about-lead-text p {
  font-size: 0.97rem;
  line-height: 1.88;
}

.about-lead-info { padding-top: 0.5rem; }

.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.about-info-block { margin-bottom: 1.8rem; }

.about-info-block:last-child { margin-bottom: 0; }

.how-i-work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}

.how-item {
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.how-item h3 { font-size: 0.95rem; margin-bottom: 0.55rem; }
.how-item p  { font-size: 0.82rem; line-height: 1.72; }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .project-feature { grid-template-columns: 1fr; }

  .project-feature-img,
  .project-feature--flip .project-feature-img { order: -1; min-height: 260px; }

  .project-feature-body,
  .project-feature--flip .project-feature-body {
    order: 1;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid var(--border);
    padding: 2rem 2rem;
  }

  .project-feature-meta { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .project-feature-tags { justify-content: flex-start; }
}

/* ─── TABLET ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .case-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
  }

  .impact-row { flex-wrap: wrap; }
  .impact-box { flex: 1 1 calc(50% - 1rem); }

  .palette-row {
    grid-template-columns: 4rem repeat(13, 1fr);
  }
}

@media (max-width: 760px) {
  /* ── Mobile nav ── */
  nav {
    padding: 1rem 1.4rem;
    position: relative;
  }

  .nav-hamburger {
    display: flex;
    cursor: pointer;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253, 250, 249, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0 1.4rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding-top 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding-bottom 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .nav-links.open {
    max-height: 360px;
    padding-top: 0.6rem;
    padding-bottom: 1rem;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 0;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
  }

  .nav-links a.nav-cta {
    border: none;
    border-radius: 0;
    padding: 0.9rem 0;
    color: var(--accent);
    background: none;
  }

  /* ── Layout ── */
  .page, .page--wide { padding: 7rem 1.4rem 4rem; }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: unset;
    padding-bottom: 3rem;
  }

  .hero-image { order: 1; }
  .hero-image-inner { aspect-ratio: 4 / 3; }
  .hero-name { font-size: 4.2rem; letter-spacing: -2.5px; }

  h1 { font-size: 2rem; }

  .stats { gap: 1.6rem; }
  .case-meta { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .impact-row { flex-direction: column; }
  .impact-box { flex: 1 1 100%; }

  .about-lead { grid-template-columns: 1fr; gap: 2.8rem; }
  .about-meta { grid-template-columns: 1fr; gap: 2rem; }
  .about-lead-text h1 { font-size: 2.4rem; }

  .how-i-work { grid-template-columns: 1fr 1fr; }

  .explore-grid { grid-template-columns: 1fr 1fr; }
  .mosaic-controls { grid-template-columns: 1fr 1fr; gap: 0.6rem; }

  /* ── Case study components ── */
  .process-step { grid-template-columns: 2.2rem 1fr; gap: 1rem; }

  .palette-row {
    grid-template-columns: 3.5rem repeat(13, 1fr);
  }

  .type-table th,
  .type-table td { padding: 0.6rem 0.7rem; font-size: 0.78rem; }

  pre, code { font-size: 0.75rem; }

  footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .how-i-work { grid-template-columns: 1fr; }
  .hero-name { font-size: 3.2rem; letter-spacing: -1.8px; }
  .explore-grid { grid-template-columns: 1fr; }
  .mosaic-controls { grid-template-columns: 1fr 1fr; }

  .case-meta { grid-template-columns: 1fr; }

  .palette-grid { overflow-x: auto; }
  .palette-row  {
    grid-template-columns: 3rem repeat(13, minmax(1.8rem, 1fr));
    min-width: 420px;
  }

  .impact-row { gap: 0.8rem; }

  .process-step { grid-template-columns: 2rem 1fr; gap: 0.8rem; }
}
