/* ============================================================
   HOME PAGE — "hx-" design system
   Editorial green layout: pine blades, seafoam accents,
   mosaic course grid, accordion categories, ledger about.
   ============================================================ */

.page-index {
    --hx-pine:     var(--pine-3, #1b4332);
    --hx-pine-2:   var(--pine-2, #2d6a4f);
    --hx-pine-3:   var(--pine-1, #40916c);
    --hx-mint:     var(--seafoam-5, #52b788);
    --hx-mint-2:   var(--seafoam-3, #95d5b2);
    --hx-mint-3:   var(--seafoam-1, #d8f3dc);
    --hx-ink:      var(--color-ink, #10241a);
    --hx-pencil:   var(--color-pencil, #3d5a4b);
    --hx-line:     var(--color-stone, #cbe8d7);
    --hx-paper:    #ffffff;
    --hx-canvas:   var(--canvas, #f6fbf8);
    --hx-tint:     var(--canvas-tint, #eef8f1);
    --hx-radius:   22px;
    --hx-ease:     cubic-bezier(.22, 1, .36, 1);
}

/* ---------- shared primitives ---------- */
.hx-sec { position: relative; padding: 110px 0; }
.hx-sec > .auto-container { position: relative; z-index: 2; }

.hx-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: var(--hx-pine-2);
    margin-bottom: 18px;
}
.hx-eyebrow--light { color: var(--hx-mint-2); }
.hx-eyebrow__dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--hx-mint); box-shadow: 0 0 0 4px rgba(82,183,136,.18);
}

.hx-h2 {
    font-size: clamp(30px, 4vw, 52px); line-height: 1.08;
    font-weight: 800; letter-spacing: -.02em;
    color: var(--hx-ink); margin: 0;
}
.hx-h2--light { color: #fff; }

.hx-lede {
    font-size: 16px; line-height: 1.75; color: var(--hx-pencil);
    margin: 14px 0 0; max-width: 56ch;
}

.hx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 11px;
    padding: 15px 30px; border-radius: 100px; border: 1.5px solid transparent;
    font-size: 15px; font-weight: 700; text-decoration: none;
    transition: all .3s var(--hx-ease); cursor: pointer;
}
.hx-btn i { font-size: 12px; transition: transform .3s var(--hx-ease); }
.hx-btn:hover i { transform: translateX(4px); }

.hx-btn--solid {
    background: var(--hx-mint); color: #06231a;
    box-shadow: 0 12px 30px -12px rgba(82,183,136,.75);
}
.hx-btn--solid:hover { background: #fff; color: var(--hx-pine); }

.hx-btn--ghost {
    background: transparent; color: #fff;
    border-color: rgba(255,255,255,.35);
}
.hx-btn--ghost:hover { border-color: var(--hx-mint); background: rgba(82,183,136,.14); color: #fff; }

.hx-link {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 14px; font-weight: 700; letter-spacing: .04em;
    color: var(--hx-pine-2); text-decoration: none;
    border-bottom: 1.5px solid var(--hx-mint-2); padding-bottom: 4px;
    transition: all .3s var(--hx-ease);
}
.hx-link:hover { color: var(--hx-mint); border-color: var(--hx-mint); gap: 14px; }

.hx-head {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px 60px; align-items: end; margin-bottom: 58px;
}
.hx-head__right { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hx-head--center {
    grid-template-columns: 1fr; justify-items: center; text-align: center;
}
.hx-head--center .hx-lede { margin-left: auto; margin-right: auto; }

/* ============================================================
   1. HERO — cinematic stage + thumbnail rail
   ============================================================ */
.hx-hero {
    position: relative; overflow: hidden;
    background: #071a13;
    min-height: min(94vh, 880px);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding-top: 190px;
}

.hx-hero__canvas { position: absolute; inset: 0; z-index: 0; }
.hx-hero__shot {
    position: absolute; inset: 0; margin: 0;
    opacity: 0; transition: opacity 1.2s var(--hx-ease);
}
.hx-hero__shot.is-active { opacity: 1; }
.hx-hero__shot img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.12); transition: transform 9s linear;
}
.hx-hero__shot.is-active img { transform: scale(1); }

.hx-hero__scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(96deg, rgba(7,26,19,.96) 0%, rgba(7,26,19,.86) 34%, rgba(7,26,19,.35) 66%, rgba(7,26,19,.62) 100%),
        linear-gradient(0deg, #071a13 1%, rgba(7,26,19,.2) 46%);
}
.hx-hero__mesh {
    position: absolute; inset: 0; opacity: .5;
    background-image:
        linear-gradient(rgba(149,213,178,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(149,213,178,.08) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(90% 80% at 12% 40%, #000 0%, transparent 70%);
    mask-image: radial-gradient(90% 80% at 12% 40%, #000 0%, transparent 70%);
}

.hx-hero__body {
    position: relative; z-index: 3;
    display: grid; grid-template-columns: minmax(0, 1fr) 300px;
    gap: 60px; align-items: center; padding-bottom: 66px;
}

.hx-hero__counter {
    display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 26px;
    font-weight: 800; letter-spacing: .1em;
}
.hx-hero__counter em { font-style: normal; font-size: 30px; color: var(--hx-mint); }
.hx-hero__counter span { font-size: 13px; color: rgba(216,243,220,.45); }

.hx-hero__panes { position: relative; }
.hx-hero__pane {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transform: translateY(24px);
    transition: opacity .6s var(--hx-ease), transform .6s var(--hx-ease), visibility .6s;
}
.hx-hero__pane.is-active { position: relative; opacity: 1; visibility: visible; transform: none; }

.hx-hero__kicker {
    display: inline-flex; align-items: center; gap: 14px;
    font-size: 12px; font-weight: 700; letter-spacing: .22em;
    text-transform: uppercase; color: var(--hx-mint-2); margin-bottom: 20px;
}
.hx-hero__kicker-bar { width: 46px; height: 2px; background: var(--hx-mint); }

.hx-hero__title {
    font-size: clamp(40px, 5.6vw, 78px); line-height: 1; font-weight: 800;
    letter-spacing: -.035em; margin: 0 0 22px; color: #fff;
    text-shadow: 0 4px 30px rgba(7,26,19,.6);
}
.hx-hero__title span { display: block; color: #fff; }
.hx-hero__title em {
    display: block; font-style: normal; color: var(--hx-mint-2);
}

.hx-hero__desc {
    font-size: 16.5px; line-height: 1.8; max-width: 52ch; margin: 0;
    color: rgba(228,247,234,.85);
}

.hx-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* thumbnail rail */
.hx-hero__rail { display: flex; flex-direction: column; gap: 10px; }
.hx-thumb {
    position: relative; display: grid;
    grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 14px;
    padding: 9px; border: 1px solid rgba(216,243,220,.16); border-radius: 16px;
    background: rgba(7,26,19,.42); backdrop-filter: blur(9px);
    cursor: pointer; text-align: left; overflow: hidden;
    transition: all .4s var(--hx-ease);
}
.hx-thumb__pic {
    display: block; width: 62px; height: 48px; border-radius: 11px; overflow: hidden;
}
.hx-thumb__pic img {
    width: 100%; height: 100%; object-fit: cover;
    /* course artwork is already dark, so inactive thumbs only get a light knock-back */
    filter: grayscale(.3) brightness(1.05); transition: filter .4s var(--hx-ease);
}
.hx-thumb__text { min-width: 0; }
.hx-thumb__num {
    display: block; font-size: 10px; font-weight: 800; letter-spacing: .16em;
    color: var(--hx-mint); margin-bottom: 3px;
}
.hx-thumb__label {
    display: block; font-size: 13px; font-weight: 700; line-height: 1.35;
    color: rgba(228,247,234,.72);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hx-thumb__bar {
    position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
    background: rgba(216,243,220,.1);
}
.hx-thumb__bar em { display: block; height: 100%; width: 0; background: var(--hx-mint); }

.hx-thumb:hover { border-color: rgba(149,213,178,.4); background: rgba(11,42,31,.6); }
.hx-thumb:hover .hx-thumb__pic img { filter: none; }
.hx-thumb.is-active {
    border-color: var(--hx-mint); background: rgba(82,183,136,.16);
}
.hx-thumb.is-active .hx-thumb__pic img { filter: none; }
.hx-thumb.is-active .hx-thumb__label { color: #fff; }
.hx-thumb.is-active .hx-thumb__bar em { width: 100%; transition: width 6.6s linear; }

/* metric strip */
.hx-hero__strip {
    position: relative; z-index: 3;
    border-top: 1px solid rgba(216,243,220,.14);
    background: rgba(7,26,19,.55); backdrop-filter: blur(10px);
}
.hx-hero__strip-inner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 30px 54px;
    padding-block: 22px;
}
.hx-hero__metric { display: flex; align-items: baseline; gap: 11px; }
.hx-hero__metric strong { font-size: 26px; font-weight: 800; color: var(--hx-mint-2); line-height: 1; }
.hx-hero__metric span {
    font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase;
    color: rgba(216,243,220,.6);
}
.hx-hero__scroll {
    margin-left: auto; display: inline-flex; align-items: center; gap: 13px;
    font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
    color: rgba(228,247,234,.8); text-decoration: none;
    transition: color .3s var(--hx-ease);
}
.hx-hero__scroll:hover { color: var(--hx-mint); }
.hx-hero__scroll-ico {
    width: 36px; height: 36px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(216,243,220,.3); font-size: 12px;
    animation: hx-bob 2.4s ease-in-out infinite;
}
@keyframes hx-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ============================================================
   2. RIBBON MARQUEE
   ============================================================ */
.hx-ribbon {
    background: var(--hx-mint); overflow: hidden;
    padding: 17px 0; border-block: 1px solid rgba(6,35,26,.12);
}
.hx-ribbon__track { display: flex; width: max-content; animation: hx-slide 34s linear infinite; }
.hx-ribbon__run { display: flex; align-items: center; gap: 30px; padding-right: 30px; }
.hx-ribbon__item {
    font-size: 15px; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: #06231a; white-space: nowrap;
}
.hx-ribbon__sep { color: rgba(6,35,26,.45); font-size: 10px; }
@keyframes hx-slide { to { transform: translateX(-50%); } }

/* ============================================================
   3. MOSAIC COURSES
   ============================================================ */
.hx-mosaic-sec { background: var(--hx-canvas); }

.hx-mosaic {
    display: grid; gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 200px;
}
.hx-tile--1 { grid-column: span 2; grid-row: span 2; }
.hx-tile--2 { grid-column: span 2; grid-row: span 1; }
.hx-tile--3 { grid-column: span 1; grid-row: span 1; }
.hx-tile--4 { grid-column: span 1; grid-row: span 1; }
.hx-tile--5 { grid-column: span 4; grid-row: span 1; }

.hx-tile { position: relative; }
.hx-tile__link {
    position: absolute; inset: 0; display: block; overflow: hidden;
    border-radius: var(--hx-radius); text-decoration: none;
    background: var(--hx-pine);
    box-shadow: 0 18px 40px -30px rgba(16,36,26,.6);
    transition: box-shadow .4s var(--hx-ease), transform .4s var(--hx-ease);
}
.hx-tile__link:hover { transform: translateY(-5px); box-shadow: 0 30px 55px -28px rgba(16,36,26,.55); }

.hx-tile__media { position: absolute; inset: 0; display: block; }
.hx-tile__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s var(--hx-ease);
}
.hx-tile__link:hover .hx-tile__media img { transform: scale(1.07); }

/* The scrim has to carry the text, so it is opaque at the base and only
   fades out in the top third — busy course artwork otherwise eats the copy. */
.hx-tile__scrim {
    position: absolute; inset: 0;
    background: linear-gradient(0deg,
        #071a13 0%, rgba(7,26,19,.97) 24%, rgba(7,26,19,.82) 44%,
        rgba(7,26,19,.45) 66%, rgba(7,26,19,.08) 100%);
    transition: opacity .4s var(--hx-ease);
}
.hx-tile__link:hover .hx-tile__scrim { opacity: .96; }

.hx-tile__tag {
    position: absolute; top: 18px; left: 18px; z-index: 2;
    padding: 6px 12px; border-radius: 100px;
    background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.22);
    font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #fff;
}

.hx-tile__body {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    display: block; padding: 26px;
}
.hx-tile__title {
    display: block; font-size: 20px; font-weight: 800; line-height: 1.25;
    color: #fff !important; margin-bottom: 8px;
    text-shadow: 0 2px 14px rgba(7,26,19,.9);
}
.hx-tile__sum {
    display: block; font-size: 13.5px; line-height: 1.65;
    color: rgba(216,243,220,.82) !important;
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height .45s var(--hx-ease), opacity .35s var(--hx-ease);
}
.hx-tile__link:hover .hx-tile__sum { max-height: 96px; opacity: 1; }

.hx-tile__cta {
    display: inline-flex; align-items: center; gap: 9px; margin-top: 14px;
    font-size: 13px; font-weight: 700; letter-spacing: .05em; color: var(--hx-mint-2);
}
.hx-tile__cta i { font-size: 11px; transition: transform .3s var(--hx-ease); }
.hx-tile__link:hover .hx-tile__cta i { transform: translateX(5px); }

.hx-tile--1 .hx-tile__title { font-size: 26px; }
.hx-tile--1 .hx-tile__sum, .hx-tile--5 .hx-tile__sum { max-height: 90px; opacity: 1; }

/* ============================================================
   4. WHY — pine ground, step ribbon
   ============================================================ */
.hx-why-sec { background: var(--hx-pine); overflow: hidden; }
.hx-why__orb {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: .3;
}
.hx-why__orb--a { width: 380px; height: 380px; background: var(--hx-mint); top: -120px; left: -80px; }
.hx-why__orb--b { width: 460px; height: 460px; background: var(--hx-pine-3); bottom: -180px; right: -120px; }

.hx-why__head { max-width: 640px; margin-bottom: 60px; }

.hx-steps {
    display: grid; gap: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(149,213,178,.22);
}
.hx-step {
    position: relative; padding: 40px 30px 44px;
    border-right: 1px solid rgba(149,213,178,.16);
    transition: background .4s var(--hx-ease);
}
.hx-step:last-child { border-right: 0; }
.hx-step:hover { background: rgba(149,213,178,.06); }

.hx-step__rail { position: absolute; top: -1px; left: 0; right: 0; height: 2px; display: block; }
.hx-step__rail em { display: block; height: 100%; width: 0; background: var(--hx-mint); transition: width .5s var(--hx-ease); }
.hx-step:hover .hx-step__rail em { width: 100%; }

.hx-step__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 16px;
    background: rgba(149,213,178,.12); border: 1px solid rgba(149,213,178,.24);
    color: var(--hx-mint-2); font-size: 20px; margin-bottom: 24px;
    transition: all .4s var(--hx-ease);
}
.hx-step:hover .hx-step__icon { background: var(--hx-mint); color: #06231a; transform: translateY(-4px); }

.hx-step__num {
    position: absolute; top: 36px; right: 28px;
    font-size: 13px; font-weight: 800; letter-spacing: .1em;
    color: rgba(149,213,178,.35);
}
/* app.css sets heading/paragraph colours page-wide at a higher specificity,
   so light-on-dark copy has to be forced here. */
.hx-step__title { font-size: 19px; font-weight: 800; color: #fff !important; margin: 0 0 12px; line-height: 1.3; }
.hx-step__desc { font-size: 14px; line-height: 1.75; color: rgba(216,243,220,.72) !important; margin: 0; }

/* ============================================================
   5. CATEGORY ACCORDION
   ============================================================ */
.hx-cats-sec { background: var(--hx-tint); }

.hx-acc { display: flex; gap: 14px; height: 480px; }

.hx-acc__panel {
    position: relative; flex: 1 1 0; min-width: 84px;
    border-radius: var(--hx-radius); overflow: hidden; text-decoration: none;
    background: var(--hx-pine);
    transition: flex-grow .6s var(--hx-ease), box-shadow .5s var(--hx-ease);
    display: block;
}
.hx-acc__panel.is-open { flex-grow: 3.8; box-shadow: 0 30px 60px -34px rgba(7,26,19,.75); }

/* Artwork is mounted in both states: dimmed + zoomed while collapsed,
   full colour once the panel expands. */
.hx-acc__pic { position: absolute; inset: 0; display: block; overflow: hidden; }
.hx-acc__pic img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.22);
    filter: grayscale(.5) brightness(.62);
    transition: transform .7s var(--hx-ease), filter .6s var(--hx-ease);
}
.hx-acc__panel:hover .hx-acc__pic img { filter: grayscale(.2) brightness(.8); }
.hx-acc__panel.is-open .hx-acc__pic img {
    transform: scale(1); filter: none;
}

.hx-acc__wash {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7,26,19,.62) 0%, rgba(7,26,19,.86) 100%);
    transition: background .5s var(--hx-ease);
}
.hx-acc__panel.is-open .hx-acc__wash {
    background:
        linear-gradient(0deg, #071a13 4%, rgba(7,26,19,.9) 30%, rgba(7,26,19,.35) 62%, rgba(7,26,19,.12) 100%);
}

.hx-acc__spine {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center;
    padding: 26px 0; gap: 20px;
}
.hx-acc__num { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--hx-mint-2); }
.hx-acc__vtitle {
    writing-mode: vertical-rl; text-orientation: mixed;
    font-size: 15px; font-weight: 700; letter-spacing: .06em; color: #fff;
    transition: opacity .35s var(--hx-ease);
}
.hx-acc__glyph {
    margin-top: auto; width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    color: #fff; font-size: 15px;
}
.hx-acc__panel.is-open .hx-acc__vtitle { opacity: 0; }

.hx-acc__reveal {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    padding: 30px 30px 30px 78px; display: block;
    opacity: 0; transform: translateY(16px);
    transition: opacity .45s .12s var(--hx-ease), transform .45s .12s var(--hx-ease);
    pointer-events: none;
}
.hx-acc__panel.is-open .hx-acc__reveal { opacity: 1; transform: none; }

.hx-acc__chip {
    display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
    padding: 7px 14px; border-radius: 100px;
    background: rgba(82,183,136,.22); border: 1px solid rgba(149,213,178,.4);
    font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--hx-mint-2);
}
.hx-acc__title {
    display: block; font-size: 27px; font-weight: 800; color: #fff !important;
    margin-bottom: 10px; text-shadow: 0 2px 16px rgba(7,26,19,.85);
}
.hx-acc__desc {
    display: block; font-size: 14px; line-height: 1.7;
    color: rgba(228,247,234,.84) !important; max-width: 46ch;
}
.hx-acc__go {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
    padding: 11px 22px; border-radius: 100px; background: var(--hx-mint); color: #06231a;
    font-size: 13px; font-weight: 800;
}
.hx-acc__go i { font-size: 11px; }

/* ============================================================
   6. ABOUT — sticky + ledger
   ============================================================ */
.hx-about-sec { background: var(--hx-paper); }
.hx-about {
    display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 70px;
}
.hx-about__sticky { position: sticky; top: 110px; align-self: start; }
.hx-about__desc {
    font-size: 16px; line-height: 1.85; color: var(--hx-pencil); margin: 20px 0 30px;
}
.hx-about__shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.hx-about__shot { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.hx-about__shot:last-child { margin-top: 30px; }
.hx-about__shot img { width: 100%; height: 100%; object-fit: cover; }

.hx-ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hx-line); }
.hx-ledger__row {
    position: relative; display: grid; grid-template-columns: auto 1fr auto;
    gap: 26px; align-items: start; padding: 34px 8px;
    border-bottom: 1px solid var(--hx-line);
    transition: padding-left .4s var(--hx-ease), background .4s var(--hx-ease);
}
.hx-ledger__row:hover { padding-left: 22px; background: var(--hx-tint); }
.hx-ledger__num {
    font-size: 13px; font-weight: 800; letter-spacing: .12em;
    color: var(--hx-mint); padding-top: 5px;
}
.hx-ledger__title { font-size: 21px; font-weight: 800; color: var(--hx-ink); margin: 0 0 10px; }
.hx-ledger__desc { font-size: 15px; line-height: 1.75; color: var(--hx-pencil); margin: 0; }
.hx-ledger__mark {
    width: 34px; height: 34px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--hx-line); color: var(--hx-pine-2); font-size: 11px;
    transition: all .4s var(--hx-ease);
}
.hx-ledger__row:hover .hx-ledger__mark { background: var(--hx-mint); border-color: var(--hx-mint); color: #06231a; transform: rotate(90deg); }

/* ============================================================
   7. CREDITS
   ============================================================ */
.hx-credit-sec { background: var(--hx-canvas); }

.hx-calc {
    background: linear-gradient(140deg, #14382a 0%, var(--hx-pine) 60%, #0d2a1f 100%);
    border-radius: 28px; padding: clamp(28px, 4vw, 52px);
    box-shadow: 0 40px 80px -50px rgba(16,36,26,.85);
    margin-bottom: 80px;
}
.hx-calc__form {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 30px 46px; align-items: end;
}
.hx-calc__label {
    display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--hx-mint-2); margin-bottom: 14px;
}
.hx-calc__input {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(149,213,178,.3);
    border-radius: 16px; padding: 6px 20px;
    transition: border-color .3s var(--hx-ease), background .3s var(--hx-ease);
}
.hx-calc__input:focus-within { border-color: var(--hx-mint); background: rgba(255,255,255,.11); }
.hx-calc__sym { font-size: 26px; font-weight: 800; color: var(--hx-mint-2); }
.hx-calc__input input {
    flex: 1; min-width: 0; background: none; border: 0; outline: 0;
    font-size: 34px; font-weight: 800; color: #fff; padding: 12px 0;
}
.hx-calc__input input::placeholder { color: rgba(216,243,220,.3); }
.hx-calc__note {
    display: block; margin-top: 12px; font-size: 12px; color: rgba(216,243,220,.55);
}

.hx-calc__result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hx-calc__cell {
    background: rgba(255,255,255,.05); border: 1px solid rgba(149,213,178,.16);
    border-radius: 16px; padding: 18px 20px;
}
.hx-calc__cell span {
    display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: rgba(216,243,220,.55); margin-bottom: 9px;
}
.hx-calc__cell strong { font-size: 26px; font-weight: 800; color: #fff; }
.hx-calc__cell--total { background: rgba(82,183,136,.16); border-color: var(--hx-mint); }
.hx-calc__cell--total strong { color: var(--hx-mint-2); }
.hx-calc__hidden { display: none; }

.hx-calc__go { justify-self: start; }
.hx-calc__trust {
    display: inline-flex; align-items: center; gap: 9px; align-self: center;
    font-size: 13px; color: rgba(216,243,220,.6);
}
.hx-calc__trust i { color: var(--hx-mint); }

.hx-tiers__head { text-align: center; margin-bottom: 44px; }
.hx-tiers__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--hx-ink); margin: 0; }
.hx-tiers__head .hx-lede { margin-left: auto; margin-right: auto; }

.hx-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hx-tier {
    position: relative; background: var(--hx-paper);
    border: 1px solid var(--hx-line); border-radius: var(--hx-radius);
    padding: 32px 26px 30px;
    transition: all .4s var(--hx-ease);
}
.hx-tier:hover { transform: translateY(-6px); border-color: var(--hx-mint-2); box-shadow: 0 26px 50px -34px rgba(16,36,26,.5); }

.hx-tier__x {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 13px; border-radius: 100px;
    background: var(--hx-mint-3); color: var(--hx-pine);
    font-size: 12px; font-weight: 800; margin-bottom: 22px;
}
.hx-tier__x em { font-style: normal; font-weight: 700; opacity: .75; }
.hx-tier__num {
    position: absolute; top: 30px; right: 26px;
    font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--hx-line);
}
.hx-tier__name { font-size: 20px; font-weight: 800; color: var(--hx-ink); margin: 0 0 8px; }
.hx-tier__range { display: block; font-size: 14px; font-weight: 700; color: var(--hx-pine-3); margin-bottom: 14px; }
.hx-tier__desc { font-size: 14px; line-height: 1.7; color: var(--hx-pencil); margin: 0; }

/* seafoam.css forces a light gradient on .timeline-step-highlight with
   !important, so the active tier is styled light-on-mint rather than
   fighting it — the text stays dark and readable. */
.page-index .hx-tier.timeline-step-highlight {
    background: linear-gradient(180deg, var(--hx-mint-3), #fff) !important;
    border-color: var(--hx-mint) !important;
    box-shadow: 0 0 0 3px rgba(82,183,136,.22), 0 26px 50px -32px rgba(16,36,26,.5) !important;
    transform: translateY(-4px);
}
.page-index .hx-tier.timeline-step-highlight .hx-tier__name { color: var(--hx-ink) !important; }
.page-index .hx-tier.timeline-step-highlight .hx-tier__desc { color: var(--hx-pencil) !important; }
.page-index .hx-tier.timeline-step-highlight .hx-tier__range { color: var(--hx-pine-2) !important; }
.page-index .hx-tier.timeline-step-highlight .hx-tier__num { color: var(--hx-mint) !important; }
.page-index .hx-tier.timeline-step-highlight .hx-tier__x {
    background: var(--hx-pine-2) !important; color: #fff !important;
}
.page-index .hx-tier.timeline-step-highlight .hx-tier__x em { color: var(--hx-mint-2) !important; opacity: 1; }

.hx-perks {
    list-style: none; margin: 56px 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.hx-perk {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px; border-radius: 100px;
    background: var(--hx-tint); border: 1px solid var(--hx-line);
    font-size: 14px; font-weight: 700; color: var(--hx-ink);
}
.hx-perk__ico {
    width: 36px; height: 36px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--hx-mint); color: #06231a; font-size: 14px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .hx-mosaic { grid-auto-rows: 178px; }
    .hx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hx-step:nth-child(2n) { border-right: 0; }
    .hx-step:nth-child(n+3) { border-top: 1px solid rgba(149,213,178,.16); }
    .hx-tiers, .hx-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .hx-sec { padding: 80px 0; }
    .hx-hero { min-height: 0; padding-top: 150px; }
    .hx-hero__body { grid-template-columns: 1fr; gap: 40px; padding-bottom: 44px; }
    .hx-hero__pane { position: relative; display: none; }
    .hx-hero__pane.is-active { display: block; }
    .hx-hero__scrim {
        background: linear-gradient(0deg, #071a13 6%, rgba(7,26,19,.82) 48%, rgba(7,26,19,.66) 100%);
    }
    .hx-hero__rail {
        flex-direction: row; overflow-x: auto; padding-bottom: 6px;
        scrollbar-width: none;
    }
    .hx-hero__rail::-webkit-scrollbar { display: none; }
    .hx-thumb { flex: 0 0 214px; }
    .hx-hero__strip-inner { gap: 22px 32px; }
    .hx-hero__scroll { margin-left: 0; }

    .hx-head { grid-template-columns: 1fr; align-items: start; }
    .hx-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hx-tile--1, .hx-tile--2, .hx-tile--5 { grid-column: span 2; }
    .hx-tile--1 { grid-row: span 2; }

    .hx-acc { flex-direction: column; height: auto; }
    .hx-acc__panel { min-height: 92px; }
    .hx-acc__panel.is-open { min-height: 300px; }
    .hx-acc__spine { flex-direction: row; align-items: flex-start; padding: 22px 24px; gap: 14px; }
    .hx-acc__vtitle { writing-mode: horizontal-tb; }
    .hx-acc__glyph { margin-top: 0; margin-left: auto; }
    .hx-acc__reveal { position: relative; padding: 68px 24px 26px; }

    .hx-about { grid-template-columns: 1fr; gap: 50px; }
    .hx-about__sticky { position: static; }

    .hx-calc__form { grid-template-columns: 1fr; align-items: stretch; }
    .hx-calc__go { justify-self: stretch; }
}

@media (max-width: 575px) {
    .hx-sec { padding: 64px 0; }
    .hx-hero { padding-top: 130px; }
    .hx-hero__metric strong { font-size: 21px; }
    .hx-hero__metric span { font-size: 10.5px; }
    .hx-hero__counter em { font-size: 24px; }
    .hx-mosaic { grid-template-columns: 1fr; grid-auto-rows: 230px; }
    .hx-tile--1, .hx-tile--2, .hx-tile--3, .hx-tile--4, .hx-tile--5 { grid-column: span 1; grid-row: span 1; }
    .hx-tile--1 .hx-tile__title { font-size: 21px; }
    .hx-steps { grid-template-columns: 1fr; }
    .hx-step { border-right: 0; border-top: 1px solid rgba(149,213,178,.16); }
    .hx-step:first-child { border-top: 0; }
    .hx-calc__result { grid-template-columns: 1fr; }
    .hx-tiers, .hx-perks { grid-template-columns: 1fr; }
    .hx-ledger__row { grid-template-columns: auto 1fr; }
    .hx-ledger__mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hx-ribbon__track,
    .hx-hero__scroll-ico { animation: none; }
    .hx-hero__shot img { transform: none; transition: none; }
}

/* ============================================================
   CONTRAST GUARD
   app.css styles headings/paragraphs page-wide (`.page-index h2 {}` etc.)
   at a specificity that beats plain class selectors, which flipped the
   light-on-dark copy to ink. These win it back.
   ============================================================ */
.page-index .hx-h2--light,
.page-index .hx-hero__title,
.page-index .hx-hero__title span { color: #fff !important; }
.page-index .hx-hero__title em { color: var(--hx-mint-2) !important; }

.page-index .hx-hero__desc { color: rgba(228,247,234,.85) !important; }

.page-index .hx-calc__cell strong { color: #fff !important; }
.page-index .hx-calc__cell--total strong { color: var(--hx-mint-2) !important; }
.page-index .hx-why__head .hx-h2 { color: #fff !important; }

/* global.css sets `a:hover { color: var(--secondary); text-decoration: underline }`,
   which wiped the copy inside these link-based cards on hover. */
.page-index a.hx-tile__link:hover,
.page-index a.hx-acc__panel:hover,
.page-index a.hx-link:hover,
.page-index a.hx-btn:hover { text-decoration: none !important; }
.page-index a.hx-tile__link:hover .hx-tile__title,
.page-index a.hx-acc__panel:hover .hx-acc__title { color: #fff !important; }
.page-index a.hx-tile__link:hover .hx-tile__sum,
.page-index a.hx-acc__panel:hover .hx-acc__desc { color: rgba(228,247,234,.85) !important; }
.page-index a.hx-tile__link:hover .hx-tile__cta { color: var(--hx-mint-2) !important; }
