/* ============================================================
   portfolio.css — Melissa Craddock Portfolio
   Shared across all pages: index, work, case studies

   SPACING SYSTEM — 4px base grid
   --sp-1:  4px   --sp-2:  8px   --sp-3:  12px  --sp-4:  16px
   --sp-5:  20px  --sp-6:  24px  --sp-7:  28px  --sp-8:  32px
   --sp-10: 40px  --sp-12: 48px  --sp-14: 56px  --sp-16: 64px
   --sp-20: 80px

   BREAKPOINTS
   --bp-xl:  1280px   wide desktop
   --bp-lg:  1024px   desktop
   --bp-md:  768px    tablet
   --bp-sm:  480px    mobile
   ============================================================ */



/* ── Design tokens ──────────────────────────────────────── */
:root {
  /* Brand — cerulean teal */
  --brand:        #072369;
  --brand-2:      #01A2DF;
  --brand-soft:   #CBE7F5;
  --brand-tint:   #e8f6fd;
  --brand-line:   rgba(255,255,255,0.18);
  --brand-dark:   #0F2B4C;

  /* CTA — deep space blue */
  --cta:          #003249;
  --cta-hover:    #4d7080;
  --cta-tint:     #e8eef1;

  /* Surface */
  --bg:           #ffffff;
  --paper:        #f4f6f8;

  /* Ink — blue-toned neutrals */
  --ink:          #14202b;
  --ink-2:        #3d4a56;
  --ink-3:        #5c6470;
  --ink-4:        #8a96a0;

  /* Rules */
  --rule:         #d8dde2;
  --rule-2:       #e4e8ec;

  /* Semantic */
  --loop:         #b91c1c;
  --loop-soft:    #fecaca;
  --green:        #1f7a4d;
  --green-dot:    #2da169;

  /* Radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   18px;

  /* 4px spacing grid */
  --sp-1:   0.25rem;   /*  4px */
  --sp-2:   0.5rem;    /*  8px */
  --sp-3:   0.75rem;   /* 12px */
  --sp-4:   1rem;      /* 16px */
  --sp-5:   1.25rem;   /* 20px */
  --sp-6:   1.5rem;    /* 24px */
  --sp-7:   1.75rem;   /* 28px */
  --sp-8:   2rem;      /* 32px */
  --sp-10:  2.5rem;    /* 40px */
  --sp-12:  3rem;      /* 48px */
  --sp-14:  3.5rem;    /* 56px */
  --sp-16:  4rem;      /* 64px */
  --sp-20:  5rem;      /* 80px */

  /* Semantic spacing aliases */
  --space-section:  var(--sp-16);   /* between major sections */
  --space-block:    var(--sp-8);    /* between content blocks */
  --space-inline:   var(--sp-4);    /* between inline elements */
  --space-gutter:   var(--sp-12);   /* page horizontal padding */

  /* Page containers */
  --container-page:   80rem;     /* 1280px — index, work */
  --container-wide:   80rem;     /* 1280px — case studies */
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px; /* 1rem = 16px */
  -webkit-text-size-adjust: 100%;
}
html, body { background: var(--bg); margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 400;
  font-size: 1rem;        /* 16px */
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Typography scale ───────────────────────────────────── */
/* Scale uses rem so user font preferences are respected    */
h1 {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);   /* 32–52px */
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 var(--sp-4);
  color: var(--ink);
}
h1 .accent { color: var(--brand); }
h1 .muted  { color: var(--ink-3); font-weight: 600; }

h2 {
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.0625rem);  /* 24–33px */
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
}

h3 {
  font-weight: 700;
  font-size: 1.1875rem;   /* 19px */
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 var(--sp-3);
}

h4 {
  font-weight: 700;
  font-size: 0.9375rem;   /* 15px */
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 var(--sp-2);
}

/* ── Eyebrows & meta labels ─────────────────────────────── */
.eyebrow,
.section-eyebrow,
.page-eyebrow {
  display: block;
  font-size: 0.8125rem;          /* 12px */
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--sp-3);
}

/* ── Body text helpers ──────────────────────────────────── */
.lede {
  font-size: 1.125rem;         /* 18px */
  line-height: 1.65;
  color: var(--ink-2);
  font-weight: 400;
}
.lede em { font-style: normal; color: var(--ink); font-weight: 600; }

