/* =========================================================
   Horizontal home page (loaded only on "/").
   Desktop (760px+): one pinned strip of six panels; scrolling moves it left to right.
   Phones, or no JavaScript: a normal vertical page.
   Brand v1.1 tokens come from main.css.
   ========================================================= */
.home-h { background: var(--graphite); color: var(--white); }
.home-h .glow { display: none; }                           /* replaced by the wave background */
.home-h .site-header { position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + var(--ann-h, 0px)); }
.home-h .site-footer { position: relative; z-index: 2; }

/* Background: Vanta waves on desktop, static gradient otherwise */
.hx-bg { position: fixed; inset: 0; z-index: 0; background:
  radial-gradient(60% 50% at 82% 78%, rgba(0,161,156,.16), transparent 70%),
  radial-gradient(50% 45% at 10% 10%, rgba(94,211,205,.07), transparent 70%),
  linear-gradient(160deg, var(--graphite) 0%, var(--slate-blue) 55%, var(--graphite) 100%); }
.hx-bg canvas { opacity: 0; transition: opacity 1.6s ease; }
.hx-bg.is-live canvas { opacity: 1; }
.hx-veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; background:
  radial-gradient(55% 45% at 80% 85%, rgba(0,161,156,.18), transparent 70%),
  linear-gradient(90deg, rgba(38,43,63,.82) 0%, rgba(38,43,63,.35) 55%, rgba(38,43,63,.55) 100%); }

/* Cursor light (front panel only) */
.hx-fx { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.hx-fx.is-on { opacity: 1; }
.hx-spot { position: fixed; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(94,211,205,.40) 0%, rgba(0,161,156,.17) 34%, transparent 70%); mix-blend-mode: screen; }

/* Shared type */
.hx-eyebrow { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-light); }
.hx-h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; color: var(--white); }
.hx-lead { margin: 0; color: var(--silver); font-size: 1.06rem; line-height: 1.6; max-width: 52ch; }
.hx-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hx-btn-ghost { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--white); box-shadow: inset 0 0 0 1px rgba(198,203,217,.35); transition: box-shadow .3s; }
.hx-btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--teal-light); }
.hx-mag { will-change: transform; }

/* Track */
.hx-wrap { position: relative; z-index: 2; }
.hx-track { display: flex; flex-wrap: nowrap; height: 100vh; will-change: transform; }
.hx-panel { flex: 0 0 auto; width: 100vw; height: 100vh; display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 24px); padding-bottom: 88px;
  padding-left: max(72px, var(--gutter)); padding-right: max(72px, var(--gutter-r)); }
.hx-wide { width: auto; min-width: 100vw; }
.hx-block { width: 100%; max-width: 1320px; display: flex; flex-direction: column; gap: 3.25rem; }
.hx-head { display: flex; flex-direction: column; gap: 1rem; }

/* 1 Hero */
.hx-hero { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.8fr); gap: 4rem; align-items: end; width: 100%; max-width: 1320px; }
.hx-hero h1 { margin: 0; font-size: clamp(3rem, 6.6vw, 6.5rem); line-height: .98; font-weight: 700; letter-spacing: -.035em; color: var(--white); }
.hx-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.hx-w > span { display: inline-block; }
.hx-hl { color: var(--teal); }
.hx-hero .hx-lead { font-size: 1.19rem; margin-top: 1.6rem; }
.hx-hero .hx-actions { margin-top: 2.1rem; }
.hx-trust { margin: 1.75rem 0 0; font-size: .82rem; color: var(--silver); display: flex; gap: .65rem; align-items: center; }
.hx-trust i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; box-shadow: 0 0 0 4px rgba(0,161,156,.2); }
/* Upcoming event card: teal edge and glow so it reads as the headline offer, with a real Register button.
   Small text never sits on Ten X Teal: the tag uses Teal Light (7.8:1); the button label is 19px bold (btn--primary). */
