:root {
  --ink: #17211d;
  --muted: #5b6761;
  --line: #d8e1dd;
  --paper: #fbfcfa;
  --soft: #eef5f2;
  --accent: #126c5b;
  --accent-dark: #0c473d;
  --signal: #d95d39;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(23, 33, 29, 0.1);
  --map-motif: url("assets/map-motif.svg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(251, 252, 250, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(23, 33, 29, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

.nav a.is-active {
  color: var(--accent-dark);
  font-weight: 800;
}

.section {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
  background-repeat: no-repeat;
}

.section > * {
  position: relative;
  z-index: 1;
}

.hero::before,
.case-hero::before,
.field-notes::after,
.strengths::before {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.hero::before,
.case-hero::before,
.strengths::before {
  top: var(--motif-top, auto);
  right: var(--motif-right, auto);
  bottom: var(--motif-bottom, auto);
  left: var(--motif-left, auto);
  width: var(--motif-width, 1180px);
  height: var(--motif-height, 813px);
  background-image: var(--map-motif);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  opacity: var(--motif-opacity, 0.56);
  -webkit-mask-image: var(--motif-fade);
  mask-image: var(--motif-fade);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  min-height: auto;
  --motif-top: -180px;
  --motif-right: -460px;
  --motif-width: 1260px;
  --motif-height: 868px;
  --motif-opacity: 0.44;
  --motif-fade: radial-gradient(
    ellipse at 56% 42%,
    #000 0 34%,
    rgba(0, 0, 0, 0.55) 50%,
    transparent 76%
  );
  background: linear-gradient(135deg, var(--paper) 0%, var(--soft) 100%);
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(26px, 4vw, 40px);
  --motif-top: -220px;
  --motif-right: -420px;
  --motif-width: 1240px;
  --motif-height: 854px;
  --motif-opacity: 0.34;
  --motif-fade: radial-gradient(
    ellipse at 56% 42%,
    #000 0 34%,
    rgba(0, 0, 0, 0.48) 51%,
    transparent 76%
  );
  background: linear-gradient(135deg, var(--paper) 0%, var(--soft) 100%);
}

.case-hero-copy {
  max-width: 940px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration-color: rgba(18, 108, 91, 0.28);
  text-underline-offset: 3px;
}

.back-link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 920px;
  overflow: hidden;
  border: 1px solid rgba(18, 108, 91, 0.12);
  border-radius: 8px;
  background: rgba(18, 108, 91, 0.12);
  box-shadow: 0 10px 28px rgba(23, 33, 29, 0.06);
}

.case-meta div {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.86);
}

.case-meta span,
.case-meta strong {
  display: block;
}

.case-meta span {
  margin-bottom: 8px;
  color: var(--signal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-meta strong {
  line-height: 1.35;
}

.hero-copy {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  max-width: 860px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
}

.case-hero h1 {
  margin-bottom: 12px;
  max-width: 780px;
  font-size: clamp(2.05rem, 3.9vw, 3.25rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.case-hero .lead {
  max-width: 820px;
  font-size: clamp(1rem, 1.45vw, 1.12rem);
}

.hero-actions,
.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: var(--white);
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.profile-panel {
  position: relative;
}

.profile-card {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.headshot {
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 5 / 4;
  height: auto;
  margin-bottom: 20px;
  margin-right: auto;
  margin-left: auto;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 50%;
}

.profile-name {
  margin-bottom: 6px;
  font-size: 1.6rem;
  font-weight: 850;
}

.profile-role {
  margin-bottom: 28px;
  color: var(--muted);
}

.snapshot-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.snapshot-list div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.snapshot-list dt {
  margin-bottom: 4px;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snapshot-list dd {
  margin: 0;
  color: var(--ink);
}

.credential-strip {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.credential-strip img {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}

.credential-strip p {
  margin: 0;
}

.credential-strip strong,
.credential-strip span {
  display: block;
}

.credential-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(30px, 4vw, 48px);
  border-top: 1px solid rgba(121, 215, 199, 0.16);
  border-bottom: 1px solid rgba(121, 215, 199, 0.16);
  background:
    radial-gradient(circle at 12% 15%, rgba(121, 215, 199, 0.12), transparent 34%),
    linear-gradient(135deg, #0f2b24 0%, var(--accent-dark) 58%, #17211d 100%);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 64px rgba(23, 33, 29, 0.18);
}

.proof-item {
  min-height: auto;
  padding: 8px clamp(18px, 3vw, 30px);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
}

.proof-item:first-child {
  border-left: 0;
}

.proof-item strong,
.proof-item span {
  display: block;
}

.proof-item strong {
  margin-bottom: 8px;
  color: var(--white);
  font-size: clamp(1.65rem, 2.7vw, 2.4rem);
  line-height: 1;
}

.proof-item span {
  color: rgba(255, 255, 255, 0.72);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
}

.work-section {
  display: grid;
  gap: 30px;
}

.work-section > div:first-child {
  max-width: none;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-card,
.strength-grid > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.work-card {
  color: inherit;
  text-decoration: none;
}

.work-card-link {
  display: block;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.work-card-link:hover,
.work-card-link:focus-visible {
  border-color: rgba(18, 108, 91, 0.38);
  box-shadow: 0 16px 34px rgba(23, 33, 29, 0.12);
  transform: translateY(-3px);
}

.work-card p,
.strength-grid p,
.timeline p,
.contact p {
  color: var(--muted);
}

.work-card-status {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.work-subsection-heading {
  grid-column: 1 / -1;
  margin: 12px 0 -2px;
  padding-top: 8px;
  border-top: 1px solid rgba(18, 108, 91, 0.12);
}

.work-subsection-heading h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.snapshot-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.work-card-tags span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.read-more {
  display: block;
  margin-top: 16px;
  color: var(--accent-dark);
  font-size: 0.92rem;
}

.work-card-link:hover .read-more,
.work-card-link:focus-visible .read-more {
  color: var(--accent);
}

.work-card-with-thumb {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 18px;
  align-items: start;
}

.work-section .work-card-with-thumb {
  grid-template-columns: 1fr;
}

.work-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.12);
}

.work-section .work-card-thumb {
  order: -1;
  aspect-ratio: 16 / 9;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 860px) minmax(420px, 500px);
  gap: clamp(32px, 2.6vw, 46px);
  align-items: start;
  justify-content: start;
  padding-top: clamp(26px, 4vw, 46px);
  padding-right: clamp(16px, 1.4vw, 24px);
  padding-left: clamp(28px, 6vw, 88px);
  background: var(--paper);
}

.case-study,
.case-article,
.case-right-rail,
.case-sidebar,
.case-edge-photo,
.case-document-card,
.case-results-panel,
.case-results-table-wrap {
  min-width: 0;
}

.case-article,
.case-sidebar,
.case-edge-photo,
.case-document-card,
.case-results-panel {
  overflow-wrap: anywhere;
}

.case-right-rail {
  display: grid;
  align-self: stretch;
  align-content: space-between;
  gap: clamp(18px, 1.8vw, 28px);
}

.case-sidebar {
  position: static;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 33, 29, 0.08);
}

.case-sidebar ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.case-project-materials-rail {
  margin-top: clamp(8px, 1.2vw, 18px);
}

.case-project-materials-rail p:not(.eyebrow) {
  color: #33413b;
  font-size: 1rem;
  line-height: 1.55;
}

.case-article {
  max-width: 820px;
}

.case-article p {
  color: #33413b;
  font-size: clamp(1.04rem, 1.35vw, 1.16rem);
}

.case-article h2 {
  margin-top: 44px;
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
}

.case-edge-photo {
  width: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(18, 108, 91, 0.14);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 34px rgba(23, 33, 29, 0.12);
}

.case-edge-photo.edge-shift-left {
  width: 94%;
  justify-self: start;
  transform: rotate(-1deg);
}

.case-edge-photo.edge-shift-right {
  width: 94%;
  justify-self: end;
  transform: rotate(1deg);
}

.case-edge-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.case-edge-photo.case-wide-photo img {
  aspect-ratio: 16 / 9;
}

.case-edge-photo figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.case-document-card {
  width: 100%;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(18, 108, 91, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
  box-shadow: 0 18px 36px rgba(23, 33, 29, 0.12);
}

.case-document-card img {
  display: block;
  width: 100%;
  border: 1px solid rgba(18, 108, 91, 0.1);
  border-radius: 6px;
  background: var(--white);
}

.case-document-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.case-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.case-source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(18, 108, 91, 0.18);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  background: rgba(18, 108, 91, 0.06);
}

.case-source-links a:hover {
  border-color: rgba(18, 108, 91, 0.38);
  background: rgba(18, 108, 91, 0.1);
}

.case-doc-set {
  margin: 34px 0 38px;
  padding: clamp(18px, 2.5vw, 24px);
  border: 1px solid rgba(18, 108, 91, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 247, 0.94)),
    var(--soft);
  box-shadow: 0 14px 30px rgba(23, 33, 29, 0.08);
}

.case-doc-set-header {
  margin-bottom: 16px;
}

.case-doc-set-header h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.2;
}

.case-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 14px;
}

.case-doc-set-note {
  max-width: 700px;
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.case-doc-link {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(18, 108, 91, 0.14);
  border-radius: 8px;
  color: var(--accent-dark);
  text-decoration: none;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(23, 33, 29, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.case-doc-link:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 108, 91, 0.34);
  box-shadow: 0 14px 24px rgba(23, 33, 29, 0.12);
}

.case-doc-link img {
  display: block;
  width: 100%;
  height: 132px;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(18, 108, 91, 0.08);
  background: var(--white);
}

.case-doc-link span {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}

.case-doc-link small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.subarea-study-set {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 247, 0.96)),
    var(--soft);
}

.subarea-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.subarea-study-card {
  grid-template-rows: auto auto 1fr;
  min-height: 250px;
}

.subarea-study-card-static {
  cursor: default;
}

.subarea-study-card-static:hover {
  transform: none;
  border-color: rgba(18, 108, 91, 0.14);
  box-shadow: 0 8px 18px rgba(23, 33, 29, 0.08);
}

.case-doc-feature img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(18, 108, 91, 0.12);
  background: var(--white);
}

.case-doc-feature p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.case-callout {
  margin: 34px 0;
  padding: 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--soft);
}

.case-callout p {
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  font-weight: 750;
  line-height: 1.45;
}

.case-results-panel {
  margin: 38px 0 46px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(18, 108, 91, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(230, 241, 237, 0.95), rgba(255, 255, 255, 0.96)),
    var(--soft);
  box-shadow: 0 18px 40px rgba(23, 33, 29, 0.08);
}

.case-results-panel h2 {
  margin-top: 0;
}

.case-results-panel p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.case-results-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.case-results-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  color: #33413b;
  font-size: 0.95rem;
}

