/* Investor relations and collaboration pages */

.rel-page {
  --rel-accent: var(--accent);
  --rel-accent-2: #5e5ce6;
  --rel-accent-soft: var(--accent-soft);
  --rel-accent-line: rgba(10, 132, 255, 0.35);
}

.rel-page--investor {
  --rel-accent: #9a7219;
  --rel-accent-2: #c18f2c;
  --rel-accent-soft: rgba(166, 124, 31, 0.1);
  --rel-accent-line: rgba(166, 124, 31, 0.38);
}

[data-theme="dark"] .rel-page--investor {
  --rel-accent: #e0b65c;
  --rel-accent-2: #f5d48c;
  --rel-accent-soft: rgba(224, 182, 92, 0.12);
  --rel-accent-line: rgba(224, 182, 92, 0.4);
}

[data-theme="dark"] .rel-page--collab {
  --rel-accent-2: #7d7aff;
}

/* Hero */
.rel-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-h) + 40px) 0 clamp(64px, 9vw, 112px);
  background: var(--bg-primary);
}

.rel-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 20%, transparent 75%);
}

.rel-hero__glow {
  position: absolute;
  z-index: -1;
  inset: -20% -10% auto auto;
  width: min(820px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 40%, var(--rel-accent-soft), transparent 60%),
    radial-gradient(circle at 65% 60%, color-mix(in srgb, var(--rel-accent-2) 18%, transparent), transparent 62%);
  filter: blur(20px);
  animation: rel-drift 18s var(--ease-in-out) infinite alternate;
  pointer-events: none;
}

@keyframes rel-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6%, 8%, 0) scale(1.08); }
}

.rel-hero__inner {
  position: relative;
}

.rel-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 7px 14px;
  border: 1px solid var(--rel-accent-line);
  border-radius: var(--radius-full);
  background: var(--rel-accent-soft);
  color: var(--rel-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rel-hero__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rel-accent);
}

.rel-hero__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--rel-accent);
  opacity: 0;
  animation: rel-ping 2.4s var(--ease-out) infinite;
}

@keyframes rel-ping {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

.rel-hero__title {
  margin: 22px 0 18px;
  max-width: 17ch;
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.rel-hero__accent {
  background: linear-gradient(100deg, var(--rel-accent) 0%, var(--rel-accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rel-hero__lead {
  max-width: 40em;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text-secondary);
}

.rel-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.rel-hero__actions .btn {
  min-height: 48px;
  padding-inline: 22px;
}

.rel-page--investor .rel-hero__actions .btn--primary,
.rel-page--investor .rel-form__submit {
  background: linear-gradient(100deg, var(--rel-accent), var(--rel-accent-2));
  color: #14110a;
}

.rel-page--investor .rel-hero__actions .btn--primary:hover,
.rel-page--investor .rel-form__submit:hover {
  filter: brightness(1.06);
}

.rel-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  list-style: none;
}

.rel-hero__chips li {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  color: var(--text-secondary);
}

.rel-hero__chips strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Sections */
.rel-section {
  position: relative;
}

.rel-page .section-eyebrow {
  color: var(--rel-accent);
}

.rel-section--tint {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, var(--rel-accent-soft), transparent 60%),
    var(--bg-secondary);
  border-block: 1px solid var(--border);
}

/* Cards */
.rel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.rel-cards--three {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 1100px) {
  .rel-cards--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rel-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition:
    transform var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
}

.rel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--rel-accent-line), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
  pointer-events: none;
}

.rel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.rel-card:hover::before {
  opacity: 1;
}

.rel-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--rel-accent-soft);
  color: var(--rel-accent);
}

.rel-card__icon svg {
  width: 22px;
  height: 22px;
}

.rel-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.rel-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Portfolio list */
.rel-portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.rel-portfolio__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  transition:
    border-color var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out),
    background var(--duration) var(--ease-out);
}

