/* =========================================================================
   ASCEND AFRICA — INTERACTIVE TOOLKIT
   Premium UI for the qualifier, calculators, map, portal and global chrome.
   Inherits the design tokens declared in ascend.css.
   ========================================================================= */

/* ---- Scroll-progress bar --------------------------------------------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 1001; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); }

/* ---- Section-dot navigator ------------------------------------------- */
.dotnav { position: fixed; right: clamp(1rem, 2vw, 1.7rem); top: 50%; transform: translateY(-50%); z-index: 700; display: flex; flex-direction: column; gap: 1rem; opacity: 0; transition: opacity .5s var(--ease); }
.dotnav.show { opacity: 1; }
.dotnav__item { position: relative; display: flex; align-items: center; justify-content: flex-end; cursor: pointer; }
.dotnav__dot { width: 8px; height: 8px; border: 1px solid var(--ink-40); border-radius: 50%; transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); }
.dotnav__item:hover .dotnav__dot, .dotnav__item.active .dotnav__dot { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }
.dotnav__label { position: absolute; right: 20px; white-space: nowrap; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); background: rgba(9,20,32,.9); padding: .35rem .6rem; opacity: 0; transform: translateX(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; border: 1px solid var(--ink-08); }
.dotnav__item:hover .dotnav__label { opacity: 1; transform: none; }
@media (max-width: 1100px) { .dotnav { display: none; } }

/* ---- Back-to-top ------------------------------------------------------ */
.totop { position: fixed; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 700; width: 46px; height: 46px; border: 1px solid var(--ink-12); background: rgba(9,20,32,.97); color: var(--gold); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s, color .3s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--gold); color: var(--navy); }

/* ---- Private-line dock ------------------------------------------------ */
.dock { position: fixed; left: clamp(1rem, 3vw, 2rem); bottom: calc(clamp(1rem, 3vw, 2rem) + 60px); z-index: 700; display: flex; flex-direction: column; gap: .6rem; }
.dock__item { width: 46px; height: 46px; border: 1px solid var(--ink-12); background: rgba(9,20,32,.97); color: var(--gold); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s, color .3s; }
.dock.show .dock__item { opacity: 1; transform: none; pointer-events: auto; }
.dock.show .dock__item:nth-child(2){ transition-delay:.05s } .dock.show .dock__item:nth-child(3){ transition-delay:.1s }
.dock__item:hover { background: var(--gold); color: var(--navy); }
.dock__item svg { width: 19px; height: 19px; }

/* ---- Currency toggle (in nav) ---------------------------------------- */
.ccy { display: inline-flex; align-items: center; gap: .15rem; border: 1px solid var(--ink-12); padding: .25rem; margin-right: .4rem; }
.ccy button { background: none; border: 0; color: var(--ink-60); font-family: var(--serif); font-size: .64rem; letter-spacing: .1em; padding: .3rem .45rem; cursor: pointer; transition: color .3s, background .3s; }
.ccy button.active { background: var(--gold); color: var(--navy); }
.ccy button:hover { color: var(--ivory); }
.ccy button.active:hover { color: var(--navy); }

/* ===================================================================== */
/* MODAL SHELL (qualifier + insight capture + booking confirmations)     */
/* ===================================================================== */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.modal.open { opacity: 1; visibility: visible; }
.modal__scrim { position: absolute; inset: 0; background: rgba(5,12,20,.82); backdrop-filter: blur(8px); }
.modal__panel { position: relative; width: min(960px, 100%); max-height: 90vh; overflow: hidden; background: var(--navy); border: 1px solid var(--ink-12); display: grid; grid-template-columns: 320px 1fr; transform: translateY(24px) scale(.98); transition: transform .55s var(--ease); }
.modal.open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 1rem; right: 1rem; z-index: 5; width: 40px; height: 40px; border: 1px solid var(--ink-12); background: rgba(9,20,32,.6); color: var(--ivory); cursor: pointer; transition: background .4s, color .4s; display:flex;align-items:center;justify-content:center; }
.modal__close:hover { background: var(--gold); color: var(--navy); }
.modal__aside { position: relative; padding: 2.6rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.modal__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; z-index: 0; }
.modal__aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,20,32,.6), var(--navy-deep)); z-index: 1; }
.modal__aside > * { position: relative; z-index: 2; }
.modal__aside h3 { font-size: 1.7rem; line-height: 1.15; }
.modal__aside .serif-italic { font-size: 1.3rem; }
.modal__body { padding: 2.6rem; overflow-y: auto; }
@media (max-width: 760px) { .modal__panel { grid-template-columns: 1fr; } .modal__aside { display: none; } }

