/* Taukpa public site, "The City That Answers" (redesign/DESIGN.md).
   Loaded only on public routes (App.razor IsPublicSite + WebsiteLayout), after
   site.css and v4.css, so it restyles their su-/ip-/page classes without
   touching markup hooks. Never loaded inside the signed-in portals. */

:root {
  --tp-night: #070a13; --tp-deep: #0a1535; --tp-tower: #1a2a5a;
  --tp-navy: #0c3389; --tp-navy-ink: #0a2a73;
  --tp-gold: #f5b800; --tp-gold-ink: #8a5f00; --tp-gold-soft: #fff4d1;
  --tp-paper: #f7f8fa; --tp-white: #fff;
  --tp-ink: #0f172a; --tp-ink-2: #334155; --tp-ink-3: #526077;
  --tp-mist: #c9d2e6; --tp-line: #e3e7ee; --tp-line-night: rgba(201, 210, 230, .16);
  --tp-green: #10b981; --tp-green-ink: #047857;
  --tp-e1: 0 1px 2px rgba(7, 10, 19, .06), 0 1px 1px rgba(7, 10, 19, .04);
  --tp-e2: 0 12px 32px -12px rgba(7, 10, 19, .22), 0 2px 6px rgba(7, 10, 19, .06);
  --tp-e3: 0 32px 80px -24px rgba(3, 6, 20, .55), 0 4px 14px rgba(3, 6, 20, .25);
  --tp-ease-out: cubic-bezier(.16, 1, .3, 1); --tp-ease-io: cubic-bezier(.65, 0, .35, 1); --tp-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --tp-head-h: 76px;
  --tp-body: "Plus Jakarta Sans", "Noto Sans Myanmar", "Noto Sans Thai", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tp-display: Sora, "Plus Jakarta Sans", "Noto Sans Myanmar", "Noto Sans Thai", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --tp-lh: 1.65; --tp-lh-h: 1.12; --tp-track-h: -.022em;
  /* The V4 sheet's own variables, pointed at the new palette. */
  --su-navy: var(--tp-navy); --su-navy-dark: var(--tp-navy-ink); --su-gold: var(--tp-gold); --su-gold-ink: var(--tp-gold-ink);
  --su-ink: var(--tp-ink); --su-ink-2: var(--tp-ink-2); --su-ink-3: var(--tp-ink-3); --su-ink-4: var(--tp-ink-3);
  --su-line: var(--tp-line); --su-soft: var(--tp-paper); --su-green: var(--tp-green-ink); --su-font: var(--tp-body);
}
/* Scripts that must not inherit Latin display settings. */
html[lang="my"] { --tp-display: "Noto Sans Myanmar", var(--tp-body); --tp-lh: 1.8; --tp-lh-h: 1.45; --tp-track-h: 0; }
html[lang^="th"] { --tp-display: "Noto Sans Thai", var(--tp-body); --tp-lh: 1.75; --tp-lh-h: 1.4; --tp-track-h: 0; }
html[lang="ar"] { --tp-body: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif; --tp-display: "IBM Plex Sans Arabic", var(--tp-body); --tp-lh: 1.8; --tp-lh-h: 1.4; --tp-track-h: 0; }

/* ── Base (public pages only) ───────────────────────────────────────── */
body:has(> .su-head), body:has(.su-head) { background: var(--tp-paper); }
.su-page, .su-head, .su-foot, .hp, .tp-page { font-family: var(--tp-body); color: var(--tp-ink); line-height: var(--tp-lh); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.su-page { background: var(--tp-paper); }
.su-page h1, .su-page h2, .hp h1, .hp h2, .tp-page h1, .tp-page h2, .container h1, .container h2 {
  font-family: var(--tp-display); letter-spacing: var(--tp-track-h); line-height: var(--tp-lh-h); text-wrap: balance;
}
.su-page h3, .hp h3, .container h3 { font-family: var(--tp-body); letter-spacing: -.005em; }
.su-page p, .hp p { text-wrap: pretty; }
html[lang="my"] .su-page :is(h1, h2, h3, p, li), html[lang="my"] .hp :is(h1, h2, h3, p, li) { line-height: max(var(--tp-lh-h), 1.45); }
html[lang="my"] .su-page :is(p, li, small), html[lang="my"] .hp :is(p, li, small), html[lang="my"] .su-foot :is(a, p) { line-height: 1.8; }
html:is([lang="my"], [lang^="th"], [lang="ar"]) .su-eyebrow, html:is([lang="my"], [lang^="th"], [lang="ar"]) .tp-eyebrow { text-transform: none; letter-spacing: 0; }

.su-eyebrow, .tp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px/1.4 var(--tp-body); letter-spacing: .12em; text-transform: uppercase; color: var(--tp-navy); }
.su-eyebrow svg { color: var(--tp-gold); }

/* Focus: always visible, two-tone so it reads on paper and on night. */
:is(.su-page, .su-head, .su-foot, .hp) :is(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--tp-navy); border-radius: 10px;
}
:is(.tp-night, .su-foot, .su-head.is-night) :is(a, button, summary, [tabindex]:not([tabindex="-1"])):focus-visible { box-shadow: 0 0 0 3px var(--tp-night), 0 0 0 6px var(--tp-gold); }

/* ── Buttons: solid, plain labels, pill, ≥44px ───────────────────────── */
.su-btn { min-height: 44px; padding: 12px 22px; font: 700 15px/1.2 var(--tp-body); border-radius: 999px; transition: background-color .12s, transform .2s var(--tp-ease-out), box-shadow .2s; }
.su-btn:active { transform: translateY(1px); }
.su-btn--navy { background: var(--tp-navy); box-shadow: 0 6px 16px -8px rgba(12, 51, 137, .7); }
.su-btn--navy:hover { background: var(--tp-navy-ink); }
.su-btn--gold { background: var(--tp-gold); color: var(--tp-night) !important; }
.su-btn--gold:hover { background: #ffc626; }
.su-btn--line { background: var(--tp-white); border: 1.5px solid var(--tp-line); }
.su-btn--line:hover { border-color: var(--tp-navy); }
/* On a dark band the main button is gold and the quiet one is outlined light. */
.tp-night .su-btn--navy { background: var(--tp-gold); color: var(--tp-night) !important; box-shadow: none; }
.tp-night .su-btn--navy:hover { background: #ffc626; }
.tp-night .su-btn--line { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .35); }
.tp-night .su-btn--line:hover { border-color: var(--tp-gold); }

/* ── Header: transparent on night, solid paper once scrolled ────────── */
.su-head { background: var(--tp-white); border-bottom: 1px solid var(--tp-line); backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color .32s, border-color .32s, box-shadow .32s; }
.su-head-in { height: var(--tp-head-h); gap: 20px; max-width: 1240px; }
.su-logo img { height: 50px; }
.su-logo .tp-logo-light { display: none; }
.su-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--tp-ink-2); transition: color .12s, background-color .12s; }
.su-nav a:hover { background: #eef2fb; color: var(--tp-navy); }
.su-signin { min-height: 44px; border-radius: 999px; font-weight: 700; }
.su-head.is-night { background: transparent; border-bottom-color: transparent; }
.su-head.is-night .tp-logo-dark { display: none; }
.su-head.is-night .tp-logo-light { display: block; }
.su-head.is-night .su-nav a, .su-head.is-night .su-signin { color: #e8ecf7; }
.su-head.is-night .su-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.su-head.is-night .su-join { background: var(--tp-gold); color: var(--tp-night) !important; box-shadow: none; }
.su-head.is-scrolled { box-shadow: 0 6px 24px -14px rgba(7, 10, 19, .35); }

/* ── Scene bands ─────────────────────────────────────────────────────── */
.tp-night { position: relative; isolation: isolate; color: var(--tp-mist); background: radial-gradient(120% 90% at 70% 20%, #13224f 0%, var(--tp-deep) 45%, var(--tp-night) 100%); }
.tp-night :is(h1, h2, h3) { color: #fff; }
.tp-night p { color: var(--tp-mist); }
.tp-night .su-eyebrow, .tp-night .tp-eyebrow { color: var(--tp-gold); }
.tp-night-top { margin-top: calc(-1 * var(--tp-head-h)); padding-top: var(--tp-head-h); }
.tp-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: auto; contain: strict; }
.tp-scene .tp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s var(--tp-ease-out); }
.tp-scene.is-live .tp-canvas { opacity: 1; }
.tp-scene .tp-still, .tp-scene .tp-still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; display: block; }
html[dir="rtl"] .tp-scene .tp-still img { transform: scaleX(-1); object-position: 30% 50%; }
.tp-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 10, 19, .78) 0%, rgba(7, 10, 19, .35) 42%, rgba(7, 10, 19, 0) 70%); }
html[dir="rtl"] .tp-scene::after { background: linear-gradient(270deg, rgba(7, 10, 19, .78) 0%, rgba(7, 10, 19, .35) 42%, rgba(7, 10, 19, 0) 70%); }
.tp-scene--plain::after { display: none; }
/* The small lantern used as a header on calm pages. */
.tp-lantern { position: relative; width: 132px; height: 132px; flex: none; }
.tp-lantern .tp-scene { z-index: 0; border-radius: 50%; }
.tp-lantern .tp-scene::after { display: none; }
@media (prefers-reduced-motion: reduce) { .tp-scene .tp-canvas { display: none; } }

