@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@400;500;700&family=Newsreader:opsz,wght@6..72,300;6..72,400&display=swap");

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("/assets/fonts/Bebas_Neue.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --line: #d8d8d8;
  --orange: #ff3600;
  --accent: #ff3600;
  --radius: 5px;
  --page-gutter: clamp(0.8rem, 1.45vw, 1.5rem);
  --portrait-gutter: clamp(10px, 1.55vw, 22px);
  --work-gutter: clamp(18px, 2.5vw, 36px);
  --case-gutter: clamp(14px, 1.75vw, 25px);
  --media-gap: 5px;
  --overlay-top-gap: 12px;
  --font-sans: "Google Sans Flex", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Newsreader", Georgia, serif;
  --font-team: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-team-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --weight-regular: 400;
  --weight-semibold: 600;
  --type-opening: 59px;
  --type-positioning: 28px;
  --type-positioning-bio: 23px;
  --type-body: 18px;
  --type-display: 59px;
  --type-project: 14px;
  --type-utility: 12px;
  --type-meta-label: 10px;
  --type-meta-value: 12px;
  --type-overlay-intro: 23px;
  --ending-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

body,
button,
a {
  font-family: var(--font-sans);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 1.5px solid currentColor;
  outline-offset: 4px;
}

/* Index */

.index-body {
  background: var(--black);
  color: var(--white);
  min-height: 100svh;
  overflow: hidden;
}

.index-page {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 0;
  text-align: center;
  transform: translateY(2.5px);
}

.index-page h1 {
  margin: 0;
  font-family: var(--font-team-display);
  font-size: 64px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
}

.index-enquiries {
  background: var(--orange);
  border-radius: var(--radius);
  color: var(--black);
  font-family: var(--font-team);
  font-size: 16.33px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-top: 45px;
  padding: 3px 4px 2px;
}

.index-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: clamp(1.7rem, 3vw, 2.6rem);
}

.button {
  align-items: center;
  border: 1px solid currentColor;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 500;
  justify-content: center;
  letter-spacing: 0.03em;
  min-height: 42px;
  padding: 0.62rem 0.88rem;
  transition: background-color 180ms ease, color 180ms ease;
}

.button--solid {
  background: var(--white);
  color: var(--black);
}

.button--outline {
  background: var(--black);
  color: var(--white);
}

/* Loading */

.site-loading,
.site-error {
  align-items: center;
  display: flex;
  font-size: 1rem;
  justify-content: center;
  min-height: 100svh;
  padding: 2rem;
}

.site-error {
  flex-direction: column;
  gap: 1rem;
}

.site-error button {
  background: var(--black);
  border: 0;
  color: var(--white);
  min-height: 42px;
  padding: 0.65rem 0.9rem;
}

/* Team page system */

html.team-scroll {
  background: var(--page-background, var(--white));
  scroll-behavior: auto;
  scroll-snap-type: y mandatory;
}

html.team-scroll.case-open {
  scroll-snap-type: none;
}

html.team-scroll.is-chrome.selected-work-active:not(.case-open) {
  scroll-snap-type: none;
}

@media (min-width: 761px) {
  html.team-scroll.is-safari.selected-work-active:not(.case-open) {
    scroll-snap-type: none;
  }
}

.team-body,
.team-body button,
.team-body a {
  font-family: var(--font-team);
}

.team-body {
  background: var(--page-background, var(--white));
  color: var(--white);
  font-weight: var(--weight-regular);
  letter-spacing: 0;
}

.scene {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.portrait-scene,
.biography-scene,
.final-cta {
  touch-action: auto;
}

/* Portrait opening */

.portrait-scene {
  background: transparent;
  position: relative;
}

.portrait-frame {
  inset: var(--portrait-gutter);
  position: absolute;
}

.portrait-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  inset: 0;
  position: absolute;
}