/* ---- Multi-step qualifier -------------------------------------------- */
.q__progress { display: flex; gap: .5rem; margin-bottom: 2rem; }
.q__progress span { flex: 1; height: 2px; background: var(--ink-12); overflow: hidden; position: relative; }
.q__progress span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.q__progress span.done::after { transform: scaleX(1); }
.q__step { display: none; }
.q__step.active { display: block; animation: qIn .5s var(--ease); }
@keyframes qIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.q__kicker { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.q__q { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); margin: .8rem 0 1.6rem; line-height: 1.15; }
.q__opts { display: grid; gap: .8rem; }
.q__opts.two { grid-template-columns: 1fr 1fr; }
.q__opt { text-align: left; background: var(--navy-soft); border: 1px solid var(--ink-08); color: var(--ivory); padding: 1.05rem 1.2rem; cursor: pointer; font-family: var(--serif); font-size: .95rem; display: flex; align-items: center; gap: .9rem; transition: border-color .4s var(--ease), background .4s var(--ease), transform .3s var(--ease); }
.q__opt:hover { border-color: var(--gold); transform: translateX(4px); }
.q__opt.sel { border-color: var(--gold); background: rgba(201,168,76,.10); }
.q__opt .tick { margin-left: auto; color: var(--gold); opacity: 0; transition: opacity .3s; }
.q__opt.sel .tick { opacity: 1; }
.q__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; gap: 1rem; }
.q__back { background: none; border: 0; color: var(--ink-60); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.q__back:hover { color: var(--ivory); }
.q__field { display: grid; gap: 1rem; }
.q__field input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink-12); color: var(--ivory); padding: .7rem 0; font-size: 1rem; font-family: var(--sans); }
.q__field input:focus { outline: none; border-color: var(--gold); }

/* qualifier results */
.q__results { display: grid; gap: 1rem; }
.q__match { border: 1px solid var(--ink-08); padding: 1.3rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; background: var(--navy-soft); animation: qIn .5s var(--ease) backwards; }
.q__match__flag { width: 46px; height: 34px; border: 1px solid var(--ink-12); overflow: hidden; flex: 0 0 46px; background: var(--navy-deep); }
.q__match__flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q__match h4 { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.q__match p { font-size: .82rem; color: var(--ink-60); margin-top: .2rem; }
.q__match__score { text-align: right; }
.q__match__score b { font-family: var(--serif); color: var(--gold); font-size: 1.4rem; }
.q__match__score span { display: block; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); }

