/* First-visit landing splash — editorial brokerage introduction */

.re-splash {
  --rs-ink: #0b1120;
  --rs-paper: #f7f4ee;
  --rs-muted: rgba(247, 244, 238, 0.72);
  --rs-faint: rgba(247, 244, 238, 0.5);
  --rs-line: rgba(247, 244, 238, 0.16);
  --rs-gold: #e3c173;
  --rs-gold-deep: #c9a24a;
  --rs-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --rs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rs-slide-ms: 2400ms;

  position: fixed;
  inset: 0;
  z-index: 10100;
  color: var(--rs-paper);
  background: var(--rs-ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

html:has(> body.re-splash-active),
body.re-splash-active {
  overflow: hidden;
}

.re-splash[hidden] {
  display: none !important;
}

/* ---------- Exit ---------- */

.re-splash.is-exiting {
  pointer-events: none;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.6s var(--rs-ease), transform 0.6s var(--rs-ease);
}

/* ---------- Background ---------- */

.re-splash__stage {
  position: absolute;
  inset: 0;
}

.re-splash__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.1s ease;
}

.re-splash__slide.is-active {
  opacity: 1;
}

.re-splash.is-playing .re-splash__slide.is-active {
  animation: reSplashDrift 9s linear forwards;
}

.re-splash__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 22, 0.94) 0%, rgba(8, 12, 22, 0.82) 34%, rgba(8, 12, 22, 0.35) 68%, rgba(8, 12, 22, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 12, 22, 0.55) 0%, rgba(8, 12, 22, 0) 22%, rgba(8, 12, 22, 0) 62%, rgba(8, 12, 22, 0.9) 100%);
}

.re-splash__grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

/* ---------- Layout ---------- */

.re-splash__sheet {
  position: relative;
  z-index: 5;
  box-sizing: border-box;
  height: 100%;
  width: min(1200px, calc(100% - 4rem));
  margin: 0 auto;
  padding: 1.75rem 0 1.75rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-y: auto;
  scrollbar-width: none;
}

.re-splash__sheet::-webkit-scrollbar {
  display: none;
}

/* Staggered reveal */
.re-splash__top,
.re-splash__eyebrow,
.re-splash__title-line,
.re-splash__subtitle,
.re-splash__locator,
.re-splash__enter,
.re-splash__bottom {
  opacity: 0;
  transform: translateY(18px);
}

.re-splash.is-playing .re-splash__top,
.re-splash.is-playing .re-splash__eyebrow,
.re-splash.is-playing .re-splash__title-line,
.re-splash.is-playing .re-splash__subtitle,
.re-splash.is-playing .re-splash__locator,
.re-splash.is-playing .re-splash__enter,
.re-splash.is-playing .re-splash__bottom {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--rs-ease), transform 0.9s var(--rs-ease);
}

.re-splash.is-playing .re-splash__top { transition-delay: 0.05s; }
.re-splash.is-playing .re-splash__eyebrow { transition-delay: 0.2s; }
.re-splash.is-playing .re-splash__title-line { transition-delay: 0.32s; }
.re-splash.is-playing .re-splash__title-line--accent { transition-delay: 0.44s; }
.re-splash.is-playing .re-splash__subtitle { transition-delay: 0.58s; }
.re-splash.is-playing .re-splash__locator { transition-delay: 0.7s; }
.re-splash.is-playing .re-splash__enter { transition-delay: 0.82s; }
.re-splash.is-playing .re-splash__bottom { transition-delay: 0.95s; }

/* ---------- Top bar ---------- */

