/* The opening and navigation share the same edge as the editorial sections. */
.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  background: var(--paper);
  color: var(--ink);
  padding: 12px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.mast {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(20px, 5vw, 84px);
  min-height: clamp(70px, 10svh, 100px);
  color: #f6f3ed;
}
.wordmark {
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.13em;
  text-decoration: none;
}
.wordmark span {
  margin-left: 0.06em;
}
.main-nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 36px);
  margin-left: auto;
  margin-right: calc(var(--resume-width) + clamp(8px, 2.3vw, 36px));
}
.main-nav a {
  text-decoration: none;
  padding-block: 12px;
  font: 400 0.85rem/1.4 var(--font);
}
.main-nav a:hover,
.colophon a:hover {
  text-decoration: underline;
}
.hero {
  isolation: isolate;
  position: relative;
  color: #f4f2ee;
  background: #08090a;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("hero.webp") center center / cover no-repeat;
}
.hero-inner {
  min-height: max(700px, 100svh);
  padding-top: clamp(118px, 18svh, 195px);
  padding-bottom: clamp(32px, 6svh, 68px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  gap: clamp(32px, 6svh, 65px);
}
.hero h1 {
  margin-left: -0.054em;
  font-size: clamp(5.6rem, min(11vw, 15svh), 12.8rem);
  font-weight: 500;
  line-height: 0.89;
  letter-spacing: -0.095em;
}
.headline {
  font-size: clamp(1.2rem, 1.95vw, 2.15rem);
  font-weight: 450;
  letter-spacing: -0.05em;
  margin-top: clamp(27px, 4svh, 48px);
}
.locale {
  color: #b6b5b2;
  font: 400 clamp(0.7rem, 0.84vw, 0.92rem) / 1.65 var(--mono);
  margin-top: 0.65rem;
}
.locale span {
  margin-inline: 0.12em;
}
.locale b {
  font-weight: inherit;
  white-space: nowrap;
}
.attributes {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin-top: clamp(22px, 3.8svh, 38px);
}
.attributes li {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  font-size: clamp(0.94rem, 1.09vw, 1.2rem);
  line-height: 1.45;
  color: #deddd9;
}
.attributes li::before {
  content: "";
  flex: none;
  width: 4px;
  height: 4px;
  align-self: start;
  margin-top: 0.62em;
  border-radius: 50%;
  background: #c3c1ba;
}
.hero-link {
  display: inline-flex;
  gap: 0.9em;
  align-items: center;
  text-decoration: none;
  font-size: 0.93rem;
}
.down-arrow {
  display: grid;
  place-items: center;
  width: 2.7em;
  height: 2.7em;
  border: 1px solid #70716e;
  border-radius: 50%;
}
.hero-link:hover .down-arrow {
  background: #f1eee4;
  color: #171815;
}
.experience {
  --studio-photo: url("studio.webp");
  --nubank-entrance: url("entrance-scene.webp");
  --nubank-exterior: url("headquarters-scene.webp");
  position: relative;
  background: #571313;
  color: #fff7f1;
}
@media screen {
  .defer-backdrops .experience:not(.studio) {
    --studio-photo: none;
  }
  .defer-backdrops .experience:not(.entrance) {
    --nubank-entrance: none;
  }
  .defer-backdrops .experience:not(.exterior) {
    --nubank-exterior: none;
  }
}
.beat {
  position: relative;
  isolation: isolate;
  padding: clamp(45px, 8vw, 120px) var(--gutter);
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 4vw;
}
.beat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.red-case::before {
  background:
    linear-gradient(90deg, #220908de, #3a090868),
    var(--studio-photo) center / cover;
}
.nu-case::before {
  background:
    linear-gradient(90deg, #180723ec, #4a136ca9 58%, #67178c83),
    var(--nubank-entrance) center / cover,
    #9741c7;
  background-blend-mode: normal, luminosity;
}
.one-app::before {
  background-image:
    linear-gradient(90deg, #180723ec, #4a136ca9 58%, #67178c83), var(--nubank-exterior);
}
.case-text {
  max-width: 560px;
}
.case-text .eyebrow {
  color: #f5e5df;
}
.case-text h2 {
  font-size: clamp(4.5rem, 9.5vw, 10rem);
  font-weight: 500;
  letter-spacing: -0.092em;
  line-height: 0.97;
  margin: 0.14em 0 0.23em -0.05em;
}
.case-text h3 {
  font-size: clamp(1.3rem, 2.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.06em;
  margin-bottom: 0.38em;
}
.impact {
  max-width: 23ch;
  font-size: clamp(1.45rem, 2.25vw, 2.6rem);
  font-weight: 450;
  line-height: 1.28;
  letter-spacing: -0.048em;
}
.case-description {
  max-width: 37ch;
  font-size: clamp(1.05rem, 1.42vw, 1.55rem);
  line-height: 1.52;
  letter-spacing: -0.023em;
}
.case-metric {
  margin-top: clamp(18px, 3svh, 35px);
}
.case-source {
  margin-top: 2.5rem;
  max-width: 440px;
}
.source-label {
  font: 400 0.74rem/1.5 var(--mono);
  color: #f1d5da;
  margin-bottom: 0.28rem;
}
.case-source a {
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 500;
}
.case-source a span {
  white-space: nowrap;
}
.still {
  width: 100%;
}
.story-stage {
  display: none;
}
.experience.is-live .story-stage {
  display: block;
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.is-live .experience-steps {
  position: relative;
  margin-top: -100svh;
  pointer-events: none;
}
.is-live .beat {
  display: block;
  visibility: hidden;
  padding: 0;
  min-height: 0;
}
.is-live .beat::before,
.is-live .still {
  display: none;
}
.is-live #playlist {
  height: 80svh;
}
.is-live #checkout {
  height: 185svh;
}
.is-live #nubank {
  height: 125svh;
}
.is-live #one-app {
  height: 145svh;
}
.ld-photo,
.ld-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ld-red {
  background:
    linear-gradient(100deg, #3a020542, #97091720 78%, #7804142e),
    var(--studio-photo) center / cover;
}
.ld-purple {
  overflow: hidden;
  background-color: #281234;
  opacity: 0;
}
.ld-entrance,
.ld-hq,
.ld-purple::after {
  position: absolute;
  inset: 0;
}
.ld-entrance {
  background: var(--nubank-entrance) calc(50% + 9vw) center / cover no-repeat;
}
.ld-hq {
  background: var(--nubank-exterior) 56% 53% / cover no-repeat;
  opacity: 0;
}
.ld-entrance,
.ld-hq {
  background-color: #9657c4;
  background-blend-mode: luminosity;
}
.ld-purple::after {
  content: "";
  background:
    linear-gradient(90deg, #190824 0%, #250838f5 22%, #380e53b3 44%, #5b1a844a 68%, #6e269e3b),
    linear-gradient(0deg, #2a083f87, #71279d29 40%, #8233b433);
}
.ld-scrim {
  background:
    linear-gradient(90deg, #080609a6, #0c060842 44%, transparent 72%),
    linear-gradient(0deg, #0a050ca6, transparent 26%),
    linear-gradient(180deg, #0c070a55, transparent 18%);
}
.art-plane {
  position: absolute;
  z-index: 1;
  left: 72%;
  top: 44%;
  pointer-events: none;
}
.case-captions {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}
.case-captions .case-copy {
  position: absolute;
  inset: 0;
}
.case-captions .case-text,
.case-captions .case-source {
  position: absolute;
  left: max(var(--gutter), calc((100vw - 1680px) / 2 + var(--gutter)));
}
.case-captions .case-text {
  top: clamp(65px, 16svh, 210px);
  width: 44%;
}
.case-captions .case-source {
  bottom: clamp(101px, 15svh, 160px);
  width: 41%;
  margin: 0;
}
.case-captions a {
  pointer-events: auto;
}
.case-copy[inert] {
  visibility: hidden;
}
.case-jumps {
  position: absolute;
  z-index: 3;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: var(--gutter);
  right: var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1.2vw, 20px);
}
.case-jumps a {
  position: relative;
  display: block;
  padding: 10px 0 6px;
  min-height: 40px;
  border-top: 1px solid #ffffff66;
  color: #f0e1dc;
  text-decoration: none;
  font: 400 0.75rem/1.55 var(--mono);
}
.case-jumps a[aria-current]::before {
  content: "";
  position: absolute;
  inset: -2px 0 auto;
  border-top: 3px solid #fff3e7;
}
.case-jumps a[aria-current],
.case-jumps a:hover {
  color: white;
}
.projects {
  background: var(--paper);
}
.projects,
.contact {
  padding-block: clamp(65px, 9vw, 156px);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: clamp(34px, 5vw, 76px);
}
.period {
  color: #ac402d;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 5vw;
  border-top: 1px solid var(--rule);
  padding-block: clamp(24px, 3.5vw, 58px);
}
.feature-copy h3 {
  margin: 0.1em 0 0.26em -0.045em;
  font-size: clamp(3.6rem, 6.7vw, 7.1rem);
  letter-spacing: -0.085em;
  font-weight: 500;
  line-height: 0.96;
}
.feature-copy > p:not(.eyebrow) {
  max-width: 34ch;
  font-size: clamp(1rem, 1.27vw, 1.3rem);
  line-height: 1.55;
  letter-spacing: -0.024em;
}
.feature-copy .text-link {
  margin-top: 1.2rem;
}
.workspace-shot {
  display: block;
  background: #c9cec0;
  padding: clamp(16px, 2.8vw, 53px);
  border: 1px solid #b3bbab;
}
.workspace-shot img {
  width: 100%;
  box-shadow: 0 9px 24px #343b322a;
}
.contact {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  background: #101111;
  color: #f2f0e9;
  padding-bottom: clamp(24px, 3vw, 48px);
}
.contact > .shell {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact .eyebrow {
  color: #c2c1b7;
}
.contact .section-title {
  margin: 0.25em 0 0.55em;
}
.contact .period {
  color: #db927e;
}
.email {
  font-size: clamp(1.04rem, 2.8vw, 3rem);
  line-height: 1.5;
  letter-spacing: -0.058em;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}
.email span {
  display: inline-block;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
  margin-top: clamp(14px, 2.6vw, 40px);
  margin-bottom: clamp(64px, 8vw, 140px);
}
.colophon {
  align-self: stretch;
  margin-top: auto;
  padding-top: 1.3rem;
  border-top: 1px solid #5b5d57;
  display: flex;
  justify-content: space-between;
  font: 400 0.75rem/1.6 var(--mono);
  color: #c8c8bf;
}
.colophon a {
  text-decoration: none;
}
@media (max-width: 780px) {
  .hero-inner {
    min-height: max(640px, 100svh);
    padding-top: clamp(105px, 15svh, 175px);
  }
  .hero::before {
    background-size: auto 78%;
    background-position: 68% bottom;
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #08090a 4%, #08090af7 34%, #08090a61 62%, transparent 80%);
  }
  .hero h1 {
    font-size: clamp(4.2rem, 14.2vw, 7.2rem);
  }
  .headline {
    max-width: 23ch;
  }
  .attributes {
    max-width: 35ch;
  }
  .beat {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: max(40px, calc(var(--resume-top) + var(--resume-height) + 10px)) 24px;
    gap: 10px;
  }
  .still {
    max-width: 440px;
    margin-inline: auto;
  }
  .case-text h2 {
    font-size: clamp(3.55rem, min(13vw, 9svh), 5.6rem);
    margin-bottom: 0.15em;
  }
  .case-text h3 {
    font-size: clamp(1.25rem, 4.5vw, 1.75rem);
    margin-bottom: 0.28em;
  }
  .impact {
    max-width: 31ch;
    font-size: clamp(1.16rem, min(4.6vw, 3svh), 1.65rem);
    line-height: 1.35;
  }
  .case-description {
    font-size: clamp(0.96rem, min(3.8vw, 2.4svh), 1.25rem);
    line-height: 1.46;
  }
  .case-source {
    margin-top: 1.4rem;
  }
  .case-metric {
    margin-top: 0.8rem;
  }
  .case-metric strong {
    font-size: clamp(1.95rem, 7vw, 3.1rem);
  }
  .case-metric span {
    font-size: 0.66rem;
  }
  .art-plane {
    left: 51%;
    top: 58%;
  }
  .case-captions .case-text {
    top: max(clamp(28px, 6.2svh, 64px), calc(var(--resume-top) + var(--resume-height) + 10px));
    width: auto;
    right: var(--gutter);
  }
  .case-captions .case-source {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    bottom: max(84px, calc(76px + env(safe-area-inset-bottom)));
  }
  .case-source a {
    font-size: 0.85rem;
  }
  .source-label {
    font-size: 0.67rem;
  }
  .case-jumps {
    bottom: max(13px, env(safe-area-inset-bottom));
  }
  .case-jumps a {
    font-size: clamp(0.57rem, 2.45vw, 0.72rem);
  }
  .ld-red {
    background-position: 62% center;
  }
  .ld-entrance {
    background-position: 25% center;
  }
  .ld-hq {
    background-position: 55% center;
  }
  .ld-purple::after {
    background: linear-gradient(180deg, #340a4dbc, #440f608a 33%, #6f249954 61%, #390d528c);
  }
  .ld-scrim {
    background: linear-gradient(
      180deg,
      #0c030bd6 0%,
      #12040faa 27%,
      #0f020e12 54%,
      #13041012 75%,
      #0d0316c4
    );
  }
  .feature {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .feature-copy > p:not(.eyebrow) {
    max-width: 51ch;
  }
  .feature-copy .text-link {
    margin-top: 0.5rem;
  }
}
@media (max-width: 550px) {
  .mast {
    gap: 13px;
    min-height: 63px;
  }
  .wordmark {
    font-size: 1.52rem;
  }
  .main-nav {
    gap: 3px;
  }
  .main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    min-width: 28px;
    min-height: 44px;
  }
  .main-nav a {
    padding-inline: 3px;
  }
  .hero-inner {
    padding-bottom: max(30px, env(safe-area-inset-bottom));
  }
  .headline {
    max-width: 21ch;
    font-size: 1.24rem;
  }
  .attributes {
    max-width: 30ch;
  }
  .section-head {
    display: grid;
    justify-content: start;
    gap: 14px;
  }
  .hero h1 {
    font-size: clamp(4rem, 15.9vw, 5.4rem);
  }
}
@media (max-width: 365px) {
  .mast {
    gap: 6px;
    padding-inline: 14px;
  }
  .main-nav {
    gap: 1px;
  }
  .main-nav a {
    padding-inline: 0;
    font-size: 0.72rem;
  }
  .hero h1 {
    font-size: 15.9vw;
  }
}
@media (max-width: 780px) and (max-height: 650px) {
  .case-captions .eyebrow {
    font-size: 0.65rem;
  }
  .case-captions h2 {
    font-size: 2.95rem;
  }
  .case-captions h3 {
    font-size: 1.1rem;
  }
  .case-captions .impact {
    font-size: 1.06rem;
  }
  .case-captions .case-description {
    font-size: 0.9rem;
  }
  .case-captions .case-metric {
    margin-top: 0.5rem;
  }
  .case-captions .case-metric strong {
    font-size: 1.65rem;
  }
  .case-captions .case-source {
    bottom: max(62px, calc(52px + env(safe-area-inset-bottom)));
  }
  .case-jumps {
    bottom: max(5px, env(safe-area-inset-bottom));
  }
}
