@font-face {
  font-family: "Druk Condensed";
  src: url("assets/fonts/DrukCondensed-Super.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spline Sans Mono";
  src: url("assets/fonts/SplineSansMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #fff;
  --ink: #111;
  --muted: #888;
  --line: #111;
  --tile: #f5f5f5;
  --gutter: 24px;
  --content-max: 1360px;
  --column-max: 660px;
  --mono: "Spline Sans Mono", "Courier New", monospace;
  --display: "Druk Condensed", Impact, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0px;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 12px;
  color: var(--background);
  background: var(--ink);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--background);
  border-bottom: 0;
  transition: top 220ms ease;
}

.site-header.is-condensed {
  top: -108px;
}

.intro-row {
  position: relative;
  height: 108px;
  padding: 40px var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.brand,
.intro-copy,
.nav-row,
.section-heading,
.site-footer,
.work-card h3 {
  margin: 0;
  font: inherit;
}

.brand,
.nav-row a,
.site-footer a {
  display: inline-block;
  width: fit-content;
}

.brand span {
  display: block;
}

.intro-copy {
  position: relative;
  line-height: 1.2;
}

.intro-copy span {
  display: block;
}

.meet-phrase img {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  vertical-align: -1px;
}

.meet-phrase {
  white-space: nowrap;
}

.intro-copy {
  max-width: var(--column-max);
}

.nav-row {
  position: relative;
  height: 94px;
  padding: 40px var(--gutter);
  display: grid;
  grid-template-columns: auto auto;
  gap: 24px;
  background: var(--background);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  justify-content: start;
}

.nav-row a,
.site-footer a {
  color: var(--muted);
  transition: color 160ms ease;
}

.nav-row a:hover,
.nav-row a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
}

.hero {
  position: relative;
  height: auto;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 40px var(--gutter);
}

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

.hero-header {
  width: 100%;
  height: auto;
  display: block;
}

.section-heading {
  height: 94px;
  padding: 40px var(--gutter);
}

.section-heading h2 {
  margin: 0;
  font: inherit;
}

.work-grid {
  width: min(calc(100% - (var(--gutter) * 2)), var(--content-max));
  margin: 0 auto;
  padding: 0 0 40px;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 40px;
  row-gap: 40px;
}

.work-card {
  min-width: 0;
}

.work-link {
  display: block;
}

.work-media {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--tile);
  border-radius: 24px;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 820ms cubic-bezier(0.19, 1, 0.22, 1);
}

.work-link:hover .work-media img,
.work-link:focus-visible .work-media img {
  transform: scale(1.045);
}

.work-card h3 {
  color: var(--ink);
  height: 44px;
  padding-top: 16px;
  line-height: 1.2;
  overflow: hidden;
}

.work-card h3 span {
  display: block;
}

.work-card h3 span + span {
  color: var(--muted);
}

.site-footer {
  height: 108px;
  margin-top: 0;
  padding: 40px var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--ink);
}

.site-footer p:last-child {
  display: flex;
  flex-direction: column;
  color: var(--muted);
}

.case-intro {
  padding: 40px var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.case-note {
  padding: 0 var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.case-intro {
  min-height: 230px;
}

.case-page-victron .case-intro {
  min-height: 216px;
}

.case-intro h1,
.case-intro-heading,
.case-copy h2,
.case-copy p,
.result-copy h2,
.result-copy p {
  margin: 0;
  font: inherit;
  font-weight: 500;
}

.case-copy p,
.result-copy p {
  color: var(--ink);
}

.case-intro-heading,
.case-copy h2,
.result-copy h2 {
  color: var(--muted);
}

.case-page-dwm .case-logo {
  width: 216px;
  height: 64px;
}

.case-logo {
  width: 244px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0;
}

.case-intro h1 {
  max-width: var(--column-max);
  line-height: 1.2;
}

.case-copy-stack {
  color: var(--muted);
}

.case-copy-stack {
  display: grid;
  gap: 24px;
}

.case-copy,
.result-copy {
  display: block;
}

.case-slab {
  margin: 0;
  overflow: hidden;
}

.case-slab img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.case-slab {
  width: min(calc(100% - (var(--gutter) * 2)), 1360px);
  margin: 0 auto 40px;
  border-radius: 0;
}

.case-slab-full {
  width: min(100%, 1440px);
  margin-inline: auto;
}

.case-results-heading {
  width: 100%;
  height: 94px;
  margin: 0 auto;
  padding: 40px var(--gutter);
  border-top: 1px solid var(--line);
}

.case-results-heading h2 {
  margin: 0;
  font: inherit;
  font-weight: 500;
}

.case-results {
  width: min(100%, 1440px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
}

.case-results article {
  min-height: 236px;
  padding: 0 var(--gutter) 40px;
}

.result-mark {
  display: block;
  width: 170px;
  height: 170px;
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: 170px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.result-mark-logo {
  display: grid;
  place-items: center;
}

.result-mark-logo img {
  width: 170px;
  height: auto;
}

.result-copy {
  max-width: 426px;
}

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

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

a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

@media (min-width: 760px) {
  :root {
    --gutter: 40px;
  }

  .intro-row,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, var(--column-max)));
    gap: 40px;
    justify-content: center;
  }

  .nav-row {
    padding-inline: max(var(--gutter), calc((100vw - var(--content-max)) / 2));
    grid-template-columns: auto auto;
    gap: 24px;
    justify-content: start;
  }

  .hero,
  .section-heading {
    padding-inline: max(var(--gutter), calc((100vw - var(--content-max)) / 2));
  }

  .case-results-heading {
    padding-inline: max(var(--gutter), calc((100vw - var(--content-max)) / 2));
  }

  .intro-copy,
  .site-footer p {
    width: 100%;
    max-width: var(--column-max);
    justify-self: end;
  }

  .site-footer p:first-child {
    justify-self: stretch;
    width: auto;
  }

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

  .case-intro,
  .case-note {
    grid-template-columns: repeat(2, minmax(0, var(--column-max)));
    gap: 40px;
    justify-content: center;
  }

  .case-copy-stack,
  .case-note .case-copy {
    width: 100%;
    max-width: var(--column-max);
    justify-self: end;
  }

  .case-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (min-width: 1440px) {
  .hero {
    height: auto;
  }
}

@media (max-width: 759px) {
  body {
    font-size: 12px;
    line-height: 1.2;
  }

  .intro-row {
    height: auto;
    min-height: 108px;
    padding-block: 24px;
  }

  .intro-copy span {
    display: inline;
  }

  .nav-row,
  .section-heading {
    height: 72px;
    padding-block: 28px;
  }

  .hero {
    height: auto;
  }

  .result-mark {
    width: 120px;
    height: 120px;
    font-size: 120px;
  }

  .result-mark-logo img {
    width: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
