/* André Stábile — Portfolio & Case Studies
   Shared stylesheet: design tokens, base, background field, nav, animations, responsive. */

:root {
  --ink: #203C25;
  --accent: #2A7E3B;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --body-text: #000000;
  --muted: #777777;
  --hairline: #E9E9E9;
  --hairline-cs: rgba(32, 60, 37, 0.12);
  --hairline-cs-strong: rgba(32, 60, 37, 0.16);
  --accent-tint-hover: rgba(42, 126, 59, 0.08);
  --accent-tint-select: rgba(42, 126, 59, 0.16);
  --accent-tint-mark: rgba(42, 126, 59, 0.32);
  --accent-tint-underline: rgba(42, 126, 59, 0.4);
  --ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: 'Instrument Sans', sans-serif;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent-tint-select); }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }

/* ---------- animations ---------- */
@keyframes revealUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes revealFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes artIn { from { opacity: 0; } to { opacity: 0.75; } }
@keyframes curtain { 0%, 52% { transform: translateY(0); } 100% { transform: translateY(-101%); visibility: hidden; } }
@keyframes introText { 0% { opacity: 0; transform: translateY(12px); } 26% { opacity: 1; transform: none; } 46% { opacity: 1; transform: none; } 60% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 0; } }
@keyframes introLine { 0% { width: 0; opacity: 0; } 30% { width: 180px; opacity: 1; } 52% { width: 180px; opacity: 1; } 62% { width: 0; opacity: 0; } 100% { width: 0; opacity: 0; } }
@keyframes gridDrift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(34px, 34px, 0); } }
@keyframes blobA { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(9vw, 7vh, 0) scale(1.18); } }
@keyframes blobB { 0% { transform: translate3d(0, 0, 0) scale(1.1); } 100% { transform: translate3d(-11vw, -6vh, 0) scale(0.94); } }

/* ---------- annotation tooltip ("good") ---------- */
.ann { position: relative; display: inline-block; cursor: help; outline-offset: 6px; }
.ann::after {
  content: '';
  position: absolute; left: -0.06em; right: -0.06em; bottom: 0.08em; height: 0.3em;
  background: var(--accent-tint-mark);
  mix-blend-mode: multiply;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 460ms var(--ease-standard);
}
.ann:hover::after, .ann:focus-visible::after { transform: scaleX(1); }
.ann-score {
  position: absolute; left: 0; bottom: calc(100% + 0.18em);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 11px; border: 1px solid var(--ink); border-radius: 6px;
  background: var(--surface); color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1;
  opacity: 0; transform: translateY(6px);
  transition: opacity 220ms ease-out, transform 320ms var(--ease-standard);
  pointer-events: none;
}
.ann-score b { font-weight: 400; border-bottom: 2px solid var(--accent); }
.ann:hover .ann-score, .ann:focus-visible .ann-score { opacity: 1; transform: none; }

/* ---------- background field ---------- */
.bgfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bggrid {
  position: absolute; inset: -40px;
  background-image: radial-gradient(rgba(32, 60, 37, 0.11) 1px, transparent 1px);
  background-size: 34px 34px;
  animation: gridDrift 18s linear infinite;
  will-change: transform;
}
.bgblob { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; filter: blur(90px); will-change: transform; }
.bgblob-a {
  top: -12vh; left: -8vw;
  background: radial-gradient(circle, rgba(42, 126, 59, 0.16), rgba(42, 126, 59, 0) 70%);
  animation: blobA 32s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}
.bgblob-b {
  bottom: -18vh; right: -10vw;
  background: radial-gradient(circle, rgba(32, 60, 37, 0.13), rgba(32, 60, 37, 0) 70%);
  animation: blobB 41s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}
.bgcursor {
  position: absolute; left: 0; top: 0; width: 620px; height: 620px; margin: -310px 0 0 -310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 126, 59, 0.13), rgba(42, 126, 59, 0) 65%);
  opacity: 0; transition: opacity 500ms ease-out; will-change: transform;
}

