.video-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Give italic descenders enough room inside the masked title line. */
.hero-title .accent-line {
  padding-bottom: .13em;
  margin-bottom: -.13em;
}

/* Soften the cinematic dark-to-light section transition. */
.manifesto {
  position: relative;
  isolation: isolate;
}

.manifesto > * {
  position: relative;
  z-index: 2;
}

.manifesto::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: -150px;
  height: 152px;
  background: linear-gradient(
    to bottom,
    rgba(239, 238, 233, 0) 0%,
    rgba(239, 238, 233, .04) 18%,
    rgba(239, 238, 233, .16) 42%,
    rgba(239, 238, 233, .48) 68%,
    rgba(239, 238, 233, .82) 86%,
    var(--paper) 100%
  );
  pointer-events: none;
}

.manifesto::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(239, 238, 233, .96), var(--paper));
  pointer-events: none;
}

.services-intro {
  text-align: right;
}

.services-intro > p {
  font: 500 clamp(26px, 3vw, 43px)/1.15 Manrope;
  letter-spacing: -.04em;
  margin: 0;
}

.services-intro > span {
  display: inline-block;
  margin-top: 18px;
  color: var(--gold);
  font: 500 10px/1.4 Manrope;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rings {
  isolation: isolate;
  box-shadow: 0 0 90px rgba(199, 166, 106, .08), inset 0 0 60px rgba(199, 166, 106, .04);
  animation: rings-breathe 5s ease-in-out infinite;
}

.rings .ring {
  inset: auto;
  animation: none;
}

.rings .ring-outer {
  inset: 11%;
  border-style: dashed;
  animation: ring-spin 18s linear infinite;
}

.rings .ring-middle {
  inset: 25%;
  border-color: rgba(199, 166, 106, .28);
  animation: ring-spin-reverse 12s linear infinite;
}

.rings .ring-inner {
  inset: 38%;
  animation: inner-pulse 3.5s ease-in-out infinite;
}

.orbit {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  animation: ring-spin 14s linear infinite;
  transition: animation-duration 1.2s ease;
}

.orbit-two {
  inset: 19%;
  animation: ring-spin-reverse 11s linear infinite;
}

.orbit small {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
}

.orbit-two small {
  top: 15%;
  left: 80%;
  width: 4px;
  height: 4px;
}

.orbit .extra-dot {
  opacity: 0;
  transform: scale(.3);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.16, 1, .3, 1);
}

.orbit .dot-two { top: 12%; left: 16%; width: 4px; height: 4px; }
.orbit .dot-three { top: 82%; left: 77%; width: 6px; height: 6px; }
.orbit .dot-four { top: 72%; left: 8%; width: 5px; height: 5px; }
.orbit .dot-five { top: 45%; left: 96%; width: 3px; height: 3px; }

.rings:has(.process-logo:hover) .extra-dot,
.rings:has(.process-logo:focus-visible) .extra-dot {
  opacity: 1;
  transform: scale(1);
}

.rings .process-logo {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: rgba(17, 17, 17, .78);
  font: 500 32px/1 Georgia, serif;
  padding: 0;
  cursor: pointer;
  backdrop-filter: blur(8px);
  animation: logo-float 4s ease-in-out infinite;
  transition: background-color 350ms ease, box-shadow 350ms ease;
}

.rings .process-logo:hover,
.rings .process-logo:focus-visible {
  outline: none;
  background: rgba(199, 166, 106, .12);
  box-shadow: 0 0 30px rgba(199, 166, 106, .18);
}

.process-email {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: calc(50% + 64px);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 13px;
  width: 370px;
  max-width: calc(100vw - 32px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(35, 32, 27, .94), rgba(12, 12, 12, .96));
  color: #eee;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(.96);
  transform-origin: top center;
  transition: opacity 350ms ease, transform 500ms cubic-bezier(.16, 1, .3, 1), border-color 300ms ease, box-shadow 300ms ease;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: visible;
}

/* Also support the earlier two-item card markup while the page is cached. */
.process-email:not(:has(.email-symbol)) {
  grid-template-columns: minmax(0, 1fr) 42px;
  padding-left: 24px;
}

/* Isolate the card content from the generic `.rings span` orbit rules. */
.rings .process-email span,
.rings .process-email span:nth-child(1),
.rings .process-email span:nth-child(2),
.rings .process-email span:nth-child(3) {
  position: static;
  inset: auto;
  border: 0;
  border-radius: 0;
  animation: none;
  opacity: 1;
  transform: none;
}

.process-email::after {
  content: "";
  position: absolute;
  left: 18%;
  top: -45px;
  width: 120px;
  height: 70px;
  border-radius: 50%;
  background: rgba(199, 166, 106, .13);
  filter: blur(25px);
  pointer-events: none;
}

.process-email::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 9px;
  height: 9px;
  border-left: 1px solid rgba(255, 255, 255, .11);
  border-top: 1px solid rgba(255, 255, 255, .11);
  background: #201e1a;
  transform: translateX(-50%) rotate(45deg);
}

.email-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.email-copy small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a7a49d;
  font: 600 7px/1 Manrope;
  letter-spacing: .18em;
}

.email-copy small i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8fbd78;
  box-shadow: 0 0 8px rgba(143, 189, 120, .7);
}

.email-copy strong {
  font: 500 13px/1.2 "DM Sans", sans-serif;
  letter-spacing: .015em;
  overflow: visible;
  text-overflow: clip;
}

.email-copy em {
  color: #77736d;
  font: 400 9px/1.2 "DM Sans", sans-serif;
  font-style: normal;
}

.rings .process-email .email-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(199, 166, 106, .22);
  border-radius: 12px;
  color: var(--gold);
  background: rgba(199, 166, 106, .07);
  border-radius: 12px !important;
}

.email-symbol svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

.rings .process-email .email-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  margin: 0;
  border: 1px solid rgba(199, 166, 106, .4);
  border-radius: 50%;
  color: var(--gold);
  transition: color 300ms ease, background-color 300ms ease, transform 400ms cubic-bezier(.16, 1, .3, 1);
  border-radius: 50% !important;
}

.process-email:hover {
  border-color: rgba(199, 166, 106, .42);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .58), 0 0 36px rgba(199, 166, 106, .1), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.process-email:hover .email-arrow {
  color: #111;
  background: var(--gold);
  transform: rotate(8deg);
}

.process-email.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes ring-spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes inner-pulse {
  50% { transform: scale(1.12); opacity: .5; }
}

@keyframes rings-breathe {
  50% { box-shadow: 0 0 120px rgba(199, 166, 106, .14), inset 0 0 75px rgba(199, 166, 106, .07); }
}

@keyframes logo-float {
  50% { transform: translateY(-5px); }
}

@media (max-width: 800px) {
  .manifesto::before { top: -105px; height: 107px; }
  .services-intro { text-align: left; margin-top: 25px; }
  .services-intro > span { max-width: 280px; }
  .process-email {
    width: min(350px, calc(100vw - 28px));
    grid-template-columns: 38px minmax(0, 1fr) 34px;
    gap: 10px;
    padding: 10px;
  }
  .process-email:not(:has(.email-symbol)) {
    grid-template-columns: minmax(0, 1fr) 34px;
    padding-left: 18px;
  }
  .email-symbol { width: 38px; height: 38px; flex-basis: 38px; }
  .process-email .email-arrow { width: 34px; height: 34px; flex-basis: 34px; }
  .email-copy strong { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .rings, .rings .ring, .orbit, .rings .process-logo { animation: none !important; }
}
