/* ---------------------------------------------------------------------------
   Home page, option B (home-b.html): the same brand, but it moves and responds.
   Everything here is prefixed hb- so it cannot touch another page.
   Motion is switched off for anyone who has asked their device for less of it.
   --------------------------------------------------------------------------- */
.hb { --hb-wide: 1080px; overflow-x: clip; }

/* ---------- hero ---------- */
.hb-hero { position: relative; isolation: isolate; overflow: hidden; }
.hb-field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }
.hb-hero-inner { max-width: var(--hb-wide); margin: 0 auto; padding: clamp(48px, 10vh, 110px) var(--pad) clamp(28px, 6vh, 60px); }
.hb-nowrap { white-space: nowrap; }
.hb-eyebrow { margin: 0 0 clamp(18px, 3.5vh, 32px); font-size: 13px; letter-spacing: 0.08em; text-transform: lowercase; color: var(--accent); }
.hb-title { margin: 0; font-size: clamp(44px, 9vw, 108px); line-height: 0.98; font-weight: 500; letter-spacing: -0.04em; color: var(--ink); }
.hb-rot { display: block; position: relative; height: 1.04em; overflow: hidden; color: var(--accent); }
.hb-rot-word { position: absolute; left: 0; top: 0; white-space: nowrap; transform: translateY(105%); opacity: 0; transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease; }
.hb-rot-word.is-in { transform: none; opacity: 1; }
.hb-rot-word.is-out { transform: translateY(-105%); opacity: 0; }
.hb-lede { margin: clamp(22px, 4vh, 36px) 0 0; max-width: 640px; font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: #4a4a4a; }
.hb-hint { margin: clamp(20px, 3vh, 28px) 0 0; font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.hb-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: hb-pulse 1.8s ease-in-out infinite; }
@keyframes hb-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: 0.35; } }

.hb-cta-row { margin-top: clamp(22px, 4vh, 34px); display: flex; flex-wrap: wrap; gap: 12px; }
.hb-cta { display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-size: 16px; text-transform: lowercase;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease, background 160ms ease, color 160ms ease; }
.hb-cta:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 24px rgba(49, 59, 149, 0.28); }
.hb-cta:active { transform: scale(0.97); }
.hb-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.hb-cta:hover, .hb-cta:focus-visible, .hb-cta:active, .hb-cta:visited { color: #fff; }
.hb-cta--ghost, .hb-cta--ghost:visited { background: transparent; color: var(--accent); }
.hb-cta--ghost:hover, .hb-cta--ghost:focus-visible, .hb-cta--ghost:active { background: rgba(49, 59, 149, 0.08); color: var(--accent); box-shadow: none; }

/* ---------- the three folders ---------- */
.hb-desk { max-width: var(--hb-wide); margin: 0 auto; padding: 0 var(--pad) clamp(40px, 8vh, 80px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2.4vw, 28px); perspective: 1100px; }
.hb-folder { position: relative; display: block; padding: clamp(18px, 2.6vw, 28px); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); overflow: hidden;
  transform-style: preserve-3d; transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease, border-color 200ms ease; will-change: transform; }
.hb-folder::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(49, 59, 149, 0.13), transparent 70%); opacity: 0; transition: opacity 240ms ease; }
.hb-folder:hover, .hb-folder:focus-visible { border-color: var(--accent); box-shadow: 0 18px 40px rgba(31, 37, 104, 0.14); }
.hb-folder:hover::before, .hb-folder:focus-visible::before { opacity: 1; }
.hb-folder:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.hb-folder > * { position: relative; z-index: 1; }
.hb-folder-art { display: block; width: clamp(64px, 8vw, 96px); margin-bottom: clamp(14px, 3vh, 26px); transform: translateZ(40px); }
.hb-folder-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.hb-folder-lid { transform-box: fill-box; transform-origin: 8% 100%; transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.hb-folder:hover .hb-folder-lid, .hb-folder:focus-visible .hb-folder-lid { transform: rotate(-9deg) translateY(-1px); }
.hb-folder-num { display: block; margin-bottom: 6px; font-size: 13px; color: var(--ink-soft); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; transform: translateZ(20px); }
.hb-folder-title { display: block; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.05; font-weight: 500; letter-spacing: -0.03em; transform: translateZ(30px); }
.hb-folder-text { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); transform: translateZ(10px); }
.hb-folder-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--accent); }
.hb-folder-go span { display: inline-block; transition: transform 240ms ease; }
.hb-folder:hover .hb-folder-go span { transform: translateX(6px); }
.hb-bob { animation: hb-bob 5s ease-in-out infinite; }
.hb-desk .hb-folder:nth-child(2) .hb-bob { animation-delay: -1.6s; }
.hb-desk .hb-folder:nth-child(3) .hb-bob { animation-delay: -3.2s; }
@keyframes hb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- where would you start ---------- */
.hb-start { max-width: var(--hb-wide); margin: 0 auto; padding: clamp(24px, 6vh, 64px) var(--pad); border-top: 1px solid var(--line); }
.hb-start-title { margin: 0 0 20px; font-size: clamp(26px, 4vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
.hb-chips { display: flex; flex-wrap: wrap; border-radius: 14px; overflow: hidden; padding: 0 1px 1px 0; }
.hb-chip { flex: 1 1 auto; margin: 0 -1px -1px 0; padding: 14px 22px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); font-size: 15px; color: var(--ink); text-align: center; cursor: pointer; transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.hb-chip:hover, .hb-chip:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; position: relative; z-index: 1; }
.hb-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.hb-chip:active { background: #1f2568; border-color: #1f2568; color: #fff; }
.hb-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; position: relative; z-index: 1; }
.hb-answer { margin-top: 24px; min-height: 150px; padding: clamp(20px, 3vw, 32px); border-radius: 16px; background: rgba(49, 59, 149, 0.06); display: grid; grid-template-columns: 1fr auto; gap: 16px 28px; align-items: center; }
.hb-answer-text { margin: 0; max-width: 560px; font-size: clamp(17px, 2.2vw, 22px); line-height: 1.45; letter-spacing: -0.01em; }
.hb-answer-text small { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-soft); letter-spacing: 0; }
.hb-answer-go { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; white-space: nowrap; transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease; }
.hb-answer-go:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 24px rgba(49, 59, 149, 0.28); }
.hb-answer.is-swapping .hb-answer-text, .hb-answer.is-swapping .hb-answer-go { opacity: 0; transform: translateY(8px); }
.hb-answer-text, .hb-answer-go { transition-property: opacity, transform, box-shadow; transition-duration: 260ms; }

