/* Jazzmin Celeste · portfolio styles
   Layout: one calm reading column (about 66 characters) inside a 1160px frame; case-study images break wider.
   Look: the Shiftt Perspective brand kit decided on 2026-11-13. Warm paper with ink, deep green and grass green,
   soft meadow for bold moments, sage for the second half of a two-tone headline. PT Serif headlines,
   Plus Jakarta Sans text, Geist Mono for small capital labels. One deep green band is the loud moment. */

:root {
  /* Color: the brand kit */
  --paper: #FAF8F4;
  --paper-wash: #F2EFE7;
  --card: #FFFFFF;
  --ink: #141614;
  --ink-soft: #3F4641;
  --muted: #4A514C;
  --sage: #6D7B73;
  --line: #DAD5CA;
  --deep: #0B3D32;        /* buttons, bands, small green text */
  --green: #3E7D2F;       /* used small: the tt, the pen marks, one dot */
  --meadow: #C5E1BB;      /* bold moments, accents on deep green */
  --meadow-wash: #E9F1E4; /* a pale step of soft meadow for small fills */
  --deep-line: #2E5A4C;
  --on-deep: #FAF8F4;
  --on-deep-soft: #C9D8CF;
  --tint-steady: #ECE9F6; /* Simply Steady's own lavender, behind its screenshots */
  --header-bg: rgba(250, 248, 244, 0.92);
  --glow: 0 30px 90px -34px rgba(62, 125, 47, 0.45), 0 18px 60px -30px rgba(197, 225, 187, 1);

  /* Type */
  --font-display: "PT Serif", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.55rem;
  --step-3: clamp(1.85rem, 1.25rem + 2.1vw, 2.65rem);
  --step-4: clamp(2.5rem, 1.25rem + 4vw, 4.25rem);

  /* Shape and space */
  --radius: 14px;
  --radius-sm: 10px;
  --frame: 1160px;
  --read: 66ch;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: only light;
}

/* One look for everyone: the light brand, even on devices set to dark mode (Jazzmin's choice, 2026-11-11). */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--paper);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
p, ul, ol, dl, figure, blockquote { margin: 0; }
strong { font-weight: 600; color: var(--ink); }
.sage { color: var(--sage); }
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}
.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 {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--deep); color: var(--on-deep);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.frame {
  max-width: var(--frame);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 34px; height: 34px; flex: none; }
.brand-text { display: grid; gap: 3px; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--font-display); font-size: 1.28rem; letter-spacing: -0.01em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 0;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--deep); text-decoration: underline; text-underline-offset: 6px; }
.site-nav a.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--deep);
  color: var(--on-deep);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}
