/* Obin Academy Campuses home page: deep ink for the promise, light sections to read, lime only on the action.
   Serif carries the voice, bold sans carries the facts. Everything is scoped under .hx. */
.hx {
  --hx-deep: #070b24; --hx-deep-2: #0e1540; --hx-deep-3: #141d55; --hx-on: #f4f5fb; --hx-on-2: rgba(244,245,251,.72); --hx-line-d: rgba(244,245,251,.12);
  --hx-paper: #f5f6f9; --hx-surface: #fff; --hx-ink: #0d1024; --hx-ink-2: #3a3e55; --hx-muted: #6b6f85; --hx-line: #e3e5ee;
  --hx-lime: #cdfb5e; --hx-lime-ink: #0a0d1c; --hx-brand: #3b33ff; --hx-bad: #c0362c;
  --hx-serif: "Newsreader", Georgia, "Times New Roman", serif;
  background: var(--hx-deep); color: var(--hx-on); font-size: 16px; line-height: 1.6;
}
.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }
.hx h1, .hx h2, .hx h3, .hx p { margin: 0; }
.hx a { color: inherit; text-decoration: none; }
.hx :focus-visible { outline: 2px solid var(--hx-lime); outline-offset: 3px; border-radius: 6px; }
.hx-wrap { max-width: 1180px; margin: 0 auto; padding-inline: 28px; }
@media (max-width: 600px) { .hx-wrap { padding-inline: 18px; } }
.hx-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--hx-lime); }
.hx-eyebrow.dark { color: var(--hx-brand); }
.hx-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 12px; background: var(--hx-lime); color: var(--hx-lime-ink) !important; font-weight: 800; font-size: 16px; border: 0; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(205,251,94,.55); transition: transform .15s ease, box-shadow .15s ease; }
.hx-cta:hover { translate: 0 -1px; box-shadow: 0 14px 34px -10px rgba(205,251,94,.7); }
.hx-cta svg { width: 18px; height: 18px; }
.hx-ghost { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 24px; border-radius: 12px; border: 1px solid var(--hx-line-d); color: var(--hx-on) !important; font-weight: 600; }

/* hero */
.hx-hero { position: relative; overflow: hidden; }
.hx-hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 760px; height: 760px; background: radial-gradient(closest-side, rgba(59,51,255,.45), transparent 70%); pointer-events: none; }
.hx-hero .hx-wrap { position: relative; padding-block: 88px 72px; text-align: center; }
.hx-hero h1 { font-family: var(--hx-serif); font-weight: 400; font-size: clamp(46px, 8vw, 104px); line-height: .95; letter-spacing: -.03em; margin-top: 22px; color: var(--hx-on); }
.hx-hero h1 em { font-style: italic; color: var(--hx-lime); }
.hx-hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--hx-on-2); max-width: 640px; margin: 28px auto 0; }
.hx-hero .acts { display: flex; gap: 12px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.hx-trust { display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap; margin-top: 30px; font-size: 13.5px; color: var(--hx-on-2); }
.hx-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hx-trust svg { width: 16px; height: 16px; color: var(--hx-lime); }
.hx-marquee { margin-top: 60px; border-top: 1px solid var(--hx-line-d); border-bottom: 1px solid var(--hx-line-d); overflow: hidden; }
.hx-marquee div { display: flex; gap: 56px; padding: 18px 0; white-space: nowrap; width: max-content; animation: hxslide 40s linear infinite; font-family: var(--hx-serif); font-size: 22px; color: var(--hx-on-2); }
.hx-marquee b { color: var(--hx-lime); font-weight: 400; }
@keyframes hxslide { to { transform: translateX(-50%); } }
.hx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hx-stats div { padding: 32px 24px; text-align: center; border-right: 1px solid var(--hx-line-d); }
.hx-stats div:last-child { border-right: 0; }
.hx-stats b { display: block; font-family: var(--hx-serif); font-weight: 400; font-size: 48px; line-height: 1; }
.hx-stats span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--hx-on-2); }
@media (max-width: 760px) { .hx-stats { grid-template-columns: 1fr 1fr; } .hx-stats div:nth-child(2) { border-right: 0; } .hx-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--hx-line-d); } }