.re-splash__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.re-splash__lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.re-splash__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(227, 193, 115, 0.55), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.re-splash__wordmark {
  font-family: var(--rs-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.re-splash__skip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--rs-line);
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--rs-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.re-splash__skip .bi {
  font-size: 0.7rem;
}

.re-splash__skip:hover,
.re-splash__skip:focus-visible {
  color: var(--rs-paper);
  border-color: rgba(247, 244, 238, 0.45);
  outline: none;
}

/* ---------- Main ---------- */

.re-splash__body {
  display: grid;
  grid-template-columns: minmax(0, 38rem) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  min-height: 0;
}

.re-splash__main {
  align-self: center;
  max-width: 40rem;
  padding: 2.5rem 0;
}

/* ---------- Connection network (AI + people) ---------- */

.re-splash__net {
  position: relative;
  justify-self: end;
  width: min(100%, 32rem, 64vh);
  container-type: inline-size;
  aspect-ratio: 1;
  opacity: 0;
  transform: scale(0.94);
}

.re-splash.is-playing .re-splash__net {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s var(--rs-ease) 0.45s, transform 1.4s var(--rs-ease) 0.45s;
}

.re-splash__net-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.re-splash__net-orbit {
  fill: none;
  stroke: rgba(247, 244, 238, 0.12);
  stroke-width: 0.2;
  stroke-dasharray: 0.6 1.4;
}

.re-splash.is-playing .re-splash__net-orbit {
  animation: reSplashSpin 60s linear infinite;
  transform-origin: 50px 50px;
}

.re-splash.is-playing .re-splash__net-orbit--inner {
  animation-direction: reverse;
  animation-duration: 40s;
}

.re-splash__net-thread {
  stroke: rgba(247, 244, 238, 0.1);
  stroke-width: 0.15;
}

.re-splash__net-star {
  fill: rgba(247, 244, 238, 0.55);
}

.re-splash.is-playing .re-splash__net-star {
  animation: reSplashTwinkle 3.2s ease-in-out infinite;
}

.re-splash__net-star:nth-of-type(3n) { animation-delay: 0.8s !important; }
.re-splash__net-star:nth-of-type(3n + 1) { animation-delay: 1.9s !important; }

.re-splash__net-ring {
  stroke: rgba(227, 193, 115, 0.22);
  stroke-width: 0.18;
}

.re-splash__net-spoke {
  stroke: rgba(227, 193, 115, 0.35);
  stroke-width: 0.22;
  stroke-dasharray: 1 1;
  transition: stroke 0.4s ease, stroke-width 0.4s ease;
}

.re-splash.is-playing .re-splash__net-spoke {
  animation: reSplashFlow 1.6s linear infinite;
}

.re-splash__net-spoke.is-lit {
  stroke: var(--rs-gold);
  stroke-width: 0.45;
  stroke-dasharray: none;
}

.re-splash__net-pulse {
  fill: #fff4d4;
  filter: drop-shadow(0 0 1.2px rgba(227, 193, 115, 0.95));
}

.re-splash__net-match {
  fill: none;
  stroke: var(--rs-gold);
  stroke-width: 0.55;
  stroke-linecap: round;
  filter: drop-shadow(0 0 1.4px rgba(227, 193, 115, 0.9));
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.re-splash__net-match.is-drawing {
  animation: reSplashDraw 0.9s var(--rs-ease) forwards;
}

.re-splash__net-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}

.re-splash__net-hub img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(227, 193, 115, 0.7), 0 0 40px rgba(227, 193, 115, 0.45);
}

.re-splash__net-ring-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(227, 193, 115, 0.6);
}

.re-splash.is-playing .re-splash__net-ring-pulse {
  animation: reSplashRipple 2.8s ease-out infinite;
}

.re-splash.is-playing .re-splash__net-ring-pulse--late {
  animation-delay: 1.4s;
}

.re-splash__net-hub-label {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.7);
  border: 1px solid rgba(227, 193, 115, 0.45);
  color: var(--rs-gold);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.re-splash__net-node {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transform: translate(-50%, -50%);
}

