/* ============================================
   ASHLEY K. NEEDHAM — PORTFOLIO
   Design System & Global Styles
   ============================================ */

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

/* ---- Tokens ---- */
:root {
  --dark:           #0D1610;  /* deep forest, near-black */
  --dark-2:         #172B1E;  /* rich forest green */
  --dark-3:         #244033;  /* lighter forest */
  --cream:          #F0EBE1;  /* warm linen */
  --cream-2:        #E5DDD0;  /* deeper linen */
  --cream-3:        #D4C9B8;  /* linen shadow */
  --accent:         #7DAD46;  /* warm moss green — sampled from PNW foliage */
  --accent-hover:   #659136;
  --accent-light:   #B2D47A;
  --sage:           #5C7F63;  /* muted sage green */
  --text-primary:   #1A1612;
  --text-secondary: #5C5449;  /* warm brown-gray */
  --text-muted:     #9E9082;  /* warm muted */
  --text-light:     #F0EBE1;
  --text-light-2:   #B0A898;
  --border:         #D8CFBF;  /* warm linen border */
  --border-dark:    #263D2E;  /* dark green border */

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  --max-width:        1200px;
  --max-width-narrow: 760px;
  --max-width-mid:    960px;
  --nav-height:       72px;
  --section-gap:      120px;
  --section-gap-sm:   72px;

  --ease:         cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Typography Scale ---- */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  text-wrap: balance;
}
.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.body-lg { font-size: 1.125rem; line-height: 1.75; }
.body-sm { font-size: 0.875rem; line-height: 1.65; color: var(--text-secondary); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
.container--narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 40px;
}
.container--mid {
  max-width: var(--max-width-mid);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 10px;
  transition: all 0.25s var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: white;
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn--outline {
  border: 1px solid currentColor;
  color: var(--text-light);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
.btn--outline-dark {
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
}
.btn--outline-dark:hover {
  background: var(--text-primary);
  color: var(--cream);
}
.btn--ghost {
  color: var(--accent-light);
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover { gap: 12px; }
.btn svg { transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14, 12, 10, 0.96);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border-dark);
}
.nav.light {
  background: rgba(245, 243, 238, 0.96);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav.light.scrolled {
  background: rgba(245, 243, 238, 0.98);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  transition: color 0.2s;
}
.nav__logo:hover { color: var(--accent-light); }
.nav.light .nav__logo { color: var(--text-primary); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light-2);
  transition: color 0.2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav__link:hover,
.nav__link.active {
  color: var(--text-light);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav.light .nav__link { color: var(--text-secondary); }
.nav.light .nav__link:hover,
.nav.light .nav__link.active { color: var(--text-primary); }
.nav__cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 18px;
  border-radius: 10px;
  transition: all 0.2s;
}
.nav__cta:hover {
  background: var(--accent);
  color: white;
}

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.nav__hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text-light);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.nav.light .nav__hamburger span { background: var(--text-primary); }
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 12px;
  right: 12px;
  background: var(--dark-2);
  padding: 20px 24px 28px;
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  flex-direction: column;
  gap: 2px;
  z-index: 99;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.nav__mobile.open { display: flex; }
.nav__mobile-header {
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-dark);
}
.nav__mobile-quote {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.35;
  margin-bottom: 8px;
}
.nav__mobile-email {
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.nav__mobile-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light-2);
  padding: 12px 8px;
  border-bottom: 1px solid var(--border-dark);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav__mobile-link:hover { color: var(--text-light); }
.nav__mobile-cta {
  margin-top: 20px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- Logo Ticker ---- */
.ticker {
  background: var(--dark-2);
  padding: 20px 0;
  overflow: hidden;
}
.ticker__track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: ticker-scroll 90s linear infinite;
}
.ticker__track:hover { animation-play-state: paused; }
.ticker__item {
  display: flex;
  align-items: center;
  gap: 64px;
  white-space: nowrap;
}
.ticker__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light-2);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.ticker__label:hover { opacity: 1; }
.ticker__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  color: var(--text-light);
  padding: 80px 0 40px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer__brand {}