.hx-event { position: relative; border-radius: 20px; padding: 1.6rem; display: flex; flex-direction: column; gap: .85rem;
  background: linear-gradient(160deg, rgba(0,161,156,.22), rgba(61,68,92,.6) 60%); border: 1.5px solid var(--teal);
  box-shadow: 0 0 0 6px rgba(0,161,156,.12), 0 30px 70px -30px rgba(0,161,156,.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hx-event__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px;
  background: var(--teal-light); color: var(--graphite); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hx-event__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--graphite); animation: livePulse 2s 3; }
.hx-event h2 { margin: 0; font-size: 1.5rem; line-height: 1.2; color: var(--white); }
.hx-event p { margin: 0; color: var(--silver); font-size: .95rem; }
.hx-event__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.hx-event__facts li { padding: .3rem .7rem; border-radius: 999px; border: 1px solid rgba(198,203,217,.3); color: var(--white); font-size: .82rem; font-weight: 600; }
.hx-event__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: .35rem; }
.hx-event__more { color: var(--teal-light); font-weight: 600; font-size: .95rem; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.hx-event__more:hover { text-decoration: underline; }
/* Free Shift Sessions line at the foot of the event card: Teal Light label on Midnight Slate (7.8:1) */
.hx-sessions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; margin-top: .35rem; padding-top: .9rem; border-top: 1px solid rgba(198,203,217,.25); color: var(--white); text-decoration: none; font-size: .92rem; }
.hx-sessions b { display: block; color: var(--teal-light); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .15rem; }
.hx-sessions .icon { flex: none; color: var(--teal-light); transition: transform .25s; }
.hx-sessions:hover .icon { transform: translateX(4px); }
.hx-sessions:hover span { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .hx-sessions .icon { transition: none; } .hx-sessions:hover .icon { transform: none; } }
@media (max-width: 560px) { .hx-event__actions .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .hx-event__tag i { animation: none; } }
.hx-hint { position: absolute; left: max(72px, var(--gutter)); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--silver); display: flex; align-items: center; gap: .75rem; }
.hx-hint b { display: block; width: 44px; height: 1px; background: var(--silver); position: relative; overflow: hidden; }
.hx-hint b::after { content: ""; position: absolute; inset: 0; background: var(--teal-light); animation: hx-hint 1.8s ease-in-out 4; }
@keyframes hx-hint { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* 2 Services */
.hx-services { display: flex; gap: 3.5rem; align-items: center; }
.hx-intro { width: min(420px, 32vw); flex: none; display: flex; flex-direction: column; gap: 1.1rem; }
.hx-cards { display: flex; gap: 1.25rem; }
.hx-card { position: relative; width: 300px; flex: none; min-height: 380px; border-radius: 20px; padding: 1.75rem; display: flex; flex-direction: column; gap: .85rem;
  background: rgba(61,68,92,.5); border: 1px solid rgba(198,203,217,.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  overflow: hidden; text-decoration: none; color: var(--white); transition: border-color .3s, transform .4s; }
.hx-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(0,161,156,.22), transparent 60%); }
.hx-card:hover, .hx-card:focus-visible { border-color: rgba(94,211,205,.5); transform: translateY(-6px); }
.hx-card:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; }
.hx-card:hover::before { opacity: 1; }
.hx-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,161,156,.14); color: var(--teal-light); }
.hx-icon .icon { width: 22px; height: 22px; }
.hx-card h3 { margin: 0; font-size: 1.3rem; line-height: 1.2; color: var(--white); }
.hx-short { font-size: .82rem; font-weight: 600; color: var(--teal-light); }
.hx-card p { margin: 0; font-size: .9rem; color: var(--silver); }
.hx-more { margin-top: auto; font-size: .9rem; font-weight: 600; display: inline-flex; gap: .5rem; align-items: center; }
.hx-card:hover .hx-more { color: var(--teal-light); }