.re-splash__net-avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(12, 18, 32, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(247, 244, 238, 0.22);
  color: var(--rs-paper);
  font-size: 1.15rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transform: scale(0);
  transition: transform 0.5s var(--rs-ease), background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.re-splash.is-playing .re-splash__net-avatar {
  transform: scale(1);
  transition-delay: calc(0.7s + var(--i) * 0.09s), 0s, 0s, 0s, 0s;
}

.re-splash__net-label {
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.55);
  color: var(--rs-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.35s ease;
}

.re-splash__net-node.is-lit .re-splash__net-avatar {
  background: var(--rs-gold);
  border-color: var(--rs-gold);
  color: var(--rs-ink);
  box-shadow: 0 0 0 6px rgba(227, 193, 115, 0.18), 0 0 30px rgba(227, 193, 115, 0.55);
  transform: scale(1.12);
  transition-delay: 0s;
}

.re-splash__net-node.is-lit .re-splash__net-label {
  color: var(--rs-gold);
}

.re-splash__net-caption {
  position: absolute;
  left: 50%;
  bottom: -2.4rem;
  transform: translate(-50%, 6px);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.78);
  border: 1px solid rgba(227, 193, 115, 0.4);
  color: var(--rs-paper);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s var(--rs-ease);
}

.re-splash__net-caption .bi {
  color: var(--rs-gold);
  font-size: 1rem;
}

.re-splash__net-caption.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Too tight for the hub label: the caption carries the story instead. */
@container (max-width: 340px) {
  .re-splash__net-hub-label {
    display: none;
  }
}

.re-splash__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.4rem;
  color: var(--rs-gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.re-splash__eyebrow-rule {
  flex: none;
  width: 2.75rem;
  height: 1px;
  background: var(--rs-gold);
}

.re-splash__title {
  margin: 0 0 1.4rem;
  font-family: var(--rs-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.re-splash__title-line {
  display: block;
}

@media (min-width: 900.02px) {
  .re-splash__title-line {
    white-space: nowrap;
  }
}

.re-splash__title-line--accent {
  margin-top: 0.12em;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, #f3dca0 0%, var(--rs-gold) 45%, var(--rs-gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.re-splash__subtitle {
  margin: 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--rs-muted);
}

.re-splash__subtitle span {
  color: var(--rs-faint);
}

.re-splash__locator {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 2.25rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rs-line);
  border-bottom: 1px solid var(--rs-line);
  max-width: 30rem;
}

.re-splash__locator-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
  color: var(--rs-faint);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.re-splash__locator-label .bi {
  color: var(--rs-gold);
  font-size: 0.8rem;
}

.re-splash__locator-window {
  position: relative;
  display: block;
  flex: 1;
  min-width: 0;
  height: 1.8rem;
  overflow: hidden;
}

.re-splash__locator-text {
  display: block;
  font-family: var(--rs-serif);
  font-size: 1.35rem;
  line-height: 1.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.35s var(--rs-ease), opacity 0.35s ease;
}

.re-splash__locator-text.is-changing {
  transform: translateY(-100%);
  opacity: 0;
}

.re-splash__locator-text.is-entering {
  transform: translateY(100%);
  opacity: 0;
  transition: none;
}

.re-splash__enter {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0d68f 0%, var(--rs-gold) 50%, var(--rs-gold-deep) 100%);
  color: var(--rs-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(201, 162, 74, 0.28);
}

.re-splash.is-playing .re-splash__enter {
  transition: opacity 0.9s var(--rs-ease), transform 0.9s var(--rs-ease), box-shadow 0.25s ease;
}

.re-splash__enter .bi {
  transition: transform 0.25s var(--rs-ease);
}

.re-splash__enter:hover,
.re-splash__enter:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(227, 193, 115, 0.35), 0 18px 44px rgba(201, 162, 74, 0.38);
}

.re-splash__enter:hover .bi,
.re-splash__enter:focus-visible .bi {
  transform: translateX(4px);
}

/* ---------- Bottom ---------- */

.re-splash__bottom {
  display: grid;
  gap: 1rem;
}

.re-splash__progress {
  display: flex;
  gap: 0.4rem;
}

.re-splash__segment {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: var(--rs-line);
  overflow: hidden;
}

.re-splash__segment-fill {
  display: block;
  height: 100%;
  background: var(--rs-gold);
  transform: scaleX(0);
  transform-origin: left center;
}

.re-splash__segment.is-done .re-splash__segment-fill {
  transform: scaleX(1);
}

.re-splash__segment.is-active .re-splash__segment-fill {
  animation: reSplashProgress var(--rs-slide-ms) linear forwards;
}

