.particle-home-hero {
  position: relative;
  min-height: min(760px, max(640px, calc(100svh - 112px)));
  isolation: isolate;
  overflow: hidden;
  background: #031a2a;
  --sequence-hue: 0deg;
}

.particle-home-hero[data-sequence-index="1"] {
  --sequence-hue: -8deg;
}

.particle-home-hero[data-sequence-index="2"] {
  --sequence-hue: 7deg;
}

.particle-home-hero[data-sequence-index="3"] {
  --sequence-hue: 13deg;
}

.particle-home-hero[data-sequence-index="4"] {
  --sequence-hue: -14deg;
}

.particle-home-hero::before,
.particle-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle-home-hero::before {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 21, 34, 0.18) 0%, rgba(3, 21, 34, 0.12) 44%, rgba(3, 21, 34, 0.48) 100%),
    linear-gradient(180deg, rgba(3, 21, 34, 0.16) 0%, rgba(3, 21, 34, 0.02) 42%, rgba(3, 21, 34, 0.54) 100%);
}

.particle-home-hero::after {
  z-index: 4;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(153, 227, 239, 0.55), rgba(230, 170, 77, 0.6), transparent);
}

.particle-home-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.particle-home-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.04) brightness(0.78);
  transform: translate3d(0, calc(var(--scroll-shift) + 18px), 0) scale(1.06);
  transition: transform 900ms var(--ease-out);
}

.shell.particle-hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(80px, 1fr) auto;
  gap: 28px 24px;
  min-height: min(760px, max(640px, calc(100svh - 112px)));
  width: min(1280px, calc(100% - 80px));
  padding-block: clamp(46px, 6.2vh, 66px) clamp(34px, 4.5vh, 48px);
  color: #fff;
}

.particle-hero-mark {
  --particle-mark-angle: -8.5;
  position: absolute;
  top: -1%;
  bottom: -1%;
  left: max(-128px, calc(50% - 828px));
  z-index: 1;
  width: clamp(750px, 61vw, 890px);
  opacity: 0.94;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 83% 96% at 48% 50%, #000 71%, rgba(0, 0, 0, 0.78) 87%, transparent 100%);
  mask-image: radial-gradient(ellipse 83% 96% at 48% 50%, #000 71%, rgba(0, 0, 0, 0.78) 87%, transparent 100%);
}

.particle-logo-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter:
    saturate(1.35)
    brightness(1.32)
    contrast(1.08)
    hue-rotate(var(--sequence-hue))
    drop-shadow(0 0 4px rgba(73, 211, 241, 0.92))
    drop-shadow(0 0 17px rgba(43, 184, 224, 0.64))
    drop-shadow(0 0 46px rgba(31, 145, 190, 0.44));
  transition: filter 900ms var(--ease-smooth);
}

.particle-hero-statement,
.particle-hero-intro,
.particle-hero-practices {
  position: relative;
  z-index: 3;
  min-width: 0;
}

.particle-hero-statement {
  grid-column: 7 / 13;
  grid-row: 1;
  align-self: start;
  padding-top: 4px;
}

.particle-hero-statement .section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #efb45b;
  text-shadow: 0 1px 12px rgba(3, 21, 34, 0.7);
}

.particle-hero-statement .section-kicker::before {
  content: "";
  flex: 0 0 46px;
  height: 2px;
  background: #efb45b;
  box-shadow: 0 0 16px rgba(239, 180, 91, 0.35);
}

.particle-hero-statement h1 {
  max-width: 650px;
  margin: 20px 0 0;
  color: #f8fdff;
  font-size: clamp(2.9rem, 3.35vw, 3.55rem);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 3px 34px rgba(3, 21, 34, 0.82);
}

.particle-hero-heading-visual,
.particle-hero-phrase-slot,
.particle-hero-phrase {
  display: block;
}

.particle-hero-heading-visual {
  color: #dff8fb;
}

.particle-hero-phrase-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.particle-hero-phrase,
.particle-hero-phrase-reserve {
  grid-area: 1 / 1;
  min-width: 0;
}

.particle-hero-phrase {
  position: relative;
  z-index: 1;
  padding-bottom: 0.12em;
  color: #f8fdff;
  transform-origin: left center;
  transition:
    opacity 260ms var(--ease-out),
    transform 520ms var(--ease-out);
}

