/* ==========================================================================
   SIGNATURESI — LATEST PERSONALITIES
   ========================================================================== */

:root {
  color-scheme: light;

  --blue: #43a8f5;
  --blue-deep: #2496ec;

  --background: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f7f9;

  --text-primary: #171719;
  --text-secondary: rgba(60, 60, 67, 0.68);
  --text-tertiary: rgba(60, 60, 67, 0.48);

  --border: rgba(60, 60, 67, 0.14);
  --border-strong: rgba(60, 60, 67, 0.22);

  --content-width: 1120px;
  --navbar-height: 66px;

  --transition:
    210ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-feature:
    0 24px 60px rgba(20, 34, 48, 0.15),
    0 3px 10px rgba(20, 34, 48, 0.08);
}

/* RESET */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    sans-serif;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

html {
  width: 100%;
  min-width: 320px;

  scroll-behavior: smooth;

  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;

  overflow-x: hidden;

  color: var(--text-primary);
  background: var(--background);

  overscroll-behavior-x: none;
}

::selection {
  color: #08233a;
  background: rgba(255, 255, 255, 0.5);
}

::-moz-selection {
  color: #08233a;
  background: rgba(255, 255, 255, 0.5);
}

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

  touch-action: manipulation;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color:
    transparent;
}

img,
svg {
  flex-shrink: 0;
}

a:focus-visible,
button:focus-visible {
  outline:
    2px solid rgba(0, 92, 184, 0.85);

  outline-offset: 3px;
}

/* NAVBAR */

.latest-navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;

  z-index: 1000;

  height:
    calc(
      var(--navbar-height) +
      env(safe-area-inset-top)
    );

  padding-top:
    env(safe-area-inset-top);

  background:
    rgba(255, 255, 255, 0.86);

  border-bottom:
    1px solid var(--border);

  backdrop-filter:
    saturate(150%) blur(13px);

  -webkit-backdrop-filter:
    saturate(150%) blur(13px);
}

.latest-nav-inner {
  width:
    min(var(--content-width), 100%);

  height: var(--navbar-height);

  margin: 0 auto;

  padding:
    0
    max(24px, env(safe-area-inset-right))
    0
    max(24px, env(safe-area-inset-left));

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.latest-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.latest-brand-icon {
  width: 32px;
  height: 32px;

  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #111113;

  border-radius: 10px;

  box-shadow:
    0 7px 18px
    rgba(0, 0, 0, 0.11);
}

.latest-brand-icon img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  user-select: none;
  -webkit-user-drag: none;
}

.back-link {
  min-height: 39px;

  padding: 0 13px;

  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: var(--text-secondary);

  border-radius: 11px;

  font-size: 12px;
  font-weight: 600;

  transition:
    color var(--transition),
    background-color var(--transition);
}

.back-link:hover {
  color: var(--text-primary);
  background: var(--surface-soft);
}

.back-link svg {
  width: 15px;
  height: 15px;
}

/* HERO */

.latest-hero {
  min-height: 490px;

  padding:
    calc(
      var(--navbar-height) +
      max(
        75px,
        env(safe-area-inset-top)
      )
    )
    24px
    130px;

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      180deg,
      #43a8f5,
      #45aaf7
    );

  text-align: center;
}

.latest-hero-copy {
  width: min(730px, 100%);

  position: relative;
  z-index: 5;
}

.latest-eyebrow {
  display: inline-block;

  margin-bottom: 18px;

  color:
    rgba(255, 255, 255, 0.74);

  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.latest-hero h1 {
  color: #ffffff;

  font-size:
    clamp(52px, 8vw, 88px);

  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.latest-hero h1 span {
  display: block;

  margin-top: 11px;

  color:
    rgba(255, 255, 255, 0.82);

  font-size: 0.56em;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.latest-hero p {
  max-width: 530px;

  margin: 24px auto 0;

  color:
    rgba(255, 255, 255, 0.8);

  font-size: 15px;
  line-height: 1.62;
}

/* ANIMATED BACKGROUND */

.latest-background-sphere {
  position: absolute;

  overflow: hidden;

  border-radius: 50%;

  pointer-events: none;

  will-change: transform;
}

.latest-background-sphere::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.72) 1px,
      transparent 1.7px
    );

  background-size: 13px 13px;

  mask-image:
    radial-gradient(
      circle,
      #000 0%,
      transparent 74%
    );

  -webkit-mask-image:
    radial-gradient(
      circle,
      #000 0%,
      transparent 74%
    );
}

.latest-sphere-one {
  width: 410px;
  height: 410px;

  top: 40px;
  left: calc(50% - 620px);

  opacity: 0.3;

  animation:
    latestSphereOne 17s
    ease-in-out infinite;
}