.footer__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 12px;
}
.footer__tagline {
  font-size: 0.8rem;
  color: var(--text-light-2);
  letter-spacing: 0.06em;
}
.footer__nav {}
.footer__nav-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light-2);
  margin-bottom: 20px;
}
.footer__nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__nav-link {
  font-size: 0.875rem;
  color: var(--text-light-2);
  transition: color 0.2s;
}
.footer__nav-link:hover { color: var(--text-light); }
.footer__contact {}
.footer__contact-cta {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  color: var(--text-light);
  margin-bottom: 20px;
}
.footer__contact-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.footer__contact-link:hover { opacity: 0.75; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer__social { display: flex; gap: 20px; }
.footer__social-link {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer__social-link:hover { color: var(--text-light); }

/* ---- Page Hero (dark, for inner pages) ---- */
.page-hero {
  background: var(--dark);
  padding: calc(var(--nav-height) + 80px) 0 80px;
  color: var(--text-light);
}
.page-hero__eyebrow {
  color: var(--accent);
  margin-bottom: 24px;
}
.page-hero__title {
  color: var(--text-light);
  margin-bottom: 24px;
}
.page-hero__subtitle {
  color: var(--text-light-2);
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.75;
  text-wrap: pretty;
}

/* ---- Section utility ---- */
.section { padding: var(--section-gap) 0; }
.section--sm { padding: var(--section-gap-sm) 0; }
.section--dark { background: var(--dark); color: var(--text-light); }
.section--cream-2 { background: var(--cream-2); }

/* Dark gradient sections (for glassmorphism card backgrounds) */
.section--forest {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 50%, var(--dark) 100%);
  color: var(--text-light);
  position: relative;
}

/* Section fade transitions */
.section--fade-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--dark), transparent);
  pointer-events: none;
  z-index: 1;
}
.section--fade-bottom::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--dark), transparent);
  pointer-events: none;
  z-index: 1;
}

.section__eyebrow {
  color: var(--accent);
  margin-bottom: 16px;
}
.section__title {
  margin-bottom: 20px;
}
.section__subtitle {
  color: var(--text-secondary);
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.75;
  text-wrap: pretty;
}
.section__header {
  margin-bottom: 64px;
}
.section__header--center { text-align: center; }
.section__header--center .section__subtitle { margin: 0 auto; }

/* ---- Divider ---- */
.divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 24px 0;
}
.divider--center { margin: 24px auto; }

/* ---- Case Study Card ---- */
.cs-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: rgba(240, 235, 225, 0.06);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  border: 1px solid rgba(240, 235, 225, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 8px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(240, 235, 225, 0.18);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
}
.cs-card:hover {
  transform: translateY(-6px);
  background: rgba(240, 235, 225, 0.09);
  box-shadow:
    0 24px 72px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(240, 235, 225, 0.22);
}
.cs-card__image {
  aspect-ratio: 4/3;
  background: var(--dark-3);
  position: relative;
  overflow: hidden;
}
.cs-card__image--light {
  background: #ffffff;
}
.cs-card__image--light .cs-card__image-inner {
  object-fit: contain;
  padding: 10px 16px;
}
/* ShootProof card — contained with padding so full screenshot is visible */
.cs-card__image--shootproof .cs-card__image-inner {
  object-fit: contain;
  padding: 10px;
}
.cs-card__image-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.cs-card:hover .cs-card__image-inner { transform: scale(1.03); }
.cs-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(23,43,30,0.8), rgba(36,64,51,0.6));
}
.cs-card__image-placeholder span {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 400;
  color: rgba(240, 235, 225, 0.1);
  letter-spacing: -0.03em;
}
.cs-card__content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(13, 22, 16, 0.3);
}
.cs-card__meta {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cs-card__tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(125, 173, 70, 0.2);
  border: 1px solid rgba(125, 173, 70, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
}
.cs-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-light);
}
.cs-card__summary {
  font-size: 0.9rem;
  color: var(--text-light-2);
  line-height: 1.7;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.cs-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(240, 235, 225, 0.1);
  margin-bottom: 32px;
}
.cs-card__stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--text-light);
  display: block;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.cs-card__stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light-2);
  opacity: 0.6;
  white-space: nowrap;
}

