:root {
  --warm-cream: #f8f4ef;
  --warm-cream-strong: #f1ece5;
  --paper: #f5f2ee;
  --deep-charcoal: #121212;
  --deep-charcoal-soft: #2a2a2a;
  --muted: #5f5b57;
  --line: rgba(18, 18, 18, 0.45);
  --line-soft: rgba(18, 18, 18, 0.16);
  --green-accent: #2d6a4f;
  --green-soft: #dfece5;
  --shadow-soft: rgba(18, 18, 18, 0.06);
  --content-max: 1280px;
  --gutter: 24px;
  --section-gap: 112px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--warm-cream);
  color: var(--deep-charcoal);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* REVEAL INTERACTION STYLES */

.hero-landing-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 60px;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0 0;
  border-bottom: none !important;
  margin-bottom: 72px !important;
}

.view-project-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-cream);
  background: var(--deep-charcoal);
  border: 2px solid var(--deep-charcoal);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: inherit;
  min-height: 48px;
}

.view-project-cta:hover,
.view-project-cta:focus {
  background: transparent;
  color: var(--deep-charcoal);
}

.view-project-cta span {
  transition: transform 0.15s ease;
}

.view-project-cta:hover span,
.view-project-cta:focus-visible span {
  transform: translateX(2px);
}

.portfolio-reveal-container {
  background: var(--warm-cream);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: max-height 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 1s ease-out,
              visibility 1s ease-out;
}

.portfolio-reveal-container.is-revealing {
  max-height: 10000px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.portfolio-content-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.site-footer {
  position: relative;
  background: var(--warm-cream);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .portfolio-reveal-container {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
  }

  .portfolio-reveal-container.is-revealing {
    max-height: 100vh;
    opacity: 1;
    visibility: visible;
  }
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--content-max), calc(100% - 32px));
  margin: 0 auto;
}

main {
  padding-top: 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 239, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: 'Libre Caslon Text', serif;
  font-size: clamp(1.4rem, 1.2rem + 0.4vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav.is-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(220px, calc(100vw - 24px));
  padding: 18px 16px;
  background: rgba(248, 244, 239, 0.98);
  border: 1px solid var(--line);
}

.nav a:hover,
.nav a:focus-visible,
.nav a:active {
  color: var(--green-accent);
}

.nav-toggle {
  display: none;
}

main {
  padding-top: 32px;
}

.section {
  border-bottom: 1px solid var(--line-soft);
  padding: 0 0 72px;
  margin-bottom: 72px;
}

.hero {
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  min-height: 350px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-accent);
  font-weight: 600;
}

.display {
  margin: 0;
  font-family: 'Libre Caslon Text', serif;
  font-size: clamp(3rem, 2.1rem + 2vw, 5.2rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
  font-weight: 400;
}

.hero-copy p {
  max-width: 620px;
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button,
.button-ghost,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button {
  background: var(--deep-charcoal);
  color: var(--warm-cream);
}

.button:hover,
.button:focus-visible {
  background: var(--green-accent);
  border-color: var(--green-accent);
  transform: translateY(-1px);
}

.button-ghost {
  background: transparent;
  color: var(--deep-charcoal);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: var(--deep-charcoal);
  color: var(--warm-cream);
}

.icon-button {
  width: 46px;
  min-width: 46px;
  padding: 0;
  border-color: transparent;
  color: var(--muted);
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--line);
  color: var(--deep-charcoal);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 28px;
  padding-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-family: 'Libre Caslon Text', serif;
  font-size: clamp(2rem, 1.5rem + 1vw, 3rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 800px;
}

.project-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}

.project-feature:first-child {
  border-top: none;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.015);
  border-radius: 12px;
}

.project-card--featured {
  min-height: auto;
}

.project-card__header,
.project-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: 8px;
  min-height: 40px;
  border-top: 2px solid var(--green-accent);
  width: 100%;
  background: rgba(255,255,255,0.3);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
  display: inline-flex;
  align-items: center;
  padding: 5px 9px 4px;
  border: 1px solid var(--line-soft);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
}

.meta-tag--strong {
  background: var(--green-soft);
  color: var(--deep-charcoal);
  border-color: rgba(45, 106, 79, 0.35);
}