.rel-portfolio__item:hover {
  border-color: var(--rel-accent-line);
  transform: translateX(4px);
  color: var(--text-primary);
}

.rel-portfolio__index {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--rel-accent);
}

.rel-portfolio__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rel-portfolio__body strong {
  font-size: 16px;
  font-weight: 600;
}

.rel-portfolio__body span {
  font-size: 13px;
  color: var(--text-tertiary);
}

.rel-portfolio__item svg {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  transition: color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.rel-portfolio__item:hover svg {
  color: var(--rel-accent);
  transform: translate(2px, -2px);
}

/* Process steps */
.rel-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  list-style: none;
}

@media (min-width: 1000px) {
  .rel-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }
}

.rel-step {
  position: relative;
  padding: 0 24px 0 0;
}

.rel-step::before {
  content: "";
  display: block;
  height: 2px;
  margin: 0 0 22px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rel-accent), transparent);
}

.rel-step__num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--text-primary), var(--text-tertiary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rel-step h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 650;
  color: var(--text-primary);
}

.rel-step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Enquiry */
.rel-enquire__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}

@media (min-width: 1000px) {
  .rel-enquire__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  }
}

.rel-panel {
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.rel-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rel-form .form-row {
  gap: 18px;
}

.rel-form .form-group {
  margin: 0;
  min-width: 0;
}

.rel-panel,
.rel-desk {
  min-width: 0;
}

.rel-form .form-label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.rel-req {
  color: var(--rel-accent);
}

.rel-optional {
  margin-left: 6px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.rel-select {
  min-width: 0;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.rel-chips {
  border: 0;
  min-width: 0;
}

.rel-chips legend {
  margin-bottom: 10px;
}

.rel-chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rel-chip {
  position: relative;
  cursor: pointer;
}

.rel-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.rel-chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface-secondary);
  font-size: 14px;
  color: var(--text-secondary);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.rel-chip span::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  opacity: 0.6;
}

.rel-chip:hover span {
  border-color: var(--rel-accent-line);
}

.rel-chip input:checked + span {
  border-color: var(--rel-accent);
  background: var(--rel-accent-soft);
  color: var(--text-primary);
}

.rel-chip input:checked + span::before {
  opacity: 1;
  border-color: var(--rel-accent);
  background: var(--rel-accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}

.rel-chip input:focus-visible + span {
  box-shadow: var(--shadow-focus);
}

.rel-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}

.rel-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--rel-accent);
}

.rel-consent a {
  color: var(--rel-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rel-form__submit {
  align-self: flex-start;
  min-height: 50px;
  padding-inline: 26px;
}

@media (max-width: 560px) {
  .rel-form__submit {
    align-self: stretch;
  }
}

/* Desk aside */
.rel-desk {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 1000px) {
  .rel-desk {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.rel-desk__mail {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--rel-accent-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, var(--rel-accent-soft), transparent 60%),
    var(--surface);
  color: var(--text-primary);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.rel-desk__mail:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.rel-desk__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rel-accent);
}

.rel-desk__address {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 650;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.rel-desk__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.rel-desk__hint svg {
  width: 14px;
  height: 14px;
}

.rel-desk__block {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.rel-desk__block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 650;
  color: var(--text-primary);
}

.rel-desk__block h3 svg {
  width: 16px;
  height: 16px;
  color: var(--rel-accent);
}

.rel-desk__block p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.rel-desk__block--meta {
  display: grid;
  gap: 8px;
}

.rel-desk__block--meta p {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rel-desk__block--meta a {
  color: var(--rel-accent);
}

.rel-desk__block--meta svg {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--text-tertiary);
}

.rel-ticks {
  display: grid;
  gap: 9px;
  list-style: none;
}

.rel-ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.rel-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--rel-accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238e8e93' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}

/* FAQ */
.rel-faq-wrap .rel-faq,
.rel-faq-wrap .rel-disclaimer {
  max-width: 920px;
}

.rel-faq {
  border-top: 1px solid var(--border);
}

.rel-faq__item {
  border-bottom: 1px solid var(--border);
}

.rel-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.rel-faq__item summary::-webkit-details-marker {
  display: none;
}

.rel-faq__item summary svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--rel-accent);
  transition: transform var(--duration) var(--ease-out);
}

.rel-faq__item[open] summary svg {
  transform: rotate(45deg);
}

.rel-faq__item p {
  max-width: 62em;
  padding: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.rel-disclaimer {
  margin-top: 28px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* Cross link */
.rel-section--cta {
  padding-top: 0;
}

.rel-crosslink {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 50% 90% at 100% 50%, var(--rel-accent-soft), transparent 70%),
    var(--surface);
}

.rel-crosslink h2 {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.rel-crosslink p {
  max-width: 34em;
  font-size: 15px;
  color: var(--text-secondary);
}

/* Hero layout with visual */
.rel-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 1100px) {
  .rel-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(400px, 0.85fr);
  }
}

.rel-hero__content {
  min-width: 0;
}

.rel-hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 420px;
}

