/* ============================================================
   Sumeet Pawar — Portfolio
   Design tokens
   ============================================================ */
:root {
  /* Color */
  --paper: #FFFDF9;
  --ink: #1C1712;
  --ink-soft: #6E6459;
  --ink-faint: #A69C8E;
  --card: #FFFFFF;
  --border: #F1E7D4;

  --accent: #3358E0;
  --accent-dark: #1F3C9E;
  --accent-soft: #E6ECFC;

  --civic: #9D5B0B;
  --civic-soft: #FBEEDC;

  --wellness: #187262;
  --wellness-soft: #DEF1EC;

  --status-dot: #1FA463;

  /* Dark sections (hero, "Beyond the work") */
  --noir-bg: #120F0C;
  --noir-ink: #FFFDF9;
  --noir-muted: #9A9388;
  --noir-border: rgba(255, 253, 249, .16);

  --shadow-sm: 0 2px 10px rgba(28, 23, 18, .06);
  --shadow-md: 0 8px 28px rgba(28, 23, 18, .10);
  --shadow-lg: 0 18px 48px rgba(28, 23, 18, .14);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-accent: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --container: 1180px;
  --gap: clamp(1rem, 2vw, 2rem);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-body);
  font-weight: 500;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  width: auto;
  height: auto;
  margin: 0;
  padding: .75rem 1.25rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--ink);
  color: #FFF9EE;
  font-weight: 600;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  color: var(--accent-dark);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.75rem, 2.6vw + 1rem, 2.5rem);
}

.section-lead {
  margin-top: .85rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 56ch;
}
.section-lead + .section-lead { margin-top: .6rem; }

/* ============================================================
   Buttons & pills
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: #FFF9EE;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #4B36FB; box-shadow: var(--shadow-md); }

.btn-secondary {
  background: #FFFFFF;
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { box-shadow: var(--shadow-sm); }

.btn-outline-inverse {
  background: rgba(255, 255, 255, .35);
  color: var(--ink);
  border-color: rgba(28, 23, 18, .18);
}
.btn-outline-inverse:hover { background: rgba(255, 255, 255, .55); }

.icon-arrow { font-size: 1.05em; transition: transform .18s var(--ease); }
.btn:hover .icon-arrow { transform: translate(2px, -2px); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid rgba(28, 23, 18, .08);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-dot);
  box-shadow: 0 0 0 3px rgba(31, 164, 99, .18);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.tag.civic { background: var(--civic-soft); color: var(--civic); }
.tag.wellness { background: var(--wellness-soft); color: var(--wellness); }

/* ============================================================
   Nav
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem clamp(1rem, 3vw, 2rem) 0;
  transition: background-color .3s var(--ease);
}
.nav-pill {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .6rem .6rem 1rem;
  background: rgba(255, 253, 249, .82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(28, 23, 18, .08);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.nav-scrolled .nav-pill {
  background: rgba(255, 253, 249, .95);
  box-shadow: var(--shadow-md);
}
.logo-mark {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
}
.logo-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #FFF3D9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-link {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.mobile-panel {
  display: none;
  max-width: var(--container);
  margin: .6rem auto 0;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.mobile-panel.open { display: block; }
.mobile-panel .nav-link { display: block; padding: .6rem 0; font-size: 1.05rem; }

/* While a dark hero sits behind the nav (toggled in main.js via
   IntersectionObserver on .hero), the pill flips to a translucent dark
   treatment so it reads as part of that scene instead of a light card
   dropped on black. .nav-scrolled still independently adds emphasis
   (opacity/shadow) once scrolled — it must not fight this color scheme,
   since it can be true for almost the entire height of a 100vh hero.
   Removing .nav-over-dark (hero scrolled fully out) falls back to the
   ordinary light nav rules further up automatically. */
.site-nav.nav-over-dark {
  background: #120F0C;
}
.site-nav.nav-over-dark .nav-pill {
  background: rgba(255, 253, 249, .08);
  border-color: rgba(255, 253, 249, .14);
}
.site-nav.nav-over-dark.nav-scrolled .nav-pill {
  background: rgba(18, 15, 12, .78);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}