/* Section rhythm on paper. */
.tp-band { padding: 96px 0; }
.tp-band--tight { padding: 64px 0; }
.tp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 700px) { .tp-band { padding: 56px 0; } .tp-wrap { padding: 0 18px; } }

/* ── Footer: the city at street level ────────────────────────────────── */
.su-foot { position: relative; background: var(--tp-night); color: var(--tp-mist); border-top: 0; padding-top: clamp(96px, 13vw, 210px); overflow: hidden; }
/* The city at street level (Higgsfield still, redesign/assets.json "skyline"): paper sky above, night street below. */
.su-foot::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: clamp(110px, 15vw, 240px); pointer-events: none;
  background: var(--tp-paper) image-set(url("media/skyline-1x.avif") type("image/avif") 1x, url("media/skyline-2x.avif") type("image/avif") 2x, url("media/skyline-1x.webp") type("image/webp") 1x) center bottom / cover no-repeat; }
html[dir="rtl"] .su-foot::before { transform: scaleX(-1); }
.su-foot::after { content: ""; position: absolute; inset-inline: 0; top: clamp(110px, 15vw, 240px); height: 1px; background: linear-gradient(90deg, transparent, rgba(245, 184, 0, .45), transparent); }
.su-foot-in { position: relative; max-width: 1240px; padding-top: 48px; }
.su-foot-brand img { filter: none; content: url("../../brand/taukpa-logo-tagline-light.png"); height: 56px; width: auto; }
.su-foot-brand p { color: var(--tp-mist); }
.su-foot-col h5 { color: #fff; font: 700 13px/1.4 var(--tp-body); letter-spacing: .1em; text-transform: uppercase; }
html:is([lang="my"], [lang^="th"], [lang="ar"]) .su-foot-col h5 { text-transform: none; letter-spacing: 0; font-size: 14px; }
.su-foot-col a { color: var(--tp-mist) !important; display: inline-flex; min-height: 36px; align-items: center; transition: color .12s; }
.su-foot-col a:hover { color: var(--tp-gold) !important; }
.su-foot-bottom { position: relative; border-top: 1px solid var(--tp-line-night); color: #8f9bb8; max-width: 1240px; }
.su-langs { display: flex; gap: 4px; flex-wrap: wrap; }
.su-langs a { color: var(--tp-mist) !important; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--tp-line-night); }
.su-langs a:hover { border-color: var(--tp-gold); color: #fff !important; }
.su-foot .su-apps a, .su-foot .su-apps img { filter: none; }

/* ── Reconnect modal (public pages only; same markup, same words) ─────── */
body:has(.su-head) #components-reconnect-modal { --tp: 1; }

/* ── Mobile menu: full-screen sheet below 760px (checkbox, no script) ─── */
.tp-menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tp-menu-btn, .tp-menu-sheet { display: none; }
@media (max-width: 759.98px) {
  .su-nav { display: none; }
  .tp-menu-btn { order: 10; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border-radius: 999px; cursor: pointer; margin-inline-start: auto; }
  .tp-menu-btn span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .32s var(--tp-ease-out), opacity .2s; }
  .su-head { color: var(--tp-ink); } .su-head.is-night { color: #fff; }
  .tp-menu-toggle:focus-visible + .tp-menu-btn { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--tp-navy); }
  .tp-menu-toggle:checked + .tp-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .tp-menu-toggle:checked + .tp-menu-btn span:nth-child(2) { opacity: 0; }
  .tp-menu-toggle:checked + .tp-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .tp-menu-sheet { display: block; position: fixed; inset: var(--tp-head-h) 0 0 0; z-index: 29; visibility: hidden; }
  .tp-menu-toggle:checked ~ .tp-menu-sheet { visibility: visible; }
  .tp-menu-scrim { position: absolute; inset: 0; background: var(--tp-night); opacity: 0; transition: opacity .32s; }
  .tp-menu-panel { position: relative; display: flex; flex-direction: column; padding: 24px; gap: 4px; transform: translateY(-12px); opacity: 0; transition: transform .32s var(--tp-ease-out), opacity .32s; }
  .tp-menu-toggle:checked ~ .tp-menu-sheet .tp-menu-scrim { opacity: 1; }
  .tp-menu-toggle:checked ~ .tp-menu-sheet .tp-menu-panel { transform: none; opacity: 1; }
  .tp-menu-panel a { color: #fff !important; font: 700 28px/1.3 var(--tp-display); padding: 14px 4px; border-bottom: 1px solid var(--tp-line-night); min-height: 56px; }
  html[lang="my"] .tp-menu-panel a { font-size: 22px; line-height: 1.6; }
  .su-head:has(.tp-menu-toggle:checked) { background: var(--tp-night); color: #fff; border-bottom-color: var(--tp-line-night); }
  .su-head:has(.tp-menu-toggle:checked) .tp-logo-dark { display: none; }
  .su-head:has(.tp-menu-toggle:checked) .tp-logo-light { display: block; }
  .su-head-in { gap: 10px; padding: 0 14px; }
  .su-logo img { height: 40px; }
  .su-signin { padding: 8px; font-size: 14px; }
  .su-join { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 420px) { .su-head .su-signin { display: none; } }

/* ── Home ─────────────────────────────────────────────────────────────── */
.tp-scene--home::after { background:
  radial-gradient(60% 70% at 78% 52%, rgba(7, 10, 19, .25), rgba(7, 10, 19, 0) 70%),
  linear-gradient(180deg, rgba(7, 10, 19, .55) 0%, rgba(7, 10, 19, 0) 26%, rgba(7, 10, 19, 0) 70%, rgba(7, 10, 19, .85) 100%),
  linear-gradient(90deg, rgba(7, 10, 19, .6) 0%, rgba(7, 10, 19, .12) 36%, rgba(7, 10, 19, 0) 100%); }
html[dir="rtl"] .tp-scene--home::after { transform: scaleX(-1); }
.hp { overflow-x: clip; }
.hp-top--night { background: var(--tp-night); }
:is(.su-page, .hp) :is(h1, h2)[tabindex="-1"]:focus { outline: none; box-shadow: none; }
/* The auth card (shared component): restyled only here, under the home card. */
.hp-card .acc-inline { font-family: var(--tp-body); }
.hp-card .acc-sub { color: var(--tp-ink-3); }
.hp-card .acc-kicker { color: var(--tp-gold-ink); }
.hp-card .acc-title { font-family: var(--tp-display); letter-spacing: var(--tp-track-h); color: var(--tp-ink); }
.hp-card .acc-input { min-height: 48px; border-radius: 12px; border: 1.5px solid #d6dce6; font-size: 16px; transition: border-color .12s, box-shadow .2s; }
.hp-card .acc-input:hover { border-color: #b4bdcc; }
.hp-card .acc-input:focus { border-color: var(--tp-navy); box-shadow: 0 0 0 4px rgba(12, 51, 137, .14); outline: none; }
.hp-card .acc-btn { min-height: 48px; border-radius: 999px; font-weight: 700; }
.hp-card .acc-btn:not(.acc-btn--outline) { background: var(--tp-navy); box-shadow: 0 8px 18px -10px rgba(12, 51, 137, .8); }
.hp-card .acc-btn:not(.acc-btn--outline):hover { background: var(--tp-navy-ink); }
.hp-card .lgn-social a, .hp-card [class*="social"] a { min-width: 48px; min-height: 48px; border-radius: 14px; }

/* Two paths below the hero. */
.hp-paths { background: var(--tp-paper); padding: 72px 0 24px; }
.hp-paths-in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hp-path { position: relative; display: grid; gap: 10px; align-content: end; min-height: 260px; padding: 32px; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: var(--tp-white); border: 1px solid var(--tp-line); box-shadow: var(--tp-e1); color: var(--tp-ink) !important;
  transition: transform .32s var(--tp-ease-out), box-shadow .32s var(--tp-ease-out), border-color .2s; }
.hp-path:hover { transform: translateY(-4px); box-shadow: var(--tp-e2); border-color: #cfd6e3; }
.hp-path--hire { background: var(--tp-deep); border-color: var(--tp-deep); color: #fff !important; }
.hp-path-k { font: 700 13px/1.4 var(--tp-body); letter-spacing: .1em; text-transform: uppercase; color: var(--tp-navy); }
html:is([lang="my"], [lang^="th"], [lang="ar"]) .hp-path-k { letter-spacing: 0; text-transform: none; font-size: 14px; }
.hp-path--hire .hp-path-k { color: var(--tp-gold); }
.hp-path strong { font: 700 clamp(22px, 2.3vw, 30px)/var(--tp-lh-h) var(--tp-display); letter-spacing: var(--tp-track-h); max-width: 20ch; }
.hp-path-go { position: absolute; inset-block-start: 28px; inset-inline-end: 28px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--tp-navy); color: #fff; transition: transform .32s var(--tp-ease-out); }
.hp-path--hire .hp-path-go { background: var(--tp-gold); color: var(--tp-night); }
.hp-path:hover .hp-path-go { transform: translateX(4px); }
html[dir="rtl"] .hp-path-go svg { transform: scaleX(-1); }
html[dir="rtl"] .hp-path:hover .hp-path-go { transform: translateX(-4px); }
.hp-path-art { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .9; }
.hp-path-art--seek { background-image: url("media/path-seek.webp"); }
.hp-path-art--hire { background-image: url("media/path-hire.webp"); }
.hp-path-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 20%, #fff 78%); }
.hp-path--hire .hp-path-art::after { background: linear-gradient(180deg, rgba(10, 21, 53, 0) 20%, var(--tp-deep) 78%); }
@media (max-width: 760px) { .hp-paths-in { grid-template-columns: 1fr; } .hp-path { min-height: 220px; padding: 24px; } }
.hp .su-trusted { background: var(--tp-paper); border: 0; }
.hp .su-trusted-t { color: var(--tp-ink-3); font-weight: 600; }

/* ── Night heroes (inner pages): text at the start, the scene behind ─── */
/* Two-class selectors so they win over each page's own <style> block (which loads later). */
.tp-hero.tp-night { background: radial-gradient(110% 90% at 75% 30%, #13224f 0%, var(--tp-deep) 46%, var(--tp-night) 100%) !important;
  text-align: start; color: var(--tp-mist); border: 0;
  padding: calc(var(--tp-head-h) + clamp(48px, 7vw, 104px)) 0 clamp(72px, 9vw, 128px) !important;
  min-height: clamp(560px, 58vw, 760px); display: flex; align-items: center; }
.tp-hero.tp-night > :not(.tp-scene) { position: relative; width: 100%; }
.tp-hero.tp-night h1 { color: #fff !important; font-size: clamp(36px, 4.8vw, 60px) !important; line-height: var(--tp-lh-h) !important;
  letter-spacing: var(--tp-track-h); max-width: 14ch !important; margin-inline: 0 !important; text-wrap: balance; }
html:is([lang="my"], [lang^="th"], [lang="ar"]) .tp-hero.tp-night h1 { max-width: 20ch !important; font-size: clamp(30px, 3.8vw, 46px) !important; }
.tp-hero.tp-night h1 .g { color: var(--tp-gold) !important; background: none !important; }
.tp-hero.tp-night :is(p, .sub, .lead, .ip-lead) { color: var(--tp-mist) !important; margin-inline: 0 !important; max-width: 52ch !important; font-size: clamp(16px, 1.4vw, 19px); }
.tp-hero.tp-night :is(.ip-eyebrow, .fc-eyebrow, .eyebrow, .su-eyebrow) { color: var(--tp-gold) !important; justify-content: flex-start; }
.tp-hero.tp-night :is(.eyebrow .bar) { background: var(--tp-gold) !important; }
.tp-hero.tp-night :is(.ip-ctas, .fc-ctas, .ctas, .hero-ctas) { justify-content: flex-start !important; }
.tp-hero.tp-night :is(.ip-chips) { justify-content: flex-start; }
.tp-hero.tp-night .ip-chip { background: rgba(255, 255, 255, .06); border-color: var(--tp-line-night); color: #e8ecf7 !important; }
.tp-hero.tp-night :is(.btn-ghost, .su-btn--line) { background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .35) !important; }
.tp-hero.tp-night :is(.btn-ghost, .su-btn--line):hover { border-color: var(--tp-gold) !important; }
.tp-hero.tp-night :is(.btn-primary, .btn-gold) { background: var(--tp-gold) !important; color: var(--tp-night) !important; border-color: var(--tp-gold) !important; }
/* Pricing keeps its centred hero: the city sits low and dim behind it. */
.tp-hero--calm.pr-hero { text-align: center; }
.tp-hero--calm.pr-hero :is(h1, p, .sub) { margin-inline: auto !important; }
.tp-hero--calm.pr-hero .eyebrow { justify-content: center !important; }
.tp-hero--calm.pr-hero .tp-scene::after { background: radial-gradient(60% 70% at 50% 40%, rgba(7, 10, 19, .78), rgba(7, 10, 19, .35) 70%, rgba(7, 10, 19, .2)); }
@media (max-width: 760px) {
  .tp-hero.tp-night { min-height: 0; padding: calc(var(--tp-head-h) + 40px) 0 clamp(220px, 60vw, 320px) !important; align-items: flex-start; }
  .tp-hero.tp-night .tp-scene::after { background: linear-gradient(180deg, rgba(7, 10, 19, .92) 0%, rgba(7, 10, 19, .7) 45%, rgba(7, 10, 19, .1) 75%, rgba(7, 10, 19, .5) 100%); }
  .tp-hero--calm.pr-hero { padding-bottom: clamp(76px, 12vw, 96px) !important; }
}

/* ── Calm pages: paper hero with a small lantern scene at the end ─────── */
.tp-calm-hero { position: relative; background: linear-gradient(180deg, #eef1f8 0%, var(--tp-paper) 100%) !important; }
.tp-calm-hero .tp-lantern { position: absolute; top: clamp(20px, 4vw, 48px); inset-inline-end: max(24px, calc(50% - 580px)); width: clamp(92px, 11vw, 148px); height: clamp(92px, 11vw, 148px);
  border-radius: 50%; background: radial-gradient(circle at 50% 45%, #1b2b5e 0%, var(--tp-deep) 55%, var(--tp-night) 100%); box-shadow: var(--tp-e2); overflow: hidden; }
.tp-calm-hero .tp-lantern .tp-still img { object-position: 50% 50%; transform: scale(1.9); }
.tp-calm-hero :is(.eyebrow, .ip-eyebrow, .su-eyebrow) { color: var(--tp-gold-ink) !important; }
.tp-calm-hero :is(.eyebrow .bar) { background: var(--tp-gold-ink) !important; }
.tp-calm-hero :is(.sub, .lead, .ip-lead, h1 + p) { color: var(--tp-ink-2) !important; }
.tp-calm-hero :is(h1) { color: var(--tp-navy); font-family: var(--tp-display); letter-spacing: var(--tp-track-h); line-height: var(--tp-lh-h); }
@media (max-width: 760px) { .tp-calm-hero .tp-lantern { position: relative; inset: auto; margin: 0 auto 16px; display: block; width: 88px; height: 88px; } .tp-calm-hero { padding-top: 28px !important; } }

/* ── Dark calm heroes (Job alerts, CV builder, Events, Groups) and legal pages: night, never purple ── */
:is(.tp-dark-calm, .tp-legal-hero) { background: radial-gradient(110% 90% at 80% 20%, #13224f 0%, var(--tp-deep) 50%, var(--tp-night) 100%) !important; }
:is(.tp-dark-calm, .tp-legal-hero)::before, :is(.tp-dark-calm, .tp-legal-hero)::after { display: none !important; } /* the old purple rings */
.tp-dark-calm :is(h1) { color: #fff !important; font-family: var(--tp-display); letter-spacing: var(--tp-track-h); line-height: var(--tp-lh-h); }
.tp-dark-calm :is(h1 .g) { color: var(--tp-gold) !important; background: none !important; }
.tp-dark-calm :is(.sub, h1 + p, .lead) { color: var(--tp-mist) !important; }
.tp-dark-calm :is(.eyebrow, .ip-eyebrow) { color: var(--tp-gold) !important; }
.tp-dark-calm .tp-lantern { position: absolute; top: calc(var(--tp-head-h) + clamp(20px, 4vw, 48px)); inset-inline-end: max(24px, calc(50% - 580px)); width: clamp(92px, 11vw, 148px); height: clamp(92px, 11vw, 148px); border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 45%, #1b2b5e 0%, var(--tp-deep) 60%, var(--tp-night) 100%); box-shadow: 0 0 0 1px var(--tp-line-night); }
.tp-dark-calm .tp-lantern .tp-still img { object-position: 50% 50%; transform: scale(1.9); }
/* Job alerts: the form fills the right, so the lantern sits under the copy; CV builder keeps the top corner. */
@media (min-width: 761px) { .ja-hero.tp-dark-calm .tp-lantern { top: auto; bottom: 28px; inset-inline-end: auto; inset-inline-start: max(24px, calc(50% - 580px)); width: 84px; height: 84px; } }
@media (max-width: 760px) { .tp-dark-calm .tp-lantern { position: relative; inset: auto; top: auto; margin: 0 auto 16px; display: block; width: 84px; height: 84px; } }
.tp-legal-hero h1 { font-family: var(--tp-display); letter-spacing: var(--tp-track-h); }

/* ── How it works: one night band, a sticky scroll-driven scene behind the steps ── */
.su-life-page:has(.tp-journey) { background: var(--tp-night); margin-top: calc(-1 * var(--tp-head-h)); padding-top: var(--tp-head-h); }
.tp-journey.tp-night-top { margin-top: 0; }
/* The step cards are paper inside the night band: put the reading colours back. */
.tp-journey .su-life-card { color: var(--tp-ink); }
.tp-journey .su-life-card :is(h2, h3) { color: var(--tp-ink); }
.tp-journey .su-life-card p { color: var(--tp-ink-2); }
.tp-journey { background: transparent !important; position: relative; padding-top: calc(var(--tp-head-h) + 56px) !important; }
.tp-journey-stage { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; width: 100vw; margin-inline-start: calc(50% - 50vw); z-index: 0; pointer-events: none; }
.tp-journey-stage .tp-scene { z-index: 0; }
.tp-journey-stage .tp-scene::after { background: radial-gradient(70% 60% at 50% 50%, rgba(7, 10, 19, .25), rgba(7, 10, 19, .7)); }
.tp-journey > :not(.tp-journey-stage) { position: relative; z-index: 1; }
.tp-journey .su-life-head :is(h1) { color: #fff; }
.tp-journey .su-life-head p { color: var(--tp-mist); }
.tp-journey .su-life-head .su-eyebrow { color: var(--tp-gold); }
.tp-journey .su-life-card { background: var(--tp-white); border: 0; border-radius: 24px; box-shadow: var(--tp-e3); }
.tp-journey .su-life-path, .tp-journey .su-life-head-tip { stroke: var(--tp-gold) !important; opacity: .85; }
.tp-journey .su-life-end :is(h2) { color: #fff; }
.tp-journey .su-life-end p { color: var(--tp-mist); }
.tp-journey .su-life-end .su-btn--navy { background: var(--tp-gold); color: var(--tp-night) !important; }

/* Two-column night heroes with their own illustration (AI screening, CV builder): a calmer headline, scene kept low. */
.tp-hero--scanner.tp-night h1 { font-size: clamp(32px, 3.8vw, 50px) !important; max-width: 15ch !important; }
.tp-hero--scanner .tp-scene::after { background: linear-gradient(180deg, rgba(7, 10, 19, .7) 0%, rgba(7, 10, 19, .45) 55%, rgba(7, 10, 19, .1) 100%), linear-gradient(90deg, rgba(7, 10, 19, .7), rgba(7, 10, 19, 0) 60%); }
.tp-hero--rain .tp-scene::after { background: linear-gradient(90deg, rgba(7, 10, 19, .88) 0%, rgba(7, 10, 19, .55) 38%, rgba(7, 10, 19, 0) 66%); }
html[dir="rtl"] .tp-hero--rain .tp-scene::after, html[dir="rtl"] .tp-hero--scanner .tp-scene::after { transform: scaleX(-1); }
.tp-calm-hero :is(.sub, h1 + p) a { color: var(--tp-navy) !important; text-decoration: underline; text-underline-offset: 3px; }

/* AA on the paper background (the grey leads were tuned for white). */
.su-page :is(.ip-lead, .ip-lead a) { color: var(--tp-ink-3); }
.fc-band .su-btn--line { background: transparent !important; color: #fff !important; border-color: rgba(255, 255, 255, .5) !important; }

/* ── Home hero: "Silence vs. Answer" ─────────────────────────────────────
   The scene stages the story on a street under the copy and announces each
   beat; website.js copies it to [data-beat] on the hero. With no script the
   hero rests on the answered beat (the rules for :not([data-beat])). */
.hp-top--night { position: relative; overflow: hidden; background: radial-gradient(90% 70% at 30% 0%, #15265a 0%, var(--tp-deep) 40%, var(--tp-night) 85%); }
.hp-top--night > .hp-wrap { position: relative; z-index: 1; }
.hp-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hp-stage .tp-scene { pointer-events: none; }
.hp-stage .tp-scene::after { background: linear-gradient(180deg, rgba(7, 10, 19, .35) 0%, rgba(7, 10, 19, 0) 30%, rgba(7, 10, 19, 0) 82%, rgba(7, 10, 19, .7) 100%); }
.hp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hp-hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(40px, 6vw, 96px); align-items: start; padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 4vw, 56px); }
.hp-copy { position: relative; padding-bottom: clamp(250px, 31vh, 330px); }
.hp-street { position: absolute; inset-inline: -24px; bottom: 0; height: clamp(250px, 31vh, 330px); }
.hp-card { position: relative; background: #fff; border-radius: 28px; padding: 32px; box-shadow: var(--tp-e3); color: var(--tp-ink); margin-top: clamp(8px, 2vw, 24px); }
.hp-top--night .hp-card::before { content: ""; position: absolute; inset: -40px; z-index: -1; border-radius: 60px; background: radial-gradient(closest-side, rgba(7, 10, 19, .85), rgba(7, 10, 19, .55) 60%, rgba(7, 10, 19, 0)); pointer-events: none; }

.hp-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--tp-line-night); background: rgba(7, 10, 19, .55);
  color: #e6eaf5; font: 600 13.5px/1.4 var(--tp-body); }
.hp-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #7d828d; box-shadow: 0 0 0 4px rgba(125, 130, 141, .2); transition: background-color .4s, box-shadow .4s; }
.hp-h1 { margin: 0 0 22px; font: 700 clamp(40px, 5.4vw, 76px)/1.02 var(--tp-display); letter-spacing: -.035em; color: #fff; max-width: 15ch; text-wrap: balance; }
html:is([lang="my"], [lang^="th"], [lang="ar"]) .hp-h1 { font-size: clamp(30px, 3.7vw, 50px); line-height: var(--tp-lh-h); letter-spacing: 0; max-width: 19ch; }
.hx { display: block; position: relative; transition: color .7s var(--tp-ease-out), opacity .7s var(--tp-ease-out), text-shadow .7s; }
.hx-cold { color: #8b93a7; }
.hx-warm { color: var(--tp-gold); }
/* The cold sentence: in the silence it goes grey and a quiet line crosses it out. */
.hx-cold::after { content: ""; position: absolute; inset-inline-start: 0; top: 54%; height: .07em; width: 0; background: #8b93a7; border-radius: 2px; transition: width .9s var(--tp-ease-io) .2s; }
html:is([lang="my"], [lang^="th"], [lang="ar"]) .hx-cold::after { display: none; }
.hp-top--night:not([data-beat]) .hx-cold::after, [data-beat="answer"] .hx-cold::after, [data-beat="spark"] .hx-cold::after { width: min(100%, 15ch); }
[data-beat="silence"] .hx-cold { color: #c7cbd6; }
[data-beat="silence"] .hx-warm { color: rgba(255, 255, 255, .28); }
[data-beat="spark"] .hx-warm { color: #fff; }
[data-beat="answer"] .hx-warm, .hp-top--night:not([data-beat]) .hx-warm { color: var(--tp-gold); text-shadow: 0 0 28px rgba(245, 184, 0, .28); }
[data-beat="return"] .hx-warm { color: #fff; }
[data-beat="answer"] .hp-eyebrow-dot, .hp-top--night:not([data-beat]) .hp-eyebrow-dot { background: var(--tp-green); box-shadow: 0 0 0 4px rgba(16, 185, 129, .22); }
[data-beat="spark"] .hp-eyebrow-dot { background: var(--tp-gold); box-shadow: 0 0 0 4px rgba(245, 184, 0, .25); }

.hp-sub { margin: 0 0 26px; max-width: 540px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: var(--tp-mist); }
html[lang="my"] .hp-sub { line-height: 1.85; }

/* The beat caption with its 5-day ring, in step with the scene. */
.hp-beat { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; margin: 0 0 26px; padding: 6px 18px 6px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--tp-line-night); color: #fff; font: 600 15px/1.35 var(--tp-body); max-width: 100%; }
.hp-beat-ring { flex: none; transform: rotate(-90deg); }
html[dir="rtl"] .hp-beat-ring { transform: rotate(-90deg) scaleY(-1); }
.hp-beat-track { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 3; }
.hp-beat-fill { fill: none; stroke: var(--tp-gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .6s var(--tp-ease-io), stroke .4s; }
.hp-beat-tick { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(90deg); transform-origin: 18px 18px; transition: stroke-dashoffset .4s .3s; }
.hp-beat-t { display: none; }
.hp-top--night:not([data-beat]) .hp-beat-t[data-beat="answer"], [data-beat="silence"] .hp-beat-t[data-beat="silence"], [data-beat="spark"] .hp-beat-t[data-beat="spark"], [data-beat="answer"] .hp-beat-t[data-beat="answer"], [data-beat="return"] .hp-beat-t[data-beat="return"] { display: inline; animation: hp-beat-in .5s var(--tp-ease-out); }
@keyframes hp-beat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
[data-beat="silence"] .hp-beat-fill { stroke: #6b7280; stroke-dashoffset: 92; }
[data-beat="spark"] .hp-beat-fill { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s linear; }
[data-beat="answer"] .hp-beat-fill, .hp-top--night:not([data-beat]) .hp-beat-fill { stroke: var(--tp-green); stroke-dashoffset: 0; }
[data-beat="answer"] .hp-beat-ring, .hp-top--night:not([data-beat]) .hp-beat-ring { filter: drop-shadow(0 0 6px rgba(16, 185, 129, .45)); }
[data-beat="answer"] .hp-beat-tick, .hp-top--night:not([data-beat]) .hp-beat-tick { stroke-dashoffset: 0; }
[data-beat="return"] .hp-beat-fill { stroke: #8b93a7; stroke-dashoffset: 100; transition: stroke-dashoffset 2.6s linear; }

.hp-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hp-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #dfe4f1; }
.hp-points svg { flex: none; color: #06281c; background: var(--tp-green); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 1px; }

@media (max-width: 960px) {
  .hp-hero { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .hp-copy { padding-bottom: 0; }
  .hp-street { position: relative; inset: auto; height: 250px; margin: 6px -24px 0; }
  .hp-card { margin-top: -18px; }
}
@media (max-width: 600px) {
  .hp-wrap { padding: 0 16px; }
  .hp-street { margin-inline: -16px; height: 230px; }
  .hp-card { padding: 22px; border-radius: 22px; }
  .hp-h1 { font-size: clamp(36px, 10.4vw, 46px); }
  .hp-beat { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .hx, .hx-cold::after, .hp-beat-fill, .hp-beat-tick { transition: none !important; } .hp-beat-t { animation: none !important; } }
/* Fit the hero to one screen on desktop: the street sits on its bottom edge. */
@media (min-width: 961px) {
  .hp-top--night { min-height: max(720px, 100svh); }
  .hp-hero { min-height: calc(max(720px, 100svh) - var(--tp-head-h)); align-items: stretch; padding-bottom: 0; }
  .hp-card { align-self: start; }
  .hp-copy { padding-bottom: clamp(220px, 27vh, 300px); }
  .hp-street { height: clamp(220px, 27vh, 300px); }
  .hp-h1 { font-size: clamp(40px, 4.5vw, 66px); margin-bottom: 18px; }
  .hp-sub { font-size: clamp(15.5px, 1.2vw, 17.5px); margin-bottom: 20px; }
  .hp-beat { margin-bottom: 18px; }
  .hp-points { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .hp-points li { font-size: 13.5px; }
  .hp-points svg { width: 18px; height: 18px; }
}
/* The street spans the whole hero width at its foot: seekers under the copy,
   the Faceless Inbox centre-left, the boss's tower under the card column. */
@media (min-width: 961px) {
  .hp-top--night { box-sizing: border-box; }
  .hp-hero { min-height: calc(max(720px, 100svh) - var(--tp-head-h)); }
  .hp-copy { position: static; padding-bottom: clamp(260px, 38vh, 380px); }
  .hp-street { inset-inline: 0; bottom: 0; height: clamp(260px, 38vh, 380px); }
  .hp-points { display: grid; gap: 6px; }
}
@media (min-width: 961px) {
  .hp-hero { padding-top: clamp(16px, 2.6vh, 36px); }
  .hp-eyebrow { margin-bottom: 16px; }
  .hp-h1 { font-size: clamp(40px, 4vw, 60px); line-height: 1.03; }
  .hp-copy { padding-bottom: clamp(230px, 28vh, 330px); }
  .hp-street { height: clamp(230px, 28vh, 330px); }
}
html[lang="my"] .hp-h1 { font-size: clamp(26px, 2.7vw, 40px); line-height: 1.5; }
html[lang="my"] .hp-sub { font-size: 15.5px; }
.hp-stage .tp-still img { object-position: 50% 100%; }
html[dir="rtl"] .hp-stage .tp-still img { object-position: 50% 100%; }
/* The still stays where the live street is: the lower part of the hero, its sky fading into the night. */
.hp-stage .tp-still { top: auto; height: min(40%, 380px); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 32%); mask-image: linear-gradient(180deg, transparent 0%, #000 32%); }
@media (max-width: 960px) { .hp-stage .tp-still { height: 52%; } }

/* ── Home hero v3: audience switch + the story stage (ball of cards) ───── */
@media (min-width: 961px) { .hp-copy { padding-bottom: 0 !important; } }
.hp-hero { align-items: start; }
.hp-aud { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 20px; border-radius: 999px; background: rgba(7, 10, 19, .6); border: 1px solid var(--tp-line-night); }
.hp-aud-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hp-aud-tab { min-height: 40px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; color: #c9d2e6; font: 700 14px/1.2 var(--tp-body); cursor: pointer; transition: background-color .2s, color .2s; }
.hp-aud-in:checked + .hp-aud-tab { background: var(--tp-gold); color: var(--tp-night); }
.hp-aud-in:focus-visible + .hp-aud-tab { box-shadow: 0 0 0 3px var(--tp-night), 0 0 0 6px var(--tp-gold); }
/* Chapters are switched by the controller (.is-on), everything else by the radios. */
.aud-hire:not(.hs-ch) { display: none !important; }
.hp-top--night:has(#hp-aud-hire:checked) .aud-hire:not(.hs-ch) { display: revert !important; }
.hp-top--night:has(#hp-aud-hire:checked) .aud-seek:not(.hs-ch) { display: none !important; }
.hp-h1 > span { display: block; }
.hp-h1 .hx-cold { color: #8b93a7; } .hp-h1 .hx-warm { color: var(--tp-gold); }
@media (min-width: 961px) { .hp-h1 { font-size: clamp(36px, 3.5vw, 54px); } .hp-sub { margin-bottom: 8px; } }

.hs { position: relative; height: clamp(300px, 42vh, 440px); margin-inline: -24px; }
.hs-ball { position: absolute; inset: -20px -40px 54px; z-index: 0; touch-action: pan-y; cursor: grab; }
.hs-ball:active { cursor: grabbing; }
.hs-ball::after { display: none; }
.hs-screen { position: absolute; inset: 0 0 54px; z-index: 1; pointer-events: none; }
.hs-ch { position: absolute; inset: 0; display: none; }
.hs-ch.is-on { display: block; }
.hs-art { position: absolute; inset: 8px 24px 64px; display: grid; place-items: center; }
.hs:has(.hs-ball.is-live) .hs-art { display: none; }
.hs-cap { position: absolute; inset-inline: 24px; bottom: 6px; margin: 0; min-height: 52px; display: flex; align-items: center; font: 700 clamp(16px, 1.45vw, 21px)/1.3 var(--tp-display); letter-spacing: var(--tp-track-h); }
.hs-p, .hs-f { transition: opacity .45s var(--tp-ease-out), transform .45s var(--tp-ease-out); }
.hs-p { color: #e7a0a0; }
.hs-f { position: absolute; inset-inline-start: 0; color: #fff; opacity: 0; transform: translateY(8px); display: inline-flex; align-items: center; gap: 10px; }
.hs-f::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--tp-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.hs-ch.is-fixed .hs-p { opacity: 0; transform: translateY(-8px); }
.hs-ch.is-fixed .hs-f { opacity: 1; transform: none; }
html[lang="my"] .hs-cap { font-size: 15px; line-height: 1.6; }
.hs-rail { position: absolute; inset-inline: 24px; bottom: 0; height: 44px; display: flex; align-items: center; gap: 6px; z-index: 2; }
.hs-dot { position: relative; width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; }
.hs-dot i { position: absolute; inset: 20px 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.hs-dot i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--tp-gold); }
.hs-dot.is-done i::after { width: 100%; }
.hs-dot.is-on i::after { animation: hs-fill var(--hs-dur, 5200ms) linear forwards; }
.hs.is-paused .hs-dot.is-on i::after { animation-play-state: paused; }
@keyframes hs-fill { to { width: 100%; } }
.hs-dot:focus-visible { box-shadow: 0 0 0 3px var(--tp-night), 0 0 0 6px var(--tp-gold); border-radius: 10px; outline: none; }
/* No script: the first chapter of each audience shows its fix. */
.hs:not(.is-js) .hs-ch.aud-seek[data-i="0"] { display: block; }
.hp-top--night:has(#hp-aud-hire:checked) .hs:not(.is-js) .hs-ch.aud-seek[data-i="0"] { display: none; }
.hp-top--night:has(#hp-aud-hire:checked) .hs:not(.is-js) .hs-ch.aud-hire[data-i="0"] { display: block; }
.hs:not(.is-js) .hs-ch[data-i="0"] .hs-p { opacity: 0; } .hs:not(.is-js) .hs-ch[data-i="0"] .hs-f { opacity: 1; transform: none; }
@media (max-width: 960px) { .hs { height: 380px; margin-inline: -16px; } .hs-ball { inset: -10px 0 54px; } }

/* Fallback art (reduced motion / no WebGL): crisp shapes, no words but the badges. */
.hs-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font: 700 11.5px/1 var(--tp-body); white-space: nowrap; }
.hs-ok { background: #d1fae5; color: #065f46; } .hs-bad { background: #fee2e2; color: #991b1b; }
.hs-jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 12px; }
.hs-job { position: relative; display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 16px; background: #fff; box-shadow: var(--tp-e2); transition: transform .6s var(--tp-ease-out) var(--d), opacity .6s var(--d); }
.hs-logo { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--tp-navy); }
.hs-lines { display: grid; gap: 6px; flex: 1; } .hs-lines b { display: block; height: 8px; border-radius: 4px; background: #d5dae3; } .hs-lines b:first-child { background: #0f172a; width: 80%; }
.hs-job .hs-ok, .hs-job .hs-warn { position: absolute; top: -9px; inset-inline-end: -6px; }
.hs-warn { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e03131; color: #fff; font: 800 13px/1 var(--tp-body); opacity: 0; }
.hs-job .hs-ok { opacity: 0; transform: scale(.6); transition: opacity .3s var(--d), transform .4s var(--tp-ease-spring) var(--d); }
.hs-ch:not(.is-fixed) .hs-job.is-fake { outline: 2px dashed #e03131; animation: hs-jit .18s infinite; } .hs-ch:not(.is-fixed) .hs-job.is-fake .hs-warn { opacity: 1; }
.hs-ch.is-fixed .hs-job.is-fake { transform: translateY(60px) rotate(8deg); opacity: 0; }
.hs-ch.is-fixed .hs-job:not(.is-fake) .hs-ok { opacity: 1; transform: none; }
@keyframes hs-jit { 50% { transform: translate(1px, -1px) rotate(-.6deg); } }
.hs-reply, .hs-chat, .hs-doc, .hs-rank, .hs-cal { position: relative; width: min(100%, 470px); height: 220px; }
.hs-cv, .hs-boss, .hs-inbox, .hs-paper, .hs-them .hs-msg, .hs-msg { background: #fff; border-radius: 16px; box-shadow: var(--tp-e2); }
.hs-cv { position: absolute; inset-inline-start: 0; top: 40px; width: 150px; padding: 14px; display: flex; gap: 10px; }
.hs-ava { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #3b5bdb; } .hs-ava--boss { background: var(--tp-gold); position: relative; }
.hs-inbox { position: absolute; inset-inline-end: 0; top: 30px; width: 170px; height: 120px; display: grid; place-items: center; color: #64748b; transition: opacity .4s; }
.hs-seen { display: inline-flex; gap: 4px; align-items: center; font: 600 11.5px/1 var(--tp-body); color: #64748b; }
.hs-boss { position: absolute; inset-inline-end: 0; top: 20px; width: 210px; padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; opacity: 0; transform: scale(.9); transition: opacity .5s .3s, transform .6s var(--tp-ease-spring) .3s; }
.hs-bubble { flex: 1; display: grid; gap: 6px; } .hs-bubble b { height: 8px; border-radius: 4px; background: #d5dae3; }
.hs-ch.is-fixed .hs-inbox { opacity: 0; } .hs-ch.is-fixed .hs-boss { opacity: 1; transform: none; }
.hs-track { position: absolute; inset-inline: 160px 180px; top: 80px; height: 2px; background: repeating-linear-gradient(90deg, rgba(245, 184, 0, .5) 0 6px, transparent 6px 12px); }
.hs-fly { position: absolute; top: -11px; inset-inline-start: 0; color: var(--tp-gold); opacity: 0; }
.hs-ch.is-fixed .hs-fly { animation: hs-fly .9s var(--tp-ease-io) forwards; }
@keyframes hs-fly { from { opacity: 1; inset-inline-start: 0; } to { opacity: 0; inset-inline-start: 100%; } }
.hs-ring { display: none; } .hs-zz { display: none; }
.hs-cal { display: grid; grid-template-columns: 1fr 120px; gap: 16px; align-items: center; }
.hs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 14px; background: #fff; border-radius: 16px; box-shadow: var(--tp-e2); }
.hs-grid i { height: 30px; border-radius: 7px; background: #eef1f6; transition: background-color .4s var(--d), transform .4s var(--d); }
.hs-ch:not(.is-fixed) .hs-grid i.is-clash { background: #fca5a5; animation: hs-jit .2s infinite; }
.hs-ch.is-fixed .hs-grid i.is-slot { background: var(--tp-navy); transform: scale(1.08); }
.hs-mail { position: relative; color: #fff; display: grid; place-items: center; } .hs-count { position: absolute; top: -6px; inset-inline-end: 22px; background: #e03131; color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font: 800 12px/1 var(--tp-body); }
.hs-count i { grid-area: 1 / 1; font-style: normal; opacity: 0; animation: hs-count 1.5s steps(1) infinite; } .hs-count i:nth-child(2) { animation-delay: .5s; } .hs-count i:nth-child(3) { animation-delay: 1s; }
@keyframes hs-count { 0%, 33% { opacity: 1; } 34%, 100% { opacity: 0; } }
.hs-book { position: absolute; inset-inline-end: 0; bottom: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; opacity: 0; transition: opacity .4s .3s; }
.hs-apps { display: flex; gap: 6px; } .hs-apps em { font: 700 11px/1 var(--tp-body); font-style: normal; padding: 6px 9px; border-radius: 999px; background: #fff; color: var(--tp-navy); }
.hs-ch.is-fixed .hs-mail { opacity: .25; } .hs-ch.is-fixed .hs-book { opacity: 1; }
.hs-chat { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; padding-top: 10px; }
.hs-msg { display: grid; gap: 6px; padding: 12px 14px; width: 180px; } .hs-msg b { height: 8px; border-radius: 4px; background: #c7d2fe; } .hs-me { background: #e0e7ff; }
.hs-them { align-self: flex-start; display: flex; gap: 10px; align-items: center; } .hs-typing { display: none; } .hs-reply-msg { opacity: 0; transform: translateY(6px); transition: opacity .4s .4s, transform .4s .4s; }
.hs-ch.is-fixed .hs-reply-msg { opacity: 1; transform: none; } .hs-ch.is-fixed .hs-me .hs-seen { color: var(--tp-green); }
.hs-spark { display: none; }
.hs-doc { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: center; }
.hs-paper { position: relative; padding: 16px; display: grid; gap: 10px; overflow: hidden; } .hs-head { display: flex; gap: 10px; align-items: center; }
.hs-row { display: flex; gap: 8px; align-items: center; } .hs-row b { flex: 1; height: 8px; border-radius: 4px; background: #d5dae3; }
.hs-tick { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--tp-green); color: #fff; opacity: 0; transition: opacity .3s var(--d); }
.hs-ch:not(.is-fixed) .hs-row.is-bad b { background: #fca5a5; } .hs-ch.is-fixed .hs-tick { opacity: 1; }
.hs-scan { position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--tp-gold); box-shadow: 0 0 12px var(--tp-gold); opacity: 0; }
.hs-ch.is-fixed .hs-scan { animation: hs-scan 1s var(--tp-ease-io); }
@keyframes hs-scan { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 0; } }
.hs-doc > .hs-bad, .hs-doc > .hs-ok { grid-column: 2; justify-self: start; } .hs-doc > .hs-ok, .hs-ch:not(.is-fixed) .hs-chips { display: none; }
.hs-ch.is-fixed .hs-doc > .hs-bad { display: none; } .hs-ch.is-fixed .hs-doc > .hs-ok { display: inline-flex; }
.hs-chips { grid-column: 2; display: flex; gap: 6px; } .hs-chips em { font: 700 11px/1 var(--tp-body); font-style: normal; padding: 6px 9px; border-radius: 999px; background: #d1fae5; color: #065f46; }
.hs-rank { display: grid; place-items: center; } .hs-pile, .hs-list { grid-area: 1 / 1; }
.hs-pile { position: relative; width: 120px; height: 150px; transition: opacity .4s; } .hs-pile i { position: absolute; inset: 0; background: #fff; border-radius: 12px; box-shadow: var(--tp-e1); transform: translateX(var(--x)) rotate(var(--r)); }
.hs-num { position: absolute; top: -12px; inset-inline-end: -40px; background: #e03131; color: #fff; border-radius: 999px; padding: 5px 10px; font: 800 13px/1 var(--tp-body); display: grid; }
.hs-num i { grid-area: 1 / 1; font-style: normal; opacity: 0; animation: hs-count 1.5s steps(1) infinite; } .hs-num i:nth-child(2) { animation-delay: .5s; } .hs-num i:nth-child(3) { animation-delay: 1s; }
.hs-list { display: grid; gap: 10px; width: min(100%, 360px); opacity: 0; transition: opacity .5s .2s; }
.hs-li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: #fff; border-radius: 14px; box-shadow: var(--tp-e2); }
.hs-bar { flex: 1; height: 8px; border-radius: 4px; background: #eef1f6; overflow: hidden; } .hs-bar b { display: block; height: 100%; width: var(--w); background: var(--tp-green); }
.hs-score { font: 700 12px/1 var(--tp-body); color: #065f46; white-space: nowrap; }
.hs-ch.is-fixed .hs-pile { opacity: 0; } .hs-ch.is-fixed .hs-list { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hs-job, .hs-grid i, .hs-ch * { animation: none !important; transition: none !important; } }
/* Background loop (poster first): fills the hero; a scrim keeps the words readable. */
.hp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; display: block; }
html[dir="rtl"] .hp-video { transform: scaleX(-1); }
.hp-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 10, 19, .92) 0%, rgba(7, 10, 19, .72) 38%, rgba(7, 10, 19, .35) 62%, rgba(7, 10, 19, .55) 100%), linear-gradient(180deg, rgba(7, 10, 19, .55) 0%, rgba(7, 10, 19, 0) 35%, rgba(7, 10, 19, .2) 100%); }
html[dir="rtl"] .hp-stage::after { transform: scaleX(-1); }
@media (max-width: 960px) { .hp-stage::after { background: linear-gradient(180deg, rgba(7, 10, 19, .9) 0%, rgba(7, 10, 19, .75) 50%, rgba(7, 10, 19, .9) 100%); } }
.hs-ball { inset: 0 -40px 54px; }
@media (max-width: 960px) { .hp-card { margin-top: 20px; } }

/* ── Home hero v3.1: two-line headline, drawn strike, bigger ball, explained caption ── */
@media (min-width: 961px) {
  .hp-h1 { font-size: clamp(30px, 3vw, 46px); line-height: 1.12; max-width: none; margin-bottom: 16px; }
  html:not([lang="my"]):not([lang^="th"]):not([lang="ar"]) .hp-h1 .hx { white-space: nowrap; }
}
.hp-h1 .hx { display: block; width: fit-content; max-width: 100%; }
/* The strike draws itself across the cold sentence (again whenever the audience changes). */
.hp-top--night .hp-h1 .hx.hx-cold::after { top: 55%; height: .075em; width: 0; animation: hx-strike .9s var(--tp-ease-io) .7s forwards; transition: none; }
@keyframes hx-strike { to { width: 100%; } }
html:is([lang="my"], [lang^="th"], [lang="ar"]) .hp-h1 .hx-cold::after { display: none; }
@media (prefers-reduced-motion: reduce) { .hp-top--night .hp-h1 .hx.hx-cold::after { animation: none; width: 100%; } }

.hs { height: clamp(380px, 52vh, 540px); }
.hs-ball { inset: -10px -60px 92px; }
.hs-screen { inset: 0 0 92px; }
.hs-art { inset: 8px 24px 100px; }
.hs-cap { inset-inline: 24px; bottom: 44px; min-height: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 6px; align-items: start; font: 600 clamp(14.5px, 1.15vw, 17px)/1.4 var(--tp-body); letter-spacing: 0; }
.hs-n { grid-row: 1 / 3; display: flex; align-items: baseline; gap: 2px; padding-top: 2px; font: 700 26px/1 var(--tp-display); color: #fff; }
.hs-n i { font-style: normal; font-size: 13px; color: #8b93a7; }
.hs-p, .hs-f { position: static; margin: 0; display: flex; align-items: baseline; gap: 10px; opacity: 1; transform: none; transition: opacity .45s var(--tp-ease-out), color .45s, transform .45s var(--tp-ease-out); }
.hs-f::before { display: none; }
.hs-p em, .hs-f em { flex: none; font: 700 11px/1 var(--tp-body); font-style: normal; letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; transform: translateY(-1px); }
html:is([lang="my"], [lang^="th"], [lang="ar"]) .hs-p em, html:is([lang="my"], [lang^="th"], [lang="ar"]) .hs-f em { text-transform: none; letter-spacing: 0; font-size: 12px; }
.hs-p { color: #f1c4c4; } .hs-p em { background: rgba(224, 49, 49, .18); color: #ffb3b3; border: 1px solid rgba(224, 49, 49, .45); }
.hs-f { color: #fff; opacity: 0; transform: translateY(6px); font-weight: 700; } .hs-f em { background: var(--tp-green); color: #04281b; }
.hs-ch.is-fixed .hs-p { opacity: .5; transform: none; }
.hs-ch.is-fixed .hs-f { opacity: 1; transform: none; }
.hs:not(.is-js) .hs-ch[data-i="0"] .hs-p { opacity: .5; }
.hs-rail { bottom: 0; }
@media (max-width: 960px) { .hs { height: 460px; } .hs-ball { inset: -10px 0 120px; } .hs-screen { inset: 0 0 120px; } .hs-cap { bottom: 44px; } }
/* The caption has its own band under the ball. */
.hs-ball { inset: -10px -60px 118px; }
.hs-screen { inset: 0; }
.hs-art { inset: 8px 24px 126px; }
.hs-cap { bottom: 48px; }
@media (max-width: 960px) { .hs { height: 480px; } .hs-ball { inset: -10px 0 140px; } .hs-art { inset: 8px 16px 146px; } }
