:root {
  --forest: #0a302d;
  --teal: #2c6a67;
  --orange: #ed9220;
  --ink: #152825;
  --muted: #526561;
  --line: #d4deda;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --space: clamp(3.5rem, 7vw, 7rem);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: white;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
main:focus { outline: none; }
.skip-link { position: fixed; top: .5rem; left: 1rem; z-index: 10; padding: .65rem 1rem; background: white; color: var(--forest); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #ed9220; outline-offset: 3px; }

.case-hero { background: var(--forest); color: white; }
.hero-inner, .case-body, .related-work { width: min(100%, 88rem); margin-inline: auto; padding-inline: var(--gutter); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr);
  gap: clamp(2rem,5.5vw,6.3rem);
  align-items: center;
  padding-block: clamp(2.8rem,5.4vw,5.75rem);
}
.eyebrow, .facts dt {
  font-family: "Courier New", monospace;
  font-size: .875rem;
  line-height: 1.45;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.hero-copy > .eyebrow { color: #ffd397; margin-bottom: clamp(1rem,2.1vw,2rem); }
.hero-copy h1 { font: 680 clamp(4.25rem,8.8vw,8.2rem)/.87 "Helvetica Neue",Arial,sans-serif; letter-spacing: -.075em; }
.hero-intro { margin-top: clamp(1.4rem,2.4vw,2.25rem); max-width: 41ch; font-size: clamp(1.025rem,1.45vw,1.36rem); line-height: 1.5; text-wrap: pretty; }
.facts { display: flex; gap: 1.15rem 2.2rem; flex-wrap: wrap; margin-top: clamp(1.7rem,3.5vw,3.75rem); border-top: 1px solid #ffffff46; padding-top: 1rem; }
.facts dt { color: #bed2cc; font-size: .78rem; }
.facts dd { font-size: .9375rem; line-height: 1.4; margin-top: .3rem; }
.hero-media { min-width: 0; }
.hero-media > img { width: 100%; height: clamp(23rem,38vw,35rem); object-fit: cover; object-position: 57% 40%; }
.hero-media--screen { background: #164944; padding: clamp(1rem,2.7vw,3.1rem); }
.hero-media--screen .figure-link { background: #fff; border: none; }
.hero-media--screen img { height: auto; width: 100%; }
.hero-media--screen figcaption { color: #ddebe6; }
body[data-case="website"] .case-hero { background: #062a27; }
body[data-case="system"] .case-hero { background: #e5eeea; color: var(--forest); }
body[data-case="system"] .hero-copy > .eyebrow { color: #31655d; }
body[data-case="system"] .facts { border-color: #aabdb7; }
body[data-case="system"] .facts dt { color: #48635c; }
body[data-case="system"] .hero-media--screen { background: #d0e1da; }
body[data-case="system"] .hero-media--screen figcaption { color: #2c4b41; }

.case-body { padding-block: var(--space); }
.case-section { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.5rem,6vw,7rem); align-items: end; }
.case-section ~ .case-section, .case-note { margin-top: var(--space); }
.section-heading .eyebrow, .case-note .eyebrow { margin-bottom: .85rem; color: var(--teal); }
.section-heading h2, .related-work h2 { max-width: 17ch; font-size: clamp(2.25rem,3.9vw,4.1rem); line-height: 1.03; font-weight: 600; letter-spacing: -.055em; text-wrap: balance; }
.section-body, .case-note > p { max-width: 56ch; font-size: clamp(1rem,1.15vw,1.15rem); line-height: 1.62; text-wrap: pretty; }
.section-body p + p { margin-top: .85em; }
.case-figure, .figure-pair { margin-top: clamp(1.5rem,3.2vw,3.5rem); }
.figure-link { display: block; cursor: zoom-in; background: #f1f5f3; }
.case-figure .figure-link { border: 1px solid #dce5e1; }
.figure-link img { width: 100%; height: auto; }
figcaption { color: var(--muted); font-size: .875rem; line-height: 1.5; margin-top: .7rem; }
.identity-board { min-height: clamp(12rem,24vw,21rem); background: var(--teal); display: grid; place-items: center; }
.identity-board img { width: min(70%,38rem); height: auto; }
.figure-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1.2rem,2.5vw,2.75rem); }
.figure-pair .case-figure { margin: 0; }
.brand-applications .figure-link img { aspect-ratio: 1.6; object-fit: cover; }
.brand-applications .case-figure:last-child img { object-position: center 45%; }
.case-note { background: #eef3ef; padding: clamp(1.5rem,3.2vw,3.5rem); display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 2rem; align-items: center; }
.case-note h2 { font-size: clamp(3.25rem,7vw,7rem); line-height: .95; letter-spacing: -.07em; font-weight: 650; }
.case-note h2 span { display: block; font-size: clamp(1rem,1.5vw,1.5rem); letter-spacing: -.02em; margin-top: .45rem; }
body[data-case="system"] .case-body > .case-figure { max-width: 64rem; margin-inline: auto; }
body[data-case="system"] .figure-pair .figure-link { height: auto; }
body[data-case="website"] .case-body { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: var(--space) clamp(2.3rem,7vw,7rem); }
body[data-case="website"] .case-section { display: block; margin: 0; align-self: start; padding-top: 1.2rem; border-top: 1px solid var(--line); }
body[data-case="website"] .section-heading { margin-bottom: 1.3rem; }
body[data-case="website"] .case-figure { margin: 0; align-self: start; }
.case-figure--form .figure-link { display: grid; place-items: center; background: #e9f0ec; padding: clamp(.85rem,3vw,3rem); }
.case-figure--form img { width: min(100%,26rem); }

.related-work { padding-bottom: clamp(2.6rem,5vw,5.25rem); }
.related-work h2 { border-top: 1px solid var(--line); max-width: none; padding-top: clamp(1.6rem,3vw,3.15rem); font-size: clamp(1.8rem,2.8vw,3rem); }
.related-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(.9rem,2vw,2rem); margin-top: 1.5rem; }
.related-card { display: grid; grid-template-columns: minmax(5rem,.68fr) minmax(0,1fr); align-items: center; gap: clamp(.75rem,2vw,2rem); color: inherit; text-decoration: none; padding: .75rem; background: #f3f5f3; }
.related-card strong { font-size: clamp(1.2rem,1.8vw,1.9rem); line-height: 1.1; display: block; letter-spacing: -.04em; }
.related-card:hover strong { text-decoration: underline; text-underline-offset: .12em; }
.related-type { display: block; margin-top: .35rem; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.related-cover { aspect-ratio: 1.5; display: grid; place-items: center; overflow: hidden; }
.related-cover img { width: 100%; height: 100%; object-fit: cover; }
.related-cover--brand { background: var(--forest); }
.related-cover--brand img { object-fit: contain; width: 85%; }

.ninja-lightbox { border: none; color: var(--ink); background: white; width: max-content; max-width: min(94vw,95rem); max-height: 94dvh; padding: clamp(.7rem,1.5vw,1.5rem); overscroll-behavior: contain; }
.ninja-lightbox::backdrop { background: rgb(4 22 19 / 84%); }
body:has(.ninja-lightbox[open]) { overflow: hidden; }
.ninja-lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .7rem; }
.ninja-lightbox-title, .ninja-lightbox-caption { max-width: 68ch; font-size: .875rem; line-height: 1.45; }
.ninja-lightbox-close { cursor: pointer; font: inherit; color: var(--forest); background: #edf2ee; border: 1px solid #ced8d2; padding: .45rem .85rem; }
.ninja-lightbox-image { width: auto; height: auto; object-fit: contain; max-height: 73dvh; margin-inline: auto; }
.ninja-lightbox-caption { margin-top: .7rem; }
@media(max-width: 740px) {
  .hero-inner, .case-section, .case-note, body[data-case="website"] .case-body { grid-template-columns: 1fr; }
  .hero-inner { gap: 1.75rem; padding-block: 2.2rem var(--gutter); }
  .hero-copy h1 { font-size: clamp(3.75rem,12vw,5.25rem); }
  .hero-media > img { height: auto; aspect-ratio: 1.6; }
  .hero-intro { max-width: 50ch; }
  .facts { gap: .75rem 1.2rem; margin-top: 1.3rem; }
  .case-section { gap: .95rem; }
  .section-heading h2 { max-width: 20ch; }
  body[data-case="website"] .case-body { gap: 1.3rem; }
  body[data-case="website"] .case-section ~ .case-section { margin-top: 2rem; }
  .case-note { gap: 1.25rem; }
}
@media(max-width: 560px) {
  .figure-pair, .related-grid { grid-template-columns: minmax(0,1fr); }
  .related-card { grid-template-columns: minmax(4rem,.58fr) minmax(0,1fr); }
  .eyebrow { font-size: .825rem; }
}
