@font-face {
  font-family: "HD Microbic Condensed";
  src: url("/assets/fonts/HDMicrobic-Condensed.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "HD Microbic Roman";
  src: url("/assets/fonts/HDMicrobic-Roman.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "HD Microbic Italic";
  src: url("/assets/fonts/HDMicrobic-Italic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #e2e2e2;
  --paper-alt: #eaeaea;
  --ink: #1b1b1b;
  --black: #000000;
  --red: #b02c17;
  --muted: rgba(27, 27, 27, 0.58);
  --line: rgba(27, 27, 27, 0.18);
  --white: #ffffff;
  --green: #c8f69a;
  --display: "HD Microbic Condensed", "Bodoni 72", "Didot", "Times New Roman", serif;
  --mono: "Geist Mono", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  --text: "HD Microbic Roman", "Times New Roman", serif;
  --column: 656px;
  --wide: 1228px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  opacity: 1;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: url("/assets/img/paper-texture.png");
  background-size: 358px 358px;
  opacity: 0.7;
  pointer-events: none;
}

body.is-loading main {
  opacity: 1;
  transform: none;
}

body.is-loaded main {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

body.is-exiting main {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.texture-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("https://pub-50b9af1af7fb481481bf2cb18b0c9f9b.r2.dev/texture-gif-tremendo.gif");
  background-size: 290px 290px;
  background-repeat: repeat;
  background-position: 0 0;
}

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

  body.is-loading main,
  body.is-loaded main,
  body.is-exiting main {
    opacity: 1;
    transform: none;
  }

  .cta-loop__track {
    animation: none !important;
  }
}

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

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

a:hover,
a:focus-visible {
  color: var(--red);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button-link {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  transform: translateY(-160%);
}

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

.page-main {
  overflow: hidden;
}

.section {
  position: relative;
  padding-right: 48px;
  padding-left: 48px;
}

.column {
  width: min(100%, var(--column));
  margin-right: auto;
  margin-left: auto;
}

.wide {
  width: min(100%, var(--wide));
  margin-right: auto;
  margin-left: auto;
}

.hero {
  display: flex;
  min-height: 1180px;
  flex-direction: column;
  align-items: center;
  gap: 92px;
  padding-top: 190px;
  padding-bottom: 110px;
}

.hero__intro {
  width: min(100%, var(--column));
}

.signature {
  width: 66px;
  height: auto;
  margin-bottom: 32px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.display-title {
  margin: 0;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
  text-transform: uppercase;
}

.display-title--center {
  text-align: center;
}

.display-title--large {
  font-size: 80px;
  line-height: 0.9;
}

.hero__cta {
  display: flex;
  justify-content: flex-end;
  width: 322px;
  margin-top: 32px;
  margin-left: auto;
  color: var(--red);
  font-family: var(--display);
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cta-loop {
  position: relative;
  display: block;
  overflow: hidden;
  clip-path: inset(0 0 0 3px);
  height: 1em;
  white-space: nowrap;
}

.cta-loop__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0;
  animation: cta-slide 8s cubic-bezier(0.74, 0, 0.18, 1) infinite;
  will-change: transform;
}

.cta-loop__track span {
  display: block;
  width: var(--cta-panel-width, 322px);
  flex: 0 0 var(--cta-panel-width, 322px);
  text-align: right;
}

.floating-cta {
  position: fixed;
  z-index: 12;
  right: 48px;
  bottom: 48px;
  width: 176px;
  color: var(--red);
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.show-floating-cta .floating-cta {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@keyframes cta-slide {
  0%,
  22% {
    transform: translate3d(0, 0, 0);
  }

  36%,
  58% {
    transform: translate3d(calc(-1 * var(--cta-panel-width, 322px)), 0, 0);
  }

  72%,
  100% {
    transform: translate3d(calc(-2 * var(--cta-panel-width, 322px)), 0, 0);
  }
}

.logo-strip {
  position: relative;
  width: min(100%, var(--column));
  overflow: hidden;
}

.logo-strip__label {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
}

.logo-strip__items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 54px;
  min-width: max-content;
}

.logo-strip img {
  max-height: 40px;
  width: auto;
  opacity: 0.58;
  mix-blend-mode: multiply;
}

.media-frame {
  position: relative;
  width: min(100%, 896px);
  overflow: hidden;
  background: #0d0d0d;
  aspect-ratio: 896 / 526;
}

.media-frame::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: var(--green);
  opacity: 0.08;
  pointer-events: none;
}

.media-frame img,
.case-card__media img,
.detail-media img,
.stack-card img,
.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__caption {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.intro-section {
  padding-top: 96px;
  padding-bottom: 208px;
}

.chevron-row {
  display: flex;
  width: min(100%, var(--column));
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 0 auto 184px;
  padding: 14px 18px;
}

.chevron-row img {
  width: 16px;
  height: 22px;
  object-fit: contain;
  transform: rotate(180deg);
}

.intro-copy {
  width: min(100%, 464px);
  margin: 0 auto 184px;
  font-family: var(--text);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.intro-copy p {
  margin: 0 0 16px;
}

.case-list {
  display: grid;
  width: min(100%, var(--column));
  margin: 0 auto;
  gap: 120px;
}

.case-card {
  display: grid;
  gap: 46px;
}

.case-card__media {
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
  aspect-ratio: 656 / 369;
}

.case-card__media::after,
.detail-media::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.case-card__title {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.case-card__copy {
  margin: 0 0 16px;
  font-family: var(--text);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 8px;
  border-radius: 8px;
  background: #d2d2d2;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.services {
  padding-top: 80px;
  padding-bottom: 80px;
}

.services__panel {
  width: min(100%, var(--column));
  margin: 0 auto;
  padding: 96px;
}

.section-title {
  margin: 0 0 32px;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.services__intro {
  margin: 0 0 32px;
  font-family: var(--text);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0;
}

.service-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 8px 0;
  font-family: var(--text);
  font-size: 32px;
  line-height: 1;
}

.service-list li::before {
  width: 19px;
  height: 14px;
  flex: 0 0 auto;
  background: url("/assets/img/flank-chevron-service.svg") center / contain no-repeat;
  content: "";
  transform: rotate(90deg);
}

.service-list li:nth-child(2) {
  opacity: 0.7;
}

.service-list li:nth-child(3) {
  opacity: 0.5;
}

.service-list li:nth-child(4) {
  opacity: 0.3;
}

.service-list li:nth-child(5) {
  opacity: 0.14;
}

.site-footer {
  position: relative;
  padding: 160px;
  background: var(--paper-alt);
}

.site-footer::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: url("/assets/img/paper-texture.png");
  background-size: 358px 358px;
  opacity: 0.55;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  display: grid;
  gap: 96px;
}

.footer-lockup {
  display: flex;
  max-width: none;
  flex-direction: column;
  gap: 8px;
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
  text-transform: uppercase;
}

.footer-lockup span {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.footer-lockup img {
  display: inline-block;
  width: 33.504px;
  height: 39.514px;
  object-fit: contain;
}

.footer-meta {
  display: grid;
  max-width: 560px;
  gap: 48px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-meta h2,
.footer-meta p {
  margin: 0;
}

.footer-meta h2 {
  margin-bottom: 16px;
  font-size: 14px;
}

.footer-country {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15.222px;
  height: 25.076px;
  margin-top: 16px;
}

.footer-country__chevron {
  width: 21.311px;
  height: 15.222px;
  object-fit: fill;
  transform: rotate(90deg);
}

.footer-country__chevron--right {
  transform: rotate(90deg) scaleY(-1);
}

.footer-country__badge {
  position: relative;
  display: inline-grid;
  width: 43.097px;
  height: 24.518px;
  place-items: center;
  font-family: var(--text);
  font-size: 16.764px;
  line-height: 1.1;
  text-align: center;
}

.footer-country__badge span {
  position: relative;
  z-index: 1;
}

.footer-country__badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.red {
  color: var(--red);
}

.case-hero {
  padding-top: 172px;
  padding-bottom: 70px;
}

.case-hero__grid {
  display: grid;
  width: min(100%, var(--column));
  margin: 0 auto;
  gap: 32px;
}

.case-hero .signature {
  margin-bottom: 0;
}

.case-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.case-hero__lead {
  margin: 0;
  font-family: var(--text);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.detail-media-section {
  padding-bottom: 140px;
}

.detail-media {
  position: relative;
  width: min(100%, var(--wide));
  margin: 0 auto;
  overflow: hidden;
  background: #0b0d25;
  aspect-ratio: 1228 / 649;
}

.impact-section {
  padding-top: 190px;
  padding-bottom: 160px;
}

.impact-number {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 80px;
  line-height: 1;
  text-align: center;
}

.impact-label {
  margin: 0 0 48px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.quote-stack {
  display: grid;
  width: min(100%, 500px);
  margin: 0 auto;
  gap: 48px;
}

.quote-stack blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.2;
  text-transform: uppercase;
}

.quote-stack cite {
  display: block;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}

.project-stack {
  display: flex;
  justify-content: center;
  min-height: 250px;
  margin-top: 140px;
  overflow: hidden;
}

.stack-card {
  width: 275px;
  height: 203px;
  margin-right: -92px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}

.stack-card:nth-child(1) {
  transform: rotate(2deg) translateY(12px);
}

.stack-card:nth-child(2) {
  transform: rotate(-3deg) translateY(38px);
}

.stack-card:nth-child(3) {
  transform: rotate(5deg) translateY(28px);
}

.stack-card:nth-child(4) {
  transform: rotate(2deg) translateY(46px);
}

.related-cases {
  padding-top: 96px;
  padding-bottom: 140px;
}

.related-cases__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.related-tile {
  display: grid;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.related-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.book-page {
  min-height: 100vh;
}

.book-hero {
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
}

.book-shell {
  width: min(100%, 760px);
  margin: 0 auto;
}

.book-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 196px;
  gap: 32px;
  align-items: start;
}

.form-panel {
  display: grid;
  gap: 32px;
}

.form-step {
  display: none;
  gap: 16px;
}

.form-step.is-active {
  display: grid;
}

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

.field,
.choice-card {
  position: relative;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.question-label {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.field label span,
.question-label span {
  opacity: 0.48;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.2;
  padding: 8px;
  text-transform: uppercase;
}

.field textarea {
  min-height: 82px;
  resize: vertical;
  text-transform: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.choice-card:focus-visible,
.form-action:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.question-grid {
  display: grid;
  gap: 16px;
}

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

.choice-card {
  min-height: 76px;
  border: 0;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  padding: 16px;
  text-align: left;
}

.choice-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
}

.choice-card span {
  display: block;
  color: rgba(27, 27, 27, 0.55);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
}

.choice-card.is-selected::after {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 5px;
  border-bottom: 1px solid var(--red);
  border-left: 1px solid var(--red);
  content: "";
  transform: rotate(-45deg);
}

.form-action {
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--red);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.2;
  text-transform: uppercase;
}

.form-action[disabled] {
  opacity: 0.34;
}

.form-note,
.form-error {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

.form-error {
  min-height: 18px;
  color: var(--red);
}

.portrait-card {
  overflow: hidden;
  border: 2px solid var(--white);
  border-radius: 2px;
  background: var(--white);
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.22);
  aspect-ratio: 196 / 274;
}

.book-page.is-red {
  background: var(--red);
  color: var(--white);
}

.book-page.is-red::before {
  z-index: 0;
}

.book-page.is-red .form-action {
  color: var(--white);
}

.book-page.is-red .field label,
.book-page.is-red .question-label,
.book-page.is-red .form-note,
.book-page.is-red .form-error {
  color: var(--white);
}

.book-page.is-red .field input,
.book-page.is-red .field textarea,
.book-page.is-red .field select,
.book-page.is-red .choice-card {
  color: var(--red);
}

@media (max-width: 900px) {
  .section {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero {
    min-height: auto;
    gap: 72px;
    padding-top: 150px;
    padding-bottom: 96px;
  }

  .display-title {
    font-size: 40px;
  }

  .hero__cta {
    width: 270px;
    font-size: 40px;
  }

  .display-title--large,
  .impact-number {
    font-size: 64px;
  }

  .services__panel {
    padding: 48px 0;
  }

  .site-footer {
    padding: 96px 48px;
  }

  .related-cases__grid {
    grid-template-columns: 1fr;
  }

  .book-form-wrap {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    width: min(100%, 240px);
    justify-self: end;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero {
    gap: 54px;
    padding-top: 118px;
  }

  .signature {
    width: 54px;
    height: auto;
    margin-bottom: 24px;
  }

  .display-title {
    font-size: 34px;
    line-height: 1;
  }

  .hero__cta {
    width: 228px;
    font-size: 34px;
    line-height: 1;
  }

  .floating-cta {
    right: 18px;
    bottom: 24px;
    width: 146px;
    font-size: 20px;
  }

  .display-title--large,
  .impact-number {
    font-size: 52px;
  }

  .logo-strip__items {
    justify-content: flex-start;
    gap: 34px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .intro-section {
    padding-top: 56px;
    padding-bottom: 112px;
  }

  .intro-copy,
  .case-card__copy,
  .services__intro {
    font-size: 21px;
  }

  .chevron-row {
    gap: 28px;
    margin-bottom: 112px;
  }

  .case-list {
    gap: 84px;
  }

  .case-card {
    gap: 28px;
  }

  .services {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .section-title,
  .footer-lockup {
    font-size: 32px;
  }

  .service-list li {
    gap: 20px;
    font-size: 24px;
  }

  .site-footer {
    padding: 80px 24px;
  }

  .footer-meta {
    gap: 36px;
  }

  .footer-lockup span {
    display: block;
    white-space: normal;
  }

  .case-hero {
    padding-top: 124px;
  }

  .detail-media-section {
    padding-bottom: 86px;
  }

  .impact-section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .project-stack {
    min-height: 210px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .stack-card {
    width: 225px;
    height: 166px;
    margin-right: -74px;
    flex: 0 0 auto;
  }

  .book-hero {
    align-items: start;
    padding-top: 118px;
  }

  .book-shell {
    width: 100%;
  }

  .field-grid,
  .choice-row {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    justify-self: start;
  }

  .form-action {
    justify-self: start;
  }
}