.case-results-table th,
.case-results-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(18, 108, 91, 0.14);
  text-align: left;
  vertical-align: top;
}

.case-results-table thead th {
  background: var(--accent-dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-results-table tbody th {
  width: 18%;
  color: var(--accent-dark);
  font-weight: 900;
}

.case-results-table tbody tr:last-child th,
.case-results-table tbody tr:last-child td {
  border-bottom: 0;
}

.case-results-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(18, 108, 91, 0.14);
  font-size: 0.78rem;
  line-height: 1.45;
}

.field-notes {
  --notebook-margin: max(12px, calc(clamp(20px, 5vw, 72px) - 22px));
  border-top: 1px solid rgba(18, 108, 91, 0.12);
  border-bottom: 1px solid rgba(18, 108, 91, 0.1);
  box-shadow:
    inset 0 34px 58px -58px rgba(23, 33, 29, 0.52),
    inset 0 -34px 58px -58px rgba(23, 33, 29, 0.38);
  background:
    linear-gradient(
      90deg,
      transparent 0 var(--notebook-margin),
      rgba(217, 93, 57, 0.26) var(--notebook-margin) calc(var(--notebook-margin) + 1px),
      transparent calc(var(--notebook-margin) + 1px)
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0 33px,
      rgba(18, 108, 91, 0.095) 33px 34px
    ),
    linear-gradient(180deg, #fff 0%, #fbfcfa 100%);
}

.field-notes::after {
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.1) 18%,
    rgba(255, 255, 255, 0.04) 76%,
    rgba(255, 255, 255, 0.74) 100%
  );
}