.sub {
  max-width: 48.75rem;         /* 780px */
  font-size: 1.0625rem;        /* 17px */
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 var(--sp-10);
}

/* ── Page layout ────────────────────────────────────────── */
.page-index,
.page-work {
  width: 100%;
  padding-bottom: var(--sp-20);
}

/* ── Full-bleed hero background ─────────────────────────── */
.hero-bleed {
  background: rgb(240, 244, 248);
  border-bottom: 1px solid var(--rule);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  padding: var(--sp-10) calc(50vw - 50%) var(--sp-10);
  margin-bottom: var(--sp-8);
}

/* ── Inline nav (index + work) ──────────────────────────── */
.nav-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  border-bottom: 1px solid var(--rule);
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  margin-bottom: 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) 0 var(--sp-4);
  max-width: var(--container-page);
  margin: 0 auto;
}
.wordmark {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #072369;
}
.wordmark-text {
  display: flex; flex-direction: column; gap: 2px;
}
.wordmark .swatch {
  width: 1.75rem; height: 1.75rem;  /* 28px */
  border-radius: var(--r-sm);
  background: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.8125rem;
  letter-spacing: 0.04em; flex-shrink: 0; margin-top: 2px;
}
.wordmark .role {
  color: var(--ink-2); font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0;
}
.nav ul {
  list-style: none;
  display: flex; align-items: center;
  gap: var(--sp-7);
  font-size: 0.9375rem;         /* 14px */
  font-weight: 600;
}
.nav ul a { color: #1143A9; font-weight: 600; transition: color .15s; }
.nav ul a:hover { color: #0d3688; }
.nav ul a[aria-current="page"] { color: var(--ink); }
.nav ul a[aria-current="page"]::after {
  content: ""; display: block; height: 2px;
  background: var(--brand); margin-top: var(--sp-1); border-radius: 2px;
}
.nav ul a.cta {
  color: #fff; background: #1143A9;
  padding: var(--sp-2) var(--sp-5);
  border-radius: 999px; transition: background .15s;
}
.nav ul a.cta:hover { background: #0d3688; }

/* ── Sticky nav (case studies) ──────────────────────────── */
.site-nav {
  border-bottom: 1px solid var(--rule);
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  position: sticky; top: 0; z-index: 100;
}
.site-nav-inner {
  width: 100%;
  max-width: var(--container-wide);
  padding: var(--sp-3) var(--space-gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.site-nav .logo {
  font-weight: 700; font-size: 1.25rem;
  letter-spacing: -0.02em; color: var(--ink);
  text-decoration: none;
  display: flex; align-items: flex-start;
}
.site-nav .logo .wordmark-text {
  display: flex; flex-direction: column; gap: 2px;
}
.site-nav .logo .role {
  font-size: 0.8125rem; font-weight: 400;
  color: var(--ink-3); letter-spacing: 0;
}
.site-nav ul { list-style: none; display: flex; gap: var(--sp-8); }
.site-nav ul a {
  font-size: 0.9375rem; font-weight: 600;
  color: #1143A9; letter-spacing: 0.01em;
}
.site-nav ul a:hover { color: #0d3688; }


.cs-nav {
  border-bottom: 1px solid var(--rule);
  padding: 0;
  display: flex; justify-content: center;
  background: var(--paper);
}
.cs-nav-inner {
  width: 100%;
  max-width: var(--container-wide);
  padding: var(--sp-3) var(--space-gutter);
  display: flex; justify-content: space-between; align-items: center;
}
.cs-nav a {
  font-size: 0.875rem; font-weight: 600;
  color: var(--brand); display: flex; align-items: center; gap: var(--sp-2);
}
.cs-nav a:hover { color: var(--ink); }
.cs-nav .cs-nav-label {
  font-size: 0.8125rem; font-weight: 400;
  color: var(--ink-3); display: block;
}

/* ── Meta kicker (homepage) ─────────────────────────────── */
.meta {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: 0.8125rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700;
  margin-bottom: var(--sp-5);
}
.meta .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--ink-4); }
.meta .avail {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--green);
}
.meta .avail::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px;
  background: var(--green-dot);
  box-shadow: 0 0 0 3px rgba(45,161,105,0.18);
}

/* ── Hero layout (index) ────────────────────────────────── */
.hero { margin-bottom: 0; }
.hero h1 { margin-bottom: var(--sp-7); margin-top: var(--sp-5); font-size: 3rem; }

.hero-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-12);
  align-items: start;
  padding-top: var(--sp-6);
}