.latest-sphere-two {
  width: 320px;
  height: 320px;

  right: calc(50% - 570px);
  bottom: -30px;

  opacity: 0.22;

  animation:
    latestSphereTwo 19s
    ease-in-out infinite;
}

.latest-dots {
  position: absolute;
  inset: 0;

  opacity: 0.14;

  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.8) 1px,
      transparent 1.5px
    );

  background-size: 135px 105px;

  animation:
    latestDots 24s
    linear infinite;

  pointer-events: none;
}

@keyframes latestSphereOne {
  0%,
  100% {
    transform:
      translate3d(0, 0, 0)
      rotate(0deg);
  }

  50% {
    transform:
      translate3d(35px, 17px, 0)
      rotate(9deg);
  }
}

@keyframes latestSphereTwo {
  0%,
  100% {
    transform:
      translate3d(0, 0, 0)
      rotate(0deg);
  }

  50% {
    transform:
      translate3d(-29px, -16px, 0)
      rotate(-8deg);
  }
}

@keyframes latestDots {
  from {
    background-position: 0 0;
  }

  to {
    background-position:
      135px 105px;
  }
}

/* FEATURED PERSONALITY */

.featured-personality {
  width: min(620px, 100%);

  margin: -105px auto 0;

  padding: 0 24px;

  position: relative;
  z-index: 10;

  display: grid;
  grid-template-columns:
    52px minmax(0, 1fr) 52px;

  align-items: center;
  gap: 24px;
}

.featured-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.featured-image-outer {
  width: 238px;
  height: 238px;

  padding: 10px;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.74);

  box-shadow:
    var(--shadow-feature);
}

.featured-image-inner {
  width: 100%;
  height: 100%;

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f1f2f4
    );

  border:
    1px solid var(--border);

  border-radius: 50%;
}

.featured-image-inner img {
  width: 100%;
  height: 100%;

  position: relative;
  z-index: 2;

  object-fit: contain;

  border-radius: 50%;

  user-select: none;
  -webkit-user-drag: none;
}

.featured-fallback {
  display: none;

  position: absolute;

  color: var(--text-tertiary);

  font-size: 13px;
  font-weight: 650;
}

.featured-image-inner.missing-image
.featured-fallback {
  display: inline-flex;
}

.featured-name {
  min-width: 80px;
  min-height: 40px;

  margin-top: -14px;

  padding: 0 15px;

  position: relative;
  z-index: 3;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  background: #77777b;

  border:
    4px solid #ffffff;

  border-radius: 14px;

  box-shadow:
    0 7px 18px
    rgba(0, 0, 0, 0.12);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 14px;
  font-style: italic;
}

.personality-control {
  width: 49px;
  height: 49px;

  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--text-primary);
  background:
    rgba(255, 255, 255, 0.94);

  border:
    1px solid var(--border);

  border-radius: 50%;

  box-shadow:
    0 10px 28px
    rgba(0, 0, 0, 0.08);

  cursor: pointer;

  transition:
    transform var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.personality-control:hover {
  transform: translateY(-2px);

  background: #ffffff;

  border-color:
    var(--border-strong);
}

.personality-control:active {
  transform: scale(0.96);
}

.personality-control svg {
  width: 21px;
  height: 21px;
}

/* PERSONALITIES */

.personalities-section {
  padding:
    72px
    max(24px, env(safe-area-inset-right))
    max(
      115px,
      env(safe-area-inset-bottom)
    )
    max(24px, env(safe-area-inset-left));
}

.personalities-inner {
  width:
    min(var(--content-width), 100%);

  margin: 0 auto;
}

.personalities-heading {
  max-width: 700px;
}