/* 3 Process */
.hx-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1.75rem; }
.hx-rail { position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: rgba(198,203,217,.18); }
.hx-rail span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--teal), var(--teal-light)); transform-origin: left center; }
.hx-step { position: relative; display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.hx-node { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--graphite); border: 2px solid var(--teal); font-weight: 700; color: var(--teal-light); font-variant-numeric: tabular-nums; }
.hx-step h3 { margin: .5rem 0 0; font-size: 1.35rem; color: var(--white); }
.hx-step p { margin: 0; color: var(--silver); font-size: .95rem; max-width: 26ch; }

/* 4 Proof */
.hx-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid rgba(198,203,217,.2); }
.hx-stat { padding: 2rem 1.75rem 0 0; display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.hx-stat + .hx-stat { padding-left: 1.75rem; border-left: 1px solid rgba(198,203,217,.2); }
.hx-v { font-size: clamp(3.5rem, 6vw, 6rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--teal); font-variant-numeric: tabular-nums; }
.hx-l { font-size: 1rem; max-width: 28ch; }
.hx-stat small { color: var(--silver); font-size: .75rem; }

/* 5 Audiences */
.hx-aud { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.25rem; }
.hx-aud-card { border-top: 2px solid var(--teal); padding-top: 1.4rem; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.hx-who { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-light); }
.hx-aud-card h3 { margin: 0; font-size: 1.35rem; line-height: 1.2; color: var(--white); }
.hx-aud-card p { margin: 0; color: var(--silver); font-size: .9rem; }
.hx-aud-card ul { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .88rem; }
.hx-aud-card li { display: flex; gap: .6rem; }
.hx-aud-card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .55rem; border-radius: 50%; background: var(--teal-light); }

/* 6 Contact */
.hx-contact { width: 100%; max-width: 1100px; display: flex; flex-direction: column; gap: 1.75rem; }
.hx-contact h2 { margin: 0; font-size: clamp(2.75rem, 5.6vw, 5.5rem); line-height: 1; font-weight: 700; letter-spacing: -.035em; color: var(--white); text-wrap: balance; }
.hx-contact h2 em { font-style: normal; color: var(--teal); }
.hx-reach { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 1rem; padding-top: 1.75rem; border-top: 1px solid rgba(198,203,217,.2); }
.hx-reach div { display: flex; flex-direction: column; gap: .25rem; }
.hx-reach small { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--silver); }
.hx-reach span, .hx-reach a { font-size: 1.1rem; font-weight: 600; color: var(--white); text-decoration: none; }
.hx-reach a { display: inline-flex; align-items: center; min-height: 44px; }
.hx-reach a:hover { color: var(--teal-light); }

/* Section labels along the bottom (desktop) */
.hx-railnav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: none; justify-content: space-between;
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); padding-left: max(72px, var(--gutter)); padding-right: max(220px, var(--gutter-r)); }
.is-hscroll .hx-railnav { display: flex; }
.hx-railnav { transition: opacity .35s ease, visibility .35s; }
.hx-railnav.is-off { opacity: 0; visibility: hidden; }
/* Section buttons: full-strength Silver (passes AA), 44px tall, current one in Teal Light + underline */
.hx-railnav button { position: relative; background: none; border: 0; min-height: 44px; padding: 0 .25rem; font: 500 .8rem/1 var(--font); letter-spacing: .06em; color: var(--silver); cursor: pointer; transition: color .25s; }
.hx-railnav button:hover { color: var(--white); }
.hx-railnav button[aria-current="true"] { color: var(--teal-light); }
.hx-railnav button[aria-current="true"]::after { content: ""; position: absolute; left: .25rem; right: .25rem; bottom: 8px; height: 2px; background: currentColor; }