/* ---------- reveal on scroll (case studies) ---------- */
[data-reveal].armed { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease-out, transform 800ms var(--ease-standard); }
[data-reveal].armed.in { opacity: 1; transform: none; }

/* ---------- progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; z-index: 90; will-change: transform;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 68px;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 200ms ease-out, border-color 200ms ease-out;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: Inter, sans-serif; font-weight: 500; font-size: 15px; letter-spacing: -0.2px; color: var(--ink);
}
.nav-links { position: relative; display: flex; align-items: center; gap: 28px; padding-bottom: 4px; }
.nav-link {
  font-family: Inter, sans-serif; font-weight: 500; font-size: 14px; letter-spacing: -0.2px;
  color: var(--body-text); opacity: 0.55;
  transition: color 160ms ease-out, opacity 160ms ease-out;
}
.nav-indicator {
  position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--accent); opacity: 0;
  transition: transform 320ms var(--ease-standard), width 320ms var(--ease-standard), opacity 200ms ease-out;
}
.nav-label {
  font-family: Inter, sans-serif; font-weight: 500; font-size: 14px; letter-spacing: -0.2px; color: var(--body-text); opacity: 0.55;
}

/* ---------- buttons ---------- */
.btn {
  font-family: Inter, sans-serif; font-weight: 500; font-size: 15px; letter-spacing: -0.2px;
  border-radius: 8px; padding: 14px 24px; display: inline-block;
  transition: background 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}
.btn-fill { color: var(--bg); background: var(--ink); }
.btn-fill:hover { background: var(--accent); color: var(--bg); }
.btn-outline { color: var(--ink); border: 1px solid var(--ink); padding: 13px 23px; }
.btn-outline:hover { background: var(--accent-tint-hover); border-color: var(--accent); color: var(--accent); }
.btn-nav {
  font-family: Inter, sans-serif; font-weight: 500; font-size: 14px; letter-spacing: -0.2px;
  color: var(--bg); background: var(--ink); border-radius: 8px; padding: 10px 18px;
  transition: background 160ms ease-out, transform 200ms ease-out;
}
.btn-nav:hover { background: var(--accent); color: var(--bg); }

/* ---------- intro curtain ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  animation: curtain 1750ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
  pointer-events: none;
}
.intro-name {
  font-family: Inter, sans-serif; font-weight: 400; font-size: 34px; letter-spacing: -0.4px; color: var(--ink);
  animation: introText 1750ms ease-out both;
}
.intro-line { height: 1px; background: var(--accent); animation: introLine 1750ms cubic-bezier(0.4, 0, 0.2, 1) both; }

/* ---------- layout helpers ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 48px; box-sizing: border-box; }
.page {
  position: relative; z-index: 1; min-height: 100vh; overflow-x: hidden;
}

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */

.hero { padding: 190px 48px 60px; display: flex; flex-direction: column; gap: 44px; width: 100%; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; animation: revealFade 700ms ease-out 900ms both; width: 100%; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.eyebrow-text {
  font-family: Inter, sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.hero h1 {
  font-family: Inter, sans-serif; font-weight: 400; font-size: 96px; line-height: 0.94; letter-spacing: -0.045em;
  color: var(--ink); max-width: min(100%, 720px); text-wrap: balance;
  animation: revealUp 1000ms var(--ease-standard) 980ms both;
}
.hero-sub {
  padding: 40px 0 0; margin-top: 40px; margin-bottom: 40px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0; width: 100%;
}
.hero-sub-inner { display: flex; gap: 0; align-items: center; padding-top: 12px; justify-content: space-between; flex-wrap: nowrap; width: 100%; }
.hero-lede {
  max-width: 470px; font-family: 'Instrument Sans', sans-serif; font-weight: 400; font-size: 20px; line-height: 31px;
  letter-spacing: -0.2px; color: var(--body-text); text-wrap: pretty;
  animation: revealUp 900ms var(--ease-standard) 1120ms both;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; animation: revealUp 900ms var(--ease-standard) 1220ms both;
  flex: 0 1 auto; min-width: 0; justify-content: flex-end;
}
.heroart {
  position: absolute; top: 0; right: 0; width: 54%; height: 1020px; z-index: -1; pointer-events: none;
  background-image: url('../img/hero-art.jpg');
  background-size: cover; background-position: 58% 28%; opacity: 0.75; will-change: transform;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.88) 32%, rgba(0,0,0,0.42) 60%, rgba(0,0,0,0) 88%), linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 38%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.88) 32%, rgba(0,0,0,0.42) 60%, rgba(0,0,0,0) 88%), linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 38%);
  mask-composite: intersect;
  animation: artIn 1400ms ease-out 700ms both;
}

