/* ===== Design tokens =====
   Background:  #F6F7FA
   Text:        #15191D (primary)  #3E444B (secondary)
   Accent:      #A63D6A (headings / labels)   #0E7C7B (links / cta)  hover #0A5958
   Border:      #E1E3EA
   Tag:         bg rgba(14,124,123,.12)  text #0A5958
============================= */

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #F6F7FA;
  color: #15191D;
  font-family: 'Public Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: #0E7C7B; text-decoration: none; }
a:hover { color: #0A5958; text-decoration: underline; }
a:focus-visible, h1:focus-visible, main:focus-visible {
  outline: 3px solid #0E7C7B;
  outline-offset: 4px;
  border-radius: 6px;
}
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: #0E7C7B; color: #fff;
  padding: 12px 20px; border-radius: 6px;
  font-weight: 600; font-size: 14px; z-index: 200;
  transition: top 150ms ease;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 72px);
  box-sizing: border-box;
}
.container-narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 72px);
  box-sizing: border-box;
}

/* Nav */
.site-nav {
  padding: 12px 0;
  border-bottom: 1px solid #E1E3EA;
  position: fixed; top: 0; left: 0; right: 0;
  background: #F6F7FA;
  z-index: 100;
}
.site-nav .row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.site-nav .logo { display: inline-flex; align-items: center; height: 56px; flex-shrink: 0; }
.site-nav .logo img { height: 56px; width: auto; }
.site-nav .links {
  display: flex; gap: 20px; font-size: 14.5px; font-weight: 600;
  flex-wrap: nowrap; overflow-x: auto; min-width: 0; -webkit-overflow-scrolling: touch;
}
.site-nav .links a {
  display: inline-flex; align-items: center; min-height: 44px;
  flex-shrink: 0; white-space: nowrap; color: #0E7C7B;
}
.site-nav .links a:hover { color: #0A5958; }
.nav-spacer { height: 82px; }

main { padding-bottom: 80px; }
main:focus { outline: none; }

/* Type */
h1, h2, h3 { font-family: 'Newsreader', serif; }
.eyebrow {
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.04em;
  text-transform: uppercase; color: #A63D6A; margin-bottom: 18px; display: block;
}
h2.section-title {
  font-weight: 500; font-size: 26px; line-height: 1.2; color: #A63D6A; margin: 0 0 24px;
}
.sub-heading { font-family: 'Public Sans', sans-serif; font-weight: 600; font-size: 16px; line-height: 1.3; margin: 48px 0 14px; color: #15191D; }
p.body-text { font-size: 16.5px; line-height: 1.75; max-width: 68ch; margin: 0 0 18px; }

/* Tags / pills */
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #0A5958; background: rgba(14,124,123,0.12); padding: 5px 12px; border-radius: 999px;
}

/* Work list / case cards */
.case-list { display: flex; flex-direction: column; gap: 18px; }
.case-card {
  position: relative; display: flex; flex-wrap: wrap; gap: 20px;
  background: #FFFFFF; border: 1px solid #E1E3EA; border-radius: 8px;
  padding: 18px; align-items: center; color: inherit; text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.case-card:hover {
  transform: translateY(-2px); border-color: #0E7C7B;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06); text-decoration: none;
}
.case-card .thumb {
  border-radius: 6px; aspect-ratio: 4/3; flex: 1 1 200px; min-width: 160px;
  overflow: hidden; background: #E1E3EA;
}
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-card .info { flex: 3 1 240px; min-width: 240px; }
.case-card .info .tags { margin-bottom: 10px; }
.case-card .title {
  font-family: 'Newsreader', serif; font-weight: 500; font-size: 19px; line-height: 1.35;
  color: #0E7C7B; display: block; margin: 6px 0 10px; padding-right: 44px;
}
.case-card p { font-size: 14.5px; color: #3E444B; margin: 0; padding-right: 44px; }
.case-card .arrow {
  position: absolute; bottom: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%;
  background: #F6F7FA; border: 1.5px solid #0E7C7B; color: #0E7C7B;
  display: flex; align-items: center; justify-content: center;
  transition: background 180ms ease, color 180ms ease;
}
.case-card:hover .arrow { background: #0E7C7B; color: #FFFFFF; }

/* Additional work rows */
.work-row {
  display: flex; flex-wrap: wrap; row-gap: 6px; justify-content: space-between; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid #E1E3EA;
}
.work-row h4 { font-weight: 600; font-size: 15px; margin: 0 0 5px; }
.work-row p { font-size: 13.5px; color: #3E444B; margin: 0; max-width: 50ch; }
.work-row .cat {
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase;
  color: #3E444B; white-space: nowrap; padding-top: 2px; flex-shrink: 0;
}

/* Timeline (experience) */
.timeline { border-left: 2px solid #E1E3EA; padding-left: 28px; position: relative; margin-top: 12px; }
.timeline .item { position: relative; padding-bottom: 40px; }
.timeline .item::before {
  content: ''; position: absolute; left: -34px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%; background: #A63D6A;
}
.timeline .item.minor { padding-bottom: 28px; }
.timeline .item.minor::before { left: -33px; top: 7px; width: 8px; height: 8px; background: #E1E3EA; }
.timeline .date {
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase;
  color: #3E444B; display: block; margin-bottom: 5px;
}
.timeline .org { font-weight: 700; font-size: 16px; display: block; }
.timeline .item.minor .org { font-size: 15px; }
.timeline .role {
  font-size: 14px; font-weight: 600; color: #A63D6A; display: block; margin-bottom: 8px;
}
.timeline .item p { font-size: 14.5px; color: #3E444B; margin: 0; max-width: 60ch; }
.timeline .item.minor p { font-size: 13.5px; }

/* Education grid */
.edu-list { border-top: 1px solid #E1E3EA; }
.edu-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 20px 0;
  border-bottom: 1px solid #E1E3EA; align-items: baseline;
}
.edu-row .year {
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: #3E444B;
}
.edu-row .degree { font-weight: 700; font-size: 16px; display: block; margin-bottom: 3px; }
.edu-row .field { font-weight: 400; font-size: 16px; display: block; margin-bottom: 3px; color: #A63D6A; }
.edu-row .school { font-size: 14px; color: #3E444B; }

/* Tools grid */
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 32px; margin-top: 4px;
}
.tools-grid .cat-label {
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase;
  color: #A63D6A; display: block; margin-bottom: 4px;
}
.tools-grid .items { font-size: 15px; }

footer { padding: 40px 0; border-top: 1px solid #E1E3EA; }
footer p { font-size: 13.5px; color: #3E444B; margin: 0; }

/* ===== Case study pages ===== */
.case-back {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px;
  margin: 24px 0 40px; min-height: 44px;
}
.case-hero { margin: 0 0 40px; }
.case-hero .frame { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #E1E3EA; }
.case-hero img { width: 100%; height: 100%; object-fit: cover; }
.case-methods {
  font-size: 13.5px; color: #3E444B; margin: 0 0 36px; padding-bottom: 24px;
  border-bottom: 1px solid #E1E3EA;
}
.case-methods b {
  font-weight: 700; text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.06em; margin-right: 8px;
}
.case-summary {
  background: #FFFFFF; border: 1px solid #E1E3EA; border-radius: 8px; padding: 22px 24px; margin: 0 0 40px;
}
.case-summary .row {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 9px 0;
  border-bottom: 1px solid #E1E3EA;
}
.case-summary .row:last-child { border-bottom: none; }
.case-summary .label {
  font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: #A63D6A; padding-top: 3px;
}
.case-summary .val { font-size: 14.5px; }
.pull-quote {
  font-family: 'Newsreader', serif; font-style: italic; font-size: clamp(18px, 4.5vw, 22px);
  line-height: 1.45; color: #A63D6A; border-left: 3px solid #A63D6A; padding-left: 20px;
  margin: 36px 0; max-width: 32ch;
}
.hook-quote {
  font-family: 'Newsreader', serif; font-style: italic; font-size: 18px; color: #A63D6A; margin: 0 0 10px;
}
.impact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 20px 0 24px;
}
.impact-grid .stat {
  background: #FFFFFF; border: 1px solid #E1E3EA; border-radius: 8px; padding: 18px 20px;
}
.impact-grid .num {
  font-family: 'Newsreader', serif; font-weight: 500; font-size: 30px; line-height: 1.1;
  color: #A63D6A; display: block;
}
.impact-grid .lbl {
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  color: #3E444B; display: block; margin-top: 4px;
}
.case-pager {
  display: flex; flex-wrap: wrap; row-gap: 10px; justify-content: space-between; align-items: center;
  gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #E1E3EA;
}
.case-pager a { font-weight: 600; font-size: 14.5px; min-height: 44px; display: inline-flex; align-items: center; }
.case-pager .of {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #A63D6A;
}

h1.hero-name {
  font-family: 'Newsreader', serif; font-weight: 500; font-size: clamp(36px, 9vw, 64px);
  line-height: 1.05; letter-spacing: -0.02em; color: #15191D; margin: 0 0 16px;
}
h1.case-title {
  font-family: 'Newsreader', serif; font-weight: 500; font-size: clamp(28px, 7vw, 40px);
  line-height: 1.15; margin: 0 0 20px; letter-spacing: -0.02em; max-width: 19ch;
}
.hero-lede {
  font-family: 'Newsreader', serif; font-weight: 500; font-size: clamp(20px, 5vw, 26px);
  line-height: 1.35; letter-spacing: -0.01em; color: #15191D; margin: 0 0 20px; max-width: 18ch;
}
.hero-sub { font-size: 19px; line-height: 1.7; color: #3E444B; max-width: 52ch; margin: 0 0 18px; }
