/* ═══════════════════════════════════════════════════════
   Robert Luria — styles.css
   Cormorant Garamond (display) + Sora (body)
   Warm editorial · Clean · Regulated-environment portfolio
═══════════════════════════════════════════════════════ */

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

/* ── TOKENS ── */
:root {
  --bg:           #F7F5F2;
  --bg-warm:      #EDE8E0;
  --white:        #FFFFFF;
  --ink:          #18140F;
  --ink-mid:      #3A3530;
  --ink-light:    #8A7E72;
  --rule:         #DDD4C5;
  --rule-dark:    #C4BAB0;
  --serif:        'Cormorant Garamond', Georgia, serif;
  --body:         'Sora', system-ui, sans-serif;
  --sans:         'Sora', system-ui, sans-serif;   /* alias — resolves var(--sans) references */
  --teal:         #005E50;
  --teal-light:   #EAF3F1;
  --amber:        #8B5E1A;
  --amber-light:  #FDF4E7;
  --accent-light: #EDE8E2;
  --max:          1080px;
  --pad:          clamp(24px, 5vw, 64px);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink-mid);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
hr { border: none; border-top: 1px solid var(--rule); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade { opacity: 0; animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.f1 { animation-delay: 0.05s; }
.f2 { animation-delay: 0.18s; }
.f3 { animation-delay: 0.32s; }
.f4 { animation-delay: 0.48s; }

/* ── LAYOUT ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
section {
  padding: clamp(56px,8vw,96px) 0;
  border-bottom: 1px solid var(--rule);
}
section:last-of-type { border-bottom: none; }

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  height: 60px;
}
.nav-logo {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.18s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s cubic-bezier(0.22,1,0.36,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }

/* ══════════════════════════════════════════════
   TYPOGRAPHY SYSTEM
══════════════════════════════════════════════ */
h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.8rem, 4.2vw, 4.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.06em;
  color: var(--ink);
  font-style: normal;
}
h1 em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.06em;
  color: inherit;
}

/* About page — h1 sits inside a narrower 2-column body so needs calibrated sizing */
.about-body h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.8rem, 4.2vw, 4.5rem);
  max-width: 800px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.06em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.about-body h1 em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h2 em { font-style: italic; }

h3 {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

p {
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 1.75;
  max-width: 640px;
}
p + p { margin-top: 16px; }

/* Label — small uppercase */
.label {
  font-family: var(--body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 20px;
  display: block;
}

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.24s cubic-bezier(0.22,1,0.36,1), opacity 0.18s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 2rem var(--pad);
  border-top: 1px solid var(--rule);
  overflow-y: auto;
}
.nav-mobile-menu a {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-light);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.18s;
  display: block;
  text-decoration: none;
}
.nav-mobile-menu a:hover,
.nav-mobile-menu a.active { color: var(--ink); }
.nav-mobile-menu a:last-child { border-bottom: none; }


.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--teal);
  border-color: var(--teal);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-dark);
}
.btn-secondary:hover {
  border-color: var(--ink);
}

/* ══════════════════════════════════════════════
   HERO — HOMEPAGE
══════════════════════════════════════════════ */
.hero {
  padding-top: clamp(64px, 12vw, 112px);
  padding-bottom: 0;
  border-bottom: none;
}
.hero-intro {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-light);
  margin-bottom: 32px;
}
.hero h1 {
  margin-bottom: 2rem;
  max-width: 900px;
}
.hero-perspective {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 600px;
  margin-bottom: 48px;
  font-weight: 300;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--rule);
}

/* ══════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: clamp(32px, 5vw, 56px) 0;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--ink-light);
  line-height: 1.55;
  max-width: 220px;
}

/* ══════════════════════════════════════════════
   POV STRIP (What I'm thinking about)
══════════════════════════════════════════════ */
.pov-strip {
  background: var(--bg-warm);
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.pov-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}
.pov-label-col .label { margin-bottom: 0; }
.pov-label-col p {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin-top: 10px;
  max-width: 100%;
  line-height: 1.6;
}
.pov-content h3 {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pov-content p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  max-width: 560px;
  line-height: 1.78;
}
.pov-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rule);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s;
}
.pov-dot.active { background: var(--ink); }
.pov-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.pov-dots { display: flex; gap: 8px; }
.pov-arrows { display: flex; gap: 8px; }
.pov-arrow {
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink-mid);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
  line-height: 1;
}
.pov-arrow:hover { border-color: var(--ink); color: var(--ink); }
.pov-panel { display: none; }
.pov-panel.active {
  display: block;
  animation: fadeUp 0.45s cubic-bezier(0.22,1,0.36,1) both;
}

