/* Beyond the Horizon (30 Oct): optional tests after the Horizon offer. Three options on the same copy, html[data-bh]:
   a  Index  Void; headline left, the three tests as ruled rows on the right.
   b  Cards  Starlight; three Void cards with gold icons.
   c  Tabs   Void; one test at a time in a glowing panel, picked by tabs.
   Icons use the "Yoda Horizon Icons" subset (horizon-concepts.css), in the gold gradient. Gold stays on Void. */

.bh { position: relative; z-index: 6; padding: clamp(96px, 11vw, 160px) var(--m); }
.bh-wrap { max-width: 1180px; margin: 0 auto; }
.bh h2, .bh h3, .bh p, .bh ol, .bh ul { margin: 0; }
.bh ol, .bh ul { list-style: none; padding: 0; }
.bh-h:focus { outline: none; }
.bh-ic { display: inline-block; width: 1em; overflow: hidden; flex: none; font: 300 24px/1 "Yoda Horizon Icons"; letter-spacing: normal; white-space: nowrap; direction: ltr;
  font-feature-settings: "liga"; -webkit-font-feature-settings: "liga"; -webkit-font-smoothing: antialiased;
  background: linear-gradient(135deg, var(--star) 0%, #e8d7be 35%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bh-tabs { display: none; }
.bh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px !important; }
.bh-tags li { padding: 8px 14px; border: 1px solid rgba(231, 192, 137, .32); border-radius: 999px; font: 400 13px/1.2 var(--f-text); color: rgba(233, 228, 218, .88); }

html.js .bh [data-bh] { opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * 90ms), transform 1.1s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * 90ms); }
html.js .bh [data-bh].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .bh [data-bh] { opacity: 1; transform: none; transition: none; } }

