body {
  background-color: #F7F5F1;
  color: #1A1A18;
  font-family: 'Inter', sans-serif;
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

h1 {
  letter-spacing: -0.01em;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  color: #5B5A54;
  font-size: 17px;
  line-height: 1.7;
}

.intro {
  margin-bottom: 1.25rem;
}

.intro-photo {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 14px;
}

.about-photo {
  margin-bottom: 2rem;
}

.intro-name {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: #1A1A18;
}

.intro-title {
  font-weight: 500;
  font-size: 17px;
  color: #3F3E39;
  margin-top: 6px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 2rem;
  text-align: left;
}

.stat {
  background-color: #FBFAF7;
  border: 1px solid #D8D4C9;
  border-radius: 8px;
  padding: 18px 16px;
}

.stat-hero {
  background-color: #FBF0ED;
  border-color: #D9B3A9;
}

.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: #1A1A18;
}

.stat-hero .stat-number {
  color: #8C3F30;
}

.stat-label {
  font-size: 13px;
  color: #5B5A54;
  margin-top: 4px;
}

.case-studies {
  scroll-margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 3rem;
  text-align: left;
}

.case-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: #FBFAF7;
  border: 1px solid #D8D4C9;
  border-radius: 8px;
  overflow: hidden;
}

.case-card:hover {
  border-color: #B8B3A6;
}

.case-card:focus-visible {
  outline: 2px solid #8C3F30;
  outline-offset: 2px;
}

/* Card images are decorative (the title and one-liner carry the meaning), so alt text stays empty. */
.case-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #EAE4D9;
  border-bottom: 1px solid #D8D4C9;
}

.case-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  line-height: 1.3;
  color: #1A1A18;
  padding: 14px 14px 0;
}

.case-text {
  padding: 6px 14px 14px;
  margin: 0;
  font-size: 15px;
  color: #5B5A54;
  line-height: 1.5;
}

.bio {
  text-align: left;
  margin-top: 1.5rem;
}

.background-line {
  text-align: left;
  margin-top: 1.5rem;
  font-size: 15px;
  font-style: italic;
  color: #6F6E67;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 3rem;
  font-size: 15px;
}

.nav a {
  color: #5B5A54;
  text-decoration: none;
}

.nav a:hover {
  color: #1A1A18;
}

.nav a.active {
  color: #8C3F30;
  font-weight: 500;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 2.5rem 0 3.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  text-align: left;
  background-color: #FBFAF7;
  border: 1px solid #D8D4C9;
  border-radius: 8px;
  padding: 18px 18px 20px;
}

.contact-card:hover {
  border-color: #B8B3A6;
}

.contact-card:focus-visible {
  outline: 2px solid #8C3F30;
  outline-offset: 2px;
}

.cc-badge {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
}

.cc-label {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8C3F30;
  font-weight: 500;
}

.cc-main {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: #1A1A18;
  overflow-wrap: anywhere;
}

.cc-sub {
  font-size: 15px;
  color: #5B5A54;
  line-height: 1.5;
}

.looking {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
  margin-top: 12px;
}

.look-item {
  border-top: 2px solid #EAE4D9;
  padding-top: 12px;
}

.look-head {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: #1A1A18;
  margin-bottom: 6px;
}

.look-item p {
  font-size: 15px;
  color: #5B5A54;
  line-height: 1.55;
  margin: 0;
}

.roles-line {
  font-size: 15px;
  color: #5B5A54;
  text-align: left;
  margin-top: 1.5rem;
}

/* Cards stack a little earlier than the rest of the site so the email address never breaks mid-word. */
@media (max-width: 780px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

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

.case-label {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #6F6E67;
  font-weight: 500;
  text-transform: uppercase;
}

.case-headline {
  font-size: 36px;
  line-height: 1.2;
  text-align: center;
  max-width: 760px;
  margin: 8px auto 2rem;
}

.section-label {
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5B5A54;
  margin-top: 2rem;
  margin-bottom: 10px;
}

.objectives {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: left;
  font-size: 15px;
}

.process-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 1rem;
}

.process-images img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  object-position: top left;
  border-radius: 6px;
}

.additional-outcomes {
  text-align: left;
  font-size: 15px;
  color: #3A3A36;
  line-height: 1.7;
  margin-top: 1.5rem;
  padding-left: 1.2rem;
}

.attribution {
  text-align: left;
  font-size: 13px;
  color: #6F6E67;
  margin-top: 2rem;
  border-top: 1px solid #E3DFD5;
  padding-top: 14px;
}

.case-hero-images {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
  background-color: #FFFFFF;
  padding: 24px 20px;
  border: 1px solid #D8D4C9;
  border-radius: 8px;
  margin-bottom: 2.5rem;
}

.hero-laptop {
  width: 65%;
  display: block;
}

.hero-mobile-img {
  width: 22%;
  display: block;
}