.portrait {
  border-radius: 10px;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.portrait img {
  filter: grayscale(1);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.opening-identity {
  align-items: baseline;
  color: var(--orange);
  display: grid;
  font-family: var(--font-team-display);
  font-size: var(--type-opening);
  font-weight: 400;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  left: 0;
  line-height: 1;
  margin: 0;
  padding: 0 clamp(14px, 2vw, 30px);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.opening-identity span:first-child {
  padding-right: 0.42em;
  text-align: right;
}

.opening-identity span:last-child {
  padding-left: 0.42em;
  text-align: left;
}

.positioning-text {
  margin: 0;
}

/* Biography viewport */

.biography-scene {
  align-items: stretch;
  background: transparent;
  color: var(--black);
  display: grid;
  padding: 0 var(--work-gutter);
}

.biography-layout {
  display: grid;
  align-content: center;
  column-gap: clamp(88px, 8.5vw, 150px);
  grid-template-columns: minmax(0, 58%) minmax(360px, 1fr);
  grid-template-rows: auto auto auto;
  margin: 0;
  row-gap: clamp(34px, 4.8vh, 54px);
  transform: translateY(-4px);
  width: 100%;
}

.positioning-text--bio {
  align-self: start;
  grid-column: 1;
  grid-row: 1 / 3;
  max-width: min(52vw, 700px);
  width: 100%;
}

.positioning-text--bio h2 {
  font-family: var(--font-team-display);
  font-size: 59px;
  font-weight: 400;
  line-height: 0.9;
  margin: 0;
  text-transform: uppercase;
}

.positioning-text--bio h2 span {
  display: block;
}

.positioning-text--bio h2 .is-accent {
  color: var(--orange);
}

.positioning-text--bio p {
  font-size: 23px;
  font-weight: var(--weight-semibold);
  line-height: 1.28;
  margin: 28px 0 0;
  max-width: 560px;
}

.bio {
  font-size: 20px;
  grid-column: 2;
  line-height: 1.28;
  max-width: 520px;
}

.bio h2 {
  font-size: 20px;
  font-weight: var(--weight-semibold);
  line-height: 1.28;
  margin: 0 0 2px;
}

.bio p {
  font-size: 20px;
  font-weight: var(--weight-regular);
  line-height: 1.28;
  margin: 0;
}

.bio--johnny {
  transform: translateY(-7px);
}

.bio--kasper {
  justify-self: start;
  text-align: left;
  transform: translateY(-20px);
}

.intro-adjusted .bio-content {
  transform: translateX(-240px);
  width: calc(100% + 100px);
}

.intro-adjusted .availability-large {
  transform: translateY(-140px) scale(0.8);
  transform-origin: top left;
}

.availability-large {
  align-self: start;
  background: var(--accent);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 23px;
  font-weight: var(--weight-semibold);
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
  letter-spacing: 0.025em;
  line-height: 1;
  padding: 8px 10px;
}

.availability {
  background: var(--accent);
  border-radius: var(--radius);
  color: var(--white);
  font-size: var(--type-utility);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  line-height: 1;
  opacity: 0;
  padding: 5px;
  pointer-events: none;
  position: fixed;
  right: 13px;
  top: 13px;
  transform: none;
  transition: opacity 250ms ease-out;
  white-space: nowrap;
  z-index: 21;
}

.availability[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
}

/* Selected Work */

.selected-work {
  background: transparent;
  color: var(--white);
  column-gap: var(--media-gap);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 100svh;
  padding: 106px var(--work-gutter) var(--final-runway-padding, clamp(180px, 18vw, 260px));
  position: relative;
  row-gap: 110px;
  scroll-snap-align: start;
}

.selected-heading {
  align-self: start;
  grid-column: 1 / 3;
  grid-row: 1;
  height: 0;
  padding-right: clamp(28px, 4vw, 64px);
}

.selected-heading h2 {
  font-family: var(--font-team-display);
  font-size: var(--type-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
}

.selected-heading p {
  font-size: 23px;
  font-weight: var(--weight-regular);
  line-height: 1.3;
  margin: 10px 0 0;
  max-width: 800px;
}

.project-list {
  display: contents;
}

.project-card {
  min-width: 0;
  padding: 0;
  position: relative;
}

.project-card:nth-child(1) {
  grid-column: 3;
  grid-row: 1;
}

.project-card:nth-child(2),
.project-card:nth-child(5),
.project-card:nth-child(8) {
  grid-column: 1;
}

.project-card:nth-child(3),
.project-card:nth-child(6),
.project-card:nth-child(9) {
  grid-column: 2;
}

.project-card:nth-child(4),
.project-card:nth-child(7),
.project-card:nth-child(10) {
  grid-column: 3;
}

.project-card:nth-child(n + 2):nth-child(-n + 4) {
  grid-row: 2;
}

.project-card:nth-child(n + 5):nth-child(-n + 7) {
  grid-row: 3;
}

.project-card:nth-child(n + 8):nth-child(-n + 10) {
  grid-row: 4;
}

.project-launch {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  font: inherit;
  padding: 0;
  position: relative;
  text-align: left;
  width: 100%;
}

.project-title {
  height: calc(var(--type-display) * 0.6);
  left: 0;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
}

.project-title h3,
.project-title p {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  line-height: 1;
  margin: 0;
  position: absolute;
  text-align: center;
  transition: opacity 150ms ease-in-out;
}

.project-title h3 {
  color: var(--orange);
  font-family: var(--font-team-display);
  font-size: calc(var(--type-display) * 0.6);
  font-weight: 400;
  opacity: 1;
}

.project-title p {
  color: var(--orange);
  font-family: var(--font-team);
  font-size: 18px;
  font-weight: var(--weight-regular);
  opacity: 0;
}

.project-launch:hover .project-title h3 {
  opacity: 0;
}

.project-launch:hover .project-title p {
  opacity: 1;
}

.preview-grid {
  align-items: stretch;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  min-width: 0;
  overflow: hidden;
}

.preview-grid--count-2 {
  align-items: stretch;
  display: flex;
}

.preview-grid--count-2 .preview-media {
  flex: 1 1 0;
  width: 50%;
}

.preview-media {
  border-radius: var(--radius);
  height: 100%;
  min-width: 0;
  object-fit: cover;
  overflow: hidden;
  width: 100%;
}

.preview-grid--count-2 .preview-media {
  border-radius: 0;
}

.preview-media--wide {
  grid-column: auto;
}

/* Preview cards own pointer interaction; their decorative films never do. */
video.preview-media,
.case-video--loop video {
  pointer-events: none;
}

video.preview-media::-webkit-media-controls,
video.preview-media::-webkit-media-controls-panel,
video.preview-media::-webkit-media-controls-start-playback-button,
video.preview-media::-webkit-media-controls-play-button,
video.preview-media::-webkit-media-controls-overlay-play-button,
.case-video--loop video::-webkit-media-controls,
.case-video--loop video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.project-launch:focus-visible {
  outline: none;
}

.project-launch:focus-visible .project-title h3 {
  outline: none;
}

.team-body.keyboard-nav .project-launch:focus .project-title h3 {
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--orange);
}

/* Final background state */

.ending-wash {
  background: var(--accent);
  inset: 0;
  opacity: var(--ending-progress);
  pointer-events: none;
  position: fixed;
  z-index: 20;
}

.final-cta {
  align-items: center;
  color: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px var(--work-gutter);
  position: relative;
  text-align: center;
  z-index: 22;
}

.final-cta h2 {
  font-family: var(--font-team-display);
  font-size: var(--type-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
}

.final-cta a {
  background: var(--white);
  border-radius: var(--radius);
  color: var(--black);
  font-size: 23px;
  font-weight: var(--weight-semibold);
  line-height: 1;
  box-shadow: 0 2px 6px rgb(0 0 0 / 15%);
  margin-top: 32px;
  padding: 9px 10px;
}

/* Sulzer case-study access */

.passcode-dialog {
  background: transparent;
  border: 0;
  margin: auto;
  max-height: calc(100dvh - 24px);
  max-width: none;
  overflow: visible;
  padding: 0;
  width: calc((100vw - (2 * var(--work-gutter)) - (2 * var(--media-gap))) / 3);
}

.passcode-dialog::backdrop {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgb(255 255 255 / 48%);
}

.passcode-card {
  aspect-ratio: 1.38 / 1;
  background: var(--black);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgb(255 255 255 / 48%);
  color: var(--white);
  display: grid;
  grid-template-rows: auto 1fr clamp(58px, 4.8vw, 76px);
  min-height: 330px;
  overflow: hidden;
  width: 100%;
}

.passcode-heading {
  padding: clamp(34px, 3.2vw, 54px) clamp(28px, 2.8vw, 46px) 0;
}

.passcode-heading p,
.passcode-heading h2 {
  margin: 0;
}

.passcode-heading p {
  font-family: var(--font-team);
  font-size: clamp(13px, 1.05vw, 17px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.passcode-heading h2 {
  font-family: var(--font-team);
  font-size: clamp(20px, 1.55vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-top: clamp(20px, 1.9vw, 30px);
}

.passcode-entry {
  align-self: center;
  border: 1px solid var(--orange);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(58px, 4.3vw, 76px);
  height: clamp(68px, 6vw, 94px);
  margin: clamp(22px, 2.4vw, 36px) clamp(28px, 2.8vw, 46px) clamp(30px, 2.8vw, 48px);
  position: relative;
}

.passcode-field {
  cursor: text;
  display: block;
  min-width: 0;
  position: relative;
}

.passcode-field input {
  border: 0;
  caret-color: transparent;
  inset: 0;
  opacity: 0;
  padding: 0;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.passcode-slots {
  align-items: center;
  display: grid;
  font-family: var(--font-team);
  font-size: clamp(20px, 1.8vw, 29px);
  grid-template-columns: repeat(4, 1fr);
  inset: 0;
  line-height: 1;
  padding: 0 clamp(14px, 1.3vw, 22px);
  pointer-events: none;
  position: absolute;
  text-align: center;
}

.passcode-slots.is-revealed {
  font-family: var(--font-team-display);
  font-size: clamp(28px, 2.35vw, 38px);
  letter-spacing: 0.02em;
}

.passcode-reveal {
  align-items: center;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--orange);
  color: var(--orange);
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding: 0 clamp(13px, 1.15vw, 19px);
}

.passcode-reveal svg {
  fill: none;
  overflow: visible;
  stroke: currentColor;
  stroke-width: 1.5;
  transform: rotate(0deg);
  transition: transform 150ms ease;
  width: 100%;
}

.passcode-reveal[aria-pressed="true"] svg {
  transform: rotate(90deg);
}

.passcode-reveal:disabled {
  cursor: default;
  opacity: 1;
}

.passcode-error {
  align-items: center;
  background: var(--orange);
  border: 0;
  color: var(--black);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  inset: 0 clamp(58px, 4.3vw, 76px) 0 0;
  justify-content: center;
  padding: 0 12px;
  position: absolute;
  text-align: center;
  z-index: 3;
}

.passcode-error[hidden] {
  display: none;
}

.passcode-error strong {
  font-family: var(--font-team);
  font-size: clamp(15px, 1.3vw, 21px);
  line-height: 1;
}

.passcode-error span {
  color: var(--white);
  font-family: var(--font-team);
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 700;
  line-height: 1;
  margin-top: 7px;
}

.passcode-actions {
  border-top: 1px solid var(--orange);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.passcode-actions button {
  border: 0;
  cursor: pointer;
  font-family: var(--font-team);
  font-size: clamp(14px, 1.25vw, 20px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.passcode-actions button:first-child {
  background: var(--orange);
  color: var(--black);
}

.passcode-actions button:last-child {
  background: var(--white);
  border-left: 1px solid var(--orange);
  color: var(--black);
}

.passcode-card[aria-busy="true"] {
  pointer-events: none;
}

.passcode-dialog button:focus-visible,
.passcode-field:focus-within {
  outline: none;
}

.team-body.keyboard-nav .passcode-dialog button:focus,
.team-body.keyboard-nav .passcode-field:focus-within {
  box-shadow: inset 0 0 0 2px var(--white);
}

/* Case-study sheet */

.case-dialog {
  background: transparent;
  border: 0;
  height: 100dvh;
  margin: 0;
  max-height: none;
  max-width: none;
  overflow: hidden;
  padding: var(--overlay-top-gap) 0 0;
  width: 100vw;
}

.case-dialog::backdrop {
  background: rgb(255 255 255 / 28%);
}

.case-shell {
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -5px 24px rgb(0 0 0 / 9%);
  height: calc(100dvh - var(--overlay-top-gap));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.case-close {
  --case-close-progress: 0;
  background: rgb(255 54 0 / var(--case-close-progress));
  border-radius: var(--radius);
  border: 0;
  color: transparent;
  cursor: pointer;
  height: 42px;
  padding: 0;
  position: fixed;
  right: calc(var(--case-gutter) + 5px);
  top: 27px;
  width: 42px;
  z-index: 100;
}

.case-close::before,
.case-close::after {
  background: var(--black);
  content: "";
  height: 1px;
  left: 3px;
  position: absolute;
  top: 20px;
  width: 36px;
}

.case-close::before {
  transform: rotate(45deg);
}

.case-close::after {
  transform: rotate(-45deg);
}

.case-close:focus-visible {
  outline: none;
}

.team-body.keyboard-nav .case-close:focus {
  border-radius: var(--radius);
  box-shadow: 0 0 0 2px var(--orange);
}

.case-header {
  min-height: calc(100dvh - var(--overlay-top-gap));
  padding: 24px var(--case-gutter) 36px;
}

.case-meta {
  display: grid;
  gap: clamp(20px, 2vw, 32px);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.95fr) minmax(0, 0.9fr) minmax(0, 3fr);
  padding-right: 76px;
}

.case-meta dl {
  margin: 0;
  min-width: 0;
}

.case-meta dt {
  font-size: var(--type-meta-label);
  font-weight: var(--weight-regular);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 5px;
}

.case-meta dd {
  font-size: var(--type-meta-value);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  margin: 0;
}

.case-intro-grid {
  display: grid;
  gap: clamp(72px, 7.5vw, 108px);
  grid-template-columns: minmax(0, 31.5%) minmax(0, 1fr);
  margin-top: clamp(110px, 15vh, 135px);
}

.case-introduction {
  font-size: var(--type-overlay-intro);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.015em;
  line-height: 1.22;
  margin: 0;
  max-width: 470px;
}

.case-introduction p {
  font: inherit;
  margin: 0 0 0.7em;
}

.case-introduction p:last-child {
  margin-bottom: 0;
}

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

.case-principles h2 {
  font-size: var(--type-body);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  margin: 0 0 2px;
}

.case-principles p {
  font-size: var(--type-body);
  font-weight: var(--weight-regular);
  line-height: 1.35;
  margin: 0;
  max-width: 780px;
}

.case-content {
  padding: 0 var(--case-gutter) var(--case-gutter);
}

.case-route + .case-route {
  margin-top: 80px;
}

.case-study--koerber .case-route + .case-route {
  margin-top: 180px;
}

.route-name {
  font-size: 23px;
  font-weight: var(--weight-regular);
  line-height: 1.15;
  margin: 0 0 24px;
}

.case-row {
  gap: var(--media-gap);
  margin-bottom: var(--media-gap);
}

.case-route .case-row:last-child {
  margin-bottom: 0;
}

.case-row--1 {
  display: block;
}

.case-row--2:not(.case-row--with-copy) {
  display: flex;
  height: var(--pair-height, auto);
}

.case-row--3 {
  display: flex;
  height: var(--pair-height, auto);
}

.case-row--2:not(.case-row--with-copy) > .case-media,
.case-row--3 > .case-media {
  flex: var(--media-ratio, 1) 1 0;
}

.case-media {
  border-radius: var(--radius);
  margin: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.case-media img,
.case-media video {
  height: auto;
  width: 100%;
}

.case-row--2:not(.case-row--with-copy) .case-media img,
.case-row--2:not(.case-row--with-copy) .case-media video,
.case-row--3 .case-media img,
.case-row--3 .case-media video {
  height: 100%;
  object-fit: cover;
}

.case-row--after-first-film {
  margin-top: 130px;
}

.case-video video {
  background: var(--black);
}

.case-study--koerber .case-video,
.case-study--koerber .case-video video {
  border: 0;
  box-shadow: none;
  outline: 0;
}

.case-study--koerber .case-video video {
  display: block;
}

.case-row--1 > .case-video--interactive {
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.case-row--1 > .case-video--interactive video {
  height: 100%;
  object-fit: cover;
  position: relative;
  width: 100%;
  z-index: 1;
}

.case-row--with-copy {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 4fr);
}

.case-row--with-copy .case-media {
  grid-column: 2;
}

.case-row--with-copy .case-media img {
  height: 100%;
  object-fit: cover;
}

.case-extra-copy {
  align-content: start;
  background: var(--white);
  color: var(--black);
  display: grid;
  grid-column: 1;
  grid-row: 1;
  padding: 5px clamp(20px, 3vw, 44px) 16px 4px;
}

.case-extra-copy h3,
.case-extra-copy p {
  font-size: 14px;
  line-height: 1.38;
}

.case-extra-copy h3 {
  font-weight: var(--weight-semibold);
  margin: 0 0 3px;
}

.case-extra-copy p {
  font-weight: var(--weight-regular);
  margin: 0 0 14px;
}

.case-extra-copy p:last-child {
  margin-bottom: 0;
}

.video-controls {
  bottom: 8px;
  display: flex;
  gap: 6px;
  left: 8px;
  margin: 0;
  position: absolute;
  z-index: 3;
}

.video-controls button,
.video-start {
  align-items: center;
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  color: var(--black);
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.video-controls button.is-sound-off {
  background: var(--accent);
}

.video-controls button.replay-control {
  background: var(--white);
  color: var(--black);
}

.video-controls svg,
.video-start svg {
  fill: currentColor;
  height: 21px;
  width: 21px;
}

.video-start {
  background: var(--orange);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.case-video--click-start:not([data-started="true"]) .video-controls,
.case-video--click-start[data-started="true"] .video-start {
  display: none;
}

.case-video--click-start .video-controls button.is-sound-off {
  background: var(--white);
}

@media (max-width: 900px) {
  .opening-identity {
    font-size: clamp(42px, 6.55vw, var(--type-display));
  }

  .biography-layout {
    column-gap: 40px;
    grid-template-columns: minmax(0, 54%) minmax(300px, 1fr);
    width: 100%;
  }

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

  .case-intro-grid {
    gap: 54px;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 760px) {
  :root {
    --portrait-gutter: 10px;
    --work-gutter: 16px;
    --case-gutter: 10px;
    --media-gap: 5px;
    --overlay-top-gap: 8px;
  }

  html.team-scroll {
    background: var(--black);
    scroll-snap-type: none;
  }

  .team-body {
    background: var(--black);
  }

  .scene {
    min-height: 100svh;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .portrait-scene {
    background: var(--black);
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  .opening-identity {
    font-size: clamp(42px, 13.5vw, var(--type-display));
    padding: 0 8px;
  }

  .opening-identity span:first-child {
    padding-right: 0.3em;
  }

  .opening-identity span:last-child {
    padding-left: 0.3em;
  }

  .biography-scene {
    background: var(--white);
    display: block;
    height: auto;
    min-height: 0;
    padding: 100px 20px 80px;
    position: relative;
  }

  .biography-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    transform: none;
    width: 100%;
  }

  .biography-layout::before {
    content: none;
  }

  .positioning-text--bio {
    align-self: auto;
    grid-column: 1;
    grid-row: 1;
    left: auto;
    line-height: 1.22;
    max-width: none;
    position: static;
    right: auto;
    top: auto;
    transform: none;
    order: 1;
  }

  .positioning-text--bio h2 {
    font-size: 59px;
    line-height: 0.9;
  }

  .positioning-text--bio p {
    font-size: 21px;
    margin-top: 24px;
  }

  .bio {
    font-size: var(--type-body);
    line-height: 1.38;
    max-width: 100%;
    transform: none;
    width: 100%;
  }

  .bio h2,
  .bio p {
    font-size: var(--type-body);
  }

  .bio h2 {
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .bio p {
    line-height: 1.38;
  }

  .bio--johnny {
    margin-top: 70px;
    order: 2;
    transform: none;
  }

  .bio--kasper {
    justify-self: start;
    margin-top: 39px;
    order: 3;
    text-align: left;
    transform: none;
  }

  .availability-large {
    align-self: flex-start;
    bottom: auto;
    font-size: 18px;
    left: auto;
    margin-top: 80px;
    order: 4;
    position: static;
    transform: scale(0.8);
    transform-origin: top left;
  }

  .availability {
    bottom: auto;
    left: auto;
    right: 13px;
    top: 13px;
    transform: none;
    writing-mode: horizontal-tb;
  }

  .selected-work {
    background: var(--black);
    display: block;
    padding: 90px var(--work-gutter) var(--final-runway-padding, 76px);
    scroll-snap-align: none;
  }

  .selected-heading {
    height: auto;
    padding: 0;
  }

  .selected-heading h2 {
    font-size: clamp(52px, 15.1vw, var(--type-display));
    margin-bottom: 0;
  }

  .selected-heading p {
    font-size: 19px;
    margin: 10px 0 80px;
  }

  .project-card {
    display: block;
    padding-bottom: 0;
  }

  .project-card + .project-card {
    margin-top: 59.6px;
  }

  .project-card:last-child {
    padding-bottom: 0;
  }

  .project-launch {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .project-title,
  .project-card:nth-child(even) .project-title {
    height: calc(var(--type-display) * 0.6);
    margin-top: 10px;
    position: relative;
    text-align: center;
    top: auto;
    width: 100%;
  }

  .project-title h3 {
    font-family: var(--font-team-display);
    font-size: calc(var(--type-display) * 0.6);
    opacity: 1;
    position: static;
    text-align: center;
    width: 100%;
  }

  .project-title p,
  .project-launch:hover .project-title p {
    display: none;
  }

  .project-launch:hover .project-title h3 {
    opacity: 1;
  }

  .preview-grid {
    aspect-ratio: auto;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .preview-grid .preview-media:not(:first-child) {
    display: block;
  }

  .preview-grid .preview-media:first-child {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
    object-position: var(--mobile-focal-position, center center);
    width: 100%;
  }

  .preview-grid--count-2 {
    display: flex;
  }

  .preview-grid--count-2 .preview-media {
    height: auto;
  }

  .preview-grid--koerber.preview-grid--count-2 .preview-media {
    flex: 0 0 calc(50% + 0.5px);
  }

  .preview-grid--koerber.preview-grid--count-2 .preview-media + .preview-media {
    margin-left: -1px;
  }

  .preview-media--wide {
    grid-column: 1;
  }

  .ending-wash {
    display: none;
  }

  .final-cta {
    background: var(--accent);
    min-height: 100svh;
    scroll-snap-align: none;
  }

  .final-cta h2 {
    font-size: clamp(52px, 15.1vw, var(--type-display));
  }

  .final-cta a {
    font-size: clamp(18px, 5.5vw, 23px);
    margin-top: 42px;
  }

  .passcode-dialog {
    width: calc(100vw - 32px);
  }

  .passcode-card {
    aspect-ratio: auto;
    grid-template-rows: auto 1fr 62px;
    min-height: min(390px, calc(100dvh - 24px));
  }

  .passcode-heading {
    padding: 38px 30px 0;
  }

  .passcode-heading p {
    font-size: 13px;
  }

  .passcode-heading h2 {
    font-size: 21px;
    margin-top: 22px;
  }

  .passcode-entry {
    grid-template-columns: minmax(0, 1fr) 62px;
    height: 72px;
    margin: 28px 30px 38px;
  }

  .passcode-error {
    right: 62px;
  }

  .passcode-actions button {
    font-size: 15px;
  }

  .case-close {
    height: 38px;
    top: 21px;
    width: 38px;
  }

  .case-close::before,
  .case-close::after {
    left: 3px;
    top: 18px;
    width: 32px;
  }

  .case-header {
    min-height: 0;
    padding: 18px var(--case-gutter) 90px;
  }

  .case-meta {
    gap: 20px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 48px;
  }

  .case-intro-grid {
    gap: 70px;
    grid-template-columns: 1fr;
    margin-top: 100px;
  }

  .case-principles {
    gap: 28px;
  }

  .case-route + .case-route {
    margin-top: 120px;
  }

  .case-row--2:not(.case-row--with-copy),
  .case-row--3 {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
  }

  .case-row--2:not(.case-row--with-copy) .case-media img,
  .case-row--2:not(.case-row--with-copy) .case-media video,
  .case-row--3 .case-media img,
  .case-row--3 .case-media video {
    height: auto;
    object-fit: contain;
  }

  .case-row--with-copy {
    grid-template-columns: 1fr;
  }

  .case-row--with-copy .case-media,
  .case-extra-copy {
    grid-column: 1;
  }

  .case-row--with-copy .case-media {
    grid-row: 2;
  }

  .case-extra-copy {
    grid-row: 1;
    padding: 6px 4px 36px;
  }
}

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

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