/* ══════════════════════════════════════════════
   CAPABILITIES
══════════════════════════════════════════════ */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 0;
}
.cap-item {
  background: var(--bg);
  padding: 2rem 1.75rem;
  transition: background 0.22s;
}
.cap-item:hover { background: var(--bg-warm); }
.cap-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--rule-dark);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.cap-title {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.cap-desc {
  font-size: 0.76rem;
  color: var(--ink-light);
  line-height: 1.68;
}

/* ══════════════════════════════════════════════
   WORK GRID (homepage cards)
══════════════════════════════════════════════ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  background: transparent;
  border: none;
}
.work-card {
  background: var(--bg);
  display: block;
  color: var(--ink);
  transition: background 0.25s;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.work-card:hover { background: var(--bg-warm); }
.work-card-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  filter: grayscale(0.08);
  transition: filter 0.35s, transform 0.44s cubic-bezier(0.22,1,0.36,1);
}
.work-card:hover .work-card-img {
  filter: grayscale(0);
  transform: scale(1.025);
}
.work-card-tags {
  padding-left: 1.75rem;
  padding-top: 1.25rem;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.work-card-title {
  padding: 0 1.75rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.28;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.work-card:hover .work-card-title { color: var(--teal); }
.work-card-desc {
  padding: 0 1.75rem;
  font-size: 0.78rem;
  color: var(--ink-light);
  line-height: 1.72;
  margin-bottom: 0.75rem;
  max-width: 100%;
}
.work-card-metric {
  display: block;
  padding: 0 1.75rem 1rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.work-card-cta {
  display: inline-block;
  margin: 4px 1.75rem 1.5rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  border-bottom: 1px solid var(--rule-dark);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.work-card:hover .work-card-cta { color: var(--teal); border-color: var(--teal); }

/* Prevent image drag/save */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
a img { pointer-events: none; }
/* work card text already styled above with padding */

/* ══════════════════════════════════════════════
   WRITING LIST
══════════════════════════════════════════════ */
.writing-list { margin-top: 0; }
.writing-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.writing-item:last-child { border-bottom: none; }
.writing-item-img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
  margin-bottom: 1.25rem;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  transition: opacity 0.25s;
}
.writing-item:hover .writing-item-img { opacity: 0.9; }
.writing-tag {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
}
.writing-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 8px;
  display: block;
  transition: color 0.2s;
}
.writing-item:hover .writing-title { color: var(--teal); }
.writing-thesis {
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.75;
  max-width: 600px;
  display: block;
}
.writing-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  transition: color 0.2s;
}
.writing-item:hover .writing-link { color: var(--ink); }

/* ══════════════════════════════════════════════
   ADVISORY BLOCK
══════════════════════════════════════════════ */
.advisory-block {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(36px,5vw,56px) clamp(32px,5vw,56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.advisory-block h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--bg);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.advisory-block p {
  color: rgba(247,245,242,0.55);
  font-size: 0.82rem;
  max-width: 460px;
  line-height: 1.7;
}
.advisory-link {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,245,242,0.45);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.advisory-link:hover { color: var(--bg); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--ink-light);
  letter-spacing: 0.06em;
}
footer a { color: var(--ink-light); transition: color 0.18s; }
footer a:hover { color: var(--ink); }

/* ══════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════ */
.about-hero {
  padding: clamp(56px, 10vw, 96px) 0 clamp(48px, 8vw, 80px);
  border-bottom: 1px solid var(--rule);
}
.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 5rem;
  align-items: start;
  margin-top: 2rem;
}
.about-body > p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.8;
  max-width: 100%;
}
.about-headshot {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 1px solid var(--rule);
}