/* ===================================================================== */
/* TOOL SECTIONS (embedded on pages)                                     */
/* ===================================================================== */
.tool { border: 1px solid var(--ink-08); background: var(--navy-deep); padding: clamp(1.8rem, 4vw, 3rem); }
.tool__head { margin-bottom: 2rem; }
.tool__head .eyebrow { display: inline-block; margin-bottom: 1rem; }
.tool__head h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* ---- Mandate selector + donut ---------------------------------------- */
.mandate-tool { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 760px) { .mandate-tool { grid-template-columns: 1fr; } }
.msel__slider { margin: 2rem 0; }
.msel__range { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--ink-12); outline: none; }
.msel__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; background: var(--gold); border-radius: 50%; cursor: pointer; border: 3px solid var(--navy); box-shadow: 0 0 0 1px var(--gold); }
.msel__range::-moz-range-thumb { width: 22px; height: 22px; background: var(--gold); border-radius: 50%; cursor: pointer; border: 3px solid var(--navy); }
.msel__ticks { display: flex; justify-content: space-between; margin-top: 1rem; }
.msel__ticks button { background: none; border: 0; color: var(--ink-40); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: color .3s; }
.msel__ticks button.active { color: var(--gold); }
.msel__name { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.msel__ret { color: var(--gold); font-family: var(--serif); font-size: 1.4rem; margin: .4rem 0 1rem; }
.msel__obj { color: var(--ink-60); }
.msel__alloc { margin-top: 1.5rem; display: grid; gap: .6rem; }
.msel__row { display: flex; align-items: center; gap: .8rem; font-size: .82rem; }
.msel__sw { width: 11px; height: 11px; flex: 0 0 11px; }
.msel__row span:last-child { margin-left: auto; color: var(--ink-60); }
.donut { position: relative; width: 100%; max-width: 320px; margin: 0 auto; }
.donut svg { width: 100%; height: auto; transform: rotate(-90deg); }
.donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donut__center b { font-family: var(--serif); font-size: 2.4rem; color: var(--ivory); }
.donut__center span { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.msel__amount { margin-top: 1.6rem; }
.msel__amount label { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); margin-bottom: .8rem; }
.msel__amount label b { color: var(--gold); font-family: var(--serif); letter-spacing: 0; font-size: 1rem; }
.msel__right { display: flex; flex-direction: column; gap: 1.6rem; }
.msel__proj { background: var(--navy); border: 1px solid var(--ink-08); padding: clamp(1.3rem, 2.4vw, 1.8rem); }
.msel__proj-head { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.msel__proj-fv { font-family: var(--serif); color: var(--ivory); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.1; }
.msel__proj-fv em { color: var(--ink-40); font-style: normal; margin: 0 .2rem; }
.msel__proj-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.msel__proj-meta b { font-family: var(--serif); color: var(--gold); font-size: 1.2rem; display: block; }
.msel__proj-meta span { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); }
.msel__spark { margin-top: 1.2rem; height: 70px; }
.msel__spark svg { width: 100%; height: 100%; display: block; }
@media (max-width: 760px) { .msel__right { margin-top: 2rem; } }
@media (max-width: 820px) { .mandate-tool { grid-template-columns: 1fr; } }

/* ---- Property calculator --------------------------------------------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.calc__markets { display: flex; gap: .6rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.calc__mkt { background: var(--navy-soft); border: 1px solid var(--ink-08); color: var(--ink-60); padding: .6rem 1rem; font-size: .76rem; letter-spacing: .06em; cursor: pointer; transition: border-color .4s, color .4s; }
.calc__mkt.active { border-color: var(--gold); color: var(--gold); }
.calc__field { margin-bottom: 1.5rem; }
.calc__field label { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); margin-bottom: .8rem; }
.calc__field label b { color: var(--gold); font-family: var(--serif); letter-spacing: 0; font-size: 1rem; }
.calc__range { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--ink-12); }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--gold); border-radius: 50%; cursor: pointer; border: 3px solid var(--navy-deep); }
.calc__range::-moz-range-thumb { width: 20px; height: 20px; background: var(--gold); border-radius: 50%; border: 3px solid var(--navy-deep); cursor: pointer; }
.calc__out { background: var(--navy); border: 1px solid var(--ink-08); padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.calc__stat { border-bottom: 1px solid var(--ink-08); padding-bottom: .85rem; }
.calc__stat:last-child { border-bottom: 0; padding-bottom: 0; }
.calc__stat b { font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 2rem); color: var(--gold); display: block; }
.calc__stat span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); }
.calc__assumption { margin: .25rem 0 0; font-size: .68rem; line-height: 1.55; color: rgba(245,240,232,.48); }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }

/* ---- Passport comparator --------------------------------------------- */
.cmp { display: grid; gap: .8rem; }
.cmp__row { display: grid; grid-template-columns: 180px 1fr 70px; gap: 1.2rem; align-items: center; }
.cmp__name { font-family: var(--serif); font-size: 1.05rem; display: flex; align-items: center; gap: .8rem; }
.cmp__flag { width: 30px; height: 21px; object-fit: cover; flex: 0 0 30px; border: 1px solid var(--ink-12); }
.cmp__name small { display: block; font-family: var(--serif); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-top: .2rem; }
.cmp__bar { height: 8px; background: var(--ink-08); position: relative; overflow: hidden; }
.cmp__bar i { position: absolute; inset: 0 100% 0 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); transition: right 1.2s var(--ease); }
.cmp__val { text-align: right; font-family: var(--serif); color: var(--gold); font-size: 1.2rem; }
.cmp__val small { display: block; font-family: var(--sans); font-size: .56rem; letter-spacing: .04em; color: var(--ink-40); margin-top: .2rem; }

/* finder result chips */
.q__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.q__chip { font-family: var(--sans); font-size: .64rem; letter-spacing: .04em; color: var(--ink-60); border: 1px solid var(--ink-12); padding: .22rem .55rem; border-radius: 999px; }
.q__chip b { color: var(--gold); font-weight: 500; }