.project-copy h3,
.story-card h3,
.story-card h4,
.case-study-header h1,
.project-card h3 {
  margin: 0;
  font-family: 'Libre Caslon Text', serif;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--deep-charcoal);
}

.project-copy h3,
.project-card h3 {
  font-size: clamp(2rem, 1.5rem + 0.7vw, 2.6rem);
  line-height: 1.1;
}

.project-copy p,
.story-card p,
.detail-block p,
.case-study-copy p,
.case-study-meta,
.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.project-copy ul,
.project-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.project-copy li::before,
.project-card li::before {
  content: '—';
  margin-right: 8px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: stretch;
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 230px;
  border: 1px solid var(--line-soft);
  padding: 18px 18px 18px;
  background: rgba(255,255,255,0.015);
  border-radius: 12px;
}

.story-card h3 {
  font-size: clamp(1.8rem, 1.5rem + 0.5vw, 2.4rem);
}

.story-card .link-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--deep-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 700;
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 2px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  min-height: 24px;
  line-height: 1;
}

.inline-link:hover,
.inline-link:focus-visible {
  opacity: 0.7;
}

.inline-link span {
  transition: transform 0.2s ease;
}

.inline-link:hover span,
.inline-link:focus-visible span {
  transform: translateX(2px);
}

.promo-card {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
}

.promo-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.promo-layout h3 {
  margin: 0;
  font-size: clamp(2.1rem, 1.8rem + 0.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-family: 'Libre Caslon Text', serif;
  font-weight: 400;
}

.about-experience {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.info-card {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.02);
}

.about-copy {
  display: grid;
  gap: 14px;
}

.about-copy h2,
.experience h2 {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: 'Libre Caslon Text', serif;
  font-size: clamp(2rem, 1.7rem + 0.8vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.experience-list {
  position: relative;
  padding-left: 20px;
  border-left: 1px solid var(--line-soft);
}

.experience-item {
  position: relative;
  padding: 10px 0 16px 18px;
  border-left: 1px solid transparent;
}

.experience-item + .experience-item {
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  margin-top: 4px;
}

.experience-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 22px;
  width: 9px;
  height: 9px;
  background: var(--warm-cream);
  border: 1px solid var(--line);
}

.experience-item h4 {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deep-charcoal);
  font-weight: 600;
}

.experience-item p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  padding: 36px 0 28px;
  margin-top: 40px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-card h2 {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: 'Libre Caslon Text', serif;
  font-size: clamp(2rem, 1.7rem + 0.8vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.contact-content p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  align-items: flex-start;
}

.footer-mark {
  font-family: 'Libre Caslon Text', serif;
  font-size: clamp(1.5rem, 1.2rem + 0.5vw, 2.2rem);
  letter-spacing: -0.04em;
  margin: 0;
}

.contact-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
}

footer .small-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.case-study-page {
  padding-top: 40px;
}

.case-study-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 38px;
}

.case-study-header .eyebrow {
  margin-bottom: 18px;
}

.case-study-header h1 {
  font-size: clamp(2.8rem, 2rem + 1.8vw, 5.2rem);
  line-height: 0.96;
  max-width: 760px;
}

.case-study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 30px;
  align-items: start;
}

.case-study-copy {
  display: grid;
  gap: 18px;
}

.case-study-copy .lead {
  font-size: 1.05rem;
  color: var(--deep-charcoal);
}

.case-study-meta {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
}

