@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ivory: #f7f2e8;
  --paper: #fffdf8;
  --green: #073d3a;
  --green-deep: #052b29;
  --coral: #ff684f;
  --coral-ink: #b83c31;
  --yellow: #ffd54a;
  --navy: #0a2430;
  --muted: #4e6662;
  --line: rgba(7, 61, 58, 0.22);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --page-shell: min(2200px, calc(100% - 2 * clamp(20px, 5vw, 120px)));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ivory);
  color: var(--green);
  font: 400 clamp(16px, 0.22vw + 15px, 19px) / 1.55 var(--body);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.brand,
strong {
  font-family: var(--display);
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
dd {
  text-wrap: pretty;
}

.page-shell {
  width: var(--page-shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--green-deep);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
}

.main-nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-inline: clamp(20px, 4vw, 96px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 242, 232, 0.97);
  backdrop-filter: blur(14px);
}

.brand {
  flex: 0 0 auto;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 3px;
  background: var(--coral);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 28px);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  text-decoration: underline 3px var(--coral);
  text-underline-offset: 7px;
}

.nav-cta,
.nav-menu-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 2px solid var(--green);
  background: var(--coral);
  color: var(--green-deep);
  font: 800 14px / 1 var(--display);
  text-decoration: none;
}

.nav-toggle {
  min-height: 44px;
  padding: 0 15px;
  border: 2px solid var(--green);
  background: var(--yellow);
  color: var(--green-deep);
  font: 800 14px / 1 var(--display);
  cursor: pointer;
}

.nav-toggle[hidden],
.nav-menu-cta {
  display: none;
}

.case-index-breadcrumb {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.case-index-breadcrumb .page-shell {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
}

.case-index-breadcrumb a {
  text-underline-offset: 4px;
}

.case-index-breadcrumb [aria-current="page"] {
  color: var(--green);
}

.index-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--green-deep);
  color: var(--ivory);
}

.index-hero::before {
  position: absolute;
  z-index: -1;
  right: -7vw;
  bottom: -14vw;
  width: clamp(340px, 42vw, 900px);
  aspect-ratio: 1;
  border: clamp(40px, 6vw, 110px) solid rgba(255, 213, 74, 0.1);
  border-radius: 50%;
  content: "";
}

.index-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: end;
  gap: clamp(54px, 8vw, 180px);
  min-height: min(790px, calc(100vh - 120px));
  padding-block: clamp(76px, 10vw, 170px);
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--coral-ink);
  font: 800 12px / 1.15 var(--display);
  letter-spacing: 0.12em;
}

.index-hero .eyebrow {
  color: var(--coral);
}

