:root {
  --focus-duration: 620ms;
  --focus-easing: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
  font-family: "Cousine", "Courier New", monospace;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #001514;
  color: #E0EDE8;
  font-weight: 400;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #001514;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1008px, calc(100% - 80px));
  margin: 0 auto;
  padding: 58px 0 28px;
}

.introduction {
  max-width: 900px;
  margin: 0 0 34px;
}

.eyebrow,
.tile__index {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.eyebrow {
  color: #a7a7a7;
}

.introduction h1 {
  margin: 14px 0 10px;
  font-size: clamp(1.92rem, 4.16vw, 3.84rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
  font-weight: 600;
}

.introduction__heading-fixed {
  display: inline-block;
  white-space: nowrap;
}

.introduction__dynamic-word {
  display: inline-block;
  margin-left: 0.2em;
  white-space: nowrap;
}

.introduction__word-letter {
  display: inline-block;
  opacity: 0;
}

.introduction__word-letter.is-visible {
  opacity: 1;
}

.introduction__word-letter.is-entering {
  animation: headline-letter-in 100ms cubic-bezier(0.65, 0, 0.35, 1) var(--heading-letter-delay) both;
}

.introduction__word-letter.is-exiting {
  animation: headline-letter-out 100ms cubic-bezier(0.65, 0, 0.35, 1) var(--heading-letter-delay) both;
}

.introduction__copy {
  max-width: 540px;
  margin: 0;
  color: #b9b9b9;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 600;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(128px, auto);
  grid-auto-flow: row dense;
  gap: 16px;
}

.tile {
  --tile-surface: #666666;
  position: relative;
  min-width: 0;
  padding: 21px;
  border: 1px solid transparent;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: pointer;
  transition: transform var(--focus-duration) var(--focus-easing), border-color 240ms ease;
}

.tile[tabindex="0"]:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.tile__focus-header {
  position: static;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: currentColor;
}

.tile--profile {
  --tile-surface: #E0EDE8;
  --tile-ink: #001514;
  color: #001514;
  grid-column: span 1;
  grid-row: span 2;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--tile-surface);
  color: #001514;
}

.profile-photo {
  display: block;
  width: 102px;
  height: 102px;
  margin: 0 0 14px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 23%;
  background: #b8b8b8;
}

.profile-name {
  margin: 0;
  font-size: clamp(1.36rem, 2.08vw, 1.76rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.profile-caption {
  margin: 8px 0 18px;
  color: #4c4c4c;
  font-size: 0.94rem;
  line-height: 1.45;
}

.tile--lead {
  --tile-surface: #777777;
  grid-column: span 2;
  grid-row: span 2;
  background-color: var(--tile-surface);
  color: #f7f7f7;
}

.tile--small {
  grid-column: span 1;
  grid-row: span 1;
}

.tile--tall {
  grid-column: span 1;
  grid-row: span 2;
}

.tile--wide {
  grid-column: span 2;
  grid-row: span 1;
}

.tile--light {
  --tile-surface: #c8c8c8;
  background-color: var(--tile-surface);
  color: #202020;
}

.tile--mid {
  --tile-surface: #595959;
  background-color: var(--tile-surface);
  color: #f4f4f4;
}

.tile--dark {
  --tile-surface: #353535;
  background-color: var(--tile-surface);
  color: #f5f5f5;
}

.tile--pale {
  --tile-surface: #a5a5a5;
  background-color: var(--tile-surface);
  color: #1e1e1e;
}

.tile__index {
  margin-bottom: 10px;
  opacity: 0.74;
}

.tile h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.tile:not(.tile--profile) h2 {
  padding-right: 44px;
}

.tile__summary {
  max-width: 42ch;
  margin: 10px 0 0;
  color: inherit;
  opacity: 0.82;
  font-size: 0.94rem;
  line-height: 1.55;
}

.tile__summary--focus-only {
  display: none;
}

.tile__toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform var(--focus-duration) var(--focus-easing), background-color 160ms ease, color 160ms ease;
}

.tile__toggle:hover {
  background: #f3f3f3;
  color: #292929;
}

.tile--light .tile__toggle:hover,
.tile--pale .tile__toggle:hover,
.tile--profile .tile__toggle:hover {
  background: #292929;
  color: #f3f3f3;
}

.tile__toggle[aria-expanded="true"] {
  transform: rotate(90deg);
}

.tile__icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.tile__icon::before,
.tile__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform var(--focus-duration) var(--focus-easing);
}

.tile__icon::before {
  transform: translate(-50%, -50%) rotate(0deg);
}

.tile__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.tile__toggle[aria-expanded="true"] .tile__icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.tile__toggle[aria-expanded="true"] .tile__icon::after {
  transform: translate(-50%, -50%) rotate(135deg);
}

.tile__toggle:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.tile__details {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.tile--profile.is-expanded > .tile__details {
  align-self: stretch;
  flex: 0 0 auto;
  min-width: 0;
  text-align: left;
}

.case-study--profile {
  width: 100%;
  min-width: 0;
  text-align: left;
}

.tile__details p {
  max-width: 48ch;
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid currentColor;
  font-size: 0.92rem;
  line-height: 1.6;
}

.case-study {
  display: grid;
  min-width: 0;
  gap: 22px;
  padding-top: 18px;
}

.case-study__header {
  max-width: 760px;
}

.case-study__eyebrow {
  color: inherit;
  font-size: 0.68rem !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.72;
  text-transform: uppercase;
}

.case-study__header h3 {
  margin: 7px 0 8px;
  font-size: clamp(1.35rem, 2.35vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.case-study__lead {
  max-width: none !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  white-space: pre-wrap;
  opacity: 0.84;
}

.case-study__media {
  margin: 0;
}

.case-study__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  border: 1px solid currentColor;
  background: #d9d9d9;
  object-fit: contain;
  object-position: center top;
}

.case-study__media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid currentColor;
  background: #222222;
}

.case-study__media figcaption {
  margin-top: 7px;
  font-size: 0.72rem;
  line-height: 1.4;
  opacity: 0.7;
}

.case-study__metadata {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.case-study__metadata-item {
  display: grid;
  gap: 5px;
}

.case-study__metadata-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.68;
  text-transform: uppercase;
}

.case-study__metadata-value {
  font-size: 0.78rem;
  line-height: 1.4;
}

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

.case-study__media--wireframe {
  min-width: 0;
  margin: 0;
}

.case-study__wireframe {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 8;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 0.42fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid currentColor;
  background: #d0d0d0;
}

.case-study__wireframe-shape {
  display: block;
  min-width: 0;
  min-height: 0;
  border: 1px solid #777777;
  background: #a9a9a9;
}

.case-study__wireframe-shape--primary {
  grid-row: 1 / 3;
  background: #b7b7b7;
}

.case-study__wireframe-shape--secondary {
  background: #8d8d8d;
}

.case-study__wireframe-shape--tertiary {
  background: #dedede;
}

.case-study__wireframe--video {
  aspect-ratio: 16 / 9;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  background: #8e8e8e;
}

.case-study__wireframe-play {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid #202020;
  border-radius: 50%;
  background: #d8d8d8;
}

.case-study__wireframe-play::after {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 11px solid #202020;
  content: "";
}

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

.case-study__sections--stacked .case-study__section {
  max-width: 76ch;
}

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

.case-study__section {
  padding-top: 12px;
  border-top: 1px solid currentColor;
}

.case-study__section h4 {
  margin: 0 0 7px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-study p {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.case-study__link {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 15px;
  border: 1px solid #202020;
  background: #202020;
  color: #f5f5f5;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.case-study__link:hover {
  background: #f5f5f5;
  color: #202020;
}

.case-study__link:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.case-study__link:active {
  transform: scale(0.98);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.tile__letter {
  opacity: 0;
}

.tile__letter.is-revealing {
  animation: letter-reveal 80ms cubic-bezier(0.65, 0, 0.35, 1) var(--reveal-delay) both;
}

.tile__details[hidden] {
  display: none;
}

.mosaic.is-focused {
  position: relative;
  display: block;
  height: clamp(500px, calc(100vh - 100px), 1060px);
  height: clamp(500px, calc(100svh - 100px), 1060px);
  min-height: 0;
  --focus-rail-width: 18%;
  --focus-rail-gap: 16px;
}

.mosaic.is-focused > .tile {
  transition: border-color 220ms ease;
}

.mosaic.is-focused > .tile:hover {
  transform: none;
}

.mosaic.is-focused > .tile.is-expanded {
  --focus-inset: 24px;
  position: relative;
  z-index: 1;
  width: calc(100% - var(--focus-rail-width) - var(--focus-rail-gap));
  height: 100%;
  min-height: 0;
  max-height: none;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
}

.mosaic.is-focused > .tile.is-expanded .tile__details {
  flex: 0 0 auto;
}

.mosaic.is-focused > .tile.is-expanded > .tile__focus-header {
  position: sticky;
  z-index: 12;
  top: 0;
  align-self: stretch;
  padding: 0 56px 12px 0;
  border-bottom: 1px solid currentColor;
  background-color: var(--tile-surface);
  background-image: none;
  opacity: 1;
  isolation: isolate;
}

.mosaic.is-focused > .tile.is-expanded > .tile__focus-header::before {
  position: absolute;
  top: calc(-1 * var(--focus-inset));
  right: calc(-1 * var(--focus-inset));
  bottom: 0;
  left: calc(-1 * var(--focus-inset));
  background-color: var(--tile-surface);
  content: "";
  pointer-events: none;
  z-index: -1;
}

.mosaic.is-focused > .tile.is-expanded > .tile__focus-header .tile__index {
  margin-bottom: 7px;
}

.mosaic.is-focused > .tile.is-expanded > .tile__focus-header .tile__summary {
  display: none;
}

.portfolio-case-preview--open > .tile__summary {
  display: none;
}

.mosaic.is-focused > .tile.is-expanded > .tile__focus-header .tile__toggle {
  top: 0;
  right: 0;
}

.mosaic.is-focused > .tile.is-receded {
  position: absolute;
  top: var(--recede-top, 0px);
  right: 0;
  height: 56px;
  min-height: 56px;
  width: var(--focus-rail-width);
  padding: 8px 64px 8px 14px;
  justify-content: center;
  overflow: hidden;
  display: flex;
}

.mosaic.is-focused > .tile.is-receded .tile__index,
.mosaic.is-focused > .tile.is-receded .tile__summary,
.mosaic.is-focused > .tile.is-receded .tile__details,
.mosaic.is-focused > .tile.is-receded .profile-photo,
.mosaic.is-focused > .tile.is-receded .profile-caption {
  display: none;
}

.mosaic.is-focused > .tile.is-receded h2 {
  display: -webkit-box;
  max-width: none;
  overflow: hidden;
  padding-right: 0;
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  line-height: 1.12;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mosaic.is-focused > .tile.is-receded .tile__toggle {
  top: 6px;
  right: 8px;
  width: 44px;
  height: 44px;
}

.mosaic:not(.is-focused) > .tile:not(.is-preview-active) .tile__summary {
  display: none;
}

.mosaic:not(.is-focused) > .tile.is-preview-active {
  z-index: 1;
}

.mosaic:not(.is-focused) > .tile.is-preview-active:hover {
  transform: none;
}

.mosaic:not(.is-focused) > .tile.is-preview-active .tile__summary {
  display: block;
  max-width: 48ch;
  margin-top: 10px;
  padding-right: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: preview-summary-in 180ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.page-shell.is-case-open {
  width: min(1600px, calc(100% - 48px));
  padding-top: 20px;
  padding-bottom: 16px;
}

.page-shell.is-case-open .introduction {
  max-width: none;
  margin-bottom: 12px;
}

.page-shell.is-case-open .eyebrow {
  font-size: 0.62rem;
}

.page-shell.is-case-open .introduction h1 {
  margin: 2px 0 0;
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.page-shell.is-case-open .page-footer {
  display: none;
}

.page-shell.is-case-open .introduction__copy {
  display: block;
  margin-top: 4px;
  color: #a9a9a9;
  font-size: 0.78rem;
  line-height: 1.35;
}

@keyframes letter-reveal {
  to {
    opacity: 1;
  }
}

@keyframes preview-summary-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 0.82;
    transform: translateY(0);
  }
}

@keyframes headline-letter-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes headline-letter-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.page-footer {
  padding: 22px 0 0;
  color: #999999;
  font-size: 0.83rem;
  line-height: 1.5;
}

.page-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .mosaic:not(.is-focused) > .tile.is-preview-active .tile__summary {
    animation: none;
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 48px, 760px);
    padding-top: 54px;
  }

  .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(140px, auto);
    gap: 16px;
  }

  .introduction h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .tile h2 {
    font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  }

  .tile--profile {
    grid-column: span 1;
    grid-row: span 2;
  }

  .tile--lead {
    grid-column: span 1;
    grid-row: span 2;
  }

  .tile--tall {
    grid-row: span 2;
  }

  .tile--wide {
    grid-column: span 2;
  }

  .mosaic.is-focused {
    height: clamp(480px, calc(100vh - 100px), 1060px);
    height: clamp(480px, calc(100svh - 100px), 1060px);
    min-height: 0;
  }

}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 32px);
    padding-top: 32px;
  }

  .introduction {
    margin-bottom: 22px;
  }

  .introduction h1 {
    max-width: 100%;
    margin-top: 9px;
    font-size: clamp(2rem, 9.2vw, 2.8rem);
  }

  .introduction__dynamic-word {
    display: block;
    margin-left: 0;
  }

  .page-shell.is-case-open {
    width: calc(100% - 24px);
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .page-shell.is-case-open .introduction {
    margin-bottom: 12px;
  }

  .page-shell.is-case-open .introduction h1 {
    font-size: clamp(1.02rem, 4.8vw, 1.25rem);
    line-height: 1.1;
  }

  .page-shell.is-case-open .introduction__dynamic-word {
    display: inline-block;
    margin-left: 0.16em;
  }

  .introduction__copy {
    font-size: 0.94rem;
  }

  .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(142px, auto);
    gap: 16px;
  }

  .tile {
    padding: 18px;
  }

  .tile--profile {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 235px;
  }

  .profile-photo {
    width: 98px;
    height: 98px;
    margin-bottom: 12px;
  }

  .profile-caption {
    margin: 6px 0 12px;
  }

  .tile--lead,
  .tile--tall {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 205px;
  }

  .tile--small {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 178px;
  }

  .tile--wide {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 190px;
  }

  .tile h2 {
    font-size: clamp(1.15rem, 6vw, 1.5rem);
  }

  .tile:not(.tile--profile) h2 {
    padding-right: 46px;
  }

  .tile__summary {
    font-size: 0.87rem;
  }

  .tile__toggle {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .tile__details p {
    font-size: 0.86rem;
  }

  .case-study {
    gap: 16px;
    padding-top: 14px;
  }

  .case-study__header h3 {
    font-size: clamp(1.28rem, 6vw, 1.7rem);
  }

  .case-study__lead {
    font-size: 0.9rem !important;
  }

  .case-study__sections {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .case-study__metadata {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .case-study__gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .case-study__wireframe {
    gap: 8px;
    padding: 9px;
  }

  .mosaic.is-focused {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: min-content;
    align-items: stretch;
    height: auto;
    min-height: 0;
  }

  .mosaic.is-focused > .tile.is-expanded {
    --focus-inset: 18px;
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 18px;
    overflow: visible;
  }

  .mosaic.is-focused > .tile.is-receded {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
    height: 52px;
    min-height: 52px;
    padding: 8px 64px 8px 14px;
  }

  .mosaic.is-focused > .tile.is-receded .tile__toggle {
    top: 5px;
    right: 8px;
  }
}

.mosaic[data-layout="uniform"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mosaic[data-layout="uniform"] > .tile,
.mosaic[data-layout="uniform"] > .tile--profile {
  grid-column: span 1;
  grid-row: span 1;
}

@media (max-width: 900px) {
  .mosaic[data-layout="uniform"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .mosaic[data-layout="uniform"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .mosaic[data-layout="uniform"] > .tile,
  .mosaic[data-layout="uniform"] > .tile--profile {
    grid-column: span 1;
    grid-row: auto;
  }
}

.case-study__page-viewport {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin-inline: auto;
  box-sizing: border-box;
  overflow: visible;
}

.case-study__page {
  position: relative;
  box-sizing: border-box;
  max-width: none;
  margin-inline: auto;
  overflow: visible;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  isolation: isolate;
}

.case-study__page-element {
  position: absolute;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.case-study__page-element--text { overflow: visible; }

.case-study__page-rich-text {
  width: 100%;
  height: auto;
  overflow: visible;
  padding: clamp(9px, 1.45vw, 22px);
  font-size: clamp(0.78rem, 1vw, 1.08rem);
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
}

.case-study__page-rich-text p {
  max-width: none;
  margin: 0 0 0.62em;
  padding: 0;
  border: 0;
  font-size: inherit;
  line-height: inherit;
}

.case-study__page-rich-text p:last-child { margin-bottom: 0; }

.case-study__page-media {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  overflow: hidden;
}

.case-study__page-media img,
.case-study__page-media video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #2a2a2a;
  object-fit: contain;
}

.case-study__page-media figcaption {
  margin: 0;
  padding: 5px 8px;
  background: #c8c8c8;
  color: #202020;
  font-size: 0.72rem;
  line-height: 1.35;
}

.case-study__page-element--link { display: flex; align-items: center; overflow: visible; }
.case-study__page-element--placeholder > .case-study__media--wireframe { display: grid; height: 100%; grid-template-rows: minmax(0, 1fr) auto; }
.case-study__page-element--placeholder .case-study__wireframe { height: 100%; }
.case-study__page-element--placeholder .case-study__placeholder-caption { margin: 0; padding: 5px 8px; background: #c8c8c8; color: #202020; }

.case-study__slide {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #006844;
  background: #001514;
  color: #E0EDE8;
  isolation: isolate;
}

.case-study__slide-element {
  position: absolute;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.case-study__slide-element--text {
  overflow: hidden;
}

.case-study__slide-rich-text {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: clamp(9px, 1.45vw, 22px);
  font-size: clamp(0.72rem, 1.25vw, 1.3rem);
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.case-study__slide-rich-text p {
  max-width: none;
  margin: 0 0 0.62em;
  padding: 0;
  border: 0;
  font-size: inherit;
  line-height: inherit;
}

.case-study__slide-rich-text p:last-child {
  margin-bottom: 0;
}

.case-study__rich-text-visual {
  min-height: 100%;
}

.case-study__slide-media {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  overflow: hidden;
}

.case-study__slide-media img,
.case-study__slide-media video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #2a2a2a;
  object-fit: contain;
}

.case-study__slide-media figcaption {
  margin: 0;
  padding: 5px 8px;
  background: #c8c8c8;
  color: #202020;
  font-size: 0.72rem;
  line-height: 1.35;
}

.case-study__slide-element--link {
  display: flex;
  align-items: center;
  overflow: visible;
}

.case-study__slide-element--placeholder > .case-study__media--wireframe {
  display: grid;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
}

.case-study__slide-element--placeholder .case-study__wireframe {
  height: 100%;
}

.case-study__slide-element--placeholder .case-study__placeholder-caption {
  margin: 0;
  padding: 5px 8px;
  background: #c8c8c8;
  color: #202020;
}

@media (max-width: 560px) {
  .case-study__page-viewport {
    max-width: none;
    height: auto !important;
    overflow: visible;
  }

  .case-study__page {
    display: flex;
    width: 100% !important;
    height: auto !important;
    max-width: none;
    min-height: 0 !important;
    flex-direction: column;
    gap: 14px;
    overflow: visible;
    padding: 14px 14px 64px;
    transform: none !important;
  }

  .case-study__page-element,
  .case-study__page-element--text,
  .case-study__page-element--link {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    overflow: visible;
  }

  .case-study__page-element--text { min-height: 0 !important; }
  .case-study__page-rich-text { height: auto; overflow: visible; padding: 0; font-size: 0.94rem; }
  .case-study__page-media,
  .case-study__page-element--placeholder > .case-study__media--wireframe { height: auto; min-height: 0; }
  .case-study__page-media img,
  .case-study__page-media video { height: auto; aspect-ratio: 16 / 9; }
  .case-study__page-element--placeholder .case-study__wireframe { height: auto; aspect-ratio: 16 / 9; }

  .case-study__slides {
    gap: 14px;
  }

  .case-study__slide {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    aspect-ratio: auto;
    overflow: visible;
  }

  .case-study__slide-element,
  .case-study__slide-element--text,
  .case-study__slide-element--link {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    overflow: visible;
  }

  .case-study__slide-rich-text {
    height: auto;
    overflow: visible;
    padding: 0;
    font-size: 0.94rem;
  }

  .case-study__slide-media,
  .case-study__slide-element--placeholder > .case-study__media--wireframe {
    height: auto;
    min-height: 0;
  }

  .case-study__slide-media img,
  .case-study__slide-media video {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .case-study__slide-element--placeholder .case-study__wireframe {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.motion-toggle {
  position: fixed;
  z-index: 200;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #005E41;
  border-radius: 0;
  background: #001514;
  color: #C1DBD1;
  cursor: pointer;
  transition: color 140ms ease-out, border-color 140ms ease-out;
}

.motion-toggle:hover {
  border-color: #A2C9BA;
  color: #E0EDE8;
}

.motion-toggle:disabled {
  cursor: wait;
  opacity: 0.78;
}

.motion-toggle:focus-visible {
  outline: 2px solid #E0EDE8;
  outline-offset: 3px;
}

.motion-toggle__icon {
  width: 15px;
  height: 15px;
}

.motion-toggle__icon--play,
.motion-toggle[aria-pressed="true"] .motion-toggle__icon--pause {
  display: none;
}

.motion-toggle[aria-pressed="true"] .motion-toggle__icon--play {
  display: block;
}

html.is-automatic-motion-paused .introduction__word-letter {
  animation-play-state: paused !important;
}

.tile.is-automatic-preview {
  transition: none;
}

@media (max-width: 560px) {
  .motion-toggle {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }
}

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

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

  .tile__letter.is-revealing {
    animation-delay: 0ms !important;
  }

  .tile__letter {
    opacity: 1 !important;
    animation: none !important;
  }
}