/* sections */
.hx-light { background: var(--hx-paper); color: var(--hx-ink); }
.hx-deep { background: var(--hx-deep); color: var(--hx-on); }
.hx-sec { padding-block: 104px; }
.hx-sec.flush { padding-top: 0; }
.hx-head { max-width: 760px; }
.hx-head.c { margin-inline: auto; text-align: center; }
.hx-head h2 { font-family: var(--hx-serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.025em; margin-top: 14px; }
.hx-head h2 em { font-style: italic; color: var(--hx-brand); }
.hx-deep .hx-head h2 em { color: var(--hx-lime); }
.hx-head p { font-size: 18px; color: var(--hx-muted); margin-top: 16px; }
.hx-deep .hx-head p { color: var(--hx-on-2); }
@media (max-width: 700px) { .hx-sec { padding-block: 72px; } }

.hx-you { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.hx-you div { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: 16px; font-size: 16.5px; color: var(--hx-ink-2); }
.hx-you svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--hx-brand); margin-top: 2px; }
.hx-you-close { margin-top: 64px; font-family: var(--hx-serif); font-size: 26px; line-height: 1.3; max-width: 760px; }
.hx-you-close em { color: var(--hx-brand); }
@media (max-width: 760px) { .hx-you { grid-template-columns: 1fr; } }

.hx-vs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 52px; border-radius: 22px; overflow: hidden; border: 1px solid var(--hx-line); }
.hx-vs > div { padding: 36px; }
.hx-vs .old { background: var(--hx-surface); }
.hx-vs .new { background: var(--hx-deep); color: var(--hx-on); }
.hx-vs h3 { font-family: var(--hx-serif); font-weight: 400; font-size: 30px; }
.hx-vs .old h3 { color: var(--hx-muted); }
.hx-vs .new h3 em { font-style: italic; color: var(--hx-lime); }
.hx-vs ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.hx-vs li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 16px; }
.hx-vs .old li { color: var(--hx-muted); }
.hx-vs li svg { width: 20px; height: 20px; margin-top: 3px; }
.hx-vs .old li svg { color: var(--hx-bad); }
.hx-vs .new li svg { color: var(--hx-lime); }
@media (max-width: 760px) { .hx-vs { grid-template-columns: 1fr; } .hx-vs > div { padding: 28px 24px; } }