.site-nav a.nav-cta:hover { background: #082e26; color: var(--on-deep); text-decoration: none; }

@media (max-width: 860px) {
  .site-header .frame { flex-wrap: wrap; padding-block: 10px 2px; }
  .brand-sub { display: none; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: space-between; gap: 0 12px; }
  .site-nav a { padding: 10px 0; }
  .site-nav a.nav-cta { padding: 7px 14px; }
  .nav-wide { display: none; }
}

/* ---------- Buttons and links ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.95rem/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--deep); color: var(--on-deep); }
.btn-primary:hover { background: #082e26; color: var(--on-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--deep); color: var(--deep); }
.btn-big { min-height: 54px; padding: 12px 28px; font-size: 1rem; }
.btn-small { min-height: 40px; padding: 7px 16px; font-size: 0.9rem; }
.text-link { font-weight: 600; color: var(--ink); text-underline-offset: 5px; }
.text-link:hover { color: var(--deep); }
.arrow { display: inline-block; transition: transform 0.2s; }
a:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .frame {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 24px clamp(16px, 3vw, 40px);
  padding-block: clamp(40px, 7vw, 92px) clamp(36px, 6vw, 72px);
}
.hero-copy { display: grid; gap: 28px; min-width: 0; position: relative; z-index: 2; }
.hero-hello { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: 52% 26%;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line);
}
.hero-hello p { display: grid; gap: 4px; }
.hello-name { font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.hero h1 { font-size: clamp(2rem, 1.1rem + 2.4vw, 3.05rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 23ch; }
.hero h1 > .sage { display: block; margin-top: 0.15em; }

/* The two hand-drawn marks: they draw themselves when the page loads */
.mk { position: relative; display: inline-block; }
.mk:has(.mark-loop) { margin-inline: 0.1em; }
.mark { position: absolute; max-width: none; pointer-events: none; animation: draw 0.9s cubic-bezier(0.55, 0.05, 0.3, 1) 0.45s both; }
.mark-loop { left: -15%; top: 50%; width: 130%; height: auto; transform: translateY(-47%); }
.mark-uline { left: -2%; bottom: -0.2em; width: 104%; height: auto; animation-delay: 1.15s; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.hero-lede { max-width: 46ch; color: var(--ink-soft); font-size: 1.125rem; }
.proof-line { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.proof-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.hero-art { position: relative; z-index: 1; min-width: 0; margin-right: clamp(-60px, -3vw, 0px); }
.hero-art video {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect;
}
@media (max-width: 900px) {
  .hero .frame { grid-template-columns: minmax(0, 1fr); }
  .hero-art { margin: -8px auto 0; width: min(100%, 520px); }
}

/* ---------- Proof bar ---------- */
.proof { border-block: 1px solid var(--line); background: var(--paper); }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 32px;
  padding-block: 32px 24px;
  list-style: none;
  margin: 0;
}
.proof-grid li { display: grid; gap: 6px; align-content: start; min-width: 0; }
.proof-grid b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}
.proof-grid span { font-size: 0.93rem; line-height: 1.5; color: var(--ink-soft); }
.supported { padding-block: 0 28px; font-size: 0.93rem; color: var(--muted); }
.supported strong { color: var(--ink); }
@media (max-width: 880px) { .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 116px); }
.section--wash { background: var(--paper-wash); }
.section-head { display: grid; gap: 14px; max-width: 64ch; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head h2 { font-size: var(--step-3); letter-spacing: -0.02em; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Audience paths ---------- */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.path {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.2s, transform 0.2s;
}
.path:hover { border-color: var(--deep); transform: translateY(-2px); }
.path h3 { font-size: 1.45rem; }
.path p:not(.eyebrow) { color: var(--ink-soft); font-size: 0.98rem; }
.path a { font-weight: 600; text-decoration: none; margin-top: 4px; color: var(--deep); }
.path a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
@media (max-width: 880px) { .paths { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Featured work ---------- */
.case-list { display: grid; gap: clamp(52px, 7vw, 96px); list-style: none; margin: 0; padding: 0; }
.case {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4.5vw, 60px);
  align-items: center;
}
.case:nth-child(even) .case-media { order: 2; }
/* Soft green glow behind case-study screenshots */
.case-media {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  background: var(--meadow-wash);
  box-shadow: var(--glow);
}
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.case-media:hover img { transform: scale(1.02); }
.case-media.is-steady { background: var(--tint-steady); }
.case-media.is-steady img { object-fit: contain; padding: 5% 4% 0; object-position: 50% 100%; }
.case-media.is-top img { object-position: 50% 0; }
.case-media.is-board img { object-position: 50% 72%; }
.case-media.is-paper { background: var(--paper); }
.case-media.is-paper img { object-fit: contain; }
.case-body { display: grid; gap: 14px; min-width: 0; }
.case-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.case h3 { font-size: clamp(1.55rem, 1.15rem + 1.3vw, 2.1rem); }
.case h3 a { color: inherit; text-decoration: none; }
.case h3 a:hover { color: var(--deep); }
.case-body > p:not(.case-tag) { color: var(--ink-soft); }
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.facts div { min-width: 0; }
.facts dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 0.95rem; font-weight: 500; line-height: 1.4; color: var(--ink); }
.case .actions { margin-top: 4px; gap: 10px 12px; }
@media (max-width: 880px) {
  .case { grid-template-columns: minmax(0, 1fr); }
  .case:nth-child(even) .case-media { order: 0; }
}
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- More projects ---------- */
.more-head { margin-top: clamp(60px, 8vw, 100px); margin-bottom: 20px; display: grid; gap: 8px; }
.more-head h3 { font-size: var(--step-2); }
.more-head p { color: var(--ink-soft); }
.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.mini {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.mini h4 { font-size: 1.3rem; }
.mini p { font-size: 0.97rem; color: var(--ink-soft); }
.mini .mini-type { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mini .mini-meta { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.mini a { font-weight: 600; font-size: 0.97rem; justify-self: start; }
.mini .mini-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 2px; }
@media (max-width: 720px) { .more { grid-template-columns: minmax(0, 1fr); } }

/* ---------- The deep green band (one loud moment per page) ---------- */
.band { background: var(--deep); color: var(--on-deep); }
.band .eyebrow { color: var(--on-deep-soft); }
.band h2, .band h3, .band strong { color: var(--on-deep); }
.band .section-head p:not(.eyebrow) { color: var(--on-deep-soft); }
.band a { color: var(--meadow); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--deep-line); }
.step {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px 26px 6px 0;
}
.step + .step { padding-left: 26px; border-left: 1px solid var(--deep-line); }
.step-top { display: flex; align-items: center; gap: 14px; }
.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--meadow);
  color: var(--meadow);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.step h3 { font-size: 1.5rem; color: var(--on-deep); }
.step p { color: var(--on-deep-soft); font-size: 0.97rem; }
.step .step-sub { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--meadow); margin-top: 2px; }
.step ul { padding-left: 1.1em; display: grid; gap: 4px; color: var(--on-deep-soft); font-size: 0.95rem; }
.step li::marker { color: var(--meadow); }
.after-launch { margin-top: 24px; color: var(--on-deep-soft); }
@media (max-width: 880px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 22px 0 18px; border-left: 0; border-bottom: 1px solid var(--deep-line); }
}

