/* =========================================================
   DOOF PORTAL
========================================================= */

.doof-page {
  margin: 0;

  background: #07121a;
  color: #f7eddb;

  overflow-x: hidden;
}

.doof-page .wrap {
  width:
    min(
      1360px,
      calc(100% - 48px)
    );

  margin-inline: auto;
}

/* =========================================================
   HEADER
========================================================= */

.doof-header {
  position: absolute;

  left: 0;
  right: 0;
  top: 0;

  z-index: 30;

  border-bottom:
    1px solid
    rgba(215, 179, 120, .16);

  background:
    linear-gradient(
      180deg,
      rgba(10, 16, 19, .86),
      rgba(10, 16, 19, .35),
      transparent
    );
}

.doof-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 105px;

  gap: 30px;
}

.doof-brand {
  display: block;

  width: 180px;
}

.doof-brand img {
  width: 100%;
  height: auto;

  display: block;
}

.doof-header nav {
  display: flex;
  align-items: center;

  gap:
    clamp(
      20px,
      3vw,
      42px
    );
}

.doof-header nav a {
  color: #e8d9bd;

  font:
    700 15px/1.4
    "Barlow Condensed",
    sans-serif;

  letter-spacing: .08em;

  transition:
    color .2s ease,
    text-shadow .2s ease;
}

.doof-header nav a:hover {
  color: #aeefff;

  text-shadow:
    0 0 12px
    rgba(84, 206, 255, .42);
}

/* =========================================================
   FULL VIEWPORT ENVIRONMENT
========================================================= */

.doof-hero {
  position: relative;
  isolation: isolate;

  min-height: 100vh;
  min-height: 100dvh;

  overflow: hidden;

  display: grid;
  place-items: center;

  background: #07121a;
}

.doof-environment {
  position: absolute;

  inset: 0;

  z-index: -5;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 53%;

  transform: scale(1.01);
}

.doof-environment-shade {
  position: absolute;

  inset: 0;

  z-index: -4;

  background:
    linear-gradient(
      180deg,
      rgba(7, 14, 18, .34) 0%,
      rgba(7, 14, 18, .03) 28%,
      rgba(7, 14, 18, .02) 57%,
      rgba(7, 14, 18, .58) 100%
    ),
    radial-gradient(
      ellipse at 50% 57%,
      rgba(5, 11, 16, .03) 0%,
      rgba(5, 11, 16, .16) 46%,
      rgba(5, 11, 16, .40) 100%
    );

  pointer-events: none;
}

/* =========================================================
   PORTAL REFLECTION ON STONE
========================================================= */

.portal-ground-glow {
  position: absolute;

  z-index: 1;

  left: 50%;
  top: 59%;

  width: min(700px, 66vw);
  height: min(400px, 43vw);

  transform:
    translate(-50%, -50%);

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse,
      rgba(194, 252, 255, .28) 0%,
      rgba(88, 219, 255, .20) 20%,
      rgba(37, 157, 255, .12) 43%,
      transparent 72%
    );

  filter: blur(20px);

  mix-blend-mode: screen;

  pointer-events: none;

  animation:
    ground-breathe
    3.4s
    ease-in-out
    infinite;
}

/* =========================================================
   FIRE CANVAS
========================================================= */

.portal-fire {
  position: absolute;

  inset: 0;

  z-index: 5;

  width: 100%;
  height: 100%;

  pointer-events: none;

  mix-blend-mode: screen;

  filter:
    saturate(1.28)
    contrast(1.06)
    drop-shadow(
      0 0 12px
      rgba(59, 194, 255, .36)
    );
}

/* =========================================================
   PORTAL CORE
========================================================= */

.portal-core {
  --portal-x: 0px;
  --portal-y: 0px;

  position: relative;

  z-index: 8;

  display: grid;
  place-items: center;

  width:
    min(
      720px,
      72vw
    );

  aspect-ratio:
    1.65;

  margin-top: 70px;

  text-decoration: none;

  transform:
    translate(
      var(--portal-x),
      var(--portal-y)
    );

  transition:
    transform .16s ease-out,
    filter .3s ease;
}

.portal-core:hover {
  filter:
    drop-shadow(
      0 0 28px
      rgba(87, 218, 255, .25)
    );
}

/* =========================================================
   HEART
========================================================= */