/* ── Credentials card ───────────────────────────────────── */
.creds {
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-5);
}
.creds .lbl {
  font-size: 0.8125rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 800;
  margin-bottom: var(--sp-4);
}
.creds ul { list-style: none; }
.creds li {
  display: flex; align-items: baseline; gap: var(--sp-4);
  padding: var(--sp-2) 0;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.creds li + li { border-top: 1px dashed var(--rule); }
.creds li .yr {
  flex: 0 0 2.375rem;
  color: var(--brand); font-weight: 800;
  font-size: 0.8125rem; letter-spacing: 0.04em;
  font-feature-settings: "tnum" 1;
}
.creds li b { font-weight: 700; display: block; }
.creds li span { color: var(--ink-3); font-size: 0.9375rem; }

/* ── Section head (work catalog) ────────────────────────── */
.section-head {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  padding-bottom: var(--sp-4);
  border-bottom: 1.5px solid var(--ink);
}
.section-head .left { display: flex; flex-direction: column; gap: var(--sp-2); }
.section-head .kicker {
  font-size: 0.8125rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 700;
}
.section-head h2 {
  font-weight: 800; font-size: 2rem; line-height: 1;
  letter-spacing: -0.022em; color: var(--ink); margin: 0;
}
.section-head h2 .accent { color: var(--brand); }
.section-head a.all {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--brand); border-radius: 999px;
  transition: background .15s, color .15s;
}
.section-head a.all:hover { background: var(--brand); color: #fff; }

/* ── Work section ───────────────────────────────────────── */
.work-section { margin-top: var(--sp-14); }

/* ── Case rows ──────────────────────────────────────────── */
.cases { display: flex; flex-direction: column; }

.case {
  display: grid;
  grid-template-columns: 1fr 26.25rem;  /* 1fr 420px */
  gap: var(--sp-8);
  align-items: center;
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none; color: inherit;
  transition: background .2s;
}
.case:hover {
  background: linear-gradient(to right, rgba(9,50,108,0.03), transparent 60%);
}
.case:last-child { border-bottom: none; }

.case-num {
  font-size: 0.875rem; font-weight: 800;
  letter-spacing: 0.14em; color: var(--ink-4);
  padding-top: 3px; font-feature-settings: "tnum" 1;
}
.case-body { display: flex; flex-direction: column; gap: var(--sp-3); }

.case-kicker {
  font-size: 0.8125rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--brand);
  font-weight: 800;
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
}
.case-kicker .sep { color: var(--ink-4); font-weight: 400; letter-spacing: 0; }
.case-kicker .domain { color: var(--ink-3); font-weight: 700; }

.case-title {
  font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink); transition: color .2s;
}
.case-title .accent { color: var(--brand); }
.case:hover .case-title { color: var(--brand); }

.case-desc {
  font-size: 0.9375rem;        /* 15px */
  line-height: 1.65; color: var(--ink-2);
  max-width: 42.5rem;          /* 680px */
}

.case-tags {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: var(--sp-2); margin-top: var(--sp-3);
}
.case-tags li {
  font-size: 0.8125rem; font-weight: 600;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 999px;
  color: var(--brand-dark); background: var(--brand-tint);
  border: 1px solid rgba(9,50,108,0.16);
}

.case-cta {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  align-self: flex-start;
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--cta);
  padding: var(--sp-2) var(--sp-5);
  border-radius: 999px;
  margin-top: var(--sp-4);
  transition: background .15s;
}
.case:hover .case-cta { background: var(--cta-hover); }

/* ── Case art panels ────────────────────────────────────── */
.case-art {
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 10;
  position: relative; background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s;
}
.case:hover .case-art { border-color: var(--brand); }
.case-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-art .stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg, transparent 0 14px, rgba(22,78,113,0.06) 14px 15px
  );
}
.case-art .stripes.alt {
  background-image: repeating-linear-gradient(
    45deg, transparent 0 14px, rgba(22,78,113,0.06) 14px 15px
  );
}