.section-label {
  color: var(--blue-deep);

  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.personalities-heading h2 {
  margin-top: 8px;

  font-size:
    clamp(38px, 5vw, 62px);

  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.056em;
}

.personalities-heading p {
  max-width: 620px;

  margin-top: 18px;

  color: var(--text-secondary);

  font-size: 15px;
  line-height: 1.65;
}

.personalities-grid {
  margin-top: 52px;

  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;
}

.personality-tile {
  min-height: 375px;

  padding: 12px;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  background: var(--surface);

  border:
    1px solid var(--border);

  border-radius: 25px;

  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.personality-tile:hover {
  transform: translateY(-3px);

  border-color:
    var(--border-strong);

  box-shadow:
    0 17px 38px
    rgba(0, 0, 0, 0.05);
}

.tile-image,
.tile-placeholder {
  min-height: 225px;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      145deg,
      #edf5ff,
      #d9edff
    );

  border-radius: 18px;
}

.tile-image img {
  width: 82%;
  height: 82%;

  object-fit: contain;

  user-select: none;
  -webkit-user-drag: none;
}

.tile-placeholder {
  background:
    linear-gradient(
      145deg,
      #f1f1f3,
      #e4e5e8
    );
}

.purple-placeholder {
  background:
    linear-gradient(
      145deg,
      #f6eeff,
      #e9ddf8
    );
}

.tile-placeholder span {
  width: 84px;
  height: 84px;

  border:
    2px dashed
    rgba(60, 60, 67, 0.24);

  border-radius: 50%;
}

.tile-copy {
  padding: 20px 11px 10px;
}

.tile-copy > span {
  color: var(--text-tertiary);

  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tile-copy h3 {
  margin-top: 8px;

  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.tile-copy p {
  margin-top: 9px;

  color: var(--text-secondary);

  font-size: 12.5px;
  line-height: 1.58;
}

/* FOOTER */

.latest-footer {
  padding:
    25px
    max(24px, env(safe-area-inset-right))
    max(
      28px,
      env(safe-area-inset-bottom)
    )
    max(24px, env(safe-area-inset-left));

  border-top:
    1px solid var(--border);
}

.latest-footer-inner {
  width:
    min(var(--content-width), 100%);

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.latest-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  font-size: 13px;
  font-weight: 700;
}

.latest-footer-brand img {
  width: 28px;
  height: 28px;

  object-fit: contain;

  border-radius: 9px;

  user-select: none;
  -webkit-user-drag: none;
}

.latest-footer p {
  color: var(--text-tertiary);

  font-size: 10.5px;
}

/* TABLET */

@media (max-width: 820px) {
  .latest-hero {
    min-height: 440px;

    padding-bottom: 120px;
  }

  .featured-personality {
    grid-template-columns:
      44px minmax(0, 1fr) 44px;

    gap: 14px;
  }

  .featured-image-outer {
    width: 210px;
    height: 210px;
  }

  .personality-control {
    width: 42px;
    height: 42px;
  }

  .personalities-grid {
    grid-template-columns: 1fr;
  }

  .personality-tile {
    min-height: auto;
  }
}

/* MOBILE */

@media (max-width: 540px) {
  :root {
    --navbar-height: 60px;
  }

  .latest-navbar {
    backdrop-filter:
      saturate(140%) blur(9px);

    -webkit-backdrop-filter:
      saturate(140%) blur(9px);
  }

  .latest-nav-inner {
    padding-right: 15px;
    padding-left: 15px;
  }

  .latest-brand {
    font-size: 14px;
  }

  .latest-brand-icon {
    width: 29px;
    height: 29px;

    border-radius: 9px;
  }

  .back-link {
    min-height: 35px;

    padding: 0 9px;

    font-size: 11px;
  }

  .latest-hero {
    min-height: 390px;

    padding:
      calc(
        var(--navbar-height) +
        max(
          55px,
          env(safe-area-inset-top)
        )
      )
      17px
      105px;
  }

  .latest-hero h1 {
    font-size: 48px;
  }

  .latest-hero p {
    font-size: 13px;
  }

  .latest-sphere-one {
    width: 240px;
    height: 240px;

    top: 105px;
    left: -135px;

    opacity: 0.18;
  }

  .latest-sphere-two {
    width: 210px;
    height: 210px;

    right: -120px;
    bottom: 20px;

    opacity: 0.16;
  }

  .latest-dots {
    opacity: 0.08;
  }

  .featured-personality {
    margin-top: -86px;

    padding: 0 12px;

    grid-template-columns:
      37px minmax(0, 1fr) 37px;

    gap: 8px;
  }

  .featured-image-outer {
    width: 178px;
    height: 178px;

    padding: 8px;
  }

  .featured-name {
    min-width: 70px;
    min-height: 36px;
  }

  .personality-control {
    width: 37px;
    height: 37px;

    box-shadow:
      0 7px 19px
      rgba(0, 0, 0, 0.07);
  }

  .personality-control svg {
    width: 18px;
    height: 18px;
  }

  .personalities-section {
    padding:
      62px
      16px
      max(
        90px,
        env(safe-area-inset-bottom)
      );
  }

  .personalities-heading h2 {
    font-size: 40px;
  }

  .personalities-heading p {
    font-size: 13.5px;
  }

  .personalities-grid {
    margin-top: 37px;
  }

  .tile-image,
  .tile-placeholder {
    min-height: 205px;
  }

  .latest-footer {
    padding:
      24px
      16px
      max(
        27px,
        env(safe-area-inset-bottom)
      );
  }
}

/* TOUCH */

@media (hover: none),
(pointer: coarse) {
  .personality-control:hover,
  .personality-tile:hover {
    transform: none;
  }

  .personality-control:active {
    transform: scale(0.95);
  }

  .personality-tile:active {
    transform: scale(0.992);
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;
  }

  .latest-background-sphere,
  .latest-dots {
    animation: none;
  }

  .latest-navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