.meta-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.stack-list span {
  border: 1px solid var(--line);
  padding: 6px 8px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.detail-block {
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
}

.detail-block h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.detail-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.results-panel {
  margin-top: 28px;
  border: 1px solid var(--line-soft);
  padding: 18px;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
}

.results-panel h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.result-item {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
}

.result-item strong {
  display: block;
  font-size: 1.2rem;
  color: var(--deep-charcoal);
}

.result-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== CASE STUDY — Learning Numbers ===== */
.cs-topnav {
  padding: 8px 0 24px;
}

.cs-back:hover span,
.cs-back:focus-visible span {
  transform: translateX(-2px);
}

.cs-hero {
  border-bottom: none;
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.cs-subtitle {
  margin: 18px 0 0;
  max-width: 60ch;
  font-size: 1.05rem;
  color: var(--muted);
}

.cs-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.cs-meta-row span {
  border: 1px solid var(--line-soft);
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Image frames — screenshots keep their natural aspect ratio */
.cs-hero figure,
.cs-activity figure {
  margin: 0;
}

.image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--warm-cream-strong);
  line-height: 0;
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Hero — text and screenshot side by side */
.cs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}

.cs-hero-media {
  justify-self: end;
  width: 100%;
  max-width: 440px;
}

.cs-section {
  border-top: 1px solid var(--line-soft);
  padding-top: 44px;
  margin-top: 48px;
}

.cs-section > h2 {
  margin: 0 0 18px;
  font-family: 'Libre Caslon Text', serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 1.3rem + 1vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.cs-prose p {
  margin: 0 0 14px;
  max-width: 68ch;
  color: var(--muted);
}

.cs-prose p:last-child {
  margin-bottom: 0;
}

.cs-role-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
}

.cs-role-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
}

.cs-role-list li::before {
  content: '—';
  position: absolute;
  left: 0;
}

.cs-activities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 20px;
  margin-top: 20px;
}

.cs-activity {
  display: grid;
  gap: 10px;
  align-content: start;
}

.cs-activity figure {
  margin-bottom: 2px;
}

.cs-activity h3 {
  margin: 0;
  font-family: 'Libre Caslon Text', serif;
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.cs-activity p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cs-flow {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cs-flow li {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
  color: var(--deep-charcoal);
}

.cs-flow li:not(:last-child)::after {
  content: '→';
  margin-left: 10px;
  color: var(--green-accent);
}

.cs-process {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.cs-process li {
  border-top: 2px solid var(--green-accent);
  padding-top: 12px;
}

.cs-process h3 {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--deep-charcoal);
}

.cs-process p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.cs-callout {
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--green-accent);
  border-radius: 8px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.35);
}

.cs-callout p {
  margin: 0;
  color: var(--deep-charcoal);
  font-size: 1.02rem;
}

.cs-section .cs-callout + .cs-prose {
  margin-top: 14px;
}

.cs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

@media (max-width: 1000px) {
  .cs-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cs-hero-media {
    justify-self: start;
    max-width: 460px;
  }

  .cs-activities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .cs-process li {
    padding-top: 10px;
  }
}

@media (max-width: 640px) {
  .cs-role-list,
  .cs-activities {
    grid-template-columns: 1fr;
  }

  .cs-hero-media {
    max-width: 100%;
  }

  .cs-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .cs-flow li {
    justify-content: space-between;
  }

  .cs-flow li:not(:last-child)::after {
    margin-left: 0;
  }
}

/* ===== CASE STUDY — The Last Signale (text-only) ===== */
.cs-stats {
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
}

.cs-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-stat__num {
  font-family: 'Libre Caslon Text', serif;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--deep-charcoal);
}

.cs-stat__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-section .cs-stats + .cs-prose {
  margin-top: 22px;
}

.cs-numbered {
  margin-top: 10px;
}

.cs-numbered__item {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr);
  gap: 20px 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
}

.cs-numbered__item:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.cs-numbered__num {
  font-family: 'Libre Caslon Text', serif;
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--muted);
}

.cs-numbered__body h3 {
  margin: 0 0 10px;
  font-family: 'Libre Caslon Text', serif;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--deep-charcoal);
}

.cs-numbered__body p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
}

@media (max-width: 640px) {
  .cs-numbered__item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .project-feature,
  .promo-layout,
  .about-experience,
  .case-study-layout {
    grid-template-columns: 1fr;
  }

  .project-list {
    gap: 32px;
  }

  .project-feature {
    gap: 18px;
  }

  .about-experience {
    gap: 20px;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    background: transparent;
    color: var(--deep-charcoal);
  }

  .site-header .container {
    min-height: 62px;
    position: relative;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--content-max), calc(100% - 20px));
  }

  .section {
    padding-bottom: 54px;
    margin-bottom: 54px;
  }

  .hero {
    padding-top: 12px;
  }

  .display {
    font-size: clamp(2.7rem, 2.2rem + 3.8vw, 4.2rem);
  }

  .project-grid,
  .detail-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    gap: 14px 18px;
  }

  .hero-copy p,
  .project-copy p,
  .about-copy p {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