/* wealth-outlook headline stats */
.viz__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.6rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--ink-08); }
.viz__stats b { font-family: var(--serif); color: var(--gold); font-size: clamp(1.4rem, 3vw, 2.1rem); display: block; line-height: 1; }
.viz__stats span { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); margin-top: .5rem; display: block; }
.viz__dot { transition: r .3s var(--ease); cursor: pointer; }
.viz svg:hover .viz__dot { r: 5; }
@media (max-width: 640px) { .cmp__row { grid-template-columns: 1fr 60px; } .cmp__bar { display: none; } }

/* ---- Wealth data-viz chart ------------------------------------------- */
.viz { border: 1px solid var(--ink-08); padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--navy-deep); }
.viz svg { width: 100%; height: auto; overflow: visible; }
.viz__area { fill: url(#vizgrad); opacity: .25; }
.viz__line { fill: none; stroke: var(--gold); stroke-width: 2; }
.viz__dot { fill: var(--gold); }
.viz__lbl { fill: var(--ink-40); font-size: 11px; font-family: var(--sans); }
.viz__val { fill: var(--ivory); font-family: var(--serif); font-size: 14px; }

/* ---- Interactive map -------------------------------------------------- */
.map-wrap { border: 1px solid var(--ink-08); background: var(--navy-deep); position: relative; overflow: hidden; }
#worldmap { height: clamp(380px, 52vw, 560px); }

/* animated capital-flow overlay */
.flow-arc { fill: none; stroke: rgba(201,168,76,.45); stroke-width: 1; stroke-dasharray: 4 6; animation: flowDash 1s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -20; } }
.flow-dot { fill: #F4E4B0; filter: drop-shadow(0 0 4px rgba(228,203,132,.9)); }
.flow-hub { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: .8; transform-box: fill-box; transform-origin: center; animation: hubPulse 2.2s ease-out infinite; }
@keyframes hubPulse { 0% { r: 5; opacity: .9; } 70%, 100% { r: 22px; opacity: 0; } }
.jvm-marker { filter: drop-shadow(0 0 5px rgba(201,168,76,.55)); }

/* map legend chip */
.map-legend { position: absolute; left: 1rem; bottom: 1rem; z-index: 4; display: flex; align-items: center; gap: .6rem; background: rgba(9,20,32,.78); border: 1px solid rgba(201,168,76,.25); padding: .5rem .85rem; border-radius: 999px; backdrop-filter: blur(8px); }
.map-legend i { width: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 8px); display: inline-block; }
.map-legend span { font-family: var(--mono); font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,240,232,.7); }
.jvm-tooltip { background: var(--navy) !important; border: 1px solid var(--gold) !important; color: var(--ivory) !important; font-family: var(--sans) !important; padding: .5rem .8rem !important; border-radius: 0 !important; font-size: .8rem !important; }
/* Readable marker labels: light fill with a dark halo (paint-order stroke) */
.jvm-container text,
.jvm-container .jvm-marker-label { fill: var(--gold-light) !important; font-family: var(--sans) !important; font-size: 12.5px !important; font-weight: 500 !important; letter-spacing: .02em; paint-order: stroke; stroke: rgba(9,20,32,.9); stroke-width: 3.5px; stroke-linejoin: round; }
.map-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 80%); background: rgba(9,20,32,.96); backdrop-filter: blur(12px); border-left: 1px solid var(--ink-12); padding: 2rem; transform: translateX(100%); transition: transform .5s var(--ease); overflow-y: auto; z-index: 5; }
.map-panel.open { transform: none; }
.map-panel__close { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; color: var(--gold); cursor: pointer; font-size: 1.3rem; }
.map-panel__flag { width: 56px; height: 38px; object-fit: cover; border: 1px solid var(--ink-12); margin-bottom: 1rem; display: block; }
.map-panel h4 { font-family: var(--serif); font-size: 1.6rem; }
.map-panel .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.4rem 0; }
.map-panel .meta div b { display: block; font-family: var(--serif); color: var(--gold); font-size: 1.3rem; }
.map-panel .meta div span { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-40); }

/* ===================================================================== */
/* TOOLS HUB · INSIGHTS · BOOKING · PORTAL                                */
/* ===================================================================== */
.toolgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.toolcard { border: 1px solid var(--ink-08); padding: clamp(1.8rem, 3vw, 2.6rem); transition: border-color .5s var(--ease), transform .6s var(--ease), background .5s; position: relative; overflow: hidden; }
.toolcard:hover { border-color: var(--ink-12); transform: translateY(-5px); background: var(--navy-soft); }
.toolcard__ic { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--gold); margin-bottom: 1.4rem; }
.toolcard__ic svg { width: 28px; height: 28px; }