/* metrics */
.metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px;
  border-bottom: 1px solid var(--hairline);
}
.metric-block { display: flex; flex-direction: column; gap: 8px; transition: transform 380ms var(--ease-standard); }
.metric-num {
  display: flex; align-items: baseline; font-family: Inter, sans-serif; font-weight: 400; font-size: 76px;
  line-height: 1; letter-spacing: -0.04em; color: var(--ink); transition: color 260ms ease-out;
}
.metric-cap { font-family: 'Instrument Sans', sans-serif; font-size: 15px; line-height: 22px; color: var(--muted); }

/* bio */
.bio { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 56px; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--surface);
  transform-style: preserve-3d; transition: transform 300ms ease-out;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; transition: transform 500ms var(--ease-standard); }
.bio-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; max-width: 900px; }
.bio-list li {
  position: relative; padding-left: 26px; font-family: 'Instrument Sans', sans-serif; font-weight: 400;
  font-size: 20px; line-height: 30px; letter-spacing: -0.2px; color: var(--body-text); text-wrap: pretty;
}
.bio-list li .dot { position: absolute; left: 0; top: 12px; }
.bio-list .accent { color: var(--accent); }
.bio-list .link-u { color: var(--ink); border-bottom: 1px solid rgba(42, 126, 59, 0.35); }

/* section headers */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 28px; }
.section-head-col { display: flex; flex-direction: column; gap: 10px; }
.section-head h2 {
  font-family: Inter, sans-serif; font-weight: 400; font-size: 28px; letter-spacing: -0.28px; color: var(--ink);
}
.section-hint { font-family: 'Instrument Sans', sans-serif; font-size: 14px; color: var(--muted); }

