@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500&display=swap');

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── Tokens ─── */
:root {
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Geist', system-ui, sans-serif;
  --color-ink: #1a1916;
  --color-ink-2: #4a4945;
  --color-ink-3: #8a8880;
  --color-paper: #faf9f7;
  --color-surface: #f1efe8;
  --color-border: rgba(26,25,22,0.12);
  --color-border-strong: rgba(26,25,22,0.25);
  --color-accent: #1a1916;
  --max-w: 760px;
  --nav-h: 64px;
}

/* ─── Base ─── */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Nav ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--color-paper);
  border-bottom: 0.5px solid var(--color-border);
  z-index: 100;
}

.nav-logo img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-ink-3);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--color-ink); }

/* ─── Layout ─── */
main { padding-top: var(--nav-h); }

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

/* ─── Page header ─── */
.page-header {
  padding: 5rem 0 3rem;
  border-bottom: 0.5px solid var(--color-border);
  margin-bottom: 4rem;
}

.page-header .eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-ink-3);
  margin-bottom: 1rem;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-ink);
}

/* ─── Section headings ─── */
h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-ink);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h3 {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-ink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

p { color: var(--color-ink-2); margin-bottom: 1rem; font-weight: 300; }
p:last-child { margin-bottom: 0; }

/* ─── Divider ─── */
hr {
  border: none;
  border-top: 0.5px solid var(--color-border);
  margin: 3rem 0;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 10px 20px;
  border: 0.5px solid var(--color-border-strong);
  border-radius: 40px;
  color: var(--color-ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover {
  background: var(--color-ink);
  color: var(--color-paper);
  border-color: var(--color-ink);
}

.btn-primary {
  background: var(--color-ink);
  color: var(--color-paper);
}

.btn-primary:hover {
  background: var(--color-ink-2);
}

/* ─── Tags ─── */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1.5rem;
}

.tag {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 4px 12px;
  border: 0.5px solid var(--color-border-strong);
  border-radius: 20px;
  color: var(--color-ink-3);
}

/* ─── Stat cards ─── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 2rem 0;
}

.stat-card {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 1.25rem;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--color-ink);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: var(--color-ink-3);
  line-height: 1.4;
}

/* ─── Numbered steps ─── */
.steps { list-style: none; display: flex; flex-direction: column; gap: 1rem; }

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0.5px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-ink-3);
  margin-top: 2px;
}

.step-body h3 { margin-bottom: 2px; }
.step-body p { font-size: 14px; margin: 0; }

/* ─── Lead / pull quote ─── */
.lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-ink-2);
  padding-left: 1.25rem;
  border-left: 2px solid var(--color-border-strong);
  margin-bottom: 2.5rem;
}

/* ─── Section spacing ─── */
.section { margin-bottom: 3rem; }

/* ─── HOW index — project cards ─── */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 0.5px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.project-card:hover { opacity: 0.7; }

.project-card:first-child { border-top: 0.5px solid var(--color-border); }

.project-meta { font-size: 12px; text-transform: none; letter-spacing: 0.01em; color: var(--color-ink-3); margin-bottom: 0.5rem; font-weight: 300; }
.project-title { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 400; margin-bottom: 0.75rem; line-height: 1.1; }
.project-desc { font-size: 15px; color: var(--color-ink-2); line-height: 1.65; font-weight: 300; }
.project-arrow { font-size: 1.5rem; color: var(--color-ink-3); text-align: right; transition: transform 0.2s; }
.project-card:hover .project-arrow { transform: translateX(4px); }

/* ─── Case study nav ─── */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-ink-3);
  margin-bottom: 3rem;
  transition: color 0.2s;
}

.cs-back:hover { color: var(--color-ink); }

.cs-meta-bar {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 0.5px solid var(--color-border);
  border-bottom: 0.5px solid var(--color-border);
  margin-bottom: 3rem;
}