/* ---- Principle Card ---- */
.principle {
  padding: 36px 40px;
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  transition: transform 0.3s var(--ease-out), background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.principle:hover {
  transform: translateY(-6px);
  background: rgba(240, 235, 225, 0.06);
  border-color: rgba(125, 173, 70, 0.35);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), inset 0 1px 0 rgba(240, 235, 225, 0.1), 0 0 0 1px rgba(125, 173, 70, 0.12);
}
.principle__number {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  transition: opacity 0.3s var(--ease-out);
}
.principle__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 16px;
}
.principle__body {
  font-size: 0.875rem;
  color: var(--text-light-2);
  line-height: 1.75;
}

/* ---- Stat Block ---- */
.stat-block {
  text-align: center;
  padding: 56px 32px;
  position: relative;
}
/* Soft gradient separator instead of hard border */
.stat-block:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-dark) 50%, transparent);
  pointer-events: none;
}
.stat-block__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.stat-block__value em {
  color: inherit;
  font-style: normal;
}
.stat-block__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light-2);
  opacity: 0.7;
}

/* ---- Case Study Detail ---- */
.cs-detail__hero {
  background: var(--dark);
  padding: calc(var(--nav-height) + 48px) 0 0;
  overflow: hidden;
}
/* Hero 2-col grid layout */
.cs-detail__hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto auto;
  column-gap: 64px;
  row-gap: 40px;
  align-items: start;
  padding-bottom: 72px;
}
.cs-detail__hero-copy {
  grid-column: 1;
  grid-row: 1;
}
/* Constrain title size within the half-width column */
.cs-detail__hero-copy .page-hero__title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}
.cs-detail__hero-image {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 100%;
  object-fit: contain;
  display: block;
  opacity: 0.9;
  align-self: center;
  border-radius: 12px;
}
.cs-detail__hero-placeholder {
  grid-column: 2;
  grid-row: 1 / 3;
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
  border-radius: 12px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-detail__meta-grid {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 0;
}
.cs-detail__meta-item {
  background: rgba(240, 235, 225, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(240, 235, 225, 0.12);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: inset 0 1px 0 rgba(240, 235, 225, 0.1);
}
.cs-detail__meta-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.cs-detail__meta-value {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.4;
}
.cs-body { padding: var(--section-gap) 0; }
.cs-body__section { margin-bottom: 64px; }
.cs-body__section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.cs-body__section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.cs-body__section-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 680px;
}
.cs-body__section-text p { margin-bottom: 16px; }
.cs-body__section-text p:last-child { margin-bottom: 0; }
.cs-impact {
  background: var(--dark);
  padding: var(--section-gap) 0;
}
.cs-impact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.cs-impact__item {
  background: rgba(240, 235, 225, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(240, 235, 225, 0.1);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: inset 0 1px 0 rgba(240, 235, 225, 0.1);
}
.cs-impact__value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.cs-impact__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.cs-impact__desc {
  font-size: 0.85rem;
  color: var(--text-light-2);
  line-height: 1.65;
}

/* ---- Approach Grid ---- */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.approach-item {
  background: linear-gradient(165deg, #2a4a35 0%, #1a3326 60%, #142a1f 100%);
  border: 1px solid rgba(240, 235, 225, 0.09);
  border-top: 1px solid rgba(240, 235, 225, 0.2);
  padding: 20px 28px;
  border-radius: 16px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.15),
    0 6px 20px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(240, 235, 225, 0.1),
    inset 0 -1px 3px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}
.approach-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(125, 173, 70, 0.06) 0%, transparent 65%);
  pointer-events: none;
}
.approach-item__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(125, 173, 70, 0.3);
}
.approach-item__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-light);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.approach-item__body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---- Quote / Pullquote ---- */
.pullquote {
  border-left: 2px solid var(--accent);
  padding: 24px 0 24px 32px;
  margin: 48px 0;
}
.pullquote__text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-primary);
}
.pullquote--light .pullquote__text { color: var(--text-light); }