.re-splash__features {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.re-splash__types,
.re-splash__ai {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.re-splash__types {
  color: var(--rs-faint);
}

.re-splash__types li + li::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 0.9rem;
  border-radius: 50%;
  background: var(--rs-gold);
  vertical-align: middle;
}

.re-splash__ai {
  gap: 1.4rem;
  color: var(--rs-muted);
}

.re-splash__ai .bi {
  margin-right: 0.35rem;
  color: var(--rs-gold);
}

/* ---------- Keyframes ---------- */

@keyframes reSplashDrift {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.01) translate3d(-1%, 0, 0); }
}

@keyframes reSplashProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes reSplashSpin {
  to { transform: rotate(360deg); }
}

@keyframes reSplashTwinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes reSplashFlow {
  to { stroke-dashoffset: -4; }
}

@keyframes reSplashDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes reSplashRipple {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(2.1); opacity: 0; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .re-splash__scrim {
    background:
      linear-gradient(180deg, rgba(8, 12, 22, 0.7) 0%, rgba(8, 12, 22, 0.78) 45%, rgba(8, 12, 22, 0.94) 100%);
  }

  .re-splash__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .re-splash__net {
    order: -1;
    justify-self: center;
    width: min(72vw, 20rem);
    margin: 1.25rem 0 2.6rem;
  }

  .re-splash__ai {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .re-splash__sheet {
    width: calc(100% - 2.5rem);
    padding: 1.1rem 0 1.4rem;
  }

  .re-splash__logo {
    width: 36px;
    height: 36px;
  }

  .re-splash__wordmark {
    font-size: 1.05rem;
  }

  .re-splash__main {
    padding: 1.5rem 0;
  }

  .re-splash__eyebrow {
    align-items: flex-start;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    line-height: 1.5;
  }

  .re-splash__eyebrow-rule {
    width: 1.5rem;
    margin-top: 0.5em;
  }

  .re-splash__title {
    font-size: 2.6rem;
  }

  .re-splash__subtitle {
    font-size: 0.95rem;
  }

  .re-splash__locator {
    margin: 1.5rem 0 1.75rem;
  }

  .re-splash__locator-text {
    font-size: 1.15rem;
  }

  .re-splash__enter {
    width: 100%;
    justify-content: center;
  }

  .re-splash__types {
    font-size: 0.66rem;
  }

  .re-splash__types li + li::before {
    margin: 0 0.6rem;
  }

  .re-splash__net {
    width: min(66vw, 15rem);
    margin: 0.75rem 0 2.2rem;
  }

  .re-splash__net-avatar {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.9rem;
  }

  .re-splash__net-label {
    font-size: 0.54rem;
    letter-spacing: 0.04em;
    padding: 0.08rem 0.35rem;
  }

  .re-splash__net-hub-label {
    display: none;
  }

  .re-splash__net-caption {
    font-size: 0.66rem;
    bottom: -2.1rem;
  }

  .re-splash__subtitle span {
    display: none;
  }

  .re-splash__main {
    padding: 0.5rem 0 1.25rem;
  }
}

@media (max-height: 640px) and (min-width: 576px) {
  .re-splash__main {
    padding: 1rem 0;
  }

  .re-splash__title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
  }

  .re-splash__locator {
    margin: 1.25rem 0 1.4rem;
  }
}

@media (max-width: 575.98px) and (max-height: 720px) {
  .re-splash__net {
    display: none;
  }

  .re-splash__main {
    padding-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .re-splash,
  .re-splash *,
  .re-splash *::before {
    animation: none !important;
    transition: none !important;
  }

  .re-splash__top,
  .re-splash__eyebrow,
  .re-splash__title-line,
  .re-splash__subtitle,
  .re-splash__locator,
  .re-splash__enter,
  .re-splash__bottom,
  .re-splash__net {
    opacity: 1 !important;
    transform: none !important;
  }

  .re-splash__net-avatar {
    transform: scale(1) !important;
  }

  .re-splash__net-pulse {
    display: none;
  }

  .re-splash__slide {
    transform: none;
  }

  .re-splash__segment-fill {
    transform: scaleX(1) !important;
  }
}