/* ---------- topics ticker ---------- */
.hb-ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin-top: clamp(24px, 6vh, 56px); }
.hb-ticker-track { display: flex; width: max-content; animation: hb-scroll 38s linear infinite; }
.hb-ticker:hover .hb-ticker-track { animation-play-state: paused; }
.hb-ticker-item { flex: 0 0 auto; padding: 0 22px; font-size: clamp(22px, 3.4vw, 38px); font-weight: 500; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.hb-ticker-item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--accent); }
.hb-ticker-dot { flex: 0 0 auto; align-self: center; width: 8px; height: 8px; background: var(--accent); }
@keyframes hb-scroll { to { transform: translateX(-50%); } }

/* ---------- the indigo band: words light up as you scroll ---------- */
.hb-band { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 4px) 0 0 / 100% 100%, linear-gradient(135deg, #313b95 0%, #1f2568 100%); color: #fff; }
.hb-band-inner { max-width: var(--hb-wide); margin: 0 auto; padding: clamp(64px, 14vh, 140px) var(--pad); }
.hb-band-kicker { margin: 0 0 20px; font-size: 13px; letter-spacing: 0.08em; text-transform: lowercase; color: #b9bff0; }
.hb-band-title { margin: 0; max-width: 820px; font-size: clamp(32px, 6vw, 68px); line-height: 1.06; font-weight: 500; letter-spacing: -0.035em; }
.hb-word { display: inline-block; opacity: 0.2; transition: opacity 260ms ease; margin-right: 0.22em; }
.hb-word.is-lit { opacity: 1; }
.hb-band-text { margin: 28px 0 0; max-width: 520px; font-size: 16px; line-height: 1.6; color: #d6d9f2; }
.hb-band-links { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px 32px; }
.hb-band-links a { font-size: 15px; text-transform: lowercase; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 3px; transition: border-color 160ms ease, transform 200ms ease; }
.hb-band-links a:hover { border-color: #fff; transform: translateX(4px); }
.hb-band-links a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ---------- things appear as you scroll to them ---------- */
.hb-reveal { opacity: 0; transform: translateY(26px); transition: opacity 640ms ease, transform 640ms cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--d, 0ms); }
.hb-reveal.is-seen { opacity: 1; transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .hb-hero-inner { padding-top: 36px; padding-bottom: 20px; }
  .hb-hint { display: none; }
  .hb-cta-row { margin-top: 20px; }
  .hb-cta { flex: 1 1 auto; padding: 14px 20px; }
  /* the three folder cards are for bigger screens only */
  .hb-desk { display: none; }
  .hb-start { padding-top: 20px; padding-bottom: 20px; }
  .hb-answer { grid-template-columns: 1fr; min-height: 0; margin-top: 16px; padding: 18px; }
  .hb-ticker { margin-top: 12px; padding: 12px 0; }
  .hb-band-inner { padding-top: 48px; padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-bob, .hb-ticker-track, .hb-hint::before { animation: none; }
  .hb-rot-word, .hb-folder, .hb-folder-lid, .hb-reveal, .hb-word, .hb-chip, .hb-answer-text, .hb-answer-go { transition: none; }
  .hb-reveal { opacity: 1; transform: none; }
  .hb-word { opacity: 1; }
}