.evidence { margin-top: clamp(40px, 5vw, 60px); display: grid; gap: 12px; }
.evidence h3 { font-size: 1.5rem; }
.evidence > p:not(.ladder-axis) { color: var(--on-deep-soft); max-width: 64ch; }
.ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; align-items: end; list-style: none; margin: 6px 0 0; padding: 0; }
.rung {
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
  border-radius: 10px 10px 4px 4px;
  background: rgba(197, 225, 187, 0.14);
  color: var(--on-deep);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
}
.rung:nth-child(1) { min-height: 64px; }
.rung:nth-child(2) { min-height: 86px; background: rgba(197, 225, 187, 0.2); }
.rung:nth-child(3) { min-height: 108px; background: rgba(197, 225, 187, 0.28); }
.rung:nth-child(4) { min-height: 130px; background: rgba(197, 225, 187, 0.38); }
.rung:nth-child(5) { min-height: 152px; background: var(--meadow); color: var(--deep); font-weight: 600; }
.ladder-axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-deep-soft); }
@media (max-width: 720px) {
  .ladder { grid-template-columns: minmax(0, 1fr); }
  .rung, .rung:nth-child(n) { min-height: 0; border-radius: 8px; }
  .ladder-axis { order: -1; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-photo .img-wrap { border-radius: var(--radius); overflow: hidden; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 62% 30%; }
.about-photo figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }
.about-side { display: grid; gap: 30px; }
.prose { display: grid; gap: 16px; max-width: var(--read); min-width: 0; }
.prose p { color: var(--ink-soft); }
.ikigai { display: grid; gap: 10px; justify-items: start; }
.ikigai svg { width: 100%; max-width: 380px; height: auto; }
.ikigai circle.ring { fill: var(--meadow); fill-opacity: 0.32; stroke: var(--deep); stroke-width: 1.25; }
.ikigai circle.core { fill: var(--deep); }
.ikigai text { fill: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: 17px; }
.ikigai text.core-label { fill: var(--on-deep); font-size: 13px; }
.ikigai figcaption { font-size: 0.9rem; color: var(--muted); max-width: 46ch; }
@media (max-width: 880px) { .about { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Experience ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.col-title { font-size: 1.45rem; margin-bottom: 20px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; display: grid; gap: 3px; padding: 0 0 26px 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--deep);
}
.timeline li:first-child::before { background: var(--green); border-color: var(--green); }
.when { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep); font-variant-numeric: tabular-nums; }
.role { font-weight: 600; color: var(--ink); line-height: 1.4; }
.role span { font-weight: 400; color: var(--ink-soft); }
.detail { font-size: 0.95rem; color: var(--ink-soft); }
.support-group + .support-group { margin-top: 34px; }
.support-list { list-style: none; margin: 0; padding: 0; display: grid; }
.support-list li { display: grid; gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.support-list li:first-child { padding-top: 0; }
.support-list strong { font-weight: 600; }
.support-list span { font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 880px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.quotes > li { display: grid; }
.quote {
  display: grid;
  gap: 18px;
  align-content: space-between;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.quote blockquote { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.55; color: var(--ink); }
.quote blockquote::before {
  content: "\201C";
  display: block;
  height: 0.55em;
  font-size: 3rem;
  line-height: 1;
  color: var(--green);
}
.quote figcaption { font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
.quote figcaption strong { display: block; color: var(--ink); }
@media (max-width: 960px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Built with AI ---------- */
.lab { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.lab li { display: grid; gap: 6px; align-content: start; padding-block: 24px; border-bottom: 1px solid var(--line); min-width: 0; }
.lab h3 { font-size: 1.3rem; }
.lab p { font-size: 0.96rem; color: var(--ink-soft); }
.lab .stack { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.02em; color: var(--muted); }
@media (max-width: 960px) { .lab { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .lab { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Teams ---------- */
.teams { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.teams-copy { display: grid; gap: 18px; min-width: 0; }
.teams-copy h2 { font-size: var(--step-3); letter-spacing: -0.02em; }
.teams-copy p:not(.eyebrow) { color: var(--ink-soft); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.checklist li strong { color: var(--ink); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--meadow-wash);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(0.22em + 4px);
  width: 6px;
  height: 10px;
  border: solid var(--deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.chips a { color: var(--ink); text-decoration: none; }
.chips li:has(a):hover { border-color: var(--deep); }
.chips li:has(a):hover a { color: var(--deep); }
.teams-card { display: grid; gap: 18px; padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.teams-card h3 { font-size: 1.5rem; }
@media (max-width: 880px) { .teams { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.contact-band { position: relative; isolation: isolate; overflow: hidden; }
.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(45% 75% at 100% 100%, rgba(197, 225, 187, 0.55) 0%, transparent 72%);
}
.contact { display: grid; gap: 20px; max-width: 760px; }
.contact h2 { font-size: var(--step-3); letter-spacing: -0.02em; }
.contact > p:not(.eyebrow):not(.copy-status) { color: var(--ink-soft); font-size: 1.1rem; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.email-big {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1rem + 2.2vw, 2.35rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.email-big:hover { color: var(--deep); }
.copy-status { font-size: 0.9rem; color: var(--muted); min-height: 1.4em; }
.social { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 0; padding: 0; }
.social a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .frame { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.site-footer a { color: var(--muted); }
.footer-sign { display: inline-flex; align-items: center; gap: 10px; }
.footer-sign img { width: 22px; height: 22px; flex: none; }

/* ---------- Case study pages ---------- */
.cs-hero { position: relative; }
.cs-head { display: grid; gap: 16px; max-width: 72ch; padding-block: clamp(30px, 5vw, 60px) 28px; }
.crumb { font-weight: 600; font-size: 0.95rem; text-decoration: none; justify-self: start; }
.cs-head h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.5rem); letter-spacing: -0.02em; }
.cs-lede { font-size: 1.15rem; color: var(--ink-soft); }
.meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
  padding-block: 22px;
  border-block: 1px solid var(--line);
}
.meta div { min-width: 0; }
.meta dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 4px 0 0; font-size: 0.96rem; font-weight: 500; line-height: 1.45; color: var(--ink); }
.cs-figure { margin-block: clamp(30px, 5vw, 52px); }
.cs-figure .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--glow); background: var(--meadow-wash); }
.cs-figure .media.is-steady { background: var(--tint-steady); }
.cs-figure .media.pad { padding: 4% 4% 0; }
.cs-figure figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--muted); max-width: 72ch; }
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0 0 clamp(32px, 5vw, 56px); padding: 0; }
.outcome { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--meadow-wash); }
.outcome b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 1.35rem + 1.3vw, 2.4rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--deep); font-variant-numeric: tabular-nums; }
.outcome span { color: var(--ink-soft); font-size: 0.96rem; }
.cs-section { padding-block: clamp(38px, 6vw, 68px); border-top: 1px solid var(--line); }
.cs-grid { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 16px clamp(24px, 5vw, 64px); }
.cs-grid > h2 { font-size: var(--step-2); position: sticky; top: 104px; align-self: start; }
.cs-body { display: grid; gap: 18px; max-width: var(--read); min-width: 0; }
.cs-body p, .cs-body li { color: var(--ink-soft); }
.cs-body ul:not([class]), .cs-body ol:not([class]) { padding-left: 1.2em; display: grid; gap: 8px; }
.cs-body h3 { font-size: 1.3rem; margin-top: 8px; }
.cs-wide { margin-top: 28px; }
.frame-label { margin-bottom: 10px; }
.insights { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.insights li { border-left: 2px solid var(--green); padding: 2px 0 2px 16px; color: var(--ink-soft); }
.insights li b { display: block; color: var(--ink); font-size: 1.02rem; font-weight: 600; margin-bottom: 2px; }
.pull {
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.pull blockquote { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.55; color: var(--ink); }
.pull figcaption { font-size: 0.92rem; color: var(--muted); }
.pull figcaption strong { color: var(--ink); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.flow li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.flow li span { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.flow li:not(:last-child)::after { content: "\2192"; color: var(--muted); font-weight: 400; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.rules li { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); font-size: 0.95rem; color: var(--ink-soft); }
.rules li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.scroll-frame {
  max-height: 620px;
  overflow-y: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--glow);
  background: var(--card);
}
.scroll-frame img { width: 100%; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pair figure .media { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.pair figcaption { margin-top: 8px; font-size: 0.88rem; color: var(--muted); }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.swatches li { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.swatches .chip { height: 64px; }
.swatches span { display: block; padding: 6px 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cs-body .status-pill, .status-pill {
  justify-self: start;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--meadow-wash);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.links-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; }
.next-case { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.next-case a {
  display: grid;
  gap: 4px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s;
}
.next-case a:hover { border-color: var(--deep); }
.next-case small { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.next-case strong { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
@media (max-width: 880px) {
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outcomes, .rules { grid-template-columns: minmax(0, 1fr); }
  .cs-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-grid > h2 { position: static; }
}
@media (max-width: 560px) {
  .meta, .pair, .next-case { grid-template-columns: minmax(0, 1fr); }
  .swatches .chip { height: 48px; }
  .swatches span { font-size: 0.62rem; padding: 5px; }
}

/* ---------- Funder summary ---------- */
.doc { max-width: 920px; }
.doc-head { display: grid; gap: 12px; padding-block: clamp(34px, 6vw, 60px) 24px; border-bottom: 2px solid var(--ink); }
.doc-title { line-height: 1; }
.doc-title img { height: clamp(36px, 2rem + 2.4vw, 54px); width: auto; }
.doc-sub { font-size: 1.12rem; color: var(--ink-soft); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 4px 0 0; padding: 0; font-size: 0.93rem; color: var(--ink-soft); }
.doc-meta strong { color: var(--ink); }
.doc-section {
  display: grid;
  grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr);
  gap: 10px 36px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.doc-section > h2 { font-size: 1.25rem; line-height: 1.25; }
.doc-body { display: grid; gap: 12px; min-width: 0; }
.doc-body p, .doc-body li { color: var(--ink-soft); }
.doc-body ul { padding-left: 1.15em; display: grid; gap: 8px; }
.one-liner { font-family: var(--font-display); font-size: 1.32rem; line-height: 1.45; color: var(--ink) !important; }
.table-wrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.doc thead th { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.doc td { color: var(--ink-soft); }
.doc td:first-child { color: var(--ink); font-weight: 500; }
.doc .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc tfoot td { font-weight: 600; color: var(--ink); border-bottom: 0; }
.doc-quote { border-left: 2px solid var(--green); padding-left: 14px; font-family: var(--font-display); color: var(--ink) !important; }
.doc-quote cite { display: block; margin-top: 4px; font-family: var(--font-body); font-style: normal; font-size: 0.9rem; color: var(--muted); }
.doc-actions { padding-block: 28px 8px; }
.doc-note { font-size: 0.9rem; color: var(--muted) !important; }
@media (max-width: 760px) { .doc-section { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print (the funder summary prints to two pages) ---------- */
@media print {
  :root {
    --paper: #ffffff;
    --paper-wash: #ffffff;
    --card: #ffffff;
    --ink: #141614;
    --ink-soft: #2f3531;
    --muted: #4A514C;
    --line: #d9d4c9;
    color-scheme: light;
  }
  @page { size: Letter; margin: 0.45in 0.55in; }
  html { scroll-behavior: auto; font-size: 11.5px; }
  body { font-size: 8.9pt; line-height: 1.38; letter-spacing: 0; }
  body::before, .site-header, .site-footer, .skip-link, .no-print { display: none !important; }
  .frame { padding: 0; max-width: none; }
  a { color: inherit; text-decoration: none; }
  .doc-head { padding-block: 0 8pt; gap: 4pt; }
  .doc-title img { height: 22pt; }
  .doc-sub { font-size: 10.5pt; }
  .doc-meta { font-size: 8.2pt; gap: 2pt 14pt; }
  .doc-section { grid-template-columns: 1.3in minmax(0, 1fr); gap: 3pt 14pt; padding-block: 6pt; }
  .doc-section > h2 { font-size: 10.5pt; break-after: avoid; }
  .doc-body { gap: 4pt; }
  .doc-body ul { gap: 2pt; }
  .doc-body li, .doc tr, .doc-quote { break-inside: avoid; }
  .one-liner { font-size: 11pt; line-height: 1.4; }
  .doc table { font-size: 8.4pt; }
  .doc thead th { font-size: 6.6pt; }
  .doc th, .doc td { padding: 3pt 8pt 3pt 0; }
  .doc-quote { font-size: 9.2pt; margin-top: 5pt; }
  .doc-note { font-size: 8.4pt; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