@media (max-width: 1099px) {
  .rel-hero__visual {
    min-height: 0;
    max-width: 560px;
  }
}

/* Radar (investors) */
.rel-radar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(460px, 100%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.rel-radar__ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--rel-accent-line);
  border-radius: 50%;
  opacity: 0.55;
}

.rel-radar__ring:nth-child(2) {
  inset: 17%;
  opacity: 0.4;
}

.rel-radar__ring:nth-child(3) {
  inset: 34%;
  opacity: 0.3;
}

.rel-radar__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 290deg, var(--rel-accent-soft) 330deg, color-mix(in srgb, var(--rel-accent) 45%, transparent) 360deg);
  -webkit-mask-image: radial-gradient(circle, #000 66%, transparent 71%);
  mask-image: radial-gradient(circle, #000 66%, transparent 71%);
  animation: rel-spin 7s linear infinite;
}

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

.rel-radar__blip {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rel-accent);
  box-shadow: 0 0 0 6px var(--rel-accent-soft), 0 0 18px var(--rel-accent);
  animation: rel-blip 7s linear infinite;
}

.rel-radar__blip:nth-of-type(5) { top: 16%; left: 62%; animation-delay: -5.6s; }
.rel-radar__blip:nth-of-type(6) { top: 70%; left: 78%; animation-delay: -3.2s; }
.rel-radar__blip:nth-of-type(7) { top: 62%; left: 18%; animation-delay: -0.9s; }

@keyframes rel-blip {
  0%, 70%, 100% { opacity: 0.15; transform: scale(0.7); }
  76% { opacity: 1; transform: scale(1.15); }
}

/* Glass snapshot card */
.rel-glass {
  position: relative;
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid var(--rel-accent-line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rel-glass__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.rel-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-secondary);
}

.rel-live span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.18);
}

.rel-facts {
  display: grid;
}

.rel-facts div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}

.rel-facts dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.rel-facts dd {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-primary);
}

.rel-glass__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--rel-accent-soft);
  color: var(--rel-accent);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--duration) var(--ease-out);
}

.rel-glass__cta:hover {
  background: color-mix(in srgb, var(--rel-accent) 20%, transparent);
  color: var(--rel-accent);
}

.rel-glass__cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration) var(--ease-out);
}

.rel-glass__cta:hover svg {
  transform: translateX(3px);
}

/* Partner network (collaborate) */
.rel-net {
  width: min(520px, 100%);
  height: auto;
  overflow: visible;
}

.rel-net__orbit {
  fill: none;
  stroke: var(--rel-accent-line);
  stroke-width: 1;
  stroke-dasharray: 3 7;
  transform-origin: 240px 220px;
  animation: rel-spin 60s linear infinite;
}

.rel-net__orbit--inner {
  opacity: 0.6;
  animation-direction: reverse;
  animation-duration: 40s;
}