/* Coming-soon rows */
.case--wip { cursor: default; }
.case--wip:hover { background: none; }
.case--wip:hover .case-title { color: var(--ink); }
.case--wip .case-art { opacity: 0.7; }
.case-wip-label {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-4); margin-top: var(--sp-2);
}
.case-wip-label::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 999px; background: var(--ink-4); flex-shrink: 0;
}

/* ── More-work bar ──────────────────────────────────────── */
.more-work {
  margin-top: var(--sp-2);
  padding: var(--sp-6);
  border: 1px dashed var(--rule);
  border-radius: var(--r-md);
  background: var(--paper);
  display: flex; align-items: center;
  justify-content: space-between; gap: var(--sp-6);
}
.more-work .text { display: flex; flex-direction: column; gap: var(--sp-1); }
.more-work .kicker {
  font-size: 0.8125rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 700;
}
.more-work strong {
  font-size: 1rem; font-weight: 800;
  color: var(--ink); letter-spacing: -0.01em;
}
.more-work .chips { display: flex; gap: var(--sp-3); }
.more-work .chip {
  background: #fff; border: 1px solid var(--rule);
  padding: var(--sp-2) var(--sp-3);
  border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: baseline; gap: var(--sp-2);
}
.more-work .chip b { font-weight: 800; color: var(--brand); font-size: 0.8125rem; }
.more-work a.go {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--brand); color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: 999px;
  font-size: 0.875rem; font-weight: 700;
  white-space: nowrap; transition: background .15s;
}
.more-work a.go:hover { background: var(--brand-dark); }

/* ── Work group heads ───────────────────────────────────── */
.work-group { margin-bottom: var(--space-section); }
.group-head {
  display: flex; align-items: baseline;
  justify-content: space-between;
  padding-bottom: var(--sp-3);
  margin-bottom: 0;
  border-bottom: 1.5px solid var(--ink);
}
.group-label {
  font-size: 0.8125rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.group-years {
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.10em; color: var(--brand);
}

/* ── Earlier work strip ─────────────────────────────────── */
.earlier-work { margin-bottom: var(--space-section); }
.earlier-list {
  list-style: none;
  border-left: 2px solid var(--rule);
  margin-top: var(--sp-5);
  display: flex; flex-direction: column;
}
.earlier-list li {
  display: flex; align-items: baseline; gap: var(--sp-5);
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--rule-2); flex-wrap: wrap;
}
.earlier-list li:last-child { border-bottom: none; }
.earlier-co {
  font-size: 0.9375rem; font-weight: 700;
  color: var(--ink); white-space: nowrap; min-width: 11.25rem;
}
.earlier-role { font-size: 0.9375rem; color: var(--ink-3); font-weight: 500; }