/* Bridge note */
.bridge-note {
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.bridge-note .label { color: var(--teal); margin-bottom: 10px; }
.bridge-note p {
  font-size: 0.82rem;
  color: #1e4a44;
  line-height: 1.75;
  max-width: 100%;
}

/* Arc grid */
.arc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 48px;
}
.arc-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.arc-item:nth-child(odd):last-child,
.arc-item:nth-last-child(1) { border-bottom: none; }
.arc-year {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.04em;
  padding-top: 3px;
  min-width: 58px;
  flex-shrink: 0;
}
.arc-detail h3 { margin-bottom: 6px; font-size: 0.9rem; }
.arc-detail p { font-size: 0.78rem; color: var(--ink-light); max-width: 100%; line-height: 1.6; }

/* Diff grid */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.diff-item {
  background: var(--bg);
  padding: 1.75rem;
  transition: background 0.2s;
}
.diff-item:hover { background: var(--bg-warm); }
.diff-item h3 { font-size: 0.9rem; margin-bottom: 8px; }
.diff-item p { font-size: 0.78rem; color: var(--ink-light); line-height: 1.7; max-width: 100%; }

/* Digital health bridge section */
.bridge-transfer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}
.bridge-transfer p { max-width: 100%; font-size: 0.9rem; }
.bridge-transfer p + p { margin-top: 16px; }

/* Logos grid */
.logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.logos-grid img {
  height: 28px;
  width: auto;
  max-width: 120px;
  opacity: 0.45;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}
.logos-grid img:hover { opacity: 0.75; filter: grayscale(0); }

/* Endorsements */
.endorsement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 0;
}
.endorsement {
  background: var(--bg);
  padding: 2.5rem;
  transition: background 0.2s;
}
.endorsement:hover { background: var(--bg-warm); }
.endorsement blockquote {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
.endorsement cite {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ink-light);
  line-height: 1.55;
}
.endorsement cite strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

/* ══════════════════════════════════════════════
   WORK PAGE
══════════════════════════════════════════════ */
.case-study-block {
  padding: 16px 0 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 60px;
}
.case-study-block:last-child { border-bottom: none; }

.case-number {
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: -12px;
  font-weight: 400;
  letter-spacing: -0.04em;
}
.case-header {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
}
.case-client {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  margin-bottom: 10px;
}
.case-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.case-subtitle {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.72;
  margin-bottom: 1.5rem;
  max-width: 100%;
}
.case-cover {
  width: 100%;
  border: 1px solid var(--rule);
  display: block;
}
.case-tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.case-tag {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--rule);
  color: var(--ink-light);
}

/* KPI row */
.kpi-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 2rem 0;
}
.kpi-val {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.kpi-label {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
}

/* Figure */
.fig { margin: 2.5rem 0; }
.fig-header {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}
.fig-label {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-light);
}
.fig-title { font-size: 0.88rem; font-weight: 500; color: var(--ink); }
.fig img {
  width: 100%;
  border: 1px solid var(--rule);
  display: block;
}
.fig-caption {
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-top: 12px;
  line-height: 1.65;
}

/* Role & deliverables */
.role-deliverables {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
}
.rd-label {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  margin-bottom: 6px;
}
.rd-val { font-size: 0.85rem; color: var(--ink); line-height: 1.5; }

/* Section head (label + body 2-col) */
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2rem;
}
.section-head-body p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.8;
  max-width: 100%;
}
.section-head-body p + p { margin-top: 14px; }

/* Reframe artifact */
.reframe { margin: 3rem 0; }
.reframe-title {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  margin-bottom: 14px;
}
.reframe-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.reframe-brief {
  background: #EEECEA;
  padding: 2rem 2.25rem;
}
.reframe-brief .label { color: var(--ink-light); margin-bottom: 12px; }
.reframe-brief p {
  font-size: 0.92rem;
  color: var(--ink);
  font-style: italic;
  line-height: 1.7;
  max-width: 100%;
}
.reframe-new {
  background: var(--teal-light);
  padding: 2rem 2.25rem;
}
.reframe-new .label { color: var(--teal); margin-bottom: 12px; }
.reframe-new p {
  font-size: 0.92rem;
  color: #1e4a44;
  font-weight: 500;
  line-height: 1.7;
  max-width: 100%;
}

