/* =========================================================
   INTRO
========================================================= */

:root {
  --intro-bg: #ede7dc;
  --intro-navy: #141d31;
  --intro-green: #738464;
  --intro-sage: #d7e6cd;
  --intro-ink: #20283b;
  --intro-muted: #687083;

  --intro-ease-out: cubic-bezier(.19, 1, .22, 1);
  --intro-ease-inout: cubic-bezier(.76, 0, .24, 1);
}

.intro-4b {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 65% 45%, rgba(255, 255, 255, .55), transparent 34%),
    var(--intro-bg);
  color: var(--intro-ink);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.intro-4b.is-hidden,
.intro-4b.is-gone {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.intro-4b.is-finishing {
  animation: overlayOut .72s var(--intro-ease-inout) forwards;
}

/* =========================================================
   BACKGROUND / STAGE
========================================================= */

.intro-4b__grain {
  position: absolute;
  inset: 0;
  opacity: .23;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, .18), transparent 42%),
    repeating-radial-gradient(circle at 20% 30%, rgba(20, 29, 49, .04) 0 1px, transparent 1px 5px);
  mix-blend-mode: multiply;
}

.intro-4b__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(920px, 88vw);
  height: min(520px, 70vh);
}

/* =========================================================
   MESS LABELS
========================================================= */

.intro-4b__mess {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.intro-4b__mess span {
  position: absolute;
  padding: 12px 18px;
  border: 1px solid rgba(20, 29, 49, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 18px 55px rgba(20, 29, 49, .08);
  color: rgba(32, 40, 59, .68);
  font: 850 clamp(15px, 1.7vw, 21px)/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.035em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation:
    messIn .56s var(--intro-ease-out) forwards,
    messOut .72s var(--intro-ease-inout) forwards 3.35s;
}

.intro-4b__mess span:nth-child(1) {
  animation-delay: .00s, 3.35s;
}

.intro-4b__mess span:nth-child(2) {
  animation-delay: .45s, 3.43s;
}

.intro-4b__mess span:nth-child(3) {
  animation-delay: .90s, 3.51s;
}

.intro-4b__mess span:nth-child(4) {
  animation-delay: 1.35s, 3.59s;
}

.intro-4b__mess span:nth-child(5) {
  animation-delay: 1.80s, 3.67s;
}

/* =========================================================
   MARK / LOGO
========================================================= */

.intro-4b__mark {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  animation:
    markIn .72s var(--intro-ease-out) forwards 3.95s,
    markOut .5s var(--intro-ease-inout) forwards 4.65s;
}

.intro-4b__logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: #0e0f12;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.08em;
}

.intro-4b__brand {
  color: var(--intro-muted);
  font: 800 14px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .42em;
}

/* =========================================================
   CARD
========================================================= */

.intro-4b__card {
  position: absolute;
  width: min(660px, 84vw);
  padding: clamp(30px, 4.8vw, 50px);
  border-radius: 34px;
  background: var(--intro-navy);
  color: #fff;
  box-shadow: 0 34px 90px rgba(20, 29, 49, .25);
  opacity: 0;
  transform: translateY(28px) rotate(0deg) scale(.96);
  animation:
    cardIn .86s var(--intro-ease-out) forwards 4.85s,
    introLeave .72s var(--intro-ease-inout) forwards 7.35s;
}

.intro-4b__eyebrow {
  margin: 0 0 24px;
  color: var(--intro-green);
  font: 900 14px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .14em;
}

.intro-4b__card h2 {
  max-width: 560px;
  margin: 0;
  font: 900 clamp(44px, 6.4vw, 72px)/.98 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.07em;
}

.intro-4b__card h2 span,
.intro-4b__card h2 strong {
  display: block;
}

.intro-4b__card h2 span {
  color: var(--intro-sage);
}

.intro-4b__card h2 strong {
  color: #fff;
  font-weight: 900;
}

.intro-4b__line {
  width: 100%;
  height: 1px;
  margin: 34px 0 24px;
  background: rgba(255, 255, 255, .16);
  transform: scaleX(0);
  transform-origin: left;
  animation: lineIn .55s var(--intro-ease-out) forwards 5.55s;
}

/* =========================================================
   PILLARS
========================================================= */

.intro-4b__pillars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
}