/* ── Page header (work page) ────────────────────────────── */
.page-header { margin-bottom: var(--sp-14); }
.page-header h1 { text-wrap: balance; }
.page-header h1 .accent { color: var(--brand); }
.page-header p {
  font-size: 1rem; line-height: 1.7;
  color: var(--ink-2); max-width: 38.75rem;  /* 620px */
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--rule);
  padding: 1.25rem clamp(1.25rem, 5vw, 3rem);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-3);
}
.site-footer > * {
  max-width: var(--container-page);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.site-footer a { color: var(--ink-3); transition: color .15s; }
.site-footer a:hover { color: var(--brand); }
.footer-links { display: flex; gap: var(--sp-6); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — coordinated breakpoints
   xl: 1280px  lg: 1024px  md: 768px  sm: 480px
   ══════════════════════════════════════════════════════════ */

/* xl — 1280px: tighten wide-layout gaps */
@media (max-width: 80rem) {
  :root { --space-gutter: var(--sp-8); }
}

/* lg — 1024px: drop image panels, tighten hero */
@media (max-width: 64rem) {
  .case { grid-template-columns: 1fr; }
  .case-art { display: none; }
  .hero-body { gap: var(--sp-8); }
}

/* md — 768px: stack hero, collapse nav role */
@media (max-width: 48rem) {
  :root { --space-gutter: var(--sp-6); }
  .page-index,
  .page-work { padding-top: var(--sp-6); }
  .hero-body { grid-template-columns: 1fr; gap: var(--sp-7); }
  .wordmark .role { display: none; }
  .nav { margin-bottom: var(--sp-8); }
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .more-work .chips { display: none; }
  .group-head { flex-direction: column; align-items: flex-start; gap: var(--sp-1); }
  .site-nav { padding: 0 var(--sp-6); }
  .cs-nav { padding: var(--sp-3) var(--sp-6); }
}

/* sm — 480px: single column everything */
@media (max-width: 30rem) {
  :root { --space-gutter: var(--sp-5); }
  .page-index,
  .page-work { padding-bottom: var(--sp-12); }
  .site-footer {
    flex-direction: column; gap: var(--sp-3);
    text-align: center;
  }
  .more-work { flex-direction: column; align-items: flex-start; }
  .nav ul { gap: var(--sp-4); }
  .nav ul li:nth-child(3) { display: none; }
  .hero h1 { font-size: 2rem; }
  .case { gap: var(--sp-4); }
}

/* ── Hero text (index only) ────────────────────────────── */
.hero .kicker         { color: #14202b; margin-bottom: var(--sp-7); }
.hero h1              { color: var(--ink); }
.hero h1 .accent      { color: var(--brand); }
.hero .lede           { color: var(--ink-2); }
.hero .lede-secondary {
  margin-top: var(--sp-5);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-3);
}
.hero .lede-secondary em {
  font-style: normal;
  color: var(--ink);
  font-weight: 600;
}

/* ── Index page responsive (hero, caps, featured, more work) ── */

/* xl — content cap at 1280px */
@media (min-width: 90rem) {
  .page-index { --max-w: 80rem; }
}

/* lg — 1024px: tablet landscape */
@media (max-width: 64rem) {
  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .macbook-wrap { display: none; }

  /* Caps */
  .cap-grid { grid-template-columns: repeat(2, 1fr); }

  /* Featured cases */
  .feat-case {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .feat-img { order: -1; max-width: 100%; }

  /* More work */
  .mw-grid { grid-template-columns: repeat(2, 1fr); }

  /* Credentials */
  .creds-list { gap: 0.5rem 1.5rem; }
}

/* md — 480px: mobile */
@media (max-width: 30rem) {
  /* Nav */
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem var(--space-gutter);
  }
  .nav ul { gap: var(--sp-4); flex-wrap: wrap; }

  /* Hero */
  .hero-section {
    padding: 2rem var(--space-gutter) 2rem;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    margin-bottom: 1.25rem;
  }
  .hero-lede {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .hero-sub { font-size: 0.875rem; }
  .macbook-wrap { display: none; }

  /* Caps */
  .cap-grid { grid-template-columns: 1fr; }

  /* Featured cases */
  .feat-case {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.75rem 0;
  }
  .feat-img { order: -1; }
  .feat-title { font-size: 1.25rem; }
  .feat-desc, .feat-outcome { font-size: 0.875rem; }

  /* More work */
  .mw-grid { grid-template-columns: 1fr; }

  /* Credentials */
  .creds-list {
    flex-direction: column;
    gap: 0.5rem;
  }
}


/* ── Hero CTA ────────────────────────────────────────────── */
.hero-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: var(--sp-3) var(--sp-8);
  background: #1143A9;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s;
}
.hero-cta:hover { background: #0d3688; }
/* ── Max-width token ─────────────────────────────────────── */
:root {
  --max-w: 80rem; /* 1280px — fits 1366×768 with scrollbar room */
}

/* ── Hero (index) ────────────────────────────────────────── */
.hero-section {
  background: rgb(240, 244, 248);
  border-bottom: 1px solid var(--rule);
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 5vw, 3rem) clamp(1.75rem, 3.5vw, 2.5rem);
}
.hero-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
  animation-delay: 0.1s;
}
.hero-h1 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 1.25rem;
}
.hero-h1 .accent { color: var(--brand); }
.hero-h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: wordIn 0.45s ease forwards;
}
.hero-lede {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 1rem;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.5s ease forwards;
  animation-delay: 1.2s;
}
.hero-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.5s ease forwards;
  animation-delay: 1.45s;
}
.hero-sub em { font-style: normal; font-weight: 600; color: var(--ink); }
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp  { to { opacity: 1; transform: translateY(0); } }