.site-nav.nav-over-dark .nav-pill .logo-text,
.site-nav.nav-over-dark .nav-pill .nav-link {
  color: rgba(255, 253, 249, .82);
}
.site-nav.nav-over-dark .nav-pill .nav-link:hover,
.site-nav.nav-over-dark .nav-pill .logo-text {
  color: #FFFDF9;
}
.site-nav.nav-over-dark .logo-circle {
  background: #FFFDF9;
  color: #120F0C;
}
.site-nav.nav-over-dark .nav-actions .btn-primary {
  background: #FFFDF9;
  color: #120F0C;
}
.site-nav.nav-over-dark .nav-actions .btn-primary:hover {
  background: #fff;
}
.site-nav.nav-over-dark .nav-toggle {
  background: transparent;
  border-color: rgba(255, 253, 249, .3);
}
.site-nav.nav-over-dark .nav-toggle span,
.site-nav.nav-over-dark .nav-toggle span::before,
.site-nav.nav-over-dark .nav-toggle span::after {
  background: #FFFDF9;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary span.btn-label-full { display: none; }
  .nav-actions .btn-primary {
    padding: .55rem 1.1rem;
    font-size: .85rem;
  }
}

@media (max-width: 420px) {
  .logo-mark .logo-text { display: none; }
}

/* ============================================================
   Hero — dark editorial
   ============================================================ */
.hero {
  background: var(--paper);
  overflow: hidden;
}
.hero-noir {
  position: relative;
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--noir-bg);
  color: var(--noir-ink);
  padding: clamp(3rem, 6vw, 4rem) 0 clamp(4.5rem, 9vw, 6rem);
}

.hero-noir-inner {
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-noir-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--noir-ink);
  font-size: clamp(3rem, 5.5vw + 1.6rem, 7.5rem);
}
.hero-noir-line {
  display: block;
}

.hero-noir-role {
  margin-top: .75rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--noir-muted);
}
.hero-noir-role-accent {
  display: inline-block;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--noir-ink);
  white-space: nowrap;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.hero-noir-role-accent.is-swapping {
  opacity: 0;
  transform: translateY(6px);
}

.hero-noir-sub {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--noir-muted);
  max-width: 46ch;
}

.hero-noir-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}
.btn-invert {
  background: var(--noir-ink);
  color: var(--noir-bg);
  border-color: transparent;
}
.btn-invert:hover {
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--noir-ink);
  border: 1px solid var(--noir-border);
}
.btn-ghost-dark:hover {
  background: rgba(255, 253, 249, .08);
  border-color: rgba(255, 253, 249, .4);
}

.hero-noir-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: .85rem;
  font-weight: 500;
  color: var(--noir-muted);
}
.status-dot-plain {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-dot);
  box-shadow: 0 0 0 3px rgba(31, 164, 99, .25);
}

.hero-noir-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--noir-muted);
}
.hero-noir-scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255, 253, 249, .5), transparent);
  animation: scroll-drift 2.2s ease-in-out infinite;
}
@keyframes scroll-drift {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50% { transform: translateY(6px); opacity: 1; }
}

@media (max-width: 620px) {
  .hero-noir {
    /* Desktop pins the hero to ~viewport height on purpose. On mobile,
       compact content (short name/role/sub + stacked buttons) centered in
       that same forced height leaves a large dead gap above and below it
       on tall phones. Letting height come from content instead removes
       that gap without capping or shrinking anything intentionally sized. */
    min-height: 0;
  }
  .hero-noir-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }
  .hero-noir-actions .btn {
    width: 100%;
  }
  .hero-noir-scroll {
    position: static;
    transform: none;
    margin-top: 2rem;
  }
  .hero-noir-scroll-line {
    height: 20px;
  }
}