.particle-hero-phrase-reserve {
  display: grid;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.particle-hero-phrase-reserve > span {
  grid-area: 1 / 1;
  display: block;
  min-width: 0;
  padding-bottom: 0.12em;
}

.particle-hero-phrase.is-exiting {
  opacity: 0;
  transform: translateY(-10px);
}

.particle-hero-phrase.is-entering {
  opacity: 0;
  transform: translateY(12px);
}

.particle-hero-intro {
  grid-column: 1 / 5;
  grid-row: 3;
  align-self: end;
  padding-bottom: 2px;
  text-shadow: 0 2px 22px rgba(3, 21, 34, 0.95);
}

.particle-hero-intro::before {
  content: "";
  position: absolute;
  inset: -18px -70px -18px -28px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 18% 52%, rgba(3, 21, 34, 0.92) 0%, rgba(3, 21, 34, 0.7) 42%, rgba(3, 21, 34, 0) 76%);
}

.particle-hero-intro > p {
  max-width: 390px;
  margin: 0;
  color: rgba(239, 250, 252, 0.94);
  font-size: 0.98rem;
  line-height: 1.56;
}

.particle-hero-intro .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.particle-hero-intro .button {
  min-width: 0;
  padding: 12px 15px;
  font-size: 0.86rem;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(3, 21, 34, 0.22);
}

.particle-hero-intro .button-ghost {
  border-color: rgba(221, 248, 252, 0.46);
  background: rgba(3, 21, 34, 0.22);
  color: #f4fcfd;
  backdrop-filter: blur(8px);
}

.particle-hero-practices {
  grid-column: 9 / 13;
  grid-row: 3;
  align-self: end;
  width: 100%;
  max-width: 390px;
  justify-self: end;
}

.particle-hero-practices > p {
  margin: 0 0 7px;
  color: rgba(215, 239, 244, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.particle-hero-practices a {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0 11px;
  padding: 10px 30px 10px 0;
  border-top: 1px solid rgba(215, 239, 244, 0.26);
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 18px rgba(3, 21, 34, 0.9);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.particle-hero-practices a:last-child {
  border-bottom: 1px solid rgba(215, 239, 244, 0.2);
}

.particle-hero-practices a::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 2px;
  color: #efb45b;
  font-size: 1.05rem;
  transform: translateY(-50%);
}

.particle-hero-practices a:hover,
.particle-hero-practices a:focus-visible,
.particle-hero-practices a.is-active {
  border-color: rgba(239, 180, 91, 0.74);
  background: rgba(223, 248, 251, 0.06);
}

.particle-hero-practices a > span,
.particle-hero-practices a > strong,
.particle-hero-practices a > small {
  transition: transform var(--duration-fast) var(--ease-out);
}

.particle-hero-practices a:hover > span,
.particle-hero-practices a:hover > strong,
.particle-hero-practices a:hover > small,
.particle-hero-practices a:focus-visible > span,
.particle-hero-practices a:focus-visible > strong,
.particle-hero-practices a:focus-visible > small,
.particle-hero-practices a.is-active > span,
.particle-hero-practices a.is-active > strong,
.particle-hero-practices a.is-active > small {
  transform: translateX(8px);
}

.particle-hero-practices a.is-active::after {
  content: "";
  width: 18px;
  height: 2px;
  background: #efb45b;
  box-shadow: 0 0 14px rgba(239, 180, 91, 0.62);
}

.particle-hero-practices a > span {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
  padding-top: 2px;
  color: #efb45b;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
}

.particle-hero-practices strong {
  grid-column: 2;
  display: block;
  font-size: 0.92rem;
  line-height: 1.24;
}

.particle-hero-practices small {
  grid-column: 2;
  display: block;
  margin-top: 2px;
  color: rgba(223, 244, 247, 0.78);
  font-size: 0.72rem;
  line-height: 1.35;
}

@media (min-width: 861px) and (max-width: 1100px) {
  .shell.particle-hero-layout {
    column-gap: 20px;
  }

  .particle-hero-mark {
    --particle-mark-angle: -6.5;
    top: 0;
    bottom: 1%;
    left: -9%;
    width: clamp(700px, 76vw, 790px);
    opacity: 0.88;
  }

  .particle-hero-statement {
    grid-column: 6 / 13;
  }

  .particle-hero-statement h1 {
    font-size: clamp(3rem, 6.1vw, 3.8rem);
  }

  .particle-hero-intro {
    grid-column: 1 / 6;
  }

  .particle-hero-practices {
    grid-column: 8 / 13;
  }
}

@media (max-width: 860px) {
  .particle-home-hero,
  .shell.particle-hero-layout {
    min-height: auto;
  }

  .particle-home-hero::before {
    background:
      linear-gradient(180deg, rgba(3, 21, 34, 0.22) 0%, rgba(3, 21, 34, 0.32) 46%, rgba(3, 21, 34, 0.78) 100%),
      linear-gradient(90deg, rgba(3, 21, 34, 0.24), rgba(3, 21, 34, 0.42));
  }

  .particle-home-bg img {
    object-position: 66% center;
    filter: saturate(0.85) contrast(1.03) brightness(0.68);
  }

  .shell.particle-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 25px;
    padding-block: 36px 30px;
  }

  .particle-hero-mark {
    --particle-mark-angle: -4.5;
    top: 4%;
    bottom: 5%;
    left: -20%;
    width: 136vw;
    opacity: 0.72;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 7%, rgba(0, 0, 0, 0.94) 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 7%, rgba(0, 0, 0, 0.94) 82%, transparent 100%);
  }

  .particle-hero-statement,
  .particle-hero-intro,
  .particle-hero-practices {
    grid-column: 1;
    width: 100%;
    max-width: none;
  }

  .particle-hero-statement {
    grid-row: 1;
    padding: 0;
  }

  .particle-hero-statement h1 {
    max-width: 690px;
    margin-top: 16px;
    font-size: clamp(2.65rem, 7.4vw, 3.5rem);
    line-height: 1.05;
  }

  .particle-hero-intro {
    grid-row: 2;
    max-width: 590px;
  }

  .particle-hero-intro::before {
    inset: -14px -28px;
    background: linear-gradient(90deg, rgba(3, 21, 34, 0.82), rgba(3, 21, 34, 0.24) 76%, transparent);
  }

  .particle-hero-intro > p {
    max-width: 36rem;
  }

  .particle-hero-practices {
    grid-row: 3;
    justify-self: stretch;
    margin-top: 2px;
  }
}