.field-notes .section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.field-notes .section-heading a {
  color: var(--accent-dark);
  font-weight: 800;
  white-space: nowrap;
  text-decoration-color: rgba(18, 108, 91, 0.35);
  text-underline-offset: 3px;
}

.field-notes .section-heading a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.photo-grid figure {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(18, 108, 91, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 0 0 rgba(23, 33, 29, 0);
  transition:
    box-shadow 1000ms ease,
    transform 1000ms ease;
}

.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}

.photo-grid figure:hover {
  box-shadow: 0 18px 42px rgba(23, 33, 29, 0.2);
  transform: translateY(-3px);
}

.photo-grid figure:nth-child(1) img {
  object-position: 50% 48%;
}

.photo-grid figure:nth-child(2) img {
  object-position: 50% 42%;
}

.photo-grid figure:nth-child(3) img,
.photo-grid figure:nth-child(4) img {
  object-position: 50% 50%;
}

.photo-grid figcaption {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 16px;
  border-top: 1px solid rgba(18, 108, 91, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.photo-grid figcaption strong,
.photo-grid figcaption span {
  display: block;
}

.photo-grid figcaption span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.photo-grid figcaption .photo-context {
  margin-top: auto;
  padding-top: 12px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.photo-grid figcaption a {
  color: var(--accent-dark);
  text-decoration-color: rgba(18, 108, 91, 0.34);
}

.photo-grid figcaption a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.experience {
  z-index: 2;
  background: var(--ink);
  color: var(--white);
  box-shadow:
    0 -30px 70px rgba(23, 33, 29, 0.12),
    0 34px 80px rgba(23, 33, 29, 0.24);
}

.experience .eyebrow {
  color: #79d7c7;
}

.experience .section-heading {
  max-width: none;
}

.experience p,
.timeline p {
  color: rgba(255, 255, 255, 0.68);
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.timeline article {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.time {
  color: #79d7c7;
  font-weight: 800;
}

.strengths {
  --motif-left: -420px;
  --motif-bottom: -170px;
  --motif-width: 1120px;
  --motif-height: 771px;
  --motif-opacity: 0.35;
  --motif-fade: radial-gradient(
    ellipse at 45% 58%,
    #000 0 28%,
    rgba(0, 0, 0, 0.46) 48%,
    transparent 72%
  );
  background: var(--soft);
}

.section-heading {
  max-width: none;
  margin-bottom: 34px;
}

.contact {
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background:
    radial-gradient(circle at 10% 20%, rgba(121, 215, 199, 0.14), transparent 34%),
    linear-gradient(135deg, #17211d 0%, #0f2b24 100%);
  color: var(--white);
  box-shadow: 0 -34px 80px rgba(23, 33, 29, 0.22);
}

.contact .eyebrow {
  color: #79d7c7;
}

.contact p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.contact-card a:not(.button),
.contact-card span {
  width: 100%;
  color: rgba(255, 255, 255, 0.76);
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  color: var(--white);
}

.contact-card .button.primary {
  border-color: #79d7c7;
  background: #79d7c7;
  color: var(--ink);
}

.contact-card .button.primary:hover {
  background: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 1180px) {
  .case-study {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    padding-right: clamp(20px, 5vw, 72px);
    padding-left: clamp(20px, 5vw, 72px);
  }

  .case-article {
    grid-column: auto;
    grid-row: auto;
    max-width: 820px;
  }

  .case-right-rail {
    align-self: auto;
    align-content: start;
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    max-width: 820px;
    justify-items: stretch;
  }

  .case-sidebar {
    grid-column: 1 / -1;
  }

  .case-project-materials-rail {
    margin-top: 0;
  }

  .case-document-card {
    grid-column: 1 / -1;
  }

  .case-edge-photo {
    width: 100%;
    max-width: none;
  }

  .case-edge-photo.edge-shift-left,
  .case-edge-photo.edge-shift-right {
    justify-self: stretch;
  }
}

@media (max-width: 980px) {
  .hero,
  .case-hero,
  .split-section,
  .case-study,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .case-sidebar {
    position: static;
  }

  .case-article {
    order: 1;
    grid-column: auto;
    grid-row: auto;
  }

  .case-right-rail {
    order: 2;
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
    margin-top: 0;
    justify-items: start;
  }

  .case-edge-photo,
  .case-edge-photo.edge-shift-left,
  .case-edge-photo.edge-shift-right {
    width: 100%;
    max-width: 520px;
    transform: none;
  }

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

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

  .proof-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .proof-item:nth-child(-n + 2) {
    border-top: 0;
  }

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

  .photo-grid figure {
    min-height: 0;
  }

  .work-section .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .work-card-with-thumb {
    grid-template-columns: 1fr;
  }

  .work-card-thumb {
    max-width: 240px;
  }

  .work-section .work-card-thumb {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 48px;
    --motif-top: 120px;
    --motif-right: -740px;
    --motif-width: 960px;
    --motif-height: 661px;
    --motif-opacity: 0.34;
    background: linear-gradient(135deg, var(--paper) 0%, var(--soft) 100%);
  }

  .case-hero {
    padding-top: 48px;
    --motif-top: 40px;
    --motif-right: -700px;
    --motif-width: 940px;
    --motif-height: 647px;
    --motif-opacity: 0.22;
  }

  h1 {
    font-size: clamp(2.2rem, 13vw, 4rem);
  }

  .case-hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .work-grid,
  .strength-grid,
  .proof {
    grid-template-columns: 1fr;
  }

  .work-section .work-grid,
  .work-section .snapshot-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-section .work-grid > .work-card,
  .work-section .snapshot-grid > .work-card {
    grid-column: 1 / -1;
  }

  .proof-item:nth-child(-n + 2) {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .proof-item:first-child {
    border-top: 0;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .case-results-panel {
    padding: 18px;
  }

  .case-results-table-wrap {
    overflow-x: visible;
  }

  .case-results-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .case-results-table,
  .case-results-table thead,
  .case-results-table tbody,
  .case-results-table tr,
  .case-results-table th,
  .case-results-table td {
    display: block;
    width: 100%;
  }

  .case-results-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .case-results-table tbody tr {
    padding: 12px;
    border: 1px solid rgba(18, 108, 91, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
  }

  .case-results-table th,
  .case-results-table td {
    padding: 6px 0;
    border-bottom: 0;
  }

  .case-results-table tbody th {
    width: 100%;
    margin-bottom: 4px;
  }

  .photo-grid figure {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