.work-thumb img,
.about-photo img,
.cs-cover img,
.solution-card .placeholder-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  text-align: center;
  padding: 1.5rem;
  background:
    repeating-linear-gradient(135deg, rgba(28,23,18,.05) 0 2px, transparent 2px 14px),
    #FBF6EA;
  color: var(--ink-soft);
  border: 1.5px dashed rgba(28, 23, 18, .18);
}
.placeholder-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(28, 23, 18, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.placeholder-label {
  font-weight: 600;
  font-size: .85rem;
  color: var(--ink);
}
.placeholder-caption {
  font-size: .78rem;
  color: var(--ink-soft);
  max-width: 22ch;
}

/* Reveal-on-scroll system. Deliberately no `forwards` fill-mode: the
   .is-visible rule declares the resting state as plain (non-animation)
   styles, so once the entrance animation finishes the element is governed
   by ordinary CSS again — this matters for elements like .work-card that
   also have their own :hover transform, which a forwards-filled animation
   would otherwise permanently block. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: reveal-up .7s var(--ease);
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* scale variant — for a photo "developing into view" rather than sliding up */
.reveal.reveal-scale { transform: scale(.95); }
.reveal.reveal-scale.is-visible {
  transform: scale(1);
  animation: reveal-scale-in .8s var(--ease);
}
@keyframes reveal-scale-in {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
}

/* ============================================================
   How I Work
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  position: relative;
}
.process-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  position: relative;
}
.process-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.process-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1rem;
}
.process-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.process-card p { color: var(--ink-soft); font-size: .96rem; }

.process-connector {
  display: none;
}
@media (min-width: 720px) {
  .process-grid::before {
    content: '';
    position: absolute;
    top: 2.6rem;
    left: 16.5%;
    right: 16.5%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px);
    z-index: 0;
  }
}

@media (max-width: 720px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   How I Work — whiteboard / sticky notes (homepage only;
   .process-grid above stays in use for Wellness Express's
   "Learnings" section)
   ============================================================ */
.board-canvas {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: #F6F6F1;
  background-image: radial-gradient(rgba(28, 23, 18, .16) 1px, transparent 1.5px);
  background-size: 22px 22px;
}
.board-inner {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem) clamp(3.5rem, 7vw, 5rem);
}

.sticky-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: 1rem;
}
.sticky-note {
  --rot: 0deg;
  position: relative;
  padding: 1.85rem 1.6rem 1.6rem;
  border-radius: 3px;
  box-shadow: 0 14px 24px rgba(28, 23, 18, .12), 0 2px 6px rgba(28, 23, 18, .08);
  transform: rotate(var(--rot));
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.sticky-note::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 16px 16px;
  border-color: transparent transparent rgba(28, 23, 18, .14) transparent;
}
.sticky-note:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.03);
  box-shadow: 0 20px 32px rgba(28, 23, 18, .16), 0 4px 10px rgba(28, 23, 18, .1);
  z-index: 5;
}
.sticky-grid .sticky-note:nth-child(1) { --rot: -2.5deg; }
.sticky-grid .sticky-note:nth-child(2) { --rot: 1.8deg; margin-top: 1.1rem; }
.sticky-grid .sticky-note:nth-child(3) { --rot: -1.3deg; }

/* Entrance: notes drop onto the board, landing at their own resting tilt.
   No `forwards` fill (see .reveal comment above) so :hover keeps working
   normally once a note has landed. */