.cs-meta-item { display: flex; flex-direction: column; gap: 3px; }
.cs-meta-label { font-size: 11px; text-transform: none; letter-spacing: 0.02em; color: var(--color-ink-3); font-weight: 400; }
.cs-meta-value { font-size: 14px; color: var(--color-ink); font-weight: 300; }

/* ─── WHO page ─── */
.who-intro {
  padding: 5rem 0 4rem;
}

.who-intro h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.who-intro .subtitle {
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--color-ink-3);
  margin-bottom: 2rem;
  font-weight: 300;
}

.who-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.superpowers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.superpower h3 { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 400; font-style: italic; margin-bottom: 0.5rem; }
.superpower p { font-size: 14px; }

.experience-list { display: flex; flex-direction: column; gap: 1.5rem; margin: 2rem 0; }
.exp-item { display: flex; gap: 1.5rem; align-items: flex-start; padding-bottom: 1.5rem; border-bottom: 0.5px solid var(--color-border); }
.exp-item:last-child { border-bottom: none; }
.exp-logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; margin-top: 2px; }
.exp-body h3 { margin-bottom: 2px; }
.exp-body p { font-size: 14px; margin: 0; }

/* ─── Footer ─── */
footer {
  padding: 3rem 0;
  border-top: 0.5px solid var(--color-border);
  margin-top: 6rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy { font-size: 12px; color: var(--color-ink-3); font-style: italic; }

/* ─── Responsive ─── */
@media (max-width: 600px) {
  nav { padding: 0 1.25rem; }
  .container { padding: 0 1.25rem; }

  .project-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .project-arrow { text-align: left; }

  body.page-how .project-card {
    grid-template-columns: 1fr;
  }

  .cs-meta-bar { gap: 1.25rem; }

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

/* ═══ Site portfolio (all pages) — Avenir, white, taller nav, aligned shell ═══ */
body.site-portfolio {
  --font-avenir: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --site-accent: hsl(292, 50%, 64%);
  --site-max: 1280px;
  --site-pad-x: clamp(1.25rem, 6vw, 5.5rem);
  --site-edge-spacing: clamp(3rem, 8vw, 6rem);
  --nav-h: 88px;
  --font-weight-regular: 400;
  --font-weight-demi: 600;
  font-family: var(--font-avenir);
  background: #ffffff;
  color: #000000;
  font-weight: var(--font-weight-regular);
  line-height: normal;
}

body.site-portfolio nav {
  background: #ffffff;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  padding: 0;
  height: var(--nav-h);
  display: block;
}

/* Width + horizontal padding only (main, footer text, etc.) */
body.site-portfolio .site-shell {
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-pad-x);
  padding-right: var(--site-pad-x);
}

/* Nav row: logo left, links right */
body.site-portfolio nav .site-align {
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-pad-x);
  padding-right: var(--site-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: var(--nav-h);
}

body.site-portfolio .nav-logo {
  flex-shrink: 0;
  margin-right: auto;
}

body.site-portfolio .nav-links {
  margin-left: auto;
}

body.site-portfolio .nav-logo img {
  height: 40px;
  width: auto;
}

body.site-portfolio .nav-links a {
  font-family: var(--font-avenir);
  font-size: 14px;
  font-weight: var(--font-weight-demi);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--site-accent);
  text-decoration: none;
}

body.site-portfolio .nav-links a:hover {
  text-decoration: underline;
}

body.site-portfolio .nav-links a.active {
  color: var(--site-accent);
}

body.site-portfolio main {
  padding-top: var(--nav-h);
  background: #ffffff;
}

body.site-portfolio .container {
  max-width: var(--site-max);
  padding-left: var(--site-pad-x);
  padding-right: var(--site-pad-x);
}

body.site-portfolio .page-header {
  padding: 2.5rem 0 1.75rem;
  margin-bottom: 2rem;
}

body.site-portfolio .project-card {
  padding: 1.75rem 0;
}

body.site-portfolio hr {
  margin: 2rem 0;
}