/* work accordion */
.work-list { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.work-row {
  cursor: pointer; display: grid; grid-template-columns: 64px minmax(0, 1.05fr) minmax(0, 1.25fr) 40px;
  align-items: center; gap: 24px; padding: 34px 20px; border-bottom: 1px solid var(--hairline);
  border-radius: 8px; background: transparent; color: inherit;
  transition: background 220ms ease-out, box-shadow 220ms ease-out;
}
.work-row.is-active { background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.work-index { font-family: Inter, sans-serif; font-weight: 400; font-size: 13px; letter-spacing: 0.08em; color: var(--muted); transition: color 220ms ease-out; }
.work-row.is-active .work-index { color: var(--accent); }
.work-main { display: flex; flex-direction: column; gap: 8px; }
.work-name {
  font-family: Inter, sans-serif; font-weight: 400; font-size: 36px; letter-spacing: -0.03em; color: var(--ink);
  transition: transform 280ms var(--ease-standard), color 220ms ease-out;
}
.work-row.is-active .work-name { transform: translateX(12px); color: var(--accent); }
.work-tags { display: flex; gap: 16px; flex-wrap: wrap; }
.work-tags span { font-family: Inter, sans-serif; font-size: 13px; color: var(--accent); }
.work-desc {
  font-family: 'Instrument Sans', sans-serif; font-size: 16px; line-height: 25px; letter-spacing: -0.16px;
  color: var(--body-text); text-wrap: pretty;
}
.work-arrow {
  font-family: Inter, sans-serif; font-size: 26px; font-weight: 300; color: var(--ink); opacity: 0.3;
  justify-self: end; transition: transform 320ms var(--ease-standard), opacity 220ms ease-out;
}
.work-row.is-active .work-arrow { opacity: 1; transform: rotate(45deg); }

.work-panel { height: 0; overflow: hidden; transition: height 420ms var(--ease-standard); border-bottom: 1px solid var(--hairline); }
.work-panel-inner {
  display: grid; grid-template-columns: 64px minmax(0, 260px) minmax(0, 1fr); gap: 24px;
  padding: 6px 20px 40px; align-items: center;
}
.work-thumb {
  position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
  background: rgba(32, 60, 37, 0.05); border: 1px dashed rgba(32, 60, 37, 0.18);
  display: flex; align-items: center; justify-content: center;
}
.work-thumb:has(img) { border-style: solid; border-color: rgba(32, 60, 37, 0.16); background: none; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-thumb-label {
  font-family: Inter, sans-serif; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); text-align: center; padding: 0 16px;
}
.work-copy { display: flex; flex-direction: column; gap: 26px; max-width: 760px; }
.work-copy p {
  font-family: 'Instrument Sans', sans-serif; font-size: 18px; line-height: 29px; letter-spacing: -0.18px;
  color: var(--body-text); text-wrap: pretty;
}
.work-copy p.muted { color: var(--muted); }
.work-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 4px; border-top: 1px solid var(--hairline); }
.work-meta-item { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; }
.work-meta-item span:first-child {
  font-family: Inter, sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.work-meta-item span:last-child, .work-meta-item a {
  font-family: 'Instrument Sans', sans-serif; font-size: 16px; line-height: 24px; color: var(--body-text);
}
.work-meta-item a { color: var(--ink); border-bottom: 1px solid var(--accent-tint-underline); }
.work-meta-item .accent { color: var(--accent); }

/* marquees */
.marquee-wrap { position: relative; overflow: hidden; padding: 26px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.marquee { display: flex; align-items: center; gap: 44px; width: max-content; will-change: transform; }
.marquee span.term {
  font-family: Inter, sans-serif; font-weight: 400; font-size: 26px; letter-spacing: -0.26px; color: var(--accent);
  white-space: nowrap; transition: color 220ms ease-out, letter-spacing 320ms var(--ease-standard);
}
.marquee span.term:hover { color: var(--ink); letter-spacing: 0.4px; }
.marquee span.sep { width: 5px; height: 5px; border-radius: 50%; background: rgba(32, 60, 37, 0.25); flex: none; }

.about-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.about-label { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 120px; }
.about-copy { display: flex; flex-direction: column; gap: 30px; max-width: 720px; }
.about-copy p {
  font-family: 'Instrument Sans', sans-serif; font-weight: 400; font-size: 22px; line-height: 34px; letter-spacing: -0.22px;
  color: var(--body-text); text-wrap: pretty;
}
.about-copy p.small { font-size: 18px; line-height: 29px; letter-spacing: -0.18px; }
.about-copy p.muted { color: var(--muted); }

.testimonial-wrap { position: relative; overflow: hidden; padding: 4px 0 8px; }
.testimonial-track { display: flex; align-items: stretch; gap: 20px; width: max-content; padding: 0 48px; will-change: transform; }
.testimonial-card {
  width: 400px; background: var(--surface); border-radius: 8px; padding: 30px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  transition: box-shadow 260ms ease-out, transform 380ms var(--ease-standard);
}
.testimonial-card p {
  font-family: 'Instrument Sans', sans-serif; font-size: 16px; line-height: 26px; letter-spacing: -0.16px;
  color: var(--body-text); text-wrap: pretty;
}
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: rgba(32, 60, 37, 0.08); }
.testimonial-meta { display: flex; flex-direction: column; gap: 2px; }
.testimonial-meta span:first-child { font-family: Inter, sans-serif; font-weight: 500; font-size: 14px; color: var(--ink); }
.testimonial-meta span:last-child { font-family: 'Instrument Sans', sans-serif; font-size: 13px; color: var(--muted); }

.footer-cta { border-top: 1px solid var(--hairline); padding-top: 64px; display: flex; flex-direction: column; gap: 34px; }
.footer-cta h2 {
  max-width: 780px; font-family: Inter, sans-serif; font-weight: 400; font-size: 56px; line-height: 1.06;
  letter-spacing: -0.04em; color: var(--ink);
}
.footer-mail {
  align-self: flex-start; font-family: 'Instrument Sans', sans-serif; font-size: 24px; letter-spacing: -0.24px;
  color: var(--ink); border-bottom: 1px solid var(--accent-tint-underline); padding-bottom: 4px;
  transition: color 180ms ease-out, border-color 180ms ease-out, transform 200ms ease-out;
}
.footer-mail:hover { color: var(--accent); border-color: var(--accent); }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; }
.footer-copy { font-family: Inter, sans-serif; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 26px; }
.footer-links a { font-family: Inter, sans-serif; font-weight: 500; font-size: 13px; color: var(--ink); }

/* ============================================================
   CASE STUDY PAGES
   ============================================================ */

.cs-nav-back { display: flex; align-items: center; gap: 10px; font-family: Inter, sans-serif; font-weight: 500; font-size: 15px; letter-spacing: -0.2px; color: var(--ink); }
.cs-nav-back .arrow { font-size: 17px; line-height: 1; }

.cs-header { padding: 168px 48px 0; display: flex; flex-direction: column; gap: 34px; }
.cs-eyebrow { display: flex; align-items: center; gap: 14px; animation: revealFade 700ms ease-out both; }
.cs-header h1 {
  font-family: Inter, sans-serif; font-weight: 400; font-size: 76px; line-height: 0.97; letter-spacing: -0.045em;
  color: var(--ink); max-width: 940px; text-wrap: balance;
  animation: revealUp 900ms var(--ease-standard) 120ms both;
}
.cs-deck {
  max-width: 760px; font-family: 'Instrument Sans', sans-serif; font-weight: 400; font-size: 26px; line-height: 1.42;
  letter-spacing: -0.3px; color: var(--ink); text-wrap: pretty;
  animation: revealUp 900ms var(--ease-standard) 200ms both;
}
.cs-intro {
  max-width: 700px; font-family: 'Instrument Sans', sans-serif; font-weight: 400; font-size: 19px; line-height: 1.62;
  letter-spacing: -0.2px; color: var(--body-text); opacity: 0.72; text-wrap: pretty;
  animation: revealUp 900ms var(--ease-standard) 280ms both;
}
.cs-metarow {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 34px 0 0;
  border-top: 1px solid var(--hairline-cs-strong); margin-top: 14px;
  animation: revealFade 800ms ease-out 380ms both;
}
.cs-metarow-item { display: flex; flex-direction: column; gap: 8px; }
.cs-metarow-item span:first-child {
  font-family: Inter, sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.cs-metarow-item span:last-child {
  font-family: Inter, sans-serif; font-weight: 400; font-size: 17px; letter-spacing: -0.2px; color: var(--ink);
}

.cs-hero-wrap { padding: 56px 48px 0; }
.cs-hero {
  width: 100%; height: 520px; border: 1px solid var(--hairline-cs-strong); border-radius: 10px;
  background-size: cover; background-position: 50% 30%; background-color: var(--surface);
}
.cs-hero.placeholder {
  display: flex; align-items: center; justify-content: center; background-image: none !important;
  background: rgba(255,255,255,0.6); border-style: dashed;
}
.cs-hero.placeholder span {
  font-family: Inter, sans-serif; font-size: 13px; letter-spacing: 0.04em; color: var(--muted);
}

.cs-main { padding: 24px 48px 40px; display: flex; flex-direction: column; }
.cs-section { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; padding: 84px 0; border-bottom: 1px solid var(--hairline-cs); }
.cs-secmark { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 10px; }
.cs-secmark span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--accent); }
.cs-secmark h2 { font-family: Inter, sans-serif; font-weight: 500; font-size: 20px; letter-spacing: -0.3px; color: var(--ink); }

