:root {
  --entry-navy: #061a2d;
  --entry-navy-soft: #0c314d;
  --entry-gold: #d6a343;
  --entry-gold-light: #efc568;
  --entry-paper: #f8f4eb;
  --entry-ink: #0b253c;
  --entry-muted: #3e5c70;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--entry-navy); }
body.network-entry {
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: var(--entry-ink);
  background: var(--entry-navy);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }

.entry-backdrop,
.entry-light,
.entry-water,
.entry-network {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.entry-backdrop {
  z-index: 0;
  background: url("./sigvora-entry-dawn.webp") center 58% / cover no-repeat;
  filter: brightness(1.34) saturate(1.06) contrast(.88);
  transform: scale(1.015);
}
.entry-light {
  z-index: 1;
  background: linear-gradient(90deg, rgba(250, 248, 241, .98) 0%, rgba(250, 248, 241, .93) 37%, rgba(248, 247, 239, .61) 62%, rgba(228, 239, 241, .34) 100%);
}
.entry-water {
  z-index: 2;
  top: 46%;
  background: linear-gradient(180deg, rgba(172, 207, 211, .22), rgba(71, 129, 148, .12));
  mix-blend-mode: screen;
}
.entry-network {
  z-index: 2;
  inset: 19vh auto auto 49%;
  width: min(780px, 54vw);
  height: min(580px, 61vh);
  opacity: .12;
  background: url("./sigvora-entry-network.png") center / 100% auto no-repeat;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 69% 58% at 50% 50%, #000 36%, transparent 100%);
  mask-image: radial-gradient(ellipse 69% 58% at 50% 50%, #000 36%, transparent 100%);
}

.entry-header {
  position: relative;
  z-index: 7;
  width: min(1440px, calc(100% - 92px));
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.entry-brand {
  display: flex;
  gap: 15px;
  align-items: center;
  color: var(--entry-ink);
  text-decoration: none;
}
.entry-emblem {
  width: 42px;
  height: 54px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--entry-gold);
  border-bottom: 1px solid var(--entry-gold);
  color: #ad751c;
  font: 500 1.42rem Georgia, serif;
}
.entry-brand-copy { display: grid; gap: 5px; }
.entry-brand-copy strong {
  font: 500 1.35rem Georgia, serif;
  letter-spacing: .23em;
}
.entry-brand-copy small {
  color: #9a691e;
  font-size: .52rem;
  font-weight: 850;
  letter-spacing: .24em;
}
.entry-header-note {
  margin: 0 62px 0 0;
  display: flex;
  gap: 9px;
  align-items: center;
  color: #38596e;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.entry-header-note span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1b8d66;
  box-shadow: 0 0 0 4px rgba(27, 141, 102, .12);
}

.entry-main {
  position: relative;
  z-index: 5;
  width: min(1440px, calc(100% - 92px));
  min-height: calc(100svh - 158px);
  margin: 0 auto;
  padding: 12px 96px 76px 3.8vw;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
}
.entry-hero { max-width: 760px; margin-top: -2vh; }
.entry-eyebrow,
.choice-eyebrow,
.dock-eyebrow {
  margin: 0 0 16px;
  color: #8f6018;
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .22em;
}
.entry-hero h1 {
  margin: 0;
  color: var(--entry-ink);
  font: 500 clamp(3.6rem, 5.2vw, 6rem)/.93 Georgia, "Times New Roman", serif;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.entry-hero h1 em { color: #b87918; font-weight: 500; }
.entry-progress {
  width: fit-content;
  margin: 21px 0 13px;
  padding: 10px 14px;
  color: white;
  background: var(--entry-navy);
  font: 500 1rem Georgia, serif;
}
.entry-lead {
  max-width: 640px;
  margin: 0;
  color: var(--entry-muted);
  font-size: clamp(.84rem, 1vw, 1rem);
  line-height: 1.58;
}
.entry-network-value {
  max-width: 620px;
  margin: 13px 0 0;
  padding-left: 13px;
  color: #5c4c30;
  border-left: 2px solid var(--entry-gold);
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.48;
}
.entry-positioning {
  margin: 12px 0 0;
  color: #647987;
  font-size: .69rem;
  font-weight: 800;
}
.entry-actions { margin-top: 21px; display: flex; gap: 11px; align-items: center; flex-wrap: wrap; }
.entry-primary-action,
.entry-secondary-action {
  min-height: 45px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: .74rem;
  font-weight: 800;
  text-decoration: none;
}
.entry-primary-action { border: 1px solid var(--entry-navy); color: white; background: var(--entry-navy); }
.entry-secondary-action { border: 1px solid transparent; color: var(--entry-ink); background: rgba(255, 255, 255, .24); cursor: pointer; }
.entry-primary-action:hover { background: var(--entry-navy-soft); }
.entry-secondary-action:hover { border-color: rgba(11, 37, 60, .22); }

.entry-dock {
  position: fixed;
  z-index: 20;
  top: 50%;
  right: 0;
  display: grid;
  gap: 3px;
  transform: translateY(-50%);
}
.dock-item { position: relative; min-width: 0; }
.dock-tab,
.entry-dock .sigvora-support-trigger {
  width: 60px;
  height: 91px;
  min-height: 91px;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 163, 67, .7);
  border-right: 0;
  border-radius: 11px 0 0 11px;
  color: white;
  background: rgba(6, 26, 45, .94);
  box-shadow: -10px 12px 30px rgba(4, 28, 44, .18);
  backdrop-filter: blur(15px);
  cursor: pointer;
  transition: width .22s ease, color .22s ease, background .22s ease;
}
.dock-members .dock-tab { color: var(--entry-ink); background: rgba(248, 244, 235, .98); }
.dock-item:is(:hover, .is-open) .dock-tab,
.entry-dock .sigvora-support-widget:is(:hover, :focus-within) .sigvora-support-trigger { width: 68px; }
.dock-item.is-open .dock-tab { color: var(--entry-ink); background: var(--entry-paper); }
.dock-symbol,
.entry-dock .sigvora-support-trigger span:first-child {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--entry-gold);
  border-radius: 50%;
  color: var(--entry-gold-light);
  background: transparent;
  font: 500 .7rem Georgia, serif;
}
.dock-members .dock-symbol,
.dock-item.is-open .dock-symbol { color: #a66f1b; }
.dock-tab-label,
.entry-dock .sigvora-support-trigger .sigvora-support-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-size: .55rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dock-panel,
.entry-dock .sigvora-support-widget--docked .sigvora-support-panel {
  position: fixed;
  z-index: -1;
  top: 50%;
  right: 60px;
  width: min(400px, calc(100vw - 92px));
  max-height: calc(100svh - 32px);
  padding: 31px;
  overflow-y: auto;
  border: 1px solid rgba(214, 163, 67, .6);
  border-radius: 17px 0 0 17px;
  color: var(--entry-ink);
  background: rgba(251, 248, 241, .99);
  box-shadow: -30px 30px 90px rgba(4, 31, 49, .3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(24px, -50%);
  transition: opacity .22s ease, transform .27s ease, visibility .27s;
}
.dock-item:is(:hover, .is-open) .dock-panel {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
}
.dock-panel h2 { margin: 0; font: 500 1.78rem/1.05 Georgia, serif; letter-spacing: -.025em; }
.dock-panel > p:not(.dock-eyebrow, .beta-note, .language-persist) { margin: 15px 0 21px; color: #607589; font-size: .75rem; line-height: 1.58; }
.dock-primary {
  width: 100%;
  min-height: 45px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--entry-navy);
  border-radius: 6px;
  color: white;
  background: var(--entry-navy);
  text-decoration: none;
  font-size: .7rem;
  font-weight: 800;
  cursor: pointer;
}
.dock-primary:hover { background: var(--entry-navy-soft); }

.entry-language-picker {
  position: fixed;
  z-index: 24;
  right: 18px;
  bottom: 18px;
}
.language-picker-trigger {
  width: 48px;
  min-height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.language-picker-trigger:focus-visible { outline: 3px solid rgba(255, 215, 123, .45); outline-offset: 3px; }
.language-picker-current-flag { font-size: 2rem; line-height: 1; filter: drop-shadow(0 3px 5px rgba(4, 28, 44, .28)); }
.language-picker-trigger b,
.language-picker-chevron { display: none; }
.language-picker-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(338px, calc(100vw - 28px));
  max-height: calc(100svh - 92px);
  padding: 22px;
  overflow-y: auto;
  border: 1px solid rgba(214, 163, 67, .64);
  border-radius: 16px;
  color: var(--entry-ink);
  background: rgba(251, 248, 241, .99);
  box-shadow: -18px 22px 70px rgba(4, 31, 49, .3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .2s ease, transform .22s ease, visibility .22s;
}
.entry-language-picker:is(:hover, :focus-within, .is-open) .language-picker-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.language-picker-panel h2 { margin: 0; font: 500 1.48rem/1.08 Georgia, serif; letter-spacing: -.02em; }
.language-picker-panel > p:not(.dock-eyebrow, .language-persist) { margin: 10px 0 16px; color: #607589; font-size: .7rem; line-height: 1.48; }
.entry-language-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.entry-language-grid button {
  min-height: 43px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 7px;
  align-items: center;
  border: 1px solid #d8d0c4;
  border-radius: 5px;
  color: var(--entry-ink);
  background: white;
  text-align: left;
  cursor: pointer;
}
.entry-language-grid button[aria-pressed="true"] { color: white; border-color: var(--entry-navy); background: var(--entry-navy); }
.entry-language-grid strong { font-size: 1.13rem; font-weight: 400; line-height: 1; }
.entry-language-grid b { color: #aa711a; font-size: .55rem; }
.entry-language-grid button[aria-pressed="true"] b { color: var(--entry-gold-light); }
.entry-language-grid span { overflow: hidden; font-size: .65rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.language-persist { margin: 14px 0 0; display: flex; gap: 8px; align-items: center; color: #496678; font-size: .64rem; }
.language-persist span { color: #178760; }

.entry-login-form { margin-top: 21px; display: grid; gap: 8px; }
.entry-login-form label { color: #263b4e; font-size: .62rem; font-weight: 750; }
.entry-login-form input {
  width: 100%;
  min-height: 42px;
  margin-bottom: 4px;
  padding: 9px 11px;
  border: 1px solid #bdc7ce;
  border-radius: 6px;
  color: var(--entry-ink);
  background: white;
}
.entry-login-form input:focus,
.request-fields input:focus,
.request-fields select:focus,
.request-fields textarea:focus { outline: 3px solid rgba(210, 165, 76, .2); border-color: #aa7a28; }
.entry-login-status { min-height: 17px; margin: 0; color: #9b2f2f; font-size: .62rem; }
.entry-login-form .dock-primary:disabled { opacity: .58; cursor: wait; }
.member-options { margin-top: 17px; padding-top: 15px; display: grid; gap: 7px; border-top: 1px solid #d8d5cf; }
.member-options a,
.member-options button {
  width: 100%;
  min-height: 52px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d6d7d4;
  border-radius: 7px;
  color: var(--entry-ink);
  background: white;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.member-options span { display: grid; gap: 3px; }
.member-options strong { font-size: .67rem; }
.member-options small { color: #74808a; font-size: .55rem; }
.member-options b { color: #a77524; }
.beta-note { margin: 12px 0 0; color: #7b827f; text-align: center; font-size: .53rem; }

.entry-dock > .sigvora-support-widget.sigvora-support-widget--docked { position: relative; right: auto; bottom: auto; z-index: 1; font-family: inherit; }
.entry-dock .sigvora-support-trigger span:first-child { color: var(--entry-navy); background: var(--entry-gold); }
.entry-dock .sigvora-support-widget--docked:has(.sigvora-support-trigger[aria-expanded="true"]) .sigvora-support-panel {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.entry-footer {
  position: fixed;
  z-index: 7;
  right: 108px;
  bottom: 0;
  left: 31px;
  min-height: 43px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  color: rgba(255, 255, 255, .82);
  font-size: .54rem;
}
.entry-footer span { margin-right: auto; }
.entry-footer a { color: inherit; text-decoration: none; }
.entry-footer a:hover { color: white; }

.request-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 1px solid rgba(210, 165, 76, .55);
  border-radius: 17px;
  color: var(--entry-ink);
  background: var(--entry-paper);
  box-shadow: 0 35px 100px rgba(0, 0, 0, .58);
}
.request-dialog::backdrop { background: rgba(2, 12, 23, .76); backdrop-filter: blur(6px); }
.request-dialog form { padding: 34px 38px 32px; }
.request-dialog header { display: flex; align-items: flex-start; justify-content: space-between; }
.request-dialog header h2 { margin: 0; font: 500 2rem Georgia, serif; }
.request-dialog header p:last-child { max-width: 570px; margin: 9px 0 20px; color: #6e7b87; font-size: .72rem; line-height: 1.55; }
.dialog-close { width: 34px; height: 34px; border: 1px solid #d0d5d7; border-radius: 50%; color: #536271; background: white; font-size: 1.25rem; cursor: pointer; }
.request-fields { display: grid; gap: 12px; }
.request-fields label { display: grid; gap: 6px; color: var(--entry-ink); font-size: .65rem; font-weight: 750; }
.request-fields input,
.request-fields select,
.request-fields textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #bac4cb; border-radius: 7px; color: var(--entry-ink); background: white; }
.request-fields textarea { min-height: 78px; resize: vertical; }
.request-row { display: grid; grid-template-columns: .43fr 1.57fr; gap: 12px; }
.request-row + .request-row { grid-template-columns: 1fr 1fr; }
.consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 500 !important; line-height: 1.45; }
.consent input { width: 17px; min-height: 17px; margin: 1px 0 0; }
.consent a { color: #8d6424; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.request-status { min-height: 18px; margin: 0; color: #9b2f2f; font-size: .65rem; }
.submit-request { min-height: 46px; padding: 0 15px; border: 0; border-radius: 7px; color: white; background: var(--entry-navy-soft); font-weight: 750; cursor: pointer; }
.submit-request span { float: right; }
.submit-request:disabled { opacity: .55; cursor: wait; }
.request-success { padding: 45px 20px 30px; text-align: center; }
.request-success > span { width: 52px; height: 52px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: white; background: #2b765d; font-size: 1.35rem; }
.request-success h3 { margin: 0; font: 500 1.8rem Georgia, serif; }
.request-success p { color: #697783; font-size: .75rem; line-height: 1.6; }
.request-success button { min-height: 42px; padding: 0 20px; border: 1px solid var(--entry-gold); border-radius: 7px; color: var(--entry-ink); background: #ead39e; font-weight: 750; cursor: pointer; }
.hidden { display: none !important; }

html[dir="rtl"] .entry-hero,
html[dir="rtl"] .dock-panel,
html[dir="rtl"] .language-picker-panel { text-align: right; }
html[dir="rtl"] .entry-network-value { padding-right: 13px; padding-left: 0; border-right: 2px solid var(--entry-gold); border-left: 0; }
html[dir="rtl"] .entry-language-grid button,
html[dir="rtl"] .member-options a,
html[dir="rtl"] .member-options button { text-align: right; }

@media (max-width: 1080px) {
  .entry-main { padding-left: 0; }
  .entry-hero h1 { font-size: clamp(3.25rem, 5.9vw, 5.3rem); }
}

@media (max-width: 820px) {
  body.network-entry { overflow-y: auto; padding-bottom: 70px; }
  .entry-backdrop { background-position: 66% 55%; }
  .entry-light { background: linear-gradient(90deg, rgba(250, 248, 241, .97), rgba(250, 248, 241, .74) 68%, rgba(250, 248, 241, .16)); }
  .entry-header { width: calc(100% - 36px); min-height: 92px; }
  .entry-header-note { display: none; }
  .entry-main {
    width: calc(100% - 36px);
    min-height: auto;
    padding: 38px 0 64px;
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
  }
  .entry-hero { max-width: none; margin: 0; }
  .entry-hero h1 { font-size: clamp(3.05rem, 12vw, 5.2rem); }
  .entry-network { top: 24vh; left: 35%; width: 120vw; }
  .entry-dock {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    transform: none;
  }
  .dock-tab,
  .dock-item:is(:hover, .is-open) .dock-tab,
  .entry-dock .sigvora-support-trigger,
  .entry-dock .sigvora-support-widget:is(:hover, :focus-within) .sigvora-support-trigger {
    width: 100%;
    height: 64px;
    min-height: 64px;
    padding: 5px 3px;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(214, 163, 67, .62);
    border-radius: 0;
  }
  .dock-symbol,
  .entry-dock .sigvora-support-trigger span:first-child { width: 25px; height: 25px; }
  .dock-tab-label,
  .entry-dock .sigvora-support-trigger .sigvora-support-label { writing-mode: horizontal-tb; transform: none; font-size: .47rem; line-height: 1; letter-spacing: .02em; }
  .entry-language-picker { right: 12px; bottom: 76px; }
  .language-picker-panel { max-height: calc(100svh - 150px); }
  .entry-dock > .sigvora-support-widget.sigvora-support-widget--docked { width: 100%; min-width: 0; }
  .dock-panel,
  .entry-dock .sigvora-support-widget--docked .sigvora-support-panel {
    top: auto;
    right: 12px;
    bottom: 76px;
    left: 12px;
    width: auto;
    max-height: calc(100svh - 100px);
    border-radius: 16px;
    transform: translateY(18px);
  }
  .dock-item:is(:hover, .is-open) .dock-panel,
  .entry-dock .sigvora-support-widget--docked:has(.sigvora-support-trigger[aria-expanded="true"]) .sigvora-support-panel { transform: translateY(0); }
  .entry-footer {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: calc(100% - 36px);
    margin: 0 auto;
    padding-bottom: 16px;
    color: rgba(255, 255, 255, .86);
  }
}

@media (max-width: 560px) {
  .entry-brand { gap: 11px; }
  .entry-brand-copy strong { font-size: 1.1rem; }
  .entry-brand-copy small { font-size: .43rem; }
  .entry-emblem { width: 38px; height: 47px; }
  .entry-main { padding-top: 28px; }
  .entry-eyebrow { max-width: 280px; line-height: 1.45; }
  .entry-hero h1 { font-size: clamp(2.85rem, 14vw, 4.15rem); line-height: .95; }
  .entry-progress { max-width: 100%; font-size: .92rem; }
  .entry-lead { font-size: .85rem; }
  .entry-actions { align-items: stretch; }
  .entry-primary-action, .entry-secondary-action { flex: 1 1 150px; }
  .dock-panel { padding: 25px 20px; }
  .dock-panel h2 { font-size: 1.68rem; }
  .entry-language-grid { gap: 6px; }
  .entry-language-grid button { min-height: 41px; padding: 7px 8px; }
  .entry-language-grid span { font-size: .61rem; }
  .request-dialog form { padding: 27px 20px 24px; }
  .request-row, .request-row + .request-row { grid-template-columns: 1fr; }
  .entry-footer span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