body.site-portfolio footer {
  margin-top: var(--site-edge-spacing);
  padding: 2.75rem 0;
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
  background: rgb(245, 245, 245);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

body.site-portfolio footer .container,
body.site-portfolio footer .site-shell {
  display: block;
  text-align: center;
  max-width: var(--site-max);
  margin: 0 auto;
  padding-left: var(--site-pad-x);
  padding-right: var(--site-pad-x);
  width: 100%;
  box-sizing: border-box;
}

body.site-portfolio .footer-copy,
body.site-portfolio .site-footer-copy {
  font-family: var(--font-avenir);
  font-size: 14px;
  font-style: normal;
  font-weight: var(--font-weight-regular);
  color: #000000;
  text-align: center;
}

body.site-portfolio p {
  font-weight: var(--font-weight-regular);
}

/* Who page */
body.site-portfolio .who-page {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 3rem;
}

body.site-portfolio .who-block {
  margin-bottom: 0;
}

body.site-portfolio .who-block:first-child {
  padding-top: var(--site-edge-spacing);
}

body.site-portfolio .who-section-title {
  font-family: var(--font-avenir);
  font-size: 1.35rem;
  font-weight: var(--font-weight-demi);
  color: var(--color-ink);
  margin: 0 0 1rem;
  line-height: normal;
}

body.site-portfolio .who-prose-text {
  font-size: 1.05rem;
  line-height: normal;
  color: var(--color-ink-2);
}

body.site-portfolio .who-prose-text p {
  margin: 0 0 1.25rem;
}

body.site-portfolio .who-prose-text p:last-child {
  margin-bottom: 0;
}

body.site-portfolio .who-quote {
  font-weight: var(--font-weight-demi);
  font-style: normal;
  color: var(--color-ink-2);
}

body.site-portfolio .who-medium {
  font-weight: 500;
}

body.site-portfolio .who-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-top: 0.5rem;
}

/* Match WHAT hero (home-hero-grid): 7fr copy | 5fr visual, vertically centered */
body.site-portfolio .who-designer-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  width: 100%;
}

body.site-portfolio .who-designer-copy {
  text-align: left;
}

body.site-portfolio .who-designer-copy .who-links {
  justify-content: flex-start;
}

body.site-portfolio .who-fth-grid {
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

body.site-portfolio .who-designer-visual {
  width: 100%;
  max-width: 702px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

body.site-portfolio .who-designer-visual img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(0.75);
  transform-origin: center center;
}

body.site-portfolio .who-fth-visual img,
body.site-portfolio .who-speaker-visual img {
  width: 100%;
  height: auto;
  display: block;
}

body.site-portfolio .who-speaker-visual {
  margin-bottom: clamp(1rem, 2.5vw, 1.35rem);
}

body.site-portfolio .who-talk-heading {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  line-height: normal;
  font-weight: var(--font-weight-regular);
}

body.site-portfolio a.who-talk-title {
  font-family: var(--font-avenir);
  font-weight: var(--font-weight-demi);
  font-size: 1.1rem;
  color: hsl(292, 50%, 64%);
  text-decoration: none;
}

body.site-portfolio a.who-talk-title:hover {
  color: hsl(292, 50%, 54%);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.site-portfolio .who-speaker-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-bottom: 0;
}

body.site-portfolio .who-speaker .who-section-title {
  margin-top: 0;
  margin-bottom: clamp(1rem, 2.5vw, 1.25rem);
  text-align: left;
}

@media (max-width: 840px) {
  body.site-portfolio .who-designer-grid,
  body.site-portfolio .who-fth-grid,
  body.site-portfolio .who-speaker-cols {
    grid-template-columns: 1fr;
  }
}

body.site-portfolio .page-header h1 {
  font-family: var(--font-avenir);
  font-weight: var(--font-weight-demi);
}

body.site-portfolio .project-title {
  font-family: var(--font-avenir);
  font-weight: var(--font-weight-demi);
}

/* How page — project list (body.page-how) */
body.page-how main > .container {
  padding-top: var(--site-edge-spacing);
  padding-bottom: 3rem;
  color: #000000;
}

body.page-how .project-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  padding: 1.75rem 0;
  border: none;
  text-decoration: none;
  color: #000000;
  transition: background-color 0.15s ease;
}