.sticky-note.reveal {
  opacity: 0;
  transform: translateY(24px) scale(.92) rotate(var(--rot));
}
.sticky-note.reveal.is-visible {
  opacity: 1;
  transform: rotate(var(--rot));
  animation: sticky-drop .5s var(--ease);
}
@keyframes sticky-drop {
  from { opacity: 0; transform: translateY(24px) scale(.92) rotate(var(--rot)); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(var(--rot)); }
}
.sticky-note.note-yellow { background: #FDE68A; }
.sticky-note.note-pink { background: #FBCFE8; }
.sticky-note.note-mint { background: #BBF0D4; }

.sticky-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.8rem;
  color: rgba(28, 23, 18, .45);
  margin-bottom: .85rem;
}
.sticky-note h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.sticky-note p { color: rgba(28, 23, 18, .72); font-size: .95rem; }

.board-deco {
  position: absolute;
  color: var(--ink-faint);
  z-index: 1;
  pointer-events: none;
}
.deco-cursor {
  top: 7%;
  right: 10%;
  display: flex;
  align-items: flex-start;
  gap: .3rem;
  transform: rotate(-6deg);
  color: var(--accent);
}
.deco-cursor svg { flex-shrink: 0; fill: var(--accent); }
.cursor-tag {
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 4px 4px 4px 0;
  white-space: nowrap;
  margin-top: .6rem;
}
.deco-select {
  top: 38%;
  right: 6%;
  left: auto;
  width: 90px;
  height: 60px;
  border: 1.5px dashed rgba(51, 88, 224, .45);
  border-radius: 4px;
  transform: rotate(-3deg);
}
.deco-shapes { bottom: 8%; left: 4%; transform: rotate(4deg); }
.deco-comment { bottom: 12%; right: 7%; transform: rotate(5deg); }
.deco-pencil { top: 5%; left: 46%; transform: rotate(18deg); }

.board-zoom {
  position: absolute;
  bottom: clamp(.85rem, 2.5vw, 1.25rem);
  right: clamp(.85rem, 2.5vw, 1.25rem);
  display: flex;
  align-items: center;
  gap: .55rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: .4rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  z-index: 3;
}

@media (max-width: 720px) {
  .sticky-grid { grid-template-columns: 1fr; }
  .sticky-grid .sticky-note:nth-child(2) { margin-top: 0; }
  .board-deco, .board-zoom { display: none; }
}

/* ============================================================
   Selected Work
   ============================================================ */
.work-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.work-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.work-card.reverse .work-thumb { order: 2; }
.work-card.reverse .work-info { order: 1; }

.work-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.work-thumb .placeholder { border-radius: var(--radius-md); }

.work-info .tag { margin-bottom: 1rem; }
.work-title { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); margin-bottom: .75rem; }
.work-desc { color: var(--ink-soft); font-size: 1.02rem; max-width: 44ch; }
.work-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}

@media (max-width: 780px) {
  .work-card, .work-card.reverse { grid-template-columns: 1fr; }
  .work-card.reverse .work-thumb, .work-card.reverse .work-info { order: initial; }
}

/* ============================================================
   Beyond the work (dark, editorial — matches .hero-noir's palette)
   ============================================================ */
.about-noir {
  background: var(--noir-bg);
  color: var(--noir-ink);
}
.about-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.about-photo-wrap {
  position: relative;
  padding-left: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.about-photo {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 10px solid var(--noir-ink);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .45);
}
.about-photo .placeholder { border-radius: var(--radius-lg); }
.about-photo img { transition: transform .5s var(--ease); }
.about-photo:hover img { transform: scale(1.04); }

.about-annotation {
  position: absolute;
  z-index: 2;
  top: clamp(1rem, 3vw, 2rem);
  left: 0;
  width: clamp(6.5rem, 13vw, 8rem);
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--noir-muted);
  transform: rotate(-5deg);
  transform-origin: left top;
}
.about-annotation-arrow {
  display: block;
  margin: .3rem 0 0 1.75rem;
  color: var(--noir-muted);
}
.about-location {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--noir-muted);
}

.about-noir .section-kicker { color: var(--noir-muted); }
.about-title {
  margin-top: .6rem;
  font-size: clamp(2.2rem, 2.6vw + 1.6rem, 3.4rem);
  line-height: 1.15;
}
.about-noir .section-lead { color: var(--noir-muted); }

.about-noir .about-bio p { color: var(--noir-muted); font-size: 1.05rem; margin-bottom: 1.5rem; max-width: 62ch; }
.about-noir .about-bio strong { color: var(--noir-ink); }

.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid var(--noir-border);
}
.about-meta-col:first-child {
  border-right: 1px solid var(--noir-border);
  padding-right: clamp(1.25rem, 2.5vw, 1.75rem);
}
.about-meta-label {
  display: block;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--noir-muted);
  margin-bottom: .7rem;
}
.about-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
}
.about-noir .experience-role { color: var(--noir-ink); font-weight: 600; font-size: .96rem; }
.about-noir .experience-org { color: var(--noir-muted); font-size: .85rem; }
.about-noir .experience-date { color: var(--noir-muted); font-size: .8rem; white-space: nowrap; }