.index-hero h1 {
  max-width: 13ch;
  margin-bottom: 28px;
  font-size: clamp(54px, 6.2vw, 126px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.index-hero__copy > p:not(.eyebrow) {
  max-width: 62ch;
  margin-bottom: 34px;
  color: rgba(247, 242, 232, 0.82);
  font-size: clamp(18px, 1.2vw, 25px);
  line-height: 1.45;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font: 800 15px / 1.2 var(--display);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.text-link--light {
  color: var(--yellow);
}

.reading-key {
  position: relative;
  padding: clamp(28px, 3vw, 50px);
  border: 1px solid rgba(247, 242, 232, 0.45);
  background: rgba(10, 36, 48, 0.76);
  box-shadow: 14px 14px 0 var(--coral);
}

.reading-key::before {
  position: absolute;
  top: -13px;
  right: 28px;
  width: 92px;
  height: 25px;
  background: var(--yellow);
  content: "";
}

.reading-key__label {
  margin-bottom: 14px;
  color: var(--yellow);
  font: 800 11px / 1 var(--display);
  letter-spacing: 0.12em;
}

.reading-key h2 {
  max-width: 12ch;
  margin-bottom: 28px;
  font-size: clamp(30px, 2.5vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.reading-key dl {
  margin-bottom: 0;
  border-top: 1px solid rgba(247, 242, 232, 0.25);
}

.reading-key dl div {
  padding-block: 18px;
  border-bottom: 1px solid rgba(247, 242, 232, 0.25);
}

.reading-key dt {
  margin-bottom: 4px;
  font: 800 15px / 1.2 var(--display);
}

.reading-key dd {
  margin: 0;
  color: rgba(247, 242, 232, 0.72);
  font-size: 15px;
  line-height: 1.4;
}

.case-archive {
  padding-block: clamp(84px, 10vw, 180px);
  background: var(--paper);
}

.case-list {
  display: grid;
  gap: clamp(42px, 6vw, 96px);
  scroll-margin-top: 72px;
}

#case-list-title {
  scroll-margin-top: 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
  align-items: end;
  gap: clamp(40px, 8vw, 160px);
  margin-bottom: clamp(50px, 7vw, 110px);
}

.section-heading h2,
.index-cta h2 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(48px, 6vw, 104px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.section-heading > p {
  max-width: 45ch;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: clamp(18px, 1.2vw, 23px);
}

.case-file {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(380px, 0.86fr);
  border: 2px solid var(--green);
  background: var(--ivory);
  box-shadow: 18px 18px 0 rgba(7, 61, 58, 0.12);
}

.case-file__visual {
  position: relative;
  min-width: 0;
  border-right: 2px solid var(--green);
  background: var(--navy);
  overflow: hidden;
}

.case-file__visual img {
  width: 100%;
  height: 100%;
  min-height: 570px;
  object-fit: contain;
  object-position: center;
}

.case-file__tab {
  position: absolute;
  z-index: 2;
  top: 0;
  left: clamp(22px, 3vw, 52px);
  padding: 12px 17px 14px;
  background: var(--yellow);
  color: var(--green-deep);
  font: 800 11px / 1 var(--display);
  letter-spacing: 0.1em;
}

.case-file__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(38px, 5vw, 96px);
}

.case-file__sector {
  margin-bottom: 14px;
  color: var(--coral-ink);
  font: 800 11px / 1.2 var(--display);
  letter-spacing: 0.11em;
}

.case-file h3 {
  margin-bottom: 24px;
  font-size: clamp(54px, 5vw, 94px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.case-file__summary {
  max-width: 42ch;
  margin-bottom: 22px;
  font-size: clamp(19px, 1.25vw, 25px);
  line-height: 1.42;
}

.case-file__credit {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
}

.case-file__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.case-file__tags li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

.case-file__link,
.button-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 2px solid var(--green);
  background: var(--coral);
  color: var(--green-deep);
  font: 800 15px / 1.2 var(--display);
  text-decoration: none;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.case-file__link:hover,
.button-link:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--green);
}

.index-cta {
  padding-block: clamp(84px, 9vw, 160px);
  background: var(--yellow);
}

.index-cta .eyebrow {
  color: var(--green);
}

.index-cta__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  align-items: end;
  gap: clamp(48px, 9vw, 190px);
}

.index-cta__actions > p {
  max-width: 48ch;
  margin-bottom: 28px;
  font-size: clamp(18px, 1.2vw, 23px);
}

.index-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.index-cta__actions > p {
  flex-basis: 100%;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.75fr 0.75fr;
  gap: clamp(36px, 6vw, 110px);
  padding: clamp(54px, 6vw, 90px) clamp(24px, 6vw, 120px);
  background: var(--green-deep);
  color: var(--ivory);
}

.site-footer p {
  max-width: 40ch;
  margin: 18px 0 0;
  color: rgba(247, 242, 232, 0.72);
}

.site-footer nav,
.site-footer > div:nth-child(3) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer strong {
  color: var(--yellow);
}

.site-footer a {
  margin-top: 9px;
  text-underline-offset: 4px;
}

.site-footer .brand {
  margin: 0;
}

.footer-legal {
  grid-column: 1 / -1;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 26px;
  border-top: 1px solid rgba(247, 242, 232, 0.24);
  font-size: 13px;
}

.footer-legal a {
  margin-top: 0;
}

:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--paper);
}

@media (max-width: 1100px) {
  .index-hero__layout,
  .section-heading,
  .index-cta__layout {
    grid-template-columns: 1fr;
  }

  .index-hero__layout {
    align-items: start;
  }

  .reading-key {
    width: min(760px, calc(100% - 14px));
  }

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

  .case-file__visual {
    border-right: 0;
    border-bottom: 2px solid var(--green);
  }

  .case-file__visual img {
    min-height: 0;
    aspect-ratio: 40 / 21;
  }
}

@media (max-width: 980px) {
  .main-nav {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    display: grid;
    width: min(380px, calc(100vw - 40px));
    gap: 0;
    padding: 12px;
    border: 2px solid var(--green);
    background: var(--ivory);
    box-shadow: 8px 9px 0 var(--green);
  }

  .nav-links[hidden] {
    display: none;
  }

  .nav-links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 10px;
  }

  .nav-links a[aria-current="page"] {
    background: var(--paper);
  }

  .nav-links .nav-menu-cta {
    display: flex;
    background: var(--coral);
  }

  .main-nav > .nav-cta {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --page-shell: calc(100% - 40px);
  }

  .main-nav {
    min-height: 66px;
    padding-inline: 20px;
  }

  .case-index-breadcrumb .page-shell {
    min-height: 44px;
  }

  .index-hero__layout {
    min-height: 0;
    gap: 58px;
    padding-block: 62px 76px;
  }

  .index-hero h1 {
    max-width: 14ch;
    font-size: clamp(44px, 13vw, 64px);
  }

  .index-hero__copy > p:not(.eyebrow) {
    font-size: 18px;
  }

  .reading-key {
    padding: 28px 22px;
    box-shadow: 9px 9px 0 var(--coral);
  }

  .section-heading {
    gap: 22px;
  }

  .section-heading h2,
  .index-cta h2 {
    font-size: clamp(43px, 12vw, 62px);
  }

  .case-file {
    box-shadow: 9px 9px 0 rgba(7, 61, 58, 0.12);
  }

  .case-file__visual img {
    aspect-ratio: 40 / 21;
  }

  .case-file__copy {
    padding: 34px 24px 38px;
  }

  .case-file h3 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .case-file__tags {
    margin-bottom: 28px;
  }

  .case-file__link,
  .button-link {
    width: 100%;
  }

  .index-cta__actions {
    align-items: stretch;
  }

  .text-link {
    justify-content: flex-start;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    grid-column: 1;
  }
}

@media (min-width: 1600px) {
  .main-nav {
    padding-inline: max(96px, calc((100vw - 2200px) / 2));
  }

  .index-hero__copy > p:not(.eyebrow),
  .section-heading > p,
  .index-cta__actions > p {
    font-size: clamp(22px, 1.15vw, 27px);
  }

  .case-file__summary {
    font-size: clamp(23px, 1.2vw, 29px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