body.page-how .project-card:hover {
  opacity: 1;
}

body.page-how .project-card-thumb {
  position: relative;
  aspect-ratio: 2 / 0.8;
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #ececec;
  border: none;
  transform: rotate(0deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
}

body.page-how .project-card:hover .project-card-thumb {
  overflow: visible;
  transform: rotate(-2deg);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

body.page-how .project-card-thumb > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

body.page-how .project-card-main {
  min-width: 0;
}

body.page-how .project-title {
  color: #000000;
  font-size: max(10px, 1.35rem);
  margin: 0 0 0.75rem;
}

body.page-how .project-desc {
  color: #000000;
  font-size: max(10px, 15px);
  line-height: normal;
  font-weight: var(--font-weight-regular);
  margin: 0;
}

/* Match WHAT .home-pill-btn; width grows on row hover as arrow reveals */
body.page-how .project-case-study {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 2rem;
  padding: 8px 18px;
  border: 1px solid var(--site-accent);
  border-radius: 4px;
  font-family: var(--font-avenir);
  font-size: max(10px, 14px);
  font-weight: var(--font-weight-regular);
  line-height: normal;
  letter-spacing: 0.02em;
  color: var(--site-accent);
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, gap 0.22s ease;
}

body.page-how .project-card:hover .project-case-study {
  background: var(--site-accent);
  color: #ffffff;
  border-color: var(--site-accent);
  gap: 0.4rem;
}

body.page-how .project-case-study-arrow {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width 0.22s ease, opacity 0.2s ease;
}

body.page-how .project-card:hover .project-case-study-arrow {
  max-width: 1.5em;
  opacity: 1;
}

body.site-portfolio h2 {
  font-family: var(--font-avenir);
}

/* ═══ Case study pages (projects) ═══ */
body.page-case-study {
  color: #000000;
  /* Article width: roomier than 720px, in line with Medium-style long-form (e.g. medium.com/designing-atlassian/...) */
  --cs-content-max: 900px;
}

body.page-case-study main > .container {
  font-family: var(--font-avenir);
  max-width: min(var(--cs-content-max), 100%);
  margin-left: auto;
  margin-right: auto;
}

body.page-case-study main {
  font-size: 16px;
}

body.page-case-study main p,
body.page-case-study main li {
  font-family: var(--font-avenir);
  font-size: max(12px, 1em);
  font-weight: var(--font-weight-regular);
  color: #000000;
}

body.page-case-study .lead {
  font-family: var(--font-avenir);
  font-size: max(12px, 1.05em);
  font-weight: var(--font-weight-regular);
  color: #000000;
}

body.page-case-study main a:not(.home-pill-btn):not(.cs-all-projects-link) {
  color: var(--site-accent);
  text-decoration: none;
}

body.page-case-study main a:not(.home-pill-btn):not(.cs-all-projects-link):hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.page-case-study a.cs-all-projects-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-family: var(--font-avenir);
  font-size: max(12px, 14px);
  font-weight: var(--font-weight-regular);
  line-height: normal;
  letter-spacing: 0.02em;
  color: var(--site-accent);
  text-decoration: none;
}

body.page-case-study a.cs-all-projects-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.page-case-study main > .container > a.cs-all-projects-link:first-child {
  margin-top: 5rem;
  margin-bottom: 2rem;
}

body.page-case-study .cs-hero-title {
  font-family: var(--font-avenir);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-demi);
  line-height: 1.1;
  color: #000000;
  margin: 0 0 2.5rem;
}

body.page-case-study .cs-hero-image {
  width: 100%;
  margin: 0 0 4rem;
  border-radius: 12px;
  overflow: hidden;
}

