:root {
  --page-bg: #ffffff;
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.5);
  --tag-bg: #f1f1f1;
  --hairline: rgba(0, 0, 0, 0.1);
  --content-desktop: 454px;
  --content-mobile: 369px;
}

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

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text);
  font-family: "ABC Monument Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  font-weight: 420;
  font-variation-settings: "wght" 420;
  font-synthesis: none;
  font-optical-sizing: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

h1,
h2,
p {
  margin: 0;
  font: inherit;
}

em {
  font-style: italic;
  font-synthesis: style;
}

a {
  color: inherit;
}

button,
a[href],
[role="button"],
[data-clickable="true"],
[tabindex]:not([tabindex="-1"]) {
  cursor: pointer;
}

button:focus-visible,
a[href]:focus-visible,
[role="button"]:focus-visible,
[data-clickable="true"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

button *,
a[href] *,
[role="button"] *,
[data-clickable="true"] *,
[tabindex]:not([tabindex="-1"]) * {
  cursor: inherit;
}

button img,
button video,
button svg,
button svg *,
a[href] img,
a[href] video,
a[href] svg,
a[href] svg *,
[role="button"] img,
[role="button"] video,
[role="button"] svg,
[role="button"] svg *,
[data-clickable="true"] img,
[data-clickable="true"] video,
[data-clickable="true"] svg,
[data-clickable="true"] svg *,
[tabindex]:not([tabindex="-1"]) img,
[tabindex]:not([tabindex="-1"]) video,
[tabindex]:not([tabindex="-1"]) svg,
[tabindex]:not([tabindex="-1"]) svg *,
.study-media img,
.study-media video {
  pointer-events: none;
}

h1,
h2,
p,
a,
span {
  leading-trim: both;
  text-edge: cap alphabetic;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

@supports (text-box: trim-both cap alphabetic) {
  h1,
  h2,
  p,
  a,
  span {
    text-box: trim-both cap alphabetic;
  }
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 50%;
  width: var(--content-desktop);
  height: 76px;
  padding: 24px 0 17px;
  transform: translateX(-50%);
  pointer-events: none;
}

.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ffffff 42%,
    rgba(255, 255, 255, 0.94) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: var(--header-fade, 0);
  pointer-events: none;
}

.site-header a[href],
.site-header button,
.site-header [role="button"],
.site-header [tabindex]:not([tabindex="-1"]) {
  pointer-events: auto;
}

.site-name {
  display: block;
  width: 100%;
  height: 24px;
  cursor: pointer;
  text-decoration: none;
  overflow: visible;
}

.name-mark {
  display: block;
  width: 454px;
  height: 24px;
  max-width: none;
  cursor: pointer;
  overflow: visible;
}

.name-mark-mask-text,
.name-mark-outline-text,
.name-mark-fill-text {
  font-family: "ABC Monument Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  line-height: 24px;
  letter-spacing: -0.48px;
  font-weight: 420;
  font-variation-settings: "wght" 420;
  text-rendering: geometricPrecision;
}

.portfolio,
.case-study {
  width: var(--content-desktop);
  margin: 0 auto;
  padding: 65px 0 120px;
}

.portfolio {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.intro,
.case-card,
.shots-card,
.case-heading,
.experience,
.case-study-content,
.study-block,
.result-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.intro {
  gap: 24px;
}

.love-block {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
}

.love-label {
  display: flex;
  height: 11px;
  align-items: center;
  gap: 4px;
}

.pin {
  display: inline-flex;
  width: 16px;
  height: 16px;
  margin-left: -2px;
  margin-top: 1px;
  align-items: center;
  justify-content: center;
  transform: rotate(15deg);
}

.pin img {
  width: 8px;
  height: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
}

.tag-row span,
.result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tag-bg);
  white-space: nowrap;
}

.tag-row span {
  cursor: default;
  min-height: 15px;
  padding: 0;
  line-height: 20px;
}

.social-links {
  display: flex;
  gap: 16px;
  line-height: 18px;
  white-space: nowrap;
}

.social-links a {
  display: inline-block;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 1px;
  transition: opacity 160ms ease;
}

.social-links a:hover,
.back-link:hover,
.read-more:hover {
  opacity: 0.55;
}

.case-card {
  width: 100%;
  gap: 20px;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.case-heading {
  width: 100%;
  gap: 16px;
}

.case-label,
.study-kicker,
.experience-list div p + p {
  opacity: 0.5;
}

.case-heading h1,
.case-heading h2,
.shots-card h2,
.experience h2,
.study-heading,
.result-title {
  font-size: 24px;
  line-height: 24px;
  letter-spacing: -0.48px;
  font-weight: 420;
  font-variation-settings: "wght" 420;
}

.media-link,
.study-media {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: #ffffff;
}

.media-link {
  aspect-ratio: 1 / 1;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 160ms ease;
}

.media-link img,
.media-link video,
.study-media img,
.study-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.read-more {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.experience {
  gap: 32px;
}

.experience-list {
  display: flex;
  width: 361px;
  flex-direction: column;
  gap: 20px;
}

.experience-list div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-footer-links {
  display: none;
}

.case-study {
  padding-top: 59px;
}

.case-study-content {
  gap: 52px;
}

.study-block {
  width: 100%;
  gap: 24px;
}

.study-block.tight {
  gap: 20px;
}

.study-media {
  aspect-ratio: 1 / 1;
}

.study-media.no-border {
  border: 0;
  border-radius: 0;
}

.study-media.tall {
  aspect-ratio: auto;
  height: 522px;
}

.study-goal {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 32px;
}

.study-rule {
  width: 100%;
  height: 1px;
  background: var(--hairline);
}

.study-goal-copy {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 16px;
}

.study-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-block {
  gap: 20px;
}

.result-pill {
  min-height: 25px;
  padding: 4px 0;
  font-size: 24px;
  line-height: 24px;
  letter-spacing: -0.48px;
}

.back-link {
  display: inline-block;
  cursor: pointer;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.media-link:hover {
  border-color: #000000;
}

.media-card-shell,
.media-player-host {
  position: relative;
  width: 100%;
}

.media-play-button {
  position: absolute;
  z-index: 1;
  left: 50%;
  transform: translate(-50%, -50%);
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

.media-play-button[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: var(--content-mobile);
  }

  .portfolio,
  .case-study {
    width: var(--content-mobile);
    padding-bottom: 80px;
  }

  .portfolio {
    gap: 52px;
  }

  .mobile-footer-links {
    display: flex;
  }

  .intro .social-links {
    display: flex;
  }

  .experience-list {
    width: 361px;
    max-width: 100%;
  }

  .study-media.tall {
    height: 424px;
  }
}

@media (min-width: 761px) {
  .mobile-footer-links {
    display: none;
  }
}

@media (max-width: 393px) {
  :root {
    --content-mobile: calc(100vw - 24px);
  }

  .case-heading h1,
  .case-heading h2,
  .experience h2,
  .study-heading,
  .result-title,
  .result-pill {
    font-size: 22px;
    line-height: 22px;
    letter-spacing: -0.44px;
  }

  .result-pill {
    white-space: normal;
    text-align: left;
  }
}