.rel-net__link {
  stroke: var(--rel-accent);
  stroke-width: 1.4;
  stroke-dasharray: 6 8;
  opacity: 0.55;
  animation: rel-flow 2.8s linear infinite;
}

@keyframes rel-flow {
  to { stroke-dashoffset: -56; }
}

.rel-net__halo {
  fill: var(--rel-accent-soft);
  transform-box: fill-box;
  transform-origin: center;
  animation: rel-pulse 2.8s var(--ease-out) infinite;
}

@keyframes rel-pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.rel-net__node .rel-net__halo {
  animation-delay: inherit;
}

.rel-net__dot {
  fill: var(--rel-accent);
  stroke: var(--bg-primary);
  stroke-width: 3;
}

.rel-net__label {
  fill: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
}

.rel-net__core-glow {
  fill: var(--rel-accent-soft);
}

.rel-net__core {
  fill: var(--surface);
  stroke: var(--rel-accent);
  stroke-width: 1.5;
}

.rel-net__core-text {
  fill: var(--text-primary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.rel-net__core-sub {
  fill: var(--text-tertiary);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Product marquee under the hero */
.rel-marquee {
  position: relative;
  margin-top: clamp(48px, 7vw, 80px);
  overflow: hidden;
  border-block: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.rel-marquee__track {
  display: flex;
  width: max-content;
  animation: rel-marquee 38s linear infinite;
}

.rel-marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 18px 28px 18px 0;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.rel-marquee__track span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rel-accent);
  opacity: 0.7;
}

.rel-marquee:hover .rel-marquee__track {
  animation-play-state: paused;
}

@keyframes rel-marquee {
  to { transform: translateX(-50%); }
}

.rel-hero {
  padding-bottom: 0;
}

/* Sticky in-page menu */
.rel-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}

.rel-subnav.is-stuck {
  border-bottom-color: var(--nav-border);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.rel-subnav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 56px;
}

.rel-subnav__title {
  flex: none;
  font-size: 15px;
  font-weight: 650;
  color: var(--text-primary);
}

.rel-subnav__links {
  display: flex;
  gap: 4px;
  min-width: 0;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.rel-subnav__links::-webkit-scrollbar {
  display: none;
}

.rel-subnav__links a {
  flex: none;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.rel-subnav__links a:hover {
  color: var(--text-primary);
}

.rel-subnav__links a.is-active {
  background: var(--rel-accent-soft);
  color: var(--rel-accent);
}

.rel-subnav__cta {
  flex: none;
  min-height: 34px;
  padding: 6px 16px;
  font-size: 13px;
}

.rel-page--investor .rel-subnav__cta {
  background: linear-gradient(100deg, var(--rel-accent), var(--rel-accent-2));
  color: #14110a;
}

@media (max-width: 760px) {
  .rel-subnav__title,
  .rel-subnav__cta {
    display: none;
  }

  .rel-subnav__links {
    margin-left: 0;
  }
}

.rel-page [id] {
  scroll-margin-top: calc(var(--header-h) + 72px);
}

/* Pointer spotlight */
.rel-card,
.rel-portfolio__item,
.rel-desk__mail,
.rel-step {
  --mx: 50%;
  --my: 50%;
}

.rel-card::after,
.rel-portfolio__item::after,
.rel-desk__mail::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx) var(--my), var(--rel-accent-soft), transparent 45%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
  pointer-events: none;
}

.rel-card:hover::after,
.rel-portfolio__item:hover::after,
.rel-desk__mail:hover::after {
  opacity: 1;
}

.rel-portfolio__item {
  position: relative;
  overflow: hidden;
}

.rel-card > *,
.rel-portfolio__item > * {
  position: relative;
  z-index: 1;
}

/* Form header, errors, counter, footer */
.rel-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-tertiary);
}

.rel-form__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-secondary);
}

.rel-form__step::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rel-accent);
  box-shadow: 0 0 0 4px var(--rel-accent-soft);
}

.rel-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.rel-counter {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-tertiary);
}