body.page-case-study .cs-hero-image img {
  width: 100%;
  aspect-ratio: 2 / 0.8;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

body.page-case-study .cs-section-figure {
  margin: 1.25rem 0 1.75rem;
  overflow: visible;
}

body.page-case-study .cs-section-figure img {
  width: 100%;
  height: auto;
  display: block;
}

body.page-case-study .cs-section-figure--rounded img {
  border-radius: 12px;
}

body.page-case-study main ul.steps + .cs-section-figure--rounded {
  margin-top: 3rem;
}

body.page-case-study .cs-section-figure-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}

body.page-case-study .cs-section-figure-row > .cs-section-figure {
  margin: 0;
}

@media (max-width: 700px) {
  body.page-case-study .cs-section-figure-row {
    grid-template-columns: 1fr;
  }
}

body.page-case-study main ul.steps + p {
  margin-top: 1.75rem;
}

body.page-case-study .cs-section-figure figcaption {
  font-family: var(--font-avenir);
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  color: #5f5f5f;
  line-height: normal;
  margin-top: 0.75rem;
}

body.page-case-study .section h2 {
  font-family: var(--font-avenir);
  font-size: 1.35rem;
  font-weight: var(--font-weight-demi);
  color: #000000;
  margin: 0 0 1rem;
  line-height: normal;
}

body.page-case-study .step-body h3 {
  font-family: var(--font-avenir);
  font-size: max(12px, 1em);
  font-weight: var(--font-weight-demi);
  color: #000000;
}

body.page-case-study .step-body p {
  font-size: max(12px, 1em);
  font-weight: var(--font-weight-regular);
  color: #000000;
}

body.page-case-study .cs-meta-label {
  font-size: 1em;
  font-weight: var(--font-weight-demi);
  color: #000000;
}

body.page-case-study .cs-meta-value {
  font-family: var(--font-avenir);
  font-size: 1em;
  font-weight: var(--font-weight-regular);
  color: #000000;
  line-height: normal;
}

body.page-case-study .stat-card {
  background: rgb(245, 245, 245);
}

body.page-case-study .stat-num {
  font-family: var(--font-avenir);
  font-weight: var(--font-weight-demi);
  color: #000000;
}

body.page-case-study .stat-num-plus {
  color: #1a7f37;
}

body.page-case-study .stat-label {
  font-family: var(--font-avenir);
  font-size: 1em;
  font-weight: var(--font-weight-regular);
  color: #000000;
  line-height: normal;
}

body.page-case-study .step-num {
  font-family: var(--font-avenir);
  font-size: 12px;
  font-weight: var(--font-weight-regular);
}

body.page-case-study .cs-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
}

/* Squarespace-style outline buttons (shaziyatambawala.com) + shared pills */
body.site-portfolio .home-pill-btn,
body.site-portfolio .site-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-avenir);
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  line-height: normal;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  color: var(--site-accent);
  background: transparent;
  border: 1px solid var(--site-accent);
  border-radius: 4px;
  padding: 8px 18px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.site-portfolio .home-pill-btn:hover,
body.site-portfolio .site-pill-btn:hover {
  background: var(--site-accent);
  color: #ffffff;
  border-color: var(--site-accent);
}

/* ═══ Home page (index) ═══ */
body.page-home {
  --home-accent: hsl(292, 50%, 64%);
  --home-text: #000000;
  --heading-1-size: 16px;
  --hero-name-size: 60px;
}

body.page-home strong {
  font-weight: var(--font-weight-demi);
}

body.page-home .heading-1,
body.page-home .home-section-title {
  font-family: var(--font-avenir);
  font-size: var(--heading-1-size);
  font-weight: var(--font-weight-demi);
  line-height: normal;
  letter-spacing: 0.05em;
  color: #000000;
  margin: 0 0 0.35em;
  white-space: pre-wrap;
}

body.page-home .page-home-inner {
  padding-top: var(--site-edge-spacing);
  padding-bottom: 3rem;
}