/* ---------- a: Index ---------- */
html[data-bh="a"] .bh { background: var(--void); color: var(--star); }
html[data-bh="a"] .bh-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
html[data-bh="a"] .bh-head { position: sticky; top: 140px; }
html[data-bh="a"] .bh-h { font: 300 clamp(48px, 6vw, 88px)/.98 var(--f-display); letter-spacing: -.045em; padding-bottom: .08em;
  background: linear-gradient(115deg, var(--star) 12%, #e8d7be 58%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-bh="a"] .bh-intro { max-width: 24em; margin-top: 24px; font: 400 18px/1.6 var(--f-text); color: rgba(233, 228, 218, .68); }
html[data-bh="a"] .bh-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; padding: 36px 0; border-top: 1px solid rgba(233, 228, 218, .14); }
html[data-bh="a"] .bh-item:last-child { border-bottom: 1px solid rgba(233, 228, 218, .14); }
html[data-bh="a"] .bh-ic-lg { font-size: 30px; margin-top: 4px; }
html[data-bh="a"] .bh-t { font: 300 clamp(28px, 2.6vw, 38px)/1.1 var(--f-display); letter-spacing: -.03em; }
html[data-bh="a"] .bh-d { margin-top: 12px !important; max-width: 32em; font: 400 16px/1.6 var(--f-text); color: rgba(233, 228, 218, .66); }

/* ---------- b: Cards ---------- */
html[data-bh="b"] .bh { background: var(--star); color: var(--void); }
html[data-bh="b"] .bh-head { max-width: 680px; margin: 0 auto; text-align: center; }
html[data-bh="b"] .bh-h { font: 300 clamp(44px, 5.6vw, 84px)/.98 var(--f-display); letter-spacing: -.045em; }
html[data-bh="b"] .bh-intro { margin-top: 20px; font: 400 18px/1.6 var(--f-text); color: rgba(14, 14, 15, .62); }
html[data-bh="b"] .bh-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
html[data-bh="b"] .bh-item { display: flex; flex-direction: column; min-height: 360px; padding: 36px 32px; border-radius: 28px; color: var(--star);
  background: radial-gradient(120% 70% at 0% 0%, rgba(231, 192, 137, .12), rgba(231, 192, 137, 0) 60%), var(--void); }
html[data-bh="b"] .bh-ic-lg { font-size: 44px; }
html[data-bh="b"] .bh-body { margin-top: auto; padding-top: 48px; }
html[data-bh="b"] .bh-t { font: 300 clamp(26px, 2.2vw, 32px)/1.1 var(--f-display); letter-spacing: -.03em; }
html[data-bh="b"] .bh-d { margin-top: 12px !important; font: 400 15px/1.6 var(--f-text); color: rgba(233, 228, 218, .66); }

/* ---------- c: Tabs ---------- */
html[data-bh="c"] .bh { background: var(--void); color: var(--star); }
html[data-bh="c"] .bh-head { max-width: 680px; margin: 0 auto; text-align: center; }
html[data-bh="c"] .bh-h { font: 300 clamp(44px, 5.6vw, 84px)/.98 var(--f-display); letter-spacing: -.045em; padding-bottom: .08em;
  background: linear-gradient(115deg, var(--star) 12%, #e8d7be 58%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-bh="c"] .bh-intro { margin-top: 20px; font: 400 18px/1.6 var(--f-text); color: rgba(233, 228, 218, .66); }
html.js[data-bh="c"] .bh-tabs { display: flex; justify-content: center; gap: 8px; margin-top: clamp(40px, 5vw, 56px); }
html[data-bh="c"] .bh-tab { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 16px; border: 1px solid rgba(233, 228, 218, .16); border-radius: 999px;
  background: transparent; color: rgba(233, 228, 218, .7); font: 400 15px/1 var(--f-text); cursor: pointer; white-space: nowrap; transition: background .3s ease, border-color .3s ease, color .3s ease; }
html[data-bh="c"] .bh-tab .bh-ic { font-size: 20px; }
html[data-bh="c"] .bh-tab:hover { color: var(--star); border-color: rgba(233, 228, 218, .32); }
html[data-bh="c"] .bh-tab[aria-selected="true"] { color: var(--star); border-color: rgba(231, 192, 137, .55); background: rgba(233, 228, 218, .06); }
html[data-bh="c"] .bh-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
html[data-bh="c"] .bh-list { max-width: 900px; margin: 24px auto 0; }
html[data-bh="c"] .bh-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 48px; align-items: center; padding: clamp(40px, 5vw, 64px); border-radius: 32px;
  background: radial-gradient(90% 120% at 0% 50%, rgba(231, 192, 137, .13), rgba(231, 192, 137, 0) 60%), rgba(233, 228, 218, .035); }
html[data-bh="c"] .bh-item + .bh-item { margin-top: 16px; }
html.js[data-bh="c"] .bh-item:not(.is-active) { display: none; }
html.js[data-bh="c"] .bh-item.is-active { animation: bh-in .6s cubic-bezier(.22, 1, .36, 1); }
@keyframes bh-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
html[data-bh="c"] .bh-ic-lg { justify-self: center; font-size: 128px; }
html[data-bh="c"] .bh-t { font: 300 clamp(32px, 3vw, 44px)/1.08 var(--f-display); letter-spacing: -.035em; }
html[data-bh="c"] .bh-d { margin-top: 14px !important; max-width: 30em; font: 400 17px/1.6 var(--f-text); color: rgba(233, 228, 218, .7); }

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  html[data-bh="a"] .bh-wrap { grid-template-columns: 1fr; }
  html[data-bh="a"] .bh-head { position: static; }
  html[data-bh="b"] .bh-list { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  html[data-bh="b"] .bh-item { min-height: 0; }
  html[data-bh="b"] .bh-body { padding-top: 32px; }
}

/* ---------- phone ---------- */
@media (max-width: 759px) {
  .bh { padding: 88px 16px 96px; }
  html[data-bh="a"] .bh-item { grid-template-columns: 44px minmax(0, 1fr); padding: 28px 0; }
  html[data-bh="a"] .bh-ic-lg { font-size: 26px; }
  html[data-bh="b"] .bh-item { padding: 28px 24px; border-radius: 24px; }
  html.js[data-bh="c"] .bh-tabs { justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding: 2px 16px; scrollbar-width: none; }
  html.js[data-bh="c"] .bh-tabs::-webkit-scrollbar { display: none; }
  html[data-bh="c"] .bh-item { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; border-radius: 24px; }
  html[data-bh="c"] .bh-ic-lg { justify-self: start; font-size: 72px; }
}
.bh-intro { text-wrap: balance; }