@media (min-width: 861px) and (max-height: 820px) {
  .particle-home-hero,
  .shell.particle-hero-layout {
    min-height: max(552px, calc(100svh - 84px));
  }

  .shell.particle-hero-layout {
    gap: 16px 22px;
    padding-top: 30px;
    padding-bottom: 26px;
  }

  .particle-hero-statement h1 {
    margin-top: 12px;
    font-size: clamp(2.55rem, 3.8vw, 3.25rem);
  }

  .particle-hero-intro .hero-actions {
    margin-top: 14px;
  }

  .particle-hero-practices a {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .particle-hero-practices small {
    font-size: 0.68rem;
  }
}

@media (max-width: 620px) {
  .shell.particle-hero-layout {
    width: min(100% - 32px, 1120px);
    gap: 22px;
    padding-block: 30px 26px;
  }

  .particle-hero-statement .section-kicker {
    gap: 9px;
    font-size: 0.72rem;
  }

  .particle-hero-statement .section-kicker::before {
    flex-basis: 26px;
  }

  .particle-hero-mark {
    --particle-mark-angle: -2.5;
    top: 8%;
    bottom: 10%;
    left: -18%;
    width: 132vw;
    opacity: 0.64;
  }

  .particle-hero-statement h1 {
    font-size: clamp(2.25rem, 10vw, 2.7rem);
  }

  .particle-hero-intro > p {
    font-size: 0.94rem;
  }

  .particle-hero-intro .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 17px;
  }

  .particle-hero-intro .button {
    width: 100%;
    padding-inline: 10px;
    text-align: center;
    white-space: normal;
  }

  .particle-hero-practices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }

  .particle-hero-practices > p {
    grid-column: 1 / -1;
  }

  .particle-hero-practices a {
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 54px;
    padding: 9px 18px 9px 0;
  }

  .particle-hero-practices a:last-child {
    grid-column: 1 / -1;
  }

  .particle-hero-practices strong {
    font-size: 0.8rem;
  }

  .particle-hero-practices small {
    display: none;
  }
}

@media (max-width: 410px) {
  .particle-hero-intro .hero-actions {
    grid-template-columns: 1fr;
  }

  .particle-hero-statement h1 {
    font-size: 2.2rem;
  }

  .particle-hero-practices {
    column-gap: 8px;
  }

  .particle-hero-mark {
    --particle-mark-angle: 0;
    top: 10%;
    bottom: 14%;
    left: -14%;
    width: 126vw;
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .particle-home-bg img {
    transform: none;
  }

  .particle-logo-canvas {
    transition: none;
  }

  .particle-hero-phrase {
    transition: none;
  }
}