.cs-body { display: flex; flex-direction: column; gap: 22px; max-width: 720px; }
.cs-body p {
  font-family: 'Instrument Sans', sans-serif; font-size: 19px; line-height: 1.68; letter-spacing: -0.2px;
  color: var(--body-text); text-wrap: pretty;
}
.cs-body strong { font-family: Inter, sans-serif; font-weight: 600; color: var(--ink); }

.cs-quote { display: flex; flex-direction: column; gap: 18px; padding-left: 22px; border-left: 1px solid rgba(42, 126, 59, 0.34); }
.cs-quote p {
  font-family: 'Instrument Sans', sans-serif; font-size: 19px; line-height: 1.68; letter-spacing: -0.2px;
  color: var(--body-text); text-wrap: pretty; margin: 0;
}
.cs-quote strong { font-family: Inter, sans-serif; font-weight: 600; color: var(--ink); }

.cs-cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 780px; }
.cs-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid rgba(32, 60, 37, 0.14);
  border-radius: 10px; background: rgba(255, 255, 255, 0.62);
}
.cs-card-title { font-family: Inter, sans-serif; font-weight: 600; font-size: 17px; letter-spacing: -0.2px; color: var(--ink); }
.cs-card p {
  margin: 0; font-family: 'Instrument Sans', sans-serif; font-size: 17px; line-height: 1.62; letter-spacing: -0.2px;
  color: var(--body-text); opacity: 0.82; text-wrap: pretty;
}

