body.branch-gate-open { overflow: hidden; }

.branch-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 32px);
  overflow-y: auto;
  scrollbar-width: none;
  opacity: 0;
  transition: opacity .28s ease;
}

.branch-gate::-webkit-scrollbar { display: none; }
.branch-gate.is-open { opacity: 1; }
.branch-gate[hidden] { display: none; }

.branch-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 18, 17, .58);
  backdrop-filter: blur(6px) saturate(.88);
}

.branch-gate-panel {
  position: relative;
  width: min(1080px, 100%);
  flex: 0 0 auto;
  overflow: visible;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 56px);
  color: var(--oso-gold);
  background:
    radial-gradient(circle at 12% 0%, rgba(61, 73, 41, .42), transparent 42%),
    linear-gradient(145deg, rgba(6, 47, 46, .9), rgba(11, 74, 70, .84));
  border: 1px solid rgba(212, 175, 55, .26);
  border-radius: 30px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(245, 241, 230, .08);
  backdrop-filter: blur(18px) saturate(1.08);
  text-align: center;
}

.branch-gate-panel::before {
  content: '';
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(212, 175, 55, .11);
  border-radius: 23px;
}

.branch-gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
  color: var(--oso-gold);
  text-align: start;
}

.branch-gate-brand img { width: 70px; height: 70px; object-fit: contain; }
.branch-gate-brand span { display: grid; line-height: 1; }
.branch-gate-brand strong { color: var(--oso-gold); font-size: 21px; letter-spacing: .14em; }
.branch-gate-brand small { margin-top: 9px; color: var(--oso-gold); font-size: 10px; letter-spacing: .34em; }
.branch-gate-eyebrow { margin: 0 0 7px; color: var(--oso-gold); font-size: 13px; font-weight: 700; letter-spacing: .19em; }
html[dir="rtl"] .branch-gate-eyebrow { letter-spacing: 0; }

.branch-gate-panel h2 {
  margin: 0;
  color: var(--oso-gold);
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.18;
  font-weight: 600;
}

.branch-gate-panel > p:not(.branch-gate-eyebrow):not(.branch-gate-note) {
  max-width: 720px;
  margin: 12px auto 24px;
  color: var(--oso-ivory);
  font-size: 17px;
  line-height: 1.75;
}

.branch-gate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  text-align: start;
}

.branch-choice-card {
  position: relative;
  width: 100%;
  min-height: 152px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  color: var(--oso-gold);
  background: rgba(245, 241, 230, .09);
  border: 1px solid rgba(212, 175, 55, .22);
  border-radius: 20px;
  cursor: pointer;
  text-align: start;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.branch-choice-card:hover,
.is-suggested .branch-choice-card {
  transform: translateY(-4px);
  background: rgba(245, 241, 230, .14);
  border-color: rgba(212, 175, 55, .72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .2), 0 0 0 1px rgba(212, 175, 55, .13);
}

.branch-choice-card:focus-visible {
  outline: none;
  border-color: rgba(212, 175, 55, .78);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .2), 0 18px 46px rgba(0, 0, 0, .2);
}

.branch-choice-flag { font-size: 40px; line-height: 1; }
.branch-choice-copy { display: grid; gap: 7px; }
.branch-choice-copy small { color: var(--oso-gold); font-size: 14px; font-weight: 600; }
.branch-choice-copy strong { color: var(--oso-gold); font-size: 28px; line-height: 1.2; font-weight: 600; }
.branch-choice-copy em { color: var(--oso-ivory); font-size: 12px; line-height: 1.5; font-style: normal; }
.branch-choice-meta { align-self: stretch; display: flex; flex-direction: column; align-items: end; justify-content: space-between; gap: 14px; }
.branch-choice-meta b { color: var(--oso-gold); font-size: 14px; }
.branch-choice-meta i { color: var(--oso-gold); font-size: 30px; font-style: normal; }
.branch-suggestion { padding: 7px 11px; color: var(--oso-deep-teal); background: var(--oso-gold); border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.branch-gate-note { max-width: 750px; margin: 20px auto 0; color: rgba(245, 241, 230, .78); font-size: 12px; line-height: 1.7; }

@media (max-height: 780px) and (min-width: 761px) {
  .branch-gate-panel { padding: 22px 40px 24px; }
  .branch-gate-brand { margin-bottom: 8px; }
  .branch-gate-brand img { width: 58px; height: 58px; }
  .branch-gate-panel h2 { font-size: clamp(36px, 4vw, 48px); }
  .branch-gate-panel > p:not(.branch-gate-eyebrow):not(.branch-gate-note) { margin: 9px auto 18px; line-height: 1.6; }
  .branch-choice-card { min-height: 132px; padding: 18px 22px; }
  .branch-gate-note { margin-top: 16px; }
}

@media (max-width: 760px) {
  .branch-gate { align-items: flex-start; padding: 12px; }
  .branch-gate-panel { margin-block: auto; padding: 24px 16px 22px; border-radius: 22px; }
  .branch-gate-panel::before { inset: 6px; border-radius: 16px; }
  .branch-gate-brand { margin-bottom: 10px; }
  .branch-gate-brand img { width: 54px; height: 54px; }
  .branch-gate-brand strong { font-size: 17px; }
  .branch-gate-panel h2 { font-size: clamp(32px, 9vw, 40px); }
  .branch-gate-panel > p:not(.branch-gate-eyebrow):not(.branch-gate-note) { margin: 9px auto 18px; font-size: 14px; line-height: 1.65; }
  .branch-gate-grid { grid-template-columns: 1fr; gap: 12px; }
  .branch-choice-card { min-height: 112px; padding: 16px; gap: 13px; border-radius: 16px; }
  .branch-choice-flag { font-size: 34px; }
  .branch-choice-copy small { font-size: 12px; }
  .branch-choice-copy strong { font-size: 24px; }
  .branch-choice-copy em { font-size: 10px; }
  .branch-choice-meta { gap: 9px; }
  .branch-suggestion { font-size: 9px; }
  .branch-gate-note { margin-top: 14px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .branch-gate, .branch-choice-card { transition: none; }
}