/* ---- Takeaway List ---- */
.takeaway-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.takeaway-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}
.takeaway-item__icon {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  padding-top: 2px;
}
.takeaway-item__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Resume page ---- */
.resume-section { margin-bottom: 56px; }
.resume-section__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.resume-role { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.resume-role:last-child { border-bottom: none; }
.resume-role__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 24px;
}
.resume-role__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
}
.resume-role__company {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.resume-role__date {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.resume-role__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.resume-role__bullet {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}
.resume-role__bullet::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---- About page portrait ---- */
.portrait-frame {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--dark-3);
  overflow: hidden;
  position: relative;
  border-radius: 16px;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--dark-2), var(--dark-3));
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 300;
  color: var(--border-dark);
  letter-spacing: -0.02em;
}

/* ---- Contact form ---- */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.form-input,
.form-textarea {
  background: var(--cream-2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 14px 18px;
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}
.form-textarea { resize: vertical; min-height: 140px; }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  :root { --section-gap: 88px; }
  .cs-card { grid-template-columns: 1fr; }
  .cs-card__image { aspect-ratio: 16/9; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --section-gap: 72px; --section-gap-sm: 48px; }
  .container, .container--narrow, .container--mid { padding: 0 24px; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__inner { padding: 0 24px; }
  .form-row { grid-template-columns: 1fr; }
  /* Hero stacks to single col; image slots between copy and specs */
  .cs-detail__hero-inner {
    grid-template-columns: 1fr;
    row-gap: 32px;
    padding: 48px 0 48px;
  }
  .cs-detail__hero-copy { grid-column: 1; grid-row: 1; }
  .cs-detail__hero-image {
    grid-column: 1;
    grid-row: 2;
    border-radius: 8px;
    max-height: 280px;
  }
  .cs-detail__meta-grid {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: 1fr 1fr;
  }
  .cs-detail__meta-item { padding: 14px 16px; }
  .cs-impact__grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .stat-block:not(:last-child)::after {
    top: auto; bottom: 0; right: 0; left: 0;
    width: auto; height: 1px;
    background: linear-gradient(to right, transparent, var(--border-dark) 50%, transparent);
  }
  /* Tighten card padding earlier */
  .cs-card__content { padding: 24px; }
  /* Shorter image — 5/2 instead of 16/9 saves ~55px */
  .cs-card__image { aspect-ratio: 16/9; }
  /* Smaller title */
  .cs-card__title { font-size: 1.05rem; }
  /* 2-column stats grid — gives each stat more room on narrow screens */
  .cs-card__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .cs-card__stat-value { font-size: 1.35rem; }
  .cs-card__stat-label { white-space: normal; }
  /* Clamp card descriptions to 3 lines on mobile — keeps cards scannable */
  .cs-card__summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Resume: stack sidebar below main content */
  .resume-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  /* Resume role header: stack date below title/company so company name
     uses the full width and aligns with the bullet points beneath */
  .resume-role__header {
    flex-direction: column;
    gap: 4px;
  }
  .resume-role__date {
    margin-top: 2px;
  }
  /* Footer sitemap: 2 columns on mobile */
  .footer__nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
  }
}

@media (max-width: 480px) {
  .cs-card__content { padding: 20px; }
  .approach-item { padding: 20px; }
  .principle { padding: 24px; }
  .cs-detail__meta-grid { grid-template-columns: 1fr; }
}