@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .about-photo-wrap { padding-left: 0; }
  .about-annotation { display: none; }
  .about-location {
    position: static;
    display: block;
    margin-top: 1rem;
  }
  .about-meta { grid-template-columns: 1fr; }
  .about-meta-col:first-child {
    border-right: none;
    padding-right: 0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--noir-border);
  }
}

/* ============================================================
   Beyond Design — auto-scrolling gallery
   ============================================================ */
.gallery-section { overflow: hidden; }
.gallery-scroll {
  margin-top: clamp(2rem, 4vw, 3rem);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.gallery-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: gallery-scroll 36s linear infinite;
}
.gallery-scroll:hover .gallery-track,
.gallery-scroll:focus-within .gallery-track {
  animation-play-state: paused;
}
@keyframes gallery-scroll {
  to { transform: translateX(-50%); }
}
.gallery-item {
  flex: 0 0 auto;
  width: clamp(200px, 22vw, 280px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gallery-item:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-lg);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter .3s var(--ease);
}
.gallery-item:hover img { filter: brightness(1.08); }
.gallery-item .placeholder { border-radius: 0; }

@media (max-width: 600px) {
  .gallery-item { width: 68vw; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--border);
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.footer-cta {
  font-size: clamp(1.8rem, 3vw + 1rem, 3rem);
  max-width: 16ch;
}
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}
.footer-meta {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(28, 23, 18, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  color: var(--ink);
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { display: inline-block; padding: .6rem 0; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }

/* ============================================================
   Case study pages
   ============================================================ */
.cs-hero { padding-top: clamp(2rem, 5vw, 3.5rem); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--ink); }

.cs-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.cs-title { font-size: clamp(2rem, 3vw + 1rem, 3.25rem); max-width: 18ch; }
.cs-dek { margin-top: 1rem; color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; }

.cs-cover {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
}
.cs-cover .placeholder { border-radius: var(--radius-lg); }

.cs-section { padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--border); }
.cs-section:last-of-type { border-bottom: none; }
.cs-section h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); margin-bottom: 1.25rem; }
.cs-body { color: var(--ink-soft); font-size: 1.05rem; max-width: 68ch; }
.cs-body + .cs-body { margin-top: 1rem; }

.location-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}

.research-figure {
  margin: 1.5rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: var(--card);
}
.research-figure + .research-figure { margin-top: 1.25rem; }
.research-figure + .cs-body { margin-top: 1.5rem; }
.research-figure.plain {
  border: none;
  box-shadow: none;
  background: transparent;
}

.outcome-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.outcome-image img { width: 100%; height: auto; display: block; }
@media (max-width: 780px) {
  .outcome-layout { grid-template-columns: 1fr; }
  .outcome-image { order: -1; max-width: 280px; margin: 0 auto; }
}
.research-figure img { width: 100%; height: auto; display: block; }
.research-figure .placeholder { border-radius: 0; }
.research-figure figcaption {
  padding: .85rem 1.5rem;
  font-size: .88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
}

/* Two-column sub-statements, e.g. "The Challenge" / "The Goal" */
.problem-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
.problem-cols h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.problem-cols p { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 640px) {
  .problem-cols { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Icon circle, used for findings + timeline steps */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wellness);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle svg { width: 26px; height: 26px; }

/* Horizontal evolution timeline */
.timeline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 1rem;
  margin-top: 2rem;
  position: relative;
}
.timeline-step {
  flex: 1 1 140px;
  min-width: 130px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-step .icon-circle {
  width: 64px;
  height: 64px;
  background: var(--wellness-soft);
  color: var(--wellness);
  margin-bottom: .85rem;
}
.timeline-step .icon-circle svg { width: 28px; height: 28px; }
.timeline-step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.timeline-step p { font-size: .82rem; color: var(--ink-soft); max-width: 20ch; }

/* Offline vs online journey comparison */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.journey-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  background: var(--card);
}
.journey-card.tinted { background: var(--wellness-soft); border-color: transparent; }
.journey-card h3 { font-size: 1.15rem; margin-bottom: 1.5rem; }
.journey-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem 0;
  margin-bottom: 1.5rem;
}
.journey-steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink-faint) 0 5px, transparent 5px 9px);
  opacity: .5;
  z-index: 0;
}
.journey-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 .25rem;
}
.journey-step .icon-circle {
  width: 44px;
  height: 44px;
  background: #fff;
  color: var(--wellness);
  border: 1px solid var(--border);
  margin-bottom: .5rem;
}
.journey-step .icon-circle svg { width: 20px; height: 20px; }
.journey-step span { font-size: .78rem; color: var(--ink-soft); line-height: 1.25; }
.journey-limitations {
  background: rgba(255,255,255,.6);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}