.cs-role-list { display: flex; flex-direction: column; gap: 16px; }
.cs-role-item { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 14px; align-items: start; }
.cs-role-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 12px; }
.cs-role-item p {
  margin: 0; font-family: 'Instrument Sans', sans-serif; font-size: 18px; line-height: 1.66; letter-spacing: -0.2px;
  color: var(--body-text); text-wrap: pretty;
}

.cs-decisions { display: flex; flex-direction: column; max-width: 720px; }
.cs-decision { display: flex; flex-direction: column; gap: 12px; padding: 30px 0; border-top: 1px solid rgba(32, 60, 37, 0.1); }
.cs-decision:first-child { padding-top: 0; border-top: none; }
.cs-decision-label {
  font-family: Inter, sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.cs-decision h3 { font-family: Inter, sans-serif; font-weight: 500; font-size: 24px; line-height: 1.25; letter-spacing: -0.4px; color: var(--ink); }
.cs-decision p {
  margin: 0; font-family: 'Instrument Sans', sans-serif; font-size: 19px; line-height: 1.68; letter-spacing: -0.2px;
  color: var(--body-text); text-wrap: pretty;
}

.cs-impact-list { display: flex; flex-direction: column; gap: 14px; }
.cs-impact-item {
  margin: 0; padding: 18px 20px; border-left: 2px solid rgba(42, 126, 59, 0.5); background: rgba(255, 255, 255, 0.55);
  font-family: 'Instrument Sans', sans-serif; font-size: 18px; line-height: 1.64; letter-spacing: -0.2px;
  color: var(--body-text); text-wrap: pretty;
}
.cs-impact-item strong { font-family: Inter, sans-serif; font-weight: 600; color: var(--ink); }

.cs-outcomes { display: flex; flex-direction: column; gap: 0; max-width: 720px; }
.cs-outcome-item { display: flex; flex-direction: column; gap: 10px; padding: 26px 0; border-top: 1px solid rgba(32, 60, 37, 0.1); }
.cs-outcome-item:first-child { padding-top: 0; border-top: none; }
.cs-outcome-item p {
  margin: 0; font-family: 'Instrument Sans', sans-serif; font-size: 19px; line-height: 1.68; letter-spacing: -0.2px;
  color: var(--body-text); text-wrap: pretty;
}
.cs-outcome-item strong { font-family: Inter, sans-serif; font-weight: 600; color: var(--ink); }

.cs-learnings { display: flex; flex-direction: column; gap: 26px; max-width: 720px; }
.cs-learnings p {
  margin: 0; font-family: 'Instrument Sans', sans-serif; font-size: 19px; line-height: 1.68; letter-spacing: -0.2px;
  color: var(--body-text); text-wrap: pretty;
}
.cs-learnings strong { font-family: Inter, sans-serif; font-weight: 600; color: var(--ink); }

.cs-closing { max-width: 760px; }
.cs-closing p {
  margin: 0; font-family: Inter, sans-serif; font-weight: 400; font-size: 30px; line-height: 1.42;
  letter-spacing: -0.6px; color: var(--ink); text-wrap: pretty;
}

.cs-footer {
  padding: 60px 48px 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; border-top: 1px solid var(--hairline-cs-strong);
}
.cs-footer-back { display: flex; align-items: center; gap: 10px; font-family: Inter, sans-serif; font-weight: 500; font-size: 17px; letter-spacing: -0.2px; color: var(--ink); }
.cs-footer-back .arrow { font-size: 19px; line-height: 1; }

/* ============================================================
   MOTION-REDUCED
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ann::after, .ann-score { transition: none; }
  .bggrid, .bgblob { animation: none; }
  .bgcursor { display: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE — portfolio (<=860px)
   ============================================================ */
@media (max-width: 860px) {
  .wrap { padding-left: 20px !important; padding-right: 20px !important; }
  .hero { padding-top: 116px !important; padding-bottom: 32px !important; gap: 28px !important; }
  .nav { padding: 0 20px !important; }
  .nav-links { display: none !important; }
  .hero h1 { font-size: clamp(34px, 9.2vw, 48px) !important; max-width: 100% !important; }
  .section-head h2 { font-size: 24px !important; }
  .footer-cta h2 { font-size: 30px !important; }
  .heroart {
    width: 100% !important; height: 560px !important; opacity: 0.16 !important;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 46%) !important;
    mask-image: linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 46%) !important;
  }
  .metrics { grid-template-columns: 1fr !important; gap: 28px !important; }
  .about-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .hero-sub-inner { flex-wrap: wrap !important; }
  .bio { grid-template-columns: 1fr !important; gap: 28px !important; }
  .bio .portrait { max-width: 260px; }
  .about-label { position: static !important; }
  .metric-num { font-size: 46px !important; }
  .work-row { grid-template-columns: 1fr !important; gap: 12px !important; padding: 24px 12px !important; position: relative; }
  .work-row .work-arrow { position: absolute; right: 12px; }
  .work-name { font-size: 26px !important; }
  .work-panel-inner { grid-template-columns: 1fr !important; padding-left: 12px !important; padding-right: 12px !important; }
  .work-panel-inner > span:first-child { display: none !important; }
  .work-thumb { max-height: 220px; }
  .testimonial-track { padding: 0 20px !important; }
  .marquee span.term { font-size: 20px !important; }
  .ann-score { font-size: 11px !important; }
  .bgblob { width: 78vw !important; height: 78vw !important; }
}

/* ============================================================
   RESPONSIVE — case studies (<=900px)
   ============================================================ */
@media (max-width: 900px) {
  .cs-wrap { padding-left: 20px !important; padding-right: 20px !important; }
  .cs-nav { padding: 0 20px !important; }
  .cs-navlinks { display: none !important; }
  .cs-header h1 { font-size: clamp(32px, 8.4vw, 46px) !important; }
  .cs-section { grid-template-columns: 1fr !important; gap: 18px !important; }
  .cs-secmark { position: static !important; flex-direction: row !important; align-items: baseline !important; gap: 12px !important; }
  .cs-metarow { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  .cs-deck { font-size: 22px !important; }
  .cs-hero { height: 260px !important; }
}