.img-placeholder {
  background-color: #EFEBE3;
  border: 1px dashed #B8B3A6;
  border-radius: 8px;
  color: #8A8578;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
}

.hero-placeholder {
  width: 100%;
  height: 260px;
  margin-bottom: 2.5rem;
}

.process-images .img-placeholder {
  height: 180px;
}

.process-images-4 {
  grid-template-columns: repeat(4, 1fr);
}

.stats-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stat-wide {
  grid-column: 1 / -1;
}

.nav.has-sub {
  margin-bottom: 14px;
}

/* Sub row sits in a warm stone tray, with a small pointer aimed up at "Case studies"
   so it reads as part of that menu item. A short script on each case study page sets
   --pointer-x to the center of "Case studies". Without the script, the pointer sits
   in the middle of the tray. */
.sub-nav {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto 3rem;
  padding: 4px 16px;
  background-color: #ECE6DB;
  border-radius: 16px;
  font-size: 13px;
}

@media (max-width: 480px) {
  .sub-nav {
    gap: 4px 10px;
    padding: 4px 10px;
  }
}

.sub-nav::before {
  content: "";
  position: absolute;
  top: -7px;
  left: calc(var(--pointer-x, 50%) - 7px);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #ECE6DB;
}

.sub-nav a {
  color: #5B5A54;
  text-decoration: none;
}

.sub-nav a:hover {
  color: #1A1A18;
}

.sub-nav a[aria-current="page"] {
  color: #8C3F30;
  font-weight: 500;
}

.more-work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: left;
}

.more-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: #FBFAF7;
  border: 1px solid #D8D4C9;
  border-radius: 8px;
  overflow: hidden;
}

.more-card:hover {
  border-color: #B8B3A6;
}

.more-card:focus-visible {
  outline: 2px solid #8C3F30;
  outline-offset: 2px;
}

/* Same images as the home page cards. Decorative, so alt text stays empty. */
.more-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #EAE4D9;
  border-bottom: 1px solid #D8D4C9;
}

.more-title {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  line-height: 1.3;
  color: #1A1A18;
  padding: 12px 12px 0;
}

.more-text {
  font-size: 13px;
  line-height: 1.5;
  color: #5B5A54;
  padding: 4px 12px 14px;
}

.stat-text {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 400;
  color: #1A1A18;
  line-height: 1.3;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-top: 1.5rem;
  padding-top: 1rem;
  min-height: 270px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 92px;
}

.bar-value {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: #1A1A18;
  margin-bottom: 6px;
}

.bar {
  width: 48px;
  border-radius: 4px 4px 0 0;
}

/* Every label reserves three lines, so bars with shorter and longer labels share the same baseline. */
.bar-label {
  font-size: 13px;
  line-height: 1.3;
  min-height: 3.9em;
  color: #5B5A54;
  margin-top: 8px;
  text-align: center;
}

.chart-note {
  text-align: center;
  font-size: 13px;
  font-style: italic;
  color: #6F6E67;
  margin-top: 1rem;
}

.stats-2 {
  grid-template-columns: repeat(2, 1fr);
}

.additional-note {
  text-align: left;
  font-size: 15px;
  color: #3A3A36;
  line-height: 1.7;
  margin-top: 1.5rem;
}

.chart-note-left {
  text-align: left;
}

.highlight-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 1.5rem;
}

.highlight-card {
  background-color: #FBFAF7;
  border: 1px solid #D8D4C9;
  border-radius: 8px;
  padding: 18px 16px;
  text-align: left;
}

.highlight-card p {
  font-size: 15px;
  color: #3A3A36;
  line-height: 1.6;
}