body.page-home .home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: 0;
}

/* Matches assets/shaziya.png (548×502); update ratio if the asset dimensions change */
body.page-home .home-hero-photo {
  position: relative;
  width: 100%;
  max-width: 702px;
  margin: 0 auto;
  aspect-ratio: 548 / 502;
}

body.page-home .home-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(0.75);
  transform-origin: center center;
}

/* Hero stack: equal gaps (UX→Heyo and Heyo→meta); rem avoids huge em-based gaps on large h2 */
body.page-home .home-hero-copy > h1.home-section-title {
  margin-bottom: 0.35rem;
}

body.page-home .home-hero-copy h2 {
  font-family: var(--font-avenir);
  font-size: var(--hero-name-size);
  font-weight: var(--font-weight-demi);
  line-height: normal;
  color: var(--home-text);
  margin: 0 0 0.35rem;
  white-space: pre-wrap;
}

body.page-home .home-meta {
  font-family: var(--font-avenir);
  font-size: 16px;
  line-height: normal;
  font-weight: var(--font-weight-regular);
  color: var(--home-text);
  margin: 0 0 2em;
}

body.page-home .home-meta-pipe {
  color: var(--home-accent);
}

body.page-home .home-lede {
  font-family: var(--font-avenir);
  font-size: 19px;
  line-height: normal;
  font-weight: var(--font-weight-regular);
  color: var(--home-text);
  margin: 0 0 1.25rem;
  white-space: pre-wrap;
}

body.site-portfolio a.home-text-link {
  color: var(--site-accent);
  text-decoration: none;
}

body.site-portfolio a.home-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.page-home .home-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: center;
}

body.page-home .home-spacer-lg {
  height: clamp(1.25rem, 3vw, 2rem);
}

body.page-home .home-three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

body.page-home .home-col .heading-1 {
  margin-bottom: 1.35rem;
}

body.page-home .home-col h3 {
  font-family: var(--font-avenir);
  font-size: 16px;
  line-height: normal;
  font-weight: var(--font-weight-regular);
  color: var(--home-text);
  margin: 1.35rem 0 0.4rem;
  white-space: pre-wrap;
}

body.page-home .home-col h3:first-of-type {
  margin-top: 0;
}

body.page-home .home-col p {
  font-family: var(--font-avenir);
  font-size: 16px;
  line-height: normal;
  font-weight: var(--font-weight-regular);
  color: var(--home-text);
  margin: 0 0 1rem;
  white-space: pre-wrap;
}

body.page-home .home-recent-head {
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 2fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

body.page-home .home-recent-resume {
  justify-self: end;
}

body.page-home .home-exp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

body.page-home .home-exp-card figure {
  margin: 0 0 0.75rem;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

body.page-home .home-exp-card figure::before {
  content: "";
  display: block;
  padding-bottom: 74.92%;
}

body.page-home .home-exp-card figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 12px;
}

body.page-home .home-exp-card h3 {
  font-family: var(--font-avenir);
  font-size: 16px;
  font-weight: var(--font-weight-demi);
  color: var(--home-text);
  margin: 0 0 0.35rem;
  white-space: pre-wrap;
}

body.page-home .home-exp-card p {
  font-family: var(--font-avenir);
  font-size: 16px;
  line-height: normal;
  font-weight: var(--font-weight-regular);
  color: var(--home-text);
  margin: 0;
  white-space: pre-wrap;
}

body.page-home footer.home-footer {
  margin-top: var(--site-edge-spacing);
}

body.page-home .home-footer-inner {
  text-align: center;
}

@media (max-width: 900px) {
  body.page-home .home-three-col {
    grid-template-columns: 1fr;
  }
  body.page-home .home-exp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.page-home .home-recent-head {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  body.page-home .home-recent-resume {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  body.page-home .home-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
  body.page-home .home-exp-grid {
    grid-template-columns: 1fr;
  }
}