/* Decision log */
.decision-log {
  margin: 3rem 0;
  border-top: 2px solid var(--ink);
}
.dl-header {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink);
}
.dl-header span {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding-right: 1.5rem;
}
.dl-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.dl-row:last-child { border-bottom: none; }
.dl-cell {
  font-size: 0.8rem;
  line-height: 1.6;
  padding-right: 0.75rem;
  color: var(--ink-mid);
}
.dl-cell.point { color: var(--ink); font-weight: 500; }
.dl-cell.chosen { color: var(--teal); font-weight: 500; }

/* Research chain */
.r-chain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 3rem 0;
}
.r-step { padding: 1.75rem; }
.r-step:nth-child(1) { background: #EEECEA; }
.r-step:nth-child(2) { background: var(--accent-light); }
.r-step:nth-child(3) { background: var(--teal-light); }
.r-step .label { margin-bottom: 10px; }
.r-step:nth-child(3) .label { color: var(--teal); }
.r-step-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.35;
}
.r-step p {
  font-size: 0.78rem;
  color: var(--ink-mid);
  line-height: 1.68;
  max-width: 100%;
}

/* Transferable */
.transferable {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--amber-light);
  border-left: 3px solid var(--amber);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.transferable .label {
  color: var(--amber);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 1px;
  margin-bottom: 0;
}
.transferable p {
  font-size: 0.85rem;
  color: #5a3e10;
  line-height: 1.7;
  max-width: 100%;
}