.intro-4b__pillars span {
  flex: 1;
  color: #fff;
  font: 850 clamp(18px, 2.1vw, 25px)/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.045em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(12px);
  animation: pillarIn .48s var(--intro-ease-out) forwards 5.75s;
}

.intro-4b__pillars span:nth-child(1) {
  text-align: left;
}

.intro-4b__pillars span:nth-child(2) {
  text-align: center;
  animation-delay: 5.92s;
}

.intro-4b__pillars span:nth-child(3) {
  text-align: right;
  animation-delay: 6.09s;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes messIn {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translate(calc(var(--x) * .75), calc(var(--y) * .75 + 16px)) rotate(var(--r)) scale(.96);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1);
  }
}

@keyframes messOut {
  to {
    opacity: 0;
    filter: blur(10px);
    transform: translate(0, 0) rotate(0deg) scale(.78);
  }
}

@keyframes markIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes markOut {
  to {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(-14px) scale(.98);
  }
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes lineIn {
  to {
    transform: scaleX(1);
  }
}

@keyframes pillarIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introLeave {
  to {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(-20px) rotate(0deg) scale(.985);
  }
}

@keyframes overlayOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 720px) {
  .intro-4b {
    padding: 18px;
  }

  .intro-4b__stage {
    width: 100%;
    height: 100dvh;
    min-height: 520px;
  }

  .intro-4b__mess span {
    padding: 10px 14px;
    font-size: 16px;
  }

  .intro-4b__mess span:nth-child(1) {
    --x: -92px !important;
    --y: -112px !important;
    --r: -7deg !important;
  }

  .intro-4b__mess span:nth-child(2) {
    --x: 74px !important;
    --y: -96px !important;
    --r: 5deg !important;
  }

  .intro-4b__mess span:nth-child(3) {
    --x: -70px !important;
    --y: -32px !important;
    --r: 4deg !important;
  }

  .intro-4b__mess span:nth-child(4) {
    --x: 72px !important;
    --y: 42px !important;
    --r: -5deg !important;
  }

  .intro-4b__mess span:nth-child(5) {
    --x: -42px !important;
    --y: 112px !important;
    --r: 7deg !important;
  }

  .intro-4b__mark {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .intro-4b__logo {
    width: 54px;
    height: 54px;
    font-size: 32px;
  }

  .intro-4b__brand {
    padding-left: .32em;
    font-size: 11px;
    letter-spacing: .32em;
  }

  .intro-4b__card {
    width: min(100%, 350px);
    padding: 30px 24px;
    border-radius: 26px;
    transform: translateY(24px) rotate(0deg) scale(.96);
  }

  .intro-4b__eyebrow {
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: .12em;
  }

  .intro-4b__card h2 {
    max-width: 100%;
    font-size: clamp(37px, 11vw, 50px);
    line-height: .98;
    letter-spacing: -.065em;
  }

  .intro-4b__line {
    margin: 26px 0 18px;
  }

  .intro-4b__pillars {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .intro-4b__pillars span {
    flex: none;
    width: 100%;
    text-align: left !important;
    font-size: 19px;
  }
}

@media (max-width: 390px) {
  .intro-4b__mess span {
    padding: 9px 12px;
    font-size: 15px;
  }

  .intro-4b__mess span:nth-child(1) {
    --x: -82px !important;
    --y: -108px !important;
  }

  .intro-4b__mess span:nth-child(2) {
    --x: 66px !important;
    --y: -92px !important;
  }

  .intro-4b__mess span:nth-child(3) {
    --x: -64px !important;
    --y: -30px !important;
  }

  .intro-4b__mess span:nth-child(4) {
    --x: 64px !important;
    --y: 40px !important;
  }

  .intro-4b__mess span:nth-child(5) {
    --x: -38px !important;
    --y: 104px !important;
  }

  .intro-4b__card {
    width: min(100%, 330px);
    padding: 28px 22px;
  }

  .intro-4b__card h2 {
    font-size: 40px;
  }
}