/* ---- Tool carousel ---------------------------------------------------- */
.tcar { position: relative; }
.tcar__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.tcar__hint { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-40); }
.tcar__btns { display: flex; gap: .6rem; }
.tcar__btn { width: 48px; height: 48px; border: 1px solid var(--ink-12); background: transparent; color: var(--gold); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), opacity .4s; }
.tcar__btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.tcar__btn:disabled { opacity: .25; cursor: default; }
.tcar__btn:disabled:hover { background: transparent; color: var(--gold); border-color: var(--ink-12); }

.tcar__track { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; padding: .4rem .3rem 1.4rem; cursor: grab; }
.tcar__track::-webkit-scrollbar { display: none; }
.tcar__track.drag { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.tcar__track.drag a { pointer-events: none; }
.tcar__slide { scroll-snap-align: start; flex: 0 0 clamp(258px, 27vw, 312px); }

.tcard { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--ink-08); background: var(--navy-deep); overflow: hidden; transition: border-color .5s var(--ease), transform .6s var(--ease), background .5s var(--ease); }
.tcard::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: 4; }
.tcard:hover { transform: translateY(-8px); border-color: var(--ink-12); background: var(--navy-soft); }
.tcard:hover::before { transform: scaleX(1); }
.tcard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tcard__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform 1.4s var(--ease); }
.tcard:hover .tcard__media img { transform: scale(1.09); }
.tcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(9,20,32,.1), rgba(9,20,32,.55) 65%, var(--navy-deep)); }
.tcard__wm { position: absolute; top: .7rem; right: 1.1rem; z-index: 2; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(201,168,76,.4); transition: -webkit-text-stroke-color .5s; }
.tcard:hover .tcard__wm { -webkit-text-stroke-color: var(--gold); }
.tcard__body { position: relative; padding: 2.4rem 1.7rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.tcard__ic { position: absolute; top: -25px; left: 1.7rem; z-index: 3; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; color: var(--gold); border: 1px solid var(--gold); background: var(--navy-deep); transition: transform .6s var(--ease), background .5s var(--ease), color .5s var(--ease); }
.tcard__ic svg { width: 24px; height: 24px; }
.tcard:hover .tcard__ic { transform: translateY(-4px) rotate(-5deg); background: var(--gold); color: var(--navy); }
.tcard h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.tcard p { font-size: .86rem; color: var(--ink-60); line-height: 1.55; margin-bottom: 1.3rem; flex: 1; }
.tcard__go { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; }
.tcard__go .arr { transition: transform .45s var(--ease); }
.tcard:hover .tcard__go .arr { transform: translateX(7px); }
.toolcard h3 { font-size: 1.4rem; margin-bottom: .7rem; }
.toolcard p { color: var(--ink-60); font-size: .92rem; margin-bottom: 1.4rem; }
@media (max-width: 760px) { .toolgrid { grid-template-columns: 1fr; } }

.insight-card { border: 1px solid var(--ink-08); overflow: hidden; display: flex; flex-direction: column; transition: border-color .5s, transform .6s var(--ease); }
.insight-card:hover { border-color: var(--ink-12); transform: translateY(-5px); }
.insight-card__media { aspect-ratio: 16/10; overflow: hidden; }
.insight-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.insight-card:hover .insight-card__media img { transform: scale(1.06); }
.insight-card__body { padding: 1.7rem; display: flex; flex-direction: column; flex: 1; }
.insight-card__kind { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.insight-card h3 { font-size: 1.25rem; margin: .8rem 0; }
.insight-card p { font-size: .88rem; color: var(--ink-60); flex: 1; margin-bottom: 1.2rem; }

/* booking */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.bk__cal { border: 1px solid var(--ink-08); padding: 1.6rem; }
.bk__cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.bk__cal-head button { background: none; border: 0; color: var(--gold); cursor: pointer; font-size: 1.1rem; padding: .3rem .6rem; }
.bk__cal-head b { font-family: var(--serif); font-size: 1.2rem; }
.bk__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk__dow { text-align: center; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-40); padding: .4rem 0; }
.bk__day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--ivory); cursor: pointer; border: 1px solid transparent; transition: border-color .3s, background .3s, color .3s; }
.bk__day.muted { color: var(--ink-12); pointer-events: none; }
.bk__day.off { color: var(--ink-40); pointer-events: none; text-decoration: line-through; }
.bk__day:hover { border-color: var(--gold); }
.bk__day.sel { background: var(--gold); color: var(--navy); }
.bk__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.4rem; }
.bk__slot { background: var(--navy-soft); border: 1px solid var(--ink-08); color: var(--ivory); padding: .7rem; font-size: .82rem; cursor: pointer; transition: border-color .3s, background .3s; }
.bk__slot.sel { border-color: var(--gold); background: rgba(201,168,76,.12); color: var(--gold); }
.bk__summary { border: 1px solid var(--gold); background: rgba(201,168,76,.06); padding: 1rem 1.3rem; margin: 1.4rem 0; font-size: .9rem; color: var(--gold); min-height: 3.4em; }