/* Hindsight */
.hindsight {
  border: 1px solid var(--rule);
  padding: 2.25rem 2.5rem;
  margin: 2rem 0;
}
.hindsight .label { margin-bottom: 14px; }
.hindsight p {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.75;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Case tabs */
.case-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.case-tabs::-webkit-scrollbar { display: none; }
.case-tab {
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-light);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.18s, border-color 0.18s;
  user-select: none;
}
.case-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.case-tab:hover { color: var(--ink); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Work page filter */
.work-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  font-family: var(--body);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 8px 18px;
  border: 1px solid var(--rule);
  cursor: pointer;
  background: transparent;
  color: var(--ink-mid);
  letter-spacing: 0.05em;
  transition: all 0.18s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ══════════════════════════════════════════════
   WRITING PAGE (full)
══════════════════════════════════════════════ */
.writing-full-list { margin-top: 2rem; }
.writing-full-card {
  display: block;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.18s;
}
.writing-full-card:last-child { border-bottom: none; }
.wf-img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
  margin-bottom: 1.5rem;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  transition: opacity 0.25s;
}
.writing-full-card:hover .wf-img { opacity: 0.9; }
.desk-break { display: block; }
.mob-break { display: none; }
.wf-meta {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 10px;
}
.wf-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.writing-full-card:hover .wf-title { color: var(--teal); }
.wf-excerpt {
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 1.25rem;
}
.wf-link {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.writing-full-card:hover .wf-link { gap: 0.6rem; }

/* ══════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 5rem;
}
.form-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.form-sub {
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.72;
  margin-bottom: 2rem;
  max-width: 100%;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--body);
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0.75rem 1rem;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  transition: border-color 0.18s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--ink); }
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-sidebar { }
.avail-block {
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.avail-status { font-size: 0.85rem; font-weight: 600; color: var(--teal); margin-bottom: 6px; }
.avail-detail { font-size: 0.78rem; color: #1e4a44; line-height: 1.65; }
.sidebar-block { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.sidebar-block:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-block h4 {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 12px;
}
.contact-links { display: flex; flex-direction: column; }
.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-mid);
  transition: color 0.18s;
}
.contact-link:last-child { border-bottom: none; }
.contact-link:hover { color: var(--teal); }
.link-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.form-success {
  background: var(--teal-light);
  border: 1px solid var(--teal);
  padding: 1.25rem 1.5rem;
  font-size: 0.88rem;
  color: #1e4a44;
  line-height: 1.65;
  margin-top: 1rem;
  display: none;
}

/* ══════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════ */
.page-hero {
  padding: clamp(56px, 10vw, 100px) 0 clamp(48px, 8vw, 72px);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.page-eyebrow {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
  display: block;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 4.5rem);
  margin-bottom: 1.5rem;
  max-width: 800px;
}
.page-hero .lead {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.82;
  max-width: 560px;
  font-weight: 300;
}

/* Featured label row */
.featured-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
}
.featured-label-row a {
  font-size: 0.78rem;
  color: var(--ink-light);
  transition: color 0.18s;
}
.featured-label-row a:hover { color: var(--ink); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-hero-inner { grid-template-columns: 1fr; }
  .about-headshot { max-width: 240px; }
  .bridge-transfer { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .advisory-block { flex-direction: column; align-items: flex-start; }
  .case-header { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .stats { grid-template-columns: 1fr; }
  .desk-break { display: none; }
  .stat { border-right: none; border-bottom: 1px solid var(--rule); }
  .stat:last-child { border-bottom: none; }
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    background: transparent;
    border: none;
  }
  .endorsement-grid { grid-template-columns: 1fr; }
  .arc-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .pov-inner { grid-template-columns: 1fr; gap: 2rem; }
  .pov-content h3 { font-size: 1.5rem; }
  .pov-content p { max-width: 100%; }
  .role-deliverables { grid-template-columns: repeat(2, 1fr); }
  .reframe-cols { grid-template-columns: 1fr; }
  .dl-header { display: none; }
  .dl-row { grid-template-columns: 1fr; gap: 8px; }
  .r-chain { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .writing-item { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .caps-grid { grid-template-columns: 1fr; }
  .role-deliverables { grid-template-columns: 1fr; }
  nav { padding: 0 1.5rem; }

  /* ── HOME: HERO ── */
  .hero { padding-top: 36px; }
  .hero-intro { margin-bottom: 14px; }
  .hero h1 { margin-bottom: 1rem; font-size: 2.2rem; }
  .hero h1 br { display: none; }
  .about-body h1 { font-size: 2.2rem; }
  .page-hero h1 { font-size: 2.2rem; }
  h1 { font-size: 2.2rem; }
  .mob-break { display: block; }
  .desk-break { display: none; }
  .hero-perspective { font-size: 14px; margin-bottom: 1.25rem; line-height: 1.68; }
  .hero-ctas { padding-bottom: 32px; gap: 0.75rem; }

  /* ── HOME: STATS ── */
  .stat { padding: 18px 0; text-align: center; }
  .stat-label { max-width: 100%; }
  .stat-num { font-size: 2.2rem; margin-bottom: 6px; }
  .stat-label { font-size: 0.68rem; }

  /* ── HOME: POV STRIP ── */
  .pov-strip { padding: 28px 0; }
  .pov-inner { gap: 1.25rem; }
  .pov-label-col p { display: none; }
  .pov-content h3 { font-size: 1.2rem; margin-bottom: 10px; }
  .pov-content p { font-size: 0.82rem; line-height: 1.68; }
  .pov-nav { margin-bottom: 16px; }

  /* ── HOME: CAPABILITIES ── */
  .home-caps-h2 { margin-bottom: 16px !important; }
  .home-caps-lead { margin-bottom: 20px !important; font-size: 14px; }
  .cap-item { padding: 1.25rem 1.25rem; }
  .cap-num { font-size: 1.8rem; margin-bottom: 8px; }

  /* ── HOME: WORK CARDS ── */
  .work-card-img { height: 260px; }
  .work-card-tags { padding-top: 1rem; padding-left: 1.25rem; }
  .work-card-title { padding: 0 1.25rem; }
  .work-card-desc { padding: 0 1.25rem; font-size: 0.75rem; }
  .work-card-metric { padding: 0 1.25rem 1.25rem; }


  /* ── HOME: WRITING ── */
  .home-writing-h2 { margin-bottom: 20px !important; }
  .writing-item { padding: 1.25rem 0; gap: 0.75rem; }
  .writing-tag { margin-bottom: 4px; }
  .writing-title { font-size: 1.45rem; margin-bottom: 6px; }
  .writing-thesis { font-size: 0.78rem; line-height: 1.65; }
  .writing-item p { font-size: 0.82rem; line-height: 1.7; }

  /* ── HOME: ADVISORY ── */
  .advisory-section { padding-bottom: 40px !important; }
  .advisory-block { padding: 1.25rem; gap: 1rem; margin-top: 0; }
  h2 { margin-bottom: 0; }

  /* Stats */
  .stat { padding: 1.25rem 0; }

  /* Work grid cards */
  .work-grid { gap: 16px; }
  .work-card { padding: 1.25rem; }
  .work-card-title { margin-bottom: 8px; font-size: 1.35rem; }

  /* About */
  .about-body h1 { margin-bottom: 1rem; }
  .about-section { margin-bottom: 2rem; }
  .bridge-item { padding: 1rem 0; }

  /* Writing */
  .writing-full-list { gap: 0; }
  .writing-full-card { padding: 1.5rem 0; }
  .wf-title { margin-bottom: 8px; }
  .wf-excerpt { margin-bottom: 1rem; }
  .advisory-block { padding: 1.25rem; gap: 1rem; }

  /* Contact */
  .contact-layout { gap: 2.5rem; }
  .avail-block { margin-bottom: 1.5rem; padding: 1rem 1.25rem; }
  .sidebar-block { margin-bottom: 1.5rem; padding-bottom: 1.5rem; }
  .form-sub { margin-bottom: 1.5rem; }
  .form-group { margin-bottom: 0.875rem; }

  /* Case study */
  .case-header { gap: 1.5rem; padding-bottom: 1.5rem; }
  .case-kpis { gap: 1rem; padding: 1.25rem 0; }
  .kpi { padding: 0 1rem 0 0; }
  .case-tabs { margin-bottom: 1.5rem; }
  .fig { margin-bottom: 2rem; }
  .fig-header { margin-bottom: 0.75rem; }
  .fig-caption { margin-top: 0.75rem; }
  .role-deliverables { gap: 0; }
  .rd-item { padding: 0.75rem 0; }
  .case-next-nav { margin-top: 0.75rem; }
  .case-next-btn { padding: 0.875rem 0; }

  /* Reframe / approach / decision log */
  .reframe-brief { padding: 1.25rem; }
  .reframe-new { padding: 1.25rem; }
  .dl-row { padding: 1rem 0; }
  .r-step { padding: 1rem; }
  .transferable { padding: 1rem; margin-top: 1.5rem; }
  .hindsight { padding: 1.25rem; }

  /* Framework artifacts */
  .ob-fw-modules { gap: 3px; }
  .ob-fw-module { padding: 16px; }
  .ob-fw-detail { padding: 18px 16px; }
  .ob-fw-seq-note { margin-top: 12px; }
  .ob-ia-detail { padding: 16px; }
  .ob-ia-legend { margin-top: 14px; padding-top: 12px; }

  /* 1. H1 — suppress forced break on mobile, let text wrap naturally */
  .hero h1 br { display: none; }

  /* 2. POV — panel content moves below the description, dots/arrows at bottom */
  .pov-content { display: flex; flex-direction: column; }
  .pov-nav { order: 3; margin-top: 1.5rem; margin-bottom: 0; }
  .pov-panel { order: 2; }

  /* 3. Case-tabs — convert horizontal slide to static vertical link list */
  .case-tabs {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: visible;
    border-bottom: none;
    max-width: 100%;
    margin-bottom: 1.5rem;
    gap: 0;
  }
  .case-tab {
    padding: 12px 0 12px 12px;
    border-bottom: 1px solid var(--rule);
    border-left: 3px solid transparent;
    white-space: normal;
    font-size: 0.82rem;
    text-align: left;
  }
  .case-tab.active {
    border-left-color: var(--ink);
    border-bottom-color: var(--rule);
    color: var(--ink);
  }
  .case-tab:last-child { border-bottom: none; }

  .case-next-label { font-size: 1.3rem; }
  .case-next-arrow-icon { font-size: 1.5rem; }
}

/* ── CASE NEXT ARROW ── */
.case-next-nav {
  margin-top: 0.75rem;
  border-top: 2px solid var(--ink);
}
.case-next-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.875rem 0;
  text-decoration: none;
  color: var(--ink);
  border-bottom: none;
  transition: background 0.22s, padding 0.22s;
}
.case-next-btn:hover {
  padding-left: 1rem;
  padding-right: 1rem;
  background: var(--bg-warm);
}
.case-next-btn-left { display: flex; flex-direction: column; gap: 4px; }
.case-next-btn span:first-child {
  font-family: var(--body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.case-next-label {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.2s;
}
.case-next-btn:hover .case-next-label { color: var(--teal); }
.case-next-arrow-icon {
  font-size: 2rem;
  color: var(--ink-light);
  transition: transform 0.22s, color 0.2s;
  flex-shrink: 0;
}
.case-next-btn:hover .case-next-arrow-icon {
  transform: translateX(8px);
  color: var(--teal);
}
