/* ============================================================
   ANUBHAV PANDEY — PORTFOLIO
   Design System + Component Styles
   Phase 1 — Base build

   Architecture:
   1. Custom Properties (tokens)
   2. Reset
   3. Typography
   4. Layout utilities
   5. Navigation
   6. Hero
   7. Section scaffolding
   8. Work / Projects grid
   9. Experience strip
   10. AI Projects
   11. Blog shelf
   12. Footer
   13. Case study pages
   14. Responsive overrides
   ============================================================ */


/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* — Background — */
  --bg: #F7F5F1;
  --bg-alt: #EDEBE6;
  --bg-card: #FFFFFF;
  --bg-dark: #111110;

  /* — Text — */
  --text: #111110;
  --text-body: #4d4d49;       /* paragraph body text — darker than text-sec for reading comfort */
  --text-sec: #686864;        /* secondary UI: captions, meta, labels */
  --text-muted: #9A9995;      /* muted: timestamps, read-times, helper text */
  --text-light: #F7F5F1;

  /* — Dark-section text hierarchy — */
  --text-on-dark:       rgba(247, 245, 241, 0.96); /* primary body on dark bg */
  --text-on-dark-sec:   rgba(247, 245, 241, 0.65); /* secondary: roles, dates, sub-labels */
  --text-on-dark-muted: rgba(247, 245, 241, 0.42); /* muted: footer col labels, brand desc */
  --text-on-dark-faint: rgba(247, 245, 241, 0.30); /* faint: copyright, footnotes */

  /* — Accent (deep forest green — distinct from Anthropic coral) — */
  --accent: #1C3D2B;
  --accent-mid: #2D6A4F;
  --accent-soft: #52B788;
  --accent-tint: rgba(44, 106, 79, 0.07);

  /* — Borders — */
  --border: #DDD9CF;
  --border-dark: rgba(255, 255, 255, 0.08);

  /* — Typography — */
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* — Spacing scale (rem-based) — */
  --sp-2: 0.5rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* — Layout — */
  --max-w: 1160px;
  --nav-h: 66px;
  --radius: 3px;

  /* — Motion — */
  --ease: 0.2s ease;
  --ease-slow: 0.4s ease;
}


/* ============================================================
   2. RESET
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Overline / label */
.label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Italic accent — used in headings */
em {
  font-style: italic;
  color: var(--accent-mid);
}

p {
  color: var(--text-body);
  line-height: 1.7;
}


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-8);
}

.section {
  padding: var(--sp-24) 0;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-12);
}

.section--dark .section-header {
  border-bottom-color: var(--border-dark);
}

.section-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-sec);
}

.section--dark .section-title {
  color: var(--text-on-dark-muted);
}

.section-link {
  font-size: 0.775rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--ease);
}

.section-link:hover {
  color: var(--accent-mid);
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-16) 0;
}


/* ============================================================
   5. NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition:
    background var(--ease),
    border-color var(--ease),
    backdrop-filter var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(247, 245, 241, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-8);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: opacity var(--ease);
}

.nav__logo:hover {
  opacity: 0.7;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-sec);
  transition: color var(--ease);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}

.nav__cta {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.42rem 1rem;
  background: var(--accent);
  color: var(--text-light) !important;
  border-radius: var(--radius);
  transition: background var(--ease) !important;
}

.nav__cta:hover {
  background: var(--accent-mid) !important;
  color: var(--text-light) !important;
}

/* Nav action buttons */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: var(--sp-4);
}

.nav__btn-ghost {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.46rem 1rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  color: var(--text-sec);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--ease), color var(--ease);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.nav__btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

.nav__btn-primary {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.46rem 1rem;
  background: var(--accent);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--ease);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  text-decoration: none;
}

.nav__btn-primary:hover {
  background: var(--accent-mid);
}

/* ---- Contact modal ---- */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 9, 0.5);
  backdrop-filter: blur(3px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.contact-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.contact-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  z-index: 901;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2.5);
  width: min(480px, calc(100vw - 2rem));
  padding: 1.75rem 2rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 48px rgba(10, 10, 9, 0.12);
}

.contact-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%);
}

.contact-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.contact-modal__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
}

.contact-modal__subtitle {
  font-size: 0.82rem;
  color: var(--text-sec);
  margin-top: 0.3rem;
  line-height: 1.5;
}

.contact-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.2rem 0.3rem;
  transition: color var(--ease);
  flex-shrink: 0;
}

.contact-modal__close:hover {
  color: var(--text);
}

.contact-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-modal__label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-sec);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-modal__input,
.contact-modal__textarea {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  outline: none;
  transition: border-color var(--ease);
  width: 100%;
  box-sizing: border-box;
}

.contact-modal__input::placeholder,
.contact-modal__textarea::placeholder {
  color: var(--text-muted);
}