/* portal */
.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.portal-aside { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 3rem; }
.portal-aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.portal-aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--navy-deep), rgba(9,20,32,.5)); }
.portal-aside__in { position: relative; z-index: 2; text-align: center; }
.portal-aside__in img.mark { height: 120px; width: auto; margin-bottom: 1.5rem; opacity: 1; }
.portal-login { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 6vw, 5rem); }
.portal-login__in { width: 100%; max-width: 380px; }
.portal-note { font-size: .76rem; color: var(--ink-40); margin-top: 1.5rem; border-top: 1px solid var(--ink-08); padding-top: 1.2rem; }
@media (max-width: 860px) { .portal-shell { grid-template-columns: 1fr; } .portal-aside { display: none; } }

.dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink-08); border: 1px solid var(--ink-08); margin-bottom: 1px; }
.dash__kpi { background: var(--navy); padding: 1.8rem; }
.dash__kpi span { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); }
.dash__kpi b { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ivory); margin-top: .5rem; }
.dash__kpi .up { color: var(--sage); font-size: .8rem; font-family: var(--serif); }
.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1px; background: var(--ink-08); border: 1px solid var(--ink-08); border-top: 0; }
.dash-panel { background: var(--navy); padding: 1.8rem; }
.dash-panel h4 { font-family: var(--serif); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; }
.holding { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--ink-08); font-size: .9rem; }
.holding:last-child { border-bottom: 0; }
.holding .sw { width: 10px; height: 10px; }
.holding .pct { margin-left: auto; color: var(--ink-60); }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr 1fr; } .dash-grid { grid-template-columns: 1fr; } }

/* ---- Trust band ------------------------------------------------------- */

/* ---- Footer newsletter ------------------------------------------------ */
.news { display: flex; gap: .8rem; margin-top: 1rem; max-width: 340px; }
.news input { flex: 1; background: transparent; border: 0; border-bottom: 1px solid var(--ink-12); color: var(--ivory); padding: .6rem 0; font-size: .9rem; }
.news input:focus { outline: none; border-color: var(--gold); }
.news button { background: none; border: 0; color: var(--gold); cursor: pointer; font-size: 1.2rem; padding: 0 .4rem; }
.news__done { color: var(--gold); font-size: .82rem; margin-top: .8rem; }

/* hero particles canvas */
.hero__particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* ---- Toolkit mega-menu (light theme) --------------------------------- */
.mega__tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem .8rem; }
.mega__tool {
  display: flex; align-items: center; gap: .85rem;
  padding: .72rem .9rem;
  border-radius: 8px;
  border: 1px solid rgba(13,27,42,.07);
  background: #fff;
  text-decoration: none;
  transition: background .28s var(--ease), border-color .28s, box-shadow .28s;
}
.mega__tool:hover { background: #fff; border-color: rgba(201,168,76,.35); box-shadow: 0 4px 18px rgba(13,27,42,.06); }
.mega__tool-thumb { flex: 0 0 52px; width: 52px; height: 38px; overflow: hidden; border-radius: 5px; position: relative; flex-shrink: 0; }
.mega__tool-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mega__tool:hover .mega__tool-thumb img { transform: scale(1.1); }
.mega__tool b { display: block; font-size: .86rem; color: var(--navy); font-weight: 500; }
.mega__tool i { display: block; font-style: normal; font-size: .73rem; color: rgba(13,27,42,.48); margin-top: .1rem; }
@media (max-width: 980px) { .mega__tools { grid-template-columns: 1fr 1fr; } }

/* =============================================================================
   TOOLKIT HUB — "command centre" (sleek, modular, tech-forward)
   ============================================================================= */
:root { --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }

/* --- Section shell: dark with a faint engineering grid ---------------------- */
.thub {
  position: relative; background: var(--navy-deep); overflow: hidden;
  padding-block: clamp(4rem, 8vw, 7.5rem);
}
.thub::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(201,168,76,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 35%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 75% at 50% 35%, #000 30%, transparent 78%);
}
.thub > .wrap, .thub > .wrap--wide { position: relative; z-index: 1; }

.thub__head { text-align: center; margin-bottom: clamp(2.6rem, 4vw, 4rem); }
.thub__kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.thub__kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201,168,76,.6); animation: thubPulse 2.4s var(--ease) infinite; }
@keyframes thubPulse { 0% { box-shadow: 0 0 0 0 rgba(201,168,76,.55);} 70%,100% { box-shadow: 0 0 0 8px rgba(201,168,76,0);} }
.thub__h { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3.2vw, 2.7rem); color: var(--ivory); line-height: 1.05; margin: 0; }
.thub__sub { max-width: 56ch; margin: 1.3rem auto 0; font-size: .95rem; line-height: 1.7; color: rgba(245,240,232,.6); }