.hx-cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.hx-cc { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 260px; padding: 28px; border-radius: 20px; background: linear-gradient(160deg, var(--hx-deep-3), var(--hx-deep-2)); border: 1px solid var(--hx-line-d); overflow: hidden; transition: border-color .3s ease, translate .45s cubic-bezier(.16,.84,.3,1), box-shadow .45s ease; }
a.hx-cc:hover { border-color: rgba(205,251,94,.5); translate: 0 -4px; }
.hx-cc::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid var(--hx-line-d); pointer-events: none; }
.hx-cc .ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(205,251,94,.12); color: var(--hx-lime); display: grid; place-items: center; }
.hx-cc .ic svg { width: 24px; height: 24px; }
.hx-cc h3 { font-family: var(--hx-serif); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--hx-on); }
.hx-cc p { font-size: 15px; color: var(--hx-on-2); }
.hx-cc .ft { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--hx-line-d); font-size: 14px; }
.hx-cc .ft b { font-weight: 700; }
.hx-cc .ft span { color: var(--hx-lime); font-weight: 700; white-space: nowrap; }
.hx-cc .ft span.soon { color: var(--hx-on-2); font-weight: 600; }
.hx-cc.wide { grid-column: span 2; }
.hx-cc.feature { background: linear-gradient(140deg, #2a22d6, var(--hx-deep-2) 70%); }
.hx-cc.feature h3 { font-size: 38px; }
@media (max-width: 960px) { .hx-cgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hx-cgrid { grid-template-columns: 1fr; } .hx-cc.wide { grid-column: auto; } }

.hx-inside { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 52px; border-top: 1px solid var(--hx-line); border-left: 1px solid var(--hx-line); }
.hx-inside div { padding: 34px 30px; border-right: 1px solid var(--hx-line); border-bottom: 1px solid var(--hx-line); background: var(--hx-surface); }
.hx-inside svg { width: 28px; height: 28px; color: var(--hx-brand); }
.hx-inside h3 { font-size: 19px; font-weight: 700; margin-top: 18px; letter-spacing: -.01em; }
.hx-inside p { color: var(--hx-muted); margin-top: 8px; font-size: 15px; }
@media (max-width: 860px) { .hx-inside { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hx-inside { grid-template-columns: 1fr; } }

.hx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 52px; }
.hx-steps div { padding-top: 26px; border-top: 2px solid var(--hx-ink); }
.hx-steps b { font-family: var(--hx-serif); font-size: 56px; font-weight: 400; line-height: 1; color: var(--hx-brand); }
.hx-steps h3 { font-size: 21px; font-weight: 700; margin-top: 10px; }
.hx-steps p { color: var(--hx-muted); margin-top: 8px; }
@media (max-width: 760px) { .hx-steps { grid-template-columns: 1fr; } }

.hx-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin: 52px auto 0; }
.hx-plan { padding: 36px; border-radius: 22px; background: var(--hx-deep-2); border: 1px solid var(--hx-line-d); display: flex; flex-direction: column; }
.hx-plan .nm { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; color: var(--hx-on-2); }
.hx-plan .tag { font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 99px; background: var(--hx-lime); color: var(--hx-lime-ink); }
.hx-plan .amt { font-family: var(--hx-serif); font-size: 52px; line-height: 1; margin-top: 18px; letter-spacing: -.02em; }
.hx-plan .amt small { font-family: inherit; font-size: 16px; color: var(--hx-on-2); letter-spacing: 0; }
.hx-plan .eq { color: var(--hx-on-2); font-size: 14px; margin-top: 8px; }
.hx-plan ul { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 12px; font-size: 15.5px; }
.hx-plan li { display: flex; gap: 10px; }
.hx-plan li svg { width: 18px; height: 18px; color: var(--hx-lime); flex-shrink: 0; margin-top: 3px; }
.hx-plan .hx-cta, .hx-plan .hx-ghost { margin-top: auto; width: 100%; }
.hx-plan.best { background: linear-gradient(160deg, #2a22d6, var(--hx-deep-2) 75%); border-color: rgba(205,251,94,.5); }
.hx-price-note { text-align: center; color: var(--hx-on-2); font-size: 14px; margin-top: 22px; }
@media (max-width: 760px) { .hx-plans { grid-template-columns: 1fr; } .hx-plan { padding: 28px 24px; } .hx-plan .amt { font-size: 42px; } }

.hx-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.hx-story { padding: 30px; border-radius: 20px; background: var(--hx-surface); border: 1px solid var(--hx-line); display: flex; flex-direction: column; gap: 18px; }
.hx-story q { font-family: var(--hx-serif); font-size: 21px; line-height: 1.4; }
.hx-story .who { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.hx-story .who i { width: 42px; height: 42px; border-radius: 50%; background: var(--hx-deep); color: var(--hx-lime); display: grid; place-items: center; font-style: normal; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.hx-story .who i img { width: 100%; height: 100%; object-fit: cover; }
.hx-story .who b { display: block; font-size: 14.5px; }
.hx-story .who small { color: var(--hx-muted); font-size: 13px; }
@media (max-width: 860px) { .hx-proof { grid-template-columns: 1fr; } }

.hx-faq { max-width: 820px; margin: 48px auto 0; border-top: 1px solid var(--hx-line); }
.hx-faq details { border-bottom: 1px solid var(--hx-line); }
.hx-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 24px 0; font-size: 18px; font-weight: 600; }
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--hx-brand); transition: transform .2s ease; }
.hx-faq details[open] summary::after { transform: rotate(45deg); }
.hx-faq p { padding: 0 0 24px; color: var(--hx-ink-2); max-width: 680px; }

.hx-final { text-align: center; padding-block: 120px; position: relative; overflow: hidden; }
.hx-final::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(59,51,255,.4), transparent 70%); pointer-events: none; }
.hx-final .hx-wrap { position: relative; }
.hx-final h2 { font-family: var(--hx-serif); font-weight: 400; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -.03em; }
.hx-final h2 em { color: var(--hx-lime); }
.hx-final p { color: var(--hx-on-2); font-size: 18px; max-width: 560px; margin: 22px auto 0; }
.hx-final .hx-cta { margin-top: 36px; }
.hx-mbar { display: none; }
@media (max-width: 700px) {
  .hx-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(7,11,36,.95); border-top: 1px solid var(--hx-line-d); }
  .hx-mbar .hx-cta { width: 100%; height: 52px; }
  .hx { padding-bottom: 78px; }
}
@media (prefers-reduced-motion: reduce) { .hx-marquee div { animation: none; } .hx-cta, .hx-cc { transition: none; } }