.contact-modal__input:focus,
.contact-modal__textarea:focus {
  border-color: var(--accent);
}

.contact-modal__textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.contact-modal__feedback {
  font-size: 0.8rem;
  line-height: 1.5;
  min-height: 1.2em;
  color: transparent;
}

.contact-modal__feedback--success {
  color: #2d7a4f;
}

.contact-modal__feedback--error {
  color: #b84040;
}

.contact-modal__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--sp-4);
  margin-top: 0.5rem;
}

.contact-modal__cancel {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-sec);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: color var(--ease);
}

.contact-modal__cancel:hover {
  color: var(--text);
}

.contact-modal__submit {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.52rem 1.3rem;
  background: var(--accent);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--ease);
}

.contact-modal__submit:hover {
  background: var(--accent-mid);
}

.contact-modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--ease);
}


/* ============================================================
   6. HERO
   ============================================================ */

.hero {
  padding-top: calc(var(--nav-h) + var(--sp-32));
  padding-bottom: var(--sp-32);
  min-height: 94vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  max-width: 840px;
}

.hero__label {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.hero__label::before {
  content: '';
  display: block;
  width: 26px;
  height: 1px;
  background: var(--text-muted);
  flex-shrink: 0;
}

.hero__heading {
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: var(--sp-8);
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-sec);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: var(--sp-10);
}

/* Metric strip below hero text */
.hero__stats {
  display: flex;
  gap: var(--sp-12);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-10);
}

.hero__stat-value {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  display: block;
}

.hero__stat-label {
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.3rem;
  display: block;
  max-width: 120px;
}

/* CTAs */
.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: var(--text-light);
  border-radius: var(--radius);
  transition: background var(--ease);
}

.btn-primary:hover {
  background: var(--accent-mid);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-sec);
  transition: color var(--ease);
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-ghost .arrow {
  transition: transform var(--ease);
}

.btn-ghost:hover .arrow {
  transform: translateX(3px);
}


/* ============================================================
   7. WORK / PROJECTS GRID
   ============================================================ */

.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.project-card {
  background: var(--bg);
  padding: var(--sp-10) var(--sp-10);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  transition: background var(--ease);
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  background: var(--bg-card);
}

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

.project-card__num {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.project-card__tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-mid);
  background: var(--accent-tint);
  padding: 0.18rem 0.55rem;
  border-radius: 2px;
}

.project-card__name {
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.project-card__subtitle {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-sec);
  display: block;
  margin-top: 0.3rem;
  font-style: normal;
  letter-spacing: 0;
}

.project-card__desc {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.72;
  flex-grow: 1;
}

.project-card__metric {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  line-height: 1.4;
}

.project-card__cta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--ease);
  margin-top: auto;
}

.project-card:hover .project-card__cta {
  color: var(--accent);
}


/* ============================================================
   8. EXPERIENCE STRIP
   ============================================================ */

.exp__list {
  display: flex;
  flex-direction: column;
}

.exp__item {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: var(--sp-8);
  align-items: start;
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--border-dark);
}

.exp__item:first-child {
  border-top: 1px solid var(--border-dark);
}

.exp__company {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.3;
}

.exp__role {
  font-size: 0.875rem;
  color: var(--text-on-dark-sec);
  margin-top: 0.35rem;
  display: block;
  line-height: 1.5;
}

.exp__desc {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
}

/* RTE in admin embeds inline style="color:..." on child elements — !important overrides them */
.exp__desc * {
  color: var(--text-on-dark-muted) !important;
  font-size: inherit;
  line-height: inherit;
}

.exp__desc ul,
.exp__desc ol {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.exp__desc li {
  display: grid;
  grid-template-columns: 0.85rem 1fr;
  gap: 0.4rem;
  align-items: baseline;
  list-style: none !important;
}

.exp__desc li::before {
  content: "–";
  color: var(--text-on-dark-muted);
  flex-shrink: 0;
}

.exp__metric {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-soft);
  text-align: right;
  line-height: 1.4;
}


/* ============================================================
   9. AI + INDEPENDENT PROJECTS
   ============================================================ */

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: border-color var(--ease), transform var(--ease);
}

.ai-card:hover {
  border-color: var(--accent-mid);
  transform: translateY(-2px);
}

.ai-card__tag {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-mid);
}

.ai-card__title {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.ai-card__desc {
  font-size: 0.82rem;
  color: var(--text-sec);
  line-height: 1.65;
  flex-grow: 1;
}

.ai-card__link {
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--ease);
  margin-top: auto;
}

.ai-card:hover .ai-card__link {
  color: var(--accent);
}


/* ============================================================
   10. BLOG SHELF
   ============================================================ */

/* ── Blog card carousel ── */
.blog__carousel-wrap {
  position: relative;
}

.blog__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-10);
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog__item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease);
  cursor: pointer;
}

.blog__item:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.blog__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  transition: opacity var(--ease);
}