/* --- Modular grid ---------------------------------------------------------- */
.thub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.9rem, 1.6vw, 1.5rem); }
@media (max-width: 960px) { .thub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .thub-grid { grid-template-columns: 1fr; } }

/* --- The module card ------------------------------------------------------- */
.thub-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2vw, 2rem);
  background: linear-gradient(168deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.014) 60%);
  border: 1px solid rgba(201,168,76,.16); border-radius: 6px;
  text-decoration: none; min-height: 19rem;
  transition: transform .55s var(--ease), border-color .55s, box-shadow .55s, background .55s;
  will-change: transform;
}
.thub-card:hover {
  transform: translateY(-7px);
  border-color: rgba(201,168,76,.55);
  background: linear-gradient(168deg, rgba(201,168,76,.09) 0%, rgba(255,255,255,.014) 60%);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,.85);
}
/* corner ticks — engineering detail */
.thub-card::before, .thub-card::after {
  content: ""; position: absolute; width: 12px; height: 12px; z-index: 3;
  border-color: var(--gold); opacity: 0; transition: opacity .5s;
}
.thub-card::before { top: 9px; left: 9px; border-top: 1px solid; border-left: 1px solid; }
.thub-card::after  { bottom: 9px; right: 9px; border-bottom: 1px solid; border-right: 1px solid; }
.thub-card:hover::before, .thub-card:hover::after { opacity: .8; }
/* scan-line sweep on hover */
.thub-card__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 40%; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(201,168,76,.16), transparent);
  transform: translateY(-120%); opacity: 0;
}
.thub-card:hover .thub-card__scan { animation: thubScan 1.15s var(--ease) forwards; }
@keyframes thubScan { 0% { transform: translateY(-120%); opacity: .9; } 100% { transform: translateY(260%); opacity: 0; } }

/* meta row: monospace id + live status */
.thub-card__meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.thub-card__id { font-family: var(--mono); font-size: .56rem; letter-spacing: .22em; color: rgba(201,168,76,.7); text-transform: uppercase; }
.thub-card__status { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .52rem; letter-spacing: .18em; color: rgba(245,240,232,.45); text-transform: uppercase; }
.thub-card__status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #5fd08a; box-shadow: 0 0 6px #5fd08a; }

/* icon tile */
.thub-card__icon {
  width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid rgba(201,168,76,.28); background: rgba(201,168,76,.06);
  color: var(--gold); margin-bottom: 1.1rem;
  transition: background .5s, color .5s, transform .5s var(--ease);
}
.thub-card__icon svg { width: 1.4rem; height: 1.4rem; }
.thub-card:hover .thub-card__icon { background: var(--gold); color: var(--navy-deep); transform: rotate(-4deg); }

.thub-card__name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1.5vw, 1.42rem); color: var(--ivory); margin: 0 0 .5rem; line-height: 1.12; }
.thub-card__tag { font-size: .82rem; color: rgba(245,240,232,.55); line-height: 1.55; margin: 0 0 1.2rem; }