.charts-row {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.chart-col {
  flex: 1;
}

.chart-divider {
  width: 1px;
  background-color: #B8B3A6;
  align-self: stretch;
}

.label-accent {
  height: 3px;
  width: 40px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.accent-terracotta {
  background-color: #8C3F30;
}

.highlight-illustration {
  width: 76px;
  height: 76px;
  margin-bottom: 12px;
}

.highlight-card-wide {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.highlight-card-wide .highlight-illustration {
  margin-bottom: 0;
  flex-shrink: 0;
}

.wide-page {
  max-width: 900px;
}

.intro-text {
  text-wrap: balance;
}

.hero-image {
  width: 100%;
  display: block;
  box-sizing: border-box;
  background-color: #FFFFFF;
  padding: 12px;
  border: 1px solid #D8D4C9;
  border-radius: 8px;
  margin-bottom: 2.5rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 10px;
  margin-top: 1rem;
  text-align: left;
}

.process-grid figure {
  margin: 0;
}

.process-grid img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.process-grid figcaption {
  font-size: 13px;
  color: #5B5A54;
  line-height: 1.4;
  margin-top: 6px;
}

.process-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.process-grid-2 img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left center;
}

/* Wide tiles (about 2.3:1), used on the Aileron page. Overrides the 16:9 crop so nothing is cut off the sides. */
.process-grid-wide img {
  aspect-ratio: 23 / 10;
  object-fit: cover;
  object-position: center;
}

/* Equal-height tiles for rows of images with slightly different shapes (Booking engine page). Keeps captions on one line. */
.process-grid-uniform img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: left top;
}

/* Single centered tile, used when one image has a different shape than the rest of its row (the Apple event photo on the App/iOS 26 page). */
.process-grid-solo {
  grid-template-columns: minmax(0, 340px);
  justify-content: center;
}

.chart-figure {
  margin: 1.5rem 0 0;
}

.chart-figure img {
  width: 100%;
  display: block;
  background-color: #FFFFFF;
  border: 1px solid #D8D4C9;
  border-radius: 8px;
}

/* ===== Responsive: phones and narrow tablets ===== */
@media (max-width: 700px) {
  body {
    padding: 2.5rem 1.25rem;
  }

  h1 {
    font-size: 32px;
  }

  .case-headline {
    font-size: 28px;
  }

  .nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-3,
  .stats-2 {
    grid-template-columns: 1fr;
  }

  .case-studies {
    grid-template-columns: 1fr;
  }

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

  .more-work {
    grid-template-columns: 1fr;
  }

  .process-images {
    grid-template-columns: 1fr;
  }

  .process-images-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid-3 figure:last-child {
    grid-column: 1 / -1;
  }

  .process-grid-solo {
    grid-template-columns: minmax(0, 100%);
  }

  .highlight-cards {
    grid-template-columns: 1fr;
  }

  .highlight-card-wide {
    flex-direction: column;
    align-items: flex-start;
  }

  .charts-row {
    flex-direction: column;
    gap: 2rem;
  }

  .chart-divider {
    display: none;
  }

  /* Impact page: bar charts shrink to fit the phone screen instead of scrolling sideways. */
  .chart-col {
    min-width: 0;
    width: 100%;
  }

  .bar-chart {
    gap: 8px;
  }

  .bar-col {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }

  .bar {
    width: 100%;
    max-width: 44px;
  }


  .wide-page {
    max-width: 640px;
  }
}

/* Tablets and narrower: the two Impact charts stack so neither is squeezed. */
@media (max-width: 1000px) {
  .charts-row {
    flex-direction: column;
    gap: 2rem;
  }

  .chart-divider {
    display: none;
  }

  .chart-col {
    min-width: 0;
    width: 100%;
  }
}

/* Smaller phones: the longest label wraps to three lines, so reserve three. */
@media (max-width: 460px) {
  .bar-label {
    min-height: 3.9em;
  }
}

/* Keep long lines readable: the intro paragraph under a page title stays about 680px wide and centered. */
h1 + p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Accessibility and structure ===== */
.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 10;
  padding: 10px 16px;
  background-color: #1A1A18;
  color: #FFFFFF;
  font-size: 15px;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main:focus {
  outline: none;
}

a:focus-visible {
  outline: 2px solid #8C3F30;
  outline-offset: 2px;
}

/* Section titles are real headings now, styled to look exactly as before. */
h2.section-label,
h2.case-title,
h3.more-title,
h3.look-head {
  font-weight: 400;
}

h2.case-title,
h3.more-title {
  margin: 0;
}

h3.look-head {
  margin: 0 0 6px;
}

/* About page: the name is the page heading, sized like the name on the home page. */
h1.about-name {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 2rem;
}

.about-photo {
  margin-bottom: 14px;
}

/* Bigger tap targets for the menus without moving anything. Padding adds the target, negative margin gives the space back. */
.nav a {
  padding: 5px 4px;
  margin: -5px -4px;
}

.sub-nav a {
  display: inline-block;
  line-height: 20px;
  padding: 2px 4px;
  margin: -2px -4px;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid #D8D4C9;
  text-align: center;
}
.site-footer p { margin: 0; }
.footer-name {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: #1A1A18;
}
.footer-links {
  list-style: none;
  margin: 0.9rem 0 1rem;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
.footer-links a {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  line-height: 24px;
  padding: 4px 2px;
  color: #8C3F30;
  text-decoration: none;
}
.footer-links a:hover { color: #1A1A18; }
.footer-copy { font-size: 13px; color: #6F6E67; }

/* Judgment calls: a win card and a loss card side by side (case study pages) */
.judgment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.judgment-card {
  background: #FBFAF7;
  border: 1px solid #D8D4C9;
  border-top: 3px solid #6F6E67;
  padding: 22px;
  text-align: left;
}
.judgment-card.is-win { border-top-color: #8C3F30; }
.judgment-card p { text-align: left; }
.judgment-kind {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6F6E67;
  margin: 0 0 8px;
}
.judgment-card.is-win .judgment-kind { color: #8C3F30; }
.judgment-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.judgment-text {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.judgment-sowhat {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #D8D4C9;
}
.judgment-sowhat strong { font-weight: 500; }
@media (max-width: 600px) {
  .judgment-grid { grid-template-columns: 1fr; }
}