.blog__item:hover .blog__thumb {
  opacity: 0.92;
}

.blog__card-body {
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-4);
}

.blog__title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.blog__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.blog__read-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--accent-mid);
  text-decoration: none;
  transition: color var(--ease);
  align-self: flex-start;
}

.blog__card-cta:hover {
  color: var(--accent);
}


/* ============================================================
   11. FOOTER
   ============================================================ */

.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-16);
  margin-bottom: var(--sp-16);
}

.footer__brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: var(--sp-4);
}

.footer__brand-desc {
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
  max-width: 240px;
}

.footer__col-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--sp-6);
  display: block;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer__links a {
  font-size: 0.855rem;
  color: var(--text-on-dark-sec);
  transition: color var(--ease);
}

.footer__links a:hover {
  color: var(--text-light);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-dark);
}

.footer__copy {
  font-size: 0.73rem;
  color: var(--text-on-dark-faint);
}

.footer__socials {
  display: flex;
  gap: var(--sp-8);
}

.footer__socials a {
  font-size: 0.73rem;
  color: var(--text-on-dark-faint);
  transition: color var(--ease);
}

.footer__socials a:hover {
  color: var(--text-light);
}


/* ============================================================
   12. CASE STUDY PAGES
   ============================================================ */

.cs-hero {
  padding-top: calc(var(--nav-h) + var(--sp-20));
  padding-bottom: var(--sp-20);
  border-bottom: 1px solid var(--border);
}

.cs-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-8);
  transition: color var(--ease);
}

.cs-hero__back:hover {
  color: var(--text);
}

.cs-hero__label {
  margin-bottom: var(--sp-4);
}

.cs-hero__title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
  line-height: 1.1;
}

.cs-hero__subtitle {
  font-size: 1rem;
  color: var(--text-sec);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: var(--sp-10);
}

.cs-meta {
  display: flex;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

.cs-meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cs-meta__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cs-meta__value {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 400;
}

/* Outcome callout */
.cs-outcome {
  background: var(--accent-tint);
  border-left: 3px solid var(--accent-mid);
  padding: var(--sp-8) var(--sp-8);
  margin: var(--sp-12) 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.cs-outcome__value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.cs-outcome__label {
  font-size: 0.8rem;
  color: var(--text-sec);
  margin-top: 0.3rem;
  display: block;
}

/* Body content */
.cs-body {
  max-width: 720px;
  margin: 0 auto;
}

.cs-section {
  padding: var(--sp-16) 0;
  border-bottom: 1px solid var(--border);
}

.cs-section:last-child {
  border-bottom: none;
}

.cs-section__label {
  margin-bottom: var(--sp-4);
}

.cs-section h2 {
  font-size: 1.6rem;
  margin-bottom: var(--sp-6);
}

.cs-section h3 {
  font-size: 1.15rem;
  margin-bottom: var(--sp-4);
  margin-top: var(--sp-8);
}

.cs-section p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-sec);
  margin-bottom: var(--sp-4);
}

/* Metric callout inline */
.metric-pull {
  display: flex;
  gap: var(--sp-8);
  padding: var(--sp-6) 0;
  margin: var(--sp-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metric-pull__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-pull__num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-pull__desc {
  font-size: 0.73rem;
  color: var(--text-muted);
  max-width: 110px;
  line-height: 1.4;
}

/* Image placeholder */
.cs-image-placeholder {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--sp-8) 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Sub-section (within a case study) */
.cs-subsection {
  padding: var(--sp-12) 0;
  border-top: 1px solid var(--border);
}

.cs-subsection__num {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-mid);
  margin-bottom: var(--sp-2);
  display: block;
}

.cs-subsection h3 {
  font-size: 1.3rem;
  margin-bottom: var(--sp-6);
  margin-top: 0;
}


/* ============================================================
   13. RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .projects__grid {
    grid-template-columns: 1fr;
  }

  .exp__item {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .exp__metric {
    text-align: left;
    grid-column: 1 / -1;
    border-top: 1px solid var(--border-dark);
    padding-top: var(--sp-4);
  }

  .ai-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --sp-24: 4rem;
    --sp-32: 5rem;
  }

  .nav__links {
    display: none;
  }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    padding: var(--sp-8);
    border-bottom: 1px solid var(--border);
    gap: var(--sp-6);
    align-items: flex-start;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__actions {
    display: none;
  }

  .hero__stats {
    gap: var(--sp-8);
    flex-wrap: wrap;
  }

  .exp__item {
    grid-template-columns: 1fr;
  }

  .exp__metric {
    text-align: left;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border-dark);
  }

  .ai-grid {
    grid-template-columns: 1fr;
  }

  .blog__list {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--sp-4);
    text-align: center;
  }

  .cs-meta {
    gap: var(--sp-8);
  }

  .metric-pull {
    flex-wrap: wrap;
  }
}