/* mini data-visual */
.thub-card__viz { margin-top: auto; height: 56px; position: relative; }
.thub-card__viz svg { width: 100%; height: 100%; overflow: visible; display: block; }
.thub-viz-stroke { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.thub-viz-faint { fill: none; stroke: rgba(245,240,232,.14); stroke-width: 1; }
.thub-viz-dot { fill: var(--gold-light); }
.thub-viz-bar { fill: var(--gold); opacity: .85; transform-box: fill-box; transform-origin: bottom; }

.thub-card__go {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.3rem;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  transition: gap .4s var(--ease);
}
.thub-card:hover .thub-card__go { gap: .9rem; }
.thub-card__go span { transition: transform .4s var(--ease); }
.thub-card:hover .thub-card__go span { transform: translateX(3px); }

/* --- Stat ribbon ----------------------------------------------------------- */
.thub-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(201,168,76,.16); border: 1px solid rgba(201,168,76,.16); border-radius: 6px; overflow: hidden; }
.thub-stat { background: var(--navy-deep); padding: clamp(1.6rem, 3vw, 2.6rem) 1rem; text-align: center; }
.thub-stat__n { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 3rem); color: var(--gold); line-height: 1; display: block; }
.thub-stat__l { font-family: var(--mono); font-size: .54rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,240,232,.5); margin-top: .7rem; display: block; }
@media (max-width: 700px) { .thub-stats { grid-template-columns: repeat(2, 1fr); } }

/* =============================================================================
   TOOL CONSOLE — frame around the live interactive widget
   ============================================================================= */
/* light stage so the dark console device floats and pops */
.tool-stage { background: var(--ivory); }

.tconsole {
  border: 1px solid rgba(201,168,76,.22); border-radius: 12px; overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 44px 100px -54px rgba(9,20,32,.85), 0 0 0 1px rgba(9,20,32,.04);
}
.tconsole__bar { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.2rem; background: rgba(0,0,0,.28); border-bottom: 1px solid rgba(201,168,76,.16); }
.tconsole__dots { display: flex; gap: .45rem; }
.tconsole__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(245,240,232,.18); display: block; }
.tconsole__dots i:first-child { background: rgba(201,168,76,.9); }
.tconsole__dots i:nth-child(2) { background: rgba(245,240,232,.3); }
.tconsole__path { font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; color: rgba(245,240,232,.55); text-transform: lowercase; }
.tconsole__live { margin-left: auto; display: inline-flex; align-items: center; gap: .42rem; font-family: var(--mono); font-size: .54rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,240,232,.55); }
.tconsole__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5fd08a; box-shadow: 0 0 7px #5fd08a; animation: thubPulse 2.4s var(--ease) infinite; }
.tconsole__body { padding: clamp(1.4rem, 3vw, 2.8rem); background: var(--navy-deep); }
/* the widget blends seamlessly into the console (it carries its own dark theme) */
.tconsole .tool { background: transparent; border: 0; padding: 0; }

/* --- Compact "other tools" rail ------------------------------------------- */
.trail { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 1.4vw, 1.2rem); }
@media (max-width: 860px) { .trail { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trail { grid-template-columns: 1fr; } }
.trail-card {
  position: relative; display: flex; align-items: center; gap: 1rem; text-decoration: none;
  padding: 1.1rem 1.2rem; border: 1px solid rgba(13,27,42,.1); border-radius: 8px; background: #fff;
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.trail-card:hover { transform: translateY(-4px); border-color: rgba(201,168,76,.45); box-shadow: 0 18px 40px -28px rgba(13,27,42,.4); }
.trail-card__icon { flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 7px; border: 1px solid rgba(201,168,76,.3); color: var(--gold-deep); background: rgba(201,168,76,.05); transition: background .5s, color .5s; }
.trail-card__icon svg { width: 1.2rem; height: 1.2rem; }
.trail-card:hover .trail-card__icon { background: var(--gold); color: #fff; }
.trail-card__name { font-family: var(--serif); font-size: 1.02rem; color: var(--navy); display: block; line-height: 1.1; }
.trail-card__tag { font-family: var(--mono); font-size: .54rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(13,27,42,.45); margin-top: .3rem; display: block; }
.trail-card__arr { margin-left: auto; color: var(--gold-deep); font-size: .9rem; transition: transform .4s var(--ease); }
.trail-card:hover .trail-card__arr { transform: translateX(4px); }

/* Brochure type alignment: micro-labels are Barlow, not the display serif. */
.ccy button,
.cmp__name small,
.dash-panel h4 { font-family: var(--sans); font-weight: 600; }