.rel-counter.is-short {
  color: var(--rel-accent);
}

.rel-counter.is-near {
  color: var(--destructive);
}

.rel-field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 13px;
  color: var(--destructive);
}

.rel-field-error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--destructive);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.rel-field-error[hidden] {
  display: none;
}

.form-group.is-invalid .form-control {
  border-color: var(--destructive);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.14);
}

.rel-consent-group.is-invalid .rel-consent {
  color: var(--text-primary);
}

.rel-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.rel-form__secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.rel-form__secure svg {
  width: 14px;
  height: 14px;
  color: var(--success);
}

.rel-form__submit {
  position: relative;
}

.rel-form__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: rel-spin 0.7s linear infinite;
}

.rel-form__submit.is-loading .rel-form__spinner {
  display: inline-block;
}

.rel-form__submit.is-loading svg {
  display: none;
}

.rel-form__submit:disabled {
  cursor: progress;
  opacity: 0.85;
}

.rel-form .php-email-form__status .loading {
  display: none !important;
}

/* Success state */
.rel-success {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(12px, 3vw, 28px) 0;
  text-align: center;
  outline: none;
}

.rel-success[hidden],
.rel-form[hidden] {
  display: none;
}

.rel-success:focus,
.rel-success:focus-visible {
  outline: none;
  box-shadow: none;
}

.rel-success__check {
  width: 76px;
  height: 76px;
}

.rel-success__ring {
  fill: var(--rel-accent-soft);
  stroke: var(--rel-accent);
  stroke-width: 2;
  stroke-dasharray: 190;
  stroke-dashoffset: 0;
}

.rel-success__tick {
  fill: none;
  stroke: var(--rel-accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 44;
  stroke-dashoffset: 0;
}

.rel-success.is-shown .rel-success__ring {
  --rel-draw-from: 190;
  animation: rel-draw 0.7s var(--ease-out) backwards;
}

.rel-success.is-shown .rel-success__tick {
  --rel-draw-from: 44;
  animation: rel-draw 0.45s 0.5s var(--ease-out) backwards;
}

@keyframes rel-draw {
  from { stroke-dashoffset: var(--rel-draw-from); }
}

.rel-success h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.rel-success > p {
  max-width: 34em;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.rel-success > p strong {
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.rel-success__ref {
  display: grid;
  gap: 4px;
  padding: 14px 26px;
  border: 1px dashed var(--rel-accent-line);
  border-radius: var(--radius-md);
  background: var(--rel-accent-soft);
}

.rel-success__ref span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.rel-success__ref strong {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--rel-accent);
}

.rel-success__steps {
  display: grid;
  gap: 10px;
  max-width: 30em;
  margin: 6px 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: rel-step;
  text-align: left;
}

.rel-success__steps li {
  position: relative;
  padding-left: 36px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  counter-increment: rel-step;
}

.rel-success__steps li::before {
  content: counter(rel-step);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rel-accent);
  color: var(--bg-primary);
  font-size: 12px;
  font-weight: 700;
}

/* Light theme refinements */
:root:not([data-theme="dark"]) .rel-glass {
  box-shadow: 0 30px 70px -34px rgba(15, 23, 42, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

:root:not([data-theme="dark"]) .rel-net__dot {
  stroke: #ffffff;
}

:root:not([data-theme="dark"]) .rel-page--investor .rel-hero__actions .btn--primary,
:root:not([data-theme="dark"]) .rel-page--investor .rel-form__submit,
:root:not([data-theme="dark"]) .rel-page--investor .rel-subnav__cta {
  color: #ffffff;
}

:root:not([data-theme="dark"]) .rel-success__steps li::before {
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .rel-hero__glow,
  .rel-hero__dot::after,
  .rel-radar__sweep,
  .rel-radar__blip,
  .rel-net__orbit,
  .rel-net__link,
  .rel-net__halo,
  .rel-marquee__track {
    animation: none;
  }
}