.portal-heart {
  position: absolute;

  z-index: -2;

  width: 68%;
  height: 72%;

  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -50%);

  border-radius:
    47% 53% 50% 50%
    /
    55% 45% 55% 45%;

  background:
    radial-gradient(
      ellipse,
      rgba(222, 255, 255, .30) 0%,
      rgba(123, 236, 255, .24) 18%,
      rgba(48, 175, 255, .18) 38%,
      rgba(16, 79, 146, .10) 58%,
      transparent 72%
    );

  filter: blur(9px);

  animation:
    portal-heartbeat
    2.8s
    ease-in-out
    infinite;
}

/* =========================================================
   ENERGY RINGS
========================================================= */

.portal-ring {
  position: absolute;

  z-index: -1;

  left: 50%;
  top: 50%;

  border-radius: 50%;

  pointer-events: none;
}

.portal-ring-one {
  width: 80%;
  height: 58%;

  border:
    1px solid
    rgba(133, 233, 255, .32);

  box-shadow:
    0 0 15px
    rgba(77, 198, 255, .12);

  animation:
    portal-ring-one
    16s linear infinite;
}

.portal-ring-two {
  width: 68%;
  height: 72%;

  border:
    1px dashed
    rgba(94, 209, 255, .20);

  animation:
    portal-ring-two
    19s linear infinite reverse;
}

.portal-ring-three {
  width: 89%;
  height: 42%;

  border:
    1px solid
    rgba(215, 179, 120, .15);

  animation:
    portal-ring-three
    23s linear infinite;
}

/* =========================================================
   PORTAL COPY
========================================================= */

.portal-copy {
  position: relative;

  z-index: 12;

  display: flex;
  flex-direction: column;
  align-items: center;

  width:
    min(
      610px,
      86%
    );

  text-align: center;
}

.portal-eyebrow {
  color: #eed9a7;

  font:
    700 11px/1.4
    "Barlow Condensed",
    sans-serif;

  letter-spacing: .22em;

  text-shadow:
    0 2px 5px #000;
}

.portal-copy strong {
  margin-top: 10px;

  color: #dffcff;

  font:
    800
    clamp(
      95px,
      13vw,
      185px
    )/.84
    "Barlow Condensed",
    sans-serif;

  letter-spacing: .11em;
  text-indent: .11em;

  text-shadow:
    0 0 8px #e5fdff,
    0 0 25px #79e7ff,
    0 0 55px
    rgba(55, 190, 255, .88),
    0 0 120px
    rgba(32, 103, 255, .42);

  animation:
    portal-title-pulse
    3.1s
    ease-in-out
    infinite;
}

.portal-message {
  margin-top: 9px;

  color: #e8edf0;

  font:
    400
    clamp(
      19px,
      2vw,
      27px
    )/1.45
    "Bree Serif",
    serif;

  text-shadow:
    0 2px 7px #000;
}

/* =========================================================
   MAIN DISCORD CTA
========================================================= */