.journey-card:not(.tinted) .journey-limitations { background: var(--paper); }
.journey-limitations strong { display: block; margin-bottom: .5rem; font-size: .92rem; }
.journey-limitations ul { display: flex; flex-direction: column; gap: .35rem; }
.journey-limitations li { font-size: .88rem; color: var(--ink-soft); padding-left: 1rem; position: relative; }
.journey-limitations li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-faint);
}
@media (max-width: 780px) {
  .journey-grid { grid-template-columns: 1fr; }
}

/* Below ~620px, 5 columns of icon+label can't shrink below their text's
   min-content width (words like "pharmacy"/"medicines" won't break), so
   the row refuses to narrow past ~300px and overflows the card/page on
   phone widths. Reflowing to 3 columns (2 rows) gives each label enough
   room to wrap cleanly instead of forcing overflow. The connector line
   assumes a single row, so it's dropped rather than adapted per-row. */
@media (max-width: 620px) {
  .journey-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem .5rem;
  }
  .journey-steps::before {
    display: none;
  }
}

/* Key Insights: observations -> what it means */
.insights-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}
.insights-col h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.insight-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 4.5rem;
  border-top: 1px solid var(--border);
  padding: 1.1rem 0;
}
.insights-col:first-child .insight-row { justify-content: space-between; }
.insight-row p { color: var(--ink-soft); font-size: .98rem; }
.insight-row .row-arrow { color: var(--ink-faint); flex-shrink: 0; }
@media (max-width: 780px) {
  .insights-table { grid-template-columns: 1fr; gap: 0; }
  .insights-col + .insights-col h3 { margin-top: 1.5rem; }
  .insights-col:first-child .insight-row .row-arrow { display: none; }
}

.persona-grid, .insight-grid, .solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.persona-grid { grid-template-columns: repeat(2, 1fr); }

.persona-card, .insight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.insight-card .icon-circle { margin-bottom: 1.1rem; }
.process-grid.wellness .process-num { color: var(--wellness); }
.persona-card h3, .insight-card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.persona-card p, .insight-card p { color: var(--ink-soft); font-size: .95rem; }

.solution-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.solution-card .placeholder-block {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.solution-card .placeholder-block .placeholder { border-radius: var(--radius-md); }
.solution-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.solution-card p { color: var(--ink-soft); font-size: .93rem; }

.pull-quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  line-height: 1.35;
  max-width: 26ch;
  padding: 2rem 0;
}
.pull-quote.civic { color: var(--civic); }
.pull-quote.wellness { color: var(--wellness); }
.pull-quote.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.reflection-quote {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 60ch;
}
.reflection-quote + .reflection-quote { margin-top: 1.25rem; }

.next-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 5vw, 4rem);
}
.next-project-label { color: var(--ink-soft); font-size: .95rem; }
.next-project-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  font-size: clamp(1.6rem, 2vw + 1.2rem, 2.3rem);
  margin-top: .35rem;
}

@media (max-width: 780px) {
  .persona-grid, .insight-grid, .solution-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) and (min-width: 781px) {
  .insight-grid, .solution-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; }
.hide-mobile { }
@media (max-width: 600px) {
  .hide-mobile { display: none; }
}