/* Text-only hero variant */
.hero-section--text-only {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 5vw, 3rem);
}
.hero-inner--text-only {
  max-width: var(--max-w);
  margin: 0 auto;
  display: block;
  text-align: left;
}
.hero-inner--text-only .hero-h1 {
  max-width: 62rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.hero-inner--text-only .hero-lede {
  max-width: 62.75rem;
  font-size: 1rem;
  line-height: 1.65;
  margin-top: 1.5rem;
}
.hero-inner--text-only .hero-sub { max-width: 66.75rem; }

/* ── Capabilities section ────────────────────────────────── */
.section-band {
  width: 100%;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 4rem) 0;
}
.s-head { margin-bottom: 2rem; }
.s-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.s-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 52rem;
  margin: 0;
}
.s-head h2 .accent { color: var(--brand); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cap-grid { grid-template-columns: 1fr; } }

.cap-card {
  background: #f7f7f5;
  border: 1px solid #d8dad6;
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #072369;
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}
.cap-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #072369;
  margin-bottom: 0.75rem;
}
.cap-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0F2B4C;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.cap-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}

/* ── Credentials band ────────────────────────────────────── */
.creds-band {
  background: transparent;
  border-bottom: 1px solid #d8dad6;
  padding: 1.25rem clamp(1.25rem, 5vw, 3rem) 2.5rem;
}
.creds-band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0;
}
.creds-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.creds-intro {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 52rem;
}
.creds-card {
  background: #f7f7f5;
  border: 1px solid #d8dad6;
  border-top: 3px solid #072369;
  border-radius: 8px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
}
.creds-divider {
  width: 1px;
  background: #d8dad6;
  margin: 1rem 0;
}
.cred-item {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: #253240;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cred-item b {
  font-weight: 700;
  color: #0F2B4C;
  font-size: 0.9375rem;
}
.cred-item span {
  color: #3d4a56;
  font-size: 0.8125rem;
}
@media (max-width: 640px) {
  .creds-card {
    grid-template-columns: 1fr;
  }
  .creds-divider { width: 100%; height: 1px; margin: 0; }
}

/* ── Work grid ───────────────────────────────────────────── */
.work-section {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 5vw, 3rem);
}
.work-section > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}
.work-section-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.work-section-head h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 44rem;
  margin: 0 0 2rem;
}
.work-section-head h2 .accent { color: var(--brand); }

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.work-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #d8dad6;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  padding: 1.25rem 0;
}
.work-card:last-child {
  border-bottom: none;
}
.work-card-img {
  flex: 0 0 auto;
  width: 300px;
  background: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.work-card-img img {
  width: 300px;
  height: 225px;
  object-fit: cover;
  object-position: top left;
  display: block;
  border-radius: 4px;
}

.work-card-img--placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f0f4f8;
}
.work-card-body {
  flex: 1;
  padding: 0 1.5rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}
.work-card-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.4rem;
}
.work-card-meta .sep { margin: 0 0.3rem; font-weight: 300; }
.work-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #072369;
  margin: 0 0 0.5rem;
  transition: color 0.15s;
}
.work-card:hover .work-card-title { color: #0082B8; }
.work-card-lock {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #5c6470;
  background: #f0f4f8;
  border: 1px solid #d8dad6;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}
.work-card-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 0.875rem;
  flex: 1;
}
.work-card-cta-btn {
  display: block;
  margin-top: 1rem;
  padding: 0.5rem 2.5rem;
  width: fit-content;
  margin-left: 0;
  background: #1143A9;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  text-align: center;
  transition: background 0.15s;
  align-self: flex-start;
}
.work-card-cta-btn:hover,
.work-card:hover .work-card-cta-btn {
  background: #0d3688;
}
.work-card-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.work-card-tags li {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 2px;
  color: #072369;
  background: #eaf0f8;
  border: none;
}


/* ── Featured work grid (2-up, larger) ──────────────────── */
.work-grid--featured {
  margin-bottom: 0;
}

/* ── More Work head ──────────────────────────────────────── */
.more-work-head {
  margin-bottom: 1.5rem;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule);
}
.more-work-head h2 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 44rem;
}

/* ── Index page layout container ─────────────────────────── */
.page-index {
  --max-w: 80rem;
}

@media (max-width: 700px) {
  .work-card { flex-direction: column; }
  .work-card-img { width: 100%; }
  .work-card-img img { width: 100%; height: auto; }
}