.portal-cta {
  display: inline-flex;
  align-items: center;

  gap: 14px;

  margin-top: 25px;

  min-height: 52px;

  padding:
    12px 25px;

  border:
    1px solid
    rgba(128, 231, 255, .55);

  border-radius: 2px;

  background:
    linear-gradient(
      180deg,
      rgba(31, 100, 142, .85),
      rgba(16, 61, 93, .90)
    );

  color: #e2fbff;

  font:
    800 17px/1.2
    "Barlow Condensed",
    sans-serif;

  letter-spacing: .08em;

  box-shadow:
    inset 0 0 16px
    rgba(100, 224, 255, .08),
    0 0 24px
    rgba(45, 175, 255, .15);

  transition:
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.portal-core:hover
.portal-cta {
  transform:
    translateY(-3px);

  border-color:
    rgba(183, 247, 255, .90);

  background:
    linear-gradient(
      180deg,
      rgba(43, 135, 184, .95),
      rgba(18, 77, 112, .96)
    );

  box-shadow:
    inset 0 0 20px
    rgba(130, 238, 255, .12),

    0 0 30px
    rgba(60, 191, 255, .32);
}

.portal-cta b {
  font-size: 19px;
}

.portal-copy small {
  max-width: 430px;

  margin-top: 15px;

  color:
    rgba(
      218,
      236,
      241,
      .72
    );

  font:
    400 11px/1.55
    "Inter",
    sans-serif;

  text-shadow:
    0 1px 4px #000;
}

/* =========================================================
   MOTES
========================================================= */

.portal-motes {
  position: absolute;

  inset: 0;

  z-index: 7;

  pointer-events: none;
  overflow: hidden;
}

.portal-mote {
  position: absolute;

  left: var(--mote-x);
  top: var(--mote-y);

  width: var(--mote-size);
  height: var(--mote-size);

  border-radius: 50%;

  background: #cffaff;

  box-shadow:
    0 0 7px #8feaff,
    0 0 15px
    rgba(52, 178, 255, .66);

  opacity: 0;

  animation:
    mote-drift
    var(--mote-duration)
    var(--mote-delay)
    ease-in-out
    infinite;
}

/* =========================================================
   FOOTER OVERLAY
========================================================= */

.portal-footer {
  position: absolute;

  left: 24px;
  right: 24px;
  bottom: 20px;

  z-index: 12;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  color:
    rgba(
      238,
      221,
      185,
      .72
    );

  font:
    700 10px/1.4
    "Barlow Condensed",
    sans-serif;

  letter-spacing: .12em;
}

.portal-footer a:hover {
  color: #9eeaff;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes ground-breathe {

  0%,
  100% {
    opacity: .48;

    transform:
      translate(-50%, -50%)
      scale(.92);
  }

  50% {
    opacity: .94;

    transform:
      translate(-50%, -50%)
      scale(1.08);
  }

}

@keyframes portal-heartbeat {

  0%,
  38%,
  100% {
    opacity: .55;

    transform:
      translate(-50%, -50%)
      scale(.94);
  }

  46% {
    opacity: .95;

    transform:
      translate(-50%, -50%)
      scale(1.08);
  }

  57% {
    transform:
      translate(-50%, -50%)
      scale(.99);
  }

  66% {
    transform:
      translate(-50%, -50%)
      scale(1.04);
  }

}

@keyframes portal-title-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  48% {
    transform: scale(1.025);
  }

  58% {
    transform: scale(1);
  }

  67% {
    transform: scale(1.012);
  }

}

@keyframes portal-ring-one {

  from {
    transform:
      translate(-50%, -50%)
      rotate(-7deg);
  }

  to {
    transform:
      translate(-50%, -50%)
      rotate(353deg);
  }

}

@keyframes portal-ring-two {

  from {
    transform:
      translate(-50%, -50%)
      rotate(13deg);
  }

  to {
    transform:
      translate(-50%, -50%)
      rotate(373deg);
  }

}

@keyframes portal-ring-three {

  from {
    transform:
      translate(-50%, -50%)
      rotate(-18deg);
  }

  to {
    transform:
      translate(-50%, -50%)
      rotate(342deg);
  }

}

@keyframes mote-drift {

  0% {
    opacity: 0;

    transform:
      translateY(15px)
      scale(.4);
  }

  20% {
    opacity: .9;
  }

  65% {
    opacity: .65;
  }

  100% {
    opacity: 0;

    transform:
      translate(
        var(--mote-drift),
        -55px
      )
      scale(.3);
  }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .doof-header-inner {
    min-height: 78px;
  }

  .doof-brand {
    width: 125px;
  }

  .doof-header nav {
    gap: 14px;
  }

  .doof-header nav a {
    font-size: 11px;
  }

  .doof-header nav a:nth-child(1) {
    display: none;
  }

  .doof-hero {
    min-height: 100dvh;
  }

  .doof-environment {
    object-position:
      50% center;
  }

  .portal-core {
    width: 94vw;

    margin-top: 35px;

    aspect-ratio: 1.15;
  }

  .portal-ground-glow {
    width: 92vw;
    height: 55vw;
  }

  .portal-copy strong {
    font-size:
      clamp(
        86px,
        27vw,
        145px
      );
  }

  .portal-eyebrow {
    font-size: 8px;
    letter-spacing: .16em;
  }

  .portal-message {
    font-size: 18px;
  }

  .portal-cta {
    min-height: 48px;

    padding:
      11px 18px;

    font-size: 15px;
  }

  .portal-copy small {
    max-width: 300px;

    font-size: 10px;
  }

  .portal-footer {
    justify-content: center;

    text-align: center;
  }

  .portal-footer span {
    display: none;
  }

}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .portal-ground-glow,
  .portal-heart,
  .portal-ring,
  .portal-copy strong,
  .portal-mote {
    animation: none !important;
  }

  .portal-core {
    transform: none !important;
  }

}