/* Campus photos on the cards */
.hx-cc { padding: 0; gap: 0; }
.hx-cc .body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 26px; }
.hx-cc .pic { position: relative; display: block; height: 210px; overflow: hidden; }
.hx-cc .pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hx-cc .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,11,36,0) 40%, rgba(14,21,64,.92) 100%); }
.hx-cc .pic .ic { position: absolute; left: 22px; bottom: 16px; z-index: 1; background: rgba(7,11,36,.62); backdrop-filter: blur(6px); }
a.hx-cc:hover .pic img { transform: scale(1.05); }
.hx-cc.wide .pic { height: 260px; }
.hx-cc.has-pic::after { display: none; }
@media (max-width: 600px) { .hx-cc .pic, .hx-cc.wide .pic { height: 200px; } .hx-cc .body { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { .hx-cc .pic img { transition: none; } }

/* ================= Motion: "the year in motion" =================
   Every effect means something on this page: a year that progresses as you read, a headline that comes
   into focus, numbers that roll like a counter, lines that light up when they reach you, photos that
   open like a shutter, icons that draw themselves. Scroll-linked parts use the browser's own scroll
   timelines (smooth, off the main thread); where those aren't supported the page simply stays still. */

/* the year line: fills across the top as you read, with a month counter */
.hx-yearline { position: fixed; left: 0; right: 0; top: 0; z-index: 9999; height: 3px; pointer-events: none; }
.hx-yearline i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #8fd61a, var(--hx-lime)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(205,251,94,.6); }
.hx-month { position: fixed; right: 18px; top: 12px; z-index: 9999; pointer-events: none; padding: 5px 11px; border-radius: 99px; background: rgba(7,11,36,.82); border: 1px solid var(--hx-line-d); color: var(--hx-on); font: 600 12px/1 "Geist", system-ui, sans-serif; letter-spacing: .06em; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease; }
.hx-month b { color: var(--hx-lime); }
.hx-month.on { opacity: 1; transform: none; }
@media (max-width: 760px) { .hx-month { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* headline focus pull: each word arrives blurred and wide, then snaps sharp */
  .hx-hero h1 .w { display: inline-block; animation: hxFocus 1.1s cubic-bezier(.16,.84,.3,1) both; animation-delay: calc(.12s + var(--w) * .085s); }
  .hx-hero h1 em { position: relative; }
  .hx-hero h1 em::after { content: ""; position: absolute; left: .02em; right: .02em; bottom: .04em; height: .07em; border-radius: 99px; background: var(--hx-lime); transform: scaleX(0); transform-origin: 0 50%; animation: hxDraw 1s cubic-bezier(.65,0,.35,1) 1.25s forwards; opacity: .85; }
  .hx-hero .hx-eyebrow { animation: hxTrack 1.2s cubic-bezier(.16,.84,.3,1) both; }
  .hx-hero .lede { animation: hxFocusSoft 1.1s cubic-bezier(.16,.84,.3,1) .7s both; }
  .hx-hero .acts > * { animation: hxPress .8s cubic-bezier(.34,1.56,.64,1) both; }
  .hx-hero .acts > :nth-child(1) { animation-delay: .95s; }
  .hx-hero .acts > :nth-child(2) { animation-delay: 1.05s; }
  .hx-trust span { animation: hxFocusSoft .8s ease both; }
  .hx-trust span:nth-child(1) { animation-delay: 1.15s; } .hx-trust span:nth-child(2) { animation-delay: 1.25s; }
  .hx-trust span:nth-child(3) { animation-delay: 1.35s; } .hx-trust span:nth-child(4) { animation-delay: 1.45s; }
  .hx-marquee { animation: hxSlit 1.2s cubic-bezier(.65,0,.35,1) 1.1s both; }
  .hx-hero::before { animation: hxOrbit 22s ease-in-out infinite alternate; }

  /* odometer digits */
  .hx-odo { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; vertical-align: top; }
  .hx-odo > span { display: inline-flex; flex-direction: column; transition: transform 1.6s cubic-bezier(.16,.84,.3,1); transition-delay: calc(var(--d) * .12s); }
  .hx-odo > span > span { height: 1em; display: block; }

  /* micro-interactions */
  .hx-cta { position: relative; isolation: isolate; }
  .hx-cta svg { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
  .hx-cta:hover svg { transform: translateX(5px) rotate(-8deg); }
  .hx-ghost { transition: background .3s ease, border-color .3s ease, letter-spacing .3s ease; }
  .hx-ghost:hover { background: rgba(244,245,251,.06); border-color: rgba(244,245,251,.4); letter-spacing: .02em; }
  /* cursor tilt uses the separate rotate property so it never fights the scroll animations' transform */
  .hx-cgrid, .hx-inside, .hx-plans { perspective: 1100px; }
  .hx-tilt { transition: rotate .6s cubic-bezier(.16,.84,.3,1); }

  /* icons that draw themselves (class added by the page script when they come into view) */
  .hx-inside svg path, .hx-inside svg circle, .hx-inside svg rect { stroke-dasharray: 120; stroke-dashoffset: 0; }
  .hx-draw svg path, .hx-draw svg circle, .hx-draw svg rect { animation: hxStroke 1.4s cubic-bezier(.65,0,.35,1) both; }

  /* the yearly price: a slow lime light travelling around the border */
  .hx-plan.best { position: relative; isolation: isolate; border-color: transparent; }
  .hx-plan.best::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--hx-a, 0deg), transparent 0 70%, var(--hx-lime) 82%, transparent 94%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: hxSpin 6s linear infinite; z-index: -1; pointer-events: none; }

  .hx-faq details p { animation: hxFocusSoft .5s ease both; }
}

/* scroll-linked effects, only where the browser supports scroll timelines */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    .hx-head h2 { animation: hxFocusSoft linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .hx-head .hx-eyebrow { animation: hxTrack linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }

    /* lines light up as they reach the middle of the screen */
    .hx-you div { animation: hxSpot linear both; animation-timeline: view(); animation-range: cover 18% cover 48%; }
    .hx-you div svg { animation: hxTick linear both; animation-timeline: view(); animation-range: cover 22% cover 46%; }
    .hx-you-close { animation: hxFocusSoft linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }

    /* old way steps back while the campus way wipes across */
    /* only when the two sides sit next to each other; stacked on phones, both stay fully readable */
    @media (min-width: 761px) {
      .hx-vs .old { animation: hxRecede linear both; animation-timeline: view(); animation-range: contain 0% contain 60%; }
      .hx-vs .new { animation: hxWipe linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
    }

    /* campus photos open like a shutter */
    .hx-cc { animation: hxRise linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
    .hx-cc .pic { animation: hxShutter linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    .hx-cc .pic img { animation: hxSettle linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }

    .hx-inside > div, .hx-steps > div, .hx-plan, .hx-story { animation: hxRise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .hx-steps b { animation: hxRoll linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }

    /* closing words light up one by one */
    .hx-final h2 .w { animation: hxWord linear both; animation-timeline: view(); animation-range: cover calc(10% + var(--w) * 3.5%) cover calc(22% + var(--w) * 3.5%); }
  }
}

@property --hx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes hxSpin { to { --hx-a: 360deg; } }
@keyframes hxFocus { from { opacity: 0; filter: blur(14px); letter-spacing: .12em; transform: translateY(.12em); } to { opacity: 1; filter: blur(0); letter-spacing: normal; transform: none; } }
@keyframes hxFocusSoft { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }
@keyframes hxTrack { from { opacity: 0; letter-spacing: .5em; } to { opacity: 1; letter-spacing: .16em; } }
@keyframes hxDraw { to { transform: scaleX(1); } }
@keyframes hxPress { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes hxSlit { from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hxOrbit { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(-120px, 80px) rotate(25deg); } }
@keyframes hxGrow { to { transform: scaleX(1); } }
@keyframes hxSpot { from { opacity: .22; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes hxTick { from { opacity: 0; transform: scale(.3) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes hxRecede { to { filter: grayscale(1); opacity: .55; transform: scale(.96); } }
@keyframes hxWipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hxRise { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hxShutter { from { clip-path: inset(46% 0 46% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hxSettle { from { transform: scale(1.3); } to { transform: scale(1); } }
@keyframes hxRoll { from { transform: translateY(.6em) rotateX(-80deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hxStroke { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
@keyframes hxWord { from { opacity: .14; filter: blur(4px); } to { opacity: 1; filter: blur(0); } }

/* odometer digits must not pick up the stat labels' span styling */
.hx-stats b .hx-odo { display: inline-flex; height: 1em; overflow: hidden; margin: 0; font-size: inherit; color: inherit; line-height: 1; vertical-align: top; }
.hx-stats b .hx-odo > span { display: inline-flex; flex-direction: column; margin: 0; font-size: inherit; color: inherit; line-height: 1; }
.hx-stats b .hx-odo > span > span { display: block; height: 1em; margin: 0; font-size: inherit; color: inherit; line-height: 1; }
/* stronger selector: the section reset (.hx p { margin: 0 }) was overriding this gap */
.hx .hx-you-close { margin-top: 64px; }
@media (max-width: 760px) { .hx .hx-you-close { margin-top: 44px; } }