/* Vertical layout: phones, small tablets, or before JavaScript runs */
html:not(.is-hscroll) .hx-track { display: block; height: auto; }
html:not(.is-hscroll) .hx-panel, html:not(.is-hscroll) .hx-wide { width: auto; min-width: 0; height: auto; padding-block: 4.5rem; padding-left: var(--gutter); padding-right: var(--gutter-r); }
html:not(.is-hscroll) .hx-panel:first-child { padding-top: calc(var(--header-h) + 3rem); min-height: 88vh; }
html:not(.is-hscroll) .hx-hero { grid-template-columns: 1fr; gap: 2.25rem; }
html:not(.is-hscroll) .hx-services { flex-direction: column; align-items: stretch; gap: 2rem; }
html:not(.is-hscroll) .hx-intro { width: auto; }
html:not(.is-hscroll) .hx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
html:not(.is-hscroll) .hx-card { width: auto; min-height: 0; }
html:not(.is-hscroll) .hx-steps { grid-template-columns: 1fr; gap: 1.6rem; }
html:not(.is-hscroll) .hx-rail, html:not(.is-hscroll) .hx-hint { display: none; }
html:not(.is-hscroll) .hx-stats { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 1.75rem; }
html:not(.is-hscroll) .hx-stat:nth-child(3) { padding-left: 0; border-left: 0; }
html:not(.is-hscroll) .hx-aud { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
@media (min-width: 961px) {   /* desktop, vertical: keep the wide grids */
  html:not(.is-hscroll) .hx-hero { grid-template-columns: minmax(0,1.35fr) minmax(0,.8fr); gap: 4rem; }
  html:not(.is-hscroll) .hx-steps { grid-template-columns: repeat(5, minmax(0,1fr)); }
  html:not(.is-hscroll) .hx-stats { grid-template-columns: repeat(4, minmax(0,1fr)); }
  html:not(.is-hscroll) .hx-stat:nth-child(3) { padding-left: 1.75rem; border-left: 1px solid rgba(198,203,217,.2); }
  /* header sits under the ticker like every other desktop page, not fixed over it */
  html:not(.is-hscroll) .home-h .site-header { position: sticky; top: env(safe-area-inset-top, 0px); }
  html:not(.is-hscroll) .hx-panel:first-child { padding-top: 3rem; }
  /* How we work: progress line through the numbers. The teal fill grows with scroll
     (GSAP ScrollTrigger on Lenis), dashes stream left to right, arrows nudge toward the next step. */
  html:not(.is-hscroll) .hx-rail { display: block; overflow: hidden; z-index: 0; right: calc((100% - 7rem) / 5 - 24px); }
  html:not(.is-hscroll) .hx-step { z-index: 1; }
  .hx-rail::after { content: ""; position: absolute; inset: 0; z-index: 1;
    background: repeating-linear-gradient(90deg, var(--teal-light) 0 10px, transparent 10px 26px); opacity: .55;
    animation: hx-flow 1.6s linear infinite; }
  .hx-step:not(:last-child)::after { content: ""; position: absolute; top: 18px; right: -1.2rem; width: 9px; height: 9px;
    border-top: 2px solid var(--teal-light); border-right: 2px solid var(--teal-light); transform: rotate(45deg);
    animation: hx-nudge 1.6s ease-in-out infinite; }
  .hx-step:nth-child(3)::after { animation-delay: .2s; } .hx-step:nth-child(4)::after { animation-delay: .4s; }
  .hx-step:nth-child(5)::after { animation-delay: .6s; }
  /* line the sections up with the 1200px header container */
  html:not(.is-hscroll) .hx-panel { padding-left: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter))); padding-right: max(var(--gutter-r), calc((100% - 1200px) / 2 + var(--gutter-r))); }
}
@media (max-width: 560px) {
  html:not(.is-hscroll) .hx-stats { grid-template-columns: 1fr; }
  html:not(.is-hscroll) .hx-stat + .hx-stat { padding-left: 0; border-left: 0; }
  .hx-reach { gap: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .hx-hint b::after { animation: none; } .hx-card, .hx-card::before { transition: none; } .hx-card:hover, .hx-card:focus-visible { transform: none; } }
@keyframes hx-flow { to { background-position: 26px 0; } }
@keyframes hx-nudge { 0%, 100% { translate: -4px 0; opacity: .45; } 50% { translate: 4px 0; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hx-rail::after, .hx-step::after { animation: none; } }
