/* Full-screen hero ("stage") with the lines-to-Singapore map, pill nav, menu panel and
   entrance. Loaded after site.css; uses its brand tokens. Desktop sizes are authored
   against a 1280 x 800 reference and expressed in --u, so the composition scales as
   one piece above 1160 px. */
:root {
  --u: min(calc(100vw / 1280), calc(100dvh / 760));
  --glass-fill: rgba(6, 32, 61, .62);
  --glass-line: rgba(241, 245, 249, .14);
  --e-reveal: cubic-bezier(.16, 1, .3, 1);
  --e-soft: cubic-bezier(.25, .8, .3, 1);
}
@supports not (height: 100dvh) { :root { --u: min(calc(100vw / 1280), calc(100vh / 760)); } }
html.nc-closed { --banner-h: 0px !important; }

.stage { position: relative; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 95% at 72% 62%, #0b2b50 0%, var(--navy) 46%, #03132a 100%); }
@supports not (height: 100dvh) { .stage { min-height: 100vh; } }
.stage-bg { position: absolute; inset: 0; z-index: -1; }
.stage-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 34% at 50% 44%, rgba(6, 32, 61, .76) 0%, rgba(6, 32, 61, .36) 60%, rgba(6, 32, 61, 0) 100%),
    linear-gradient(to bottom, rgba(2, 6, 23, 0) 72%, var(--surface) 100%); }
.stage .nocookies { position: relative; background: rgba(6, 32, 61, .72); }

/* nav */
.snav { position: relative; z-index: 3; height: calc(67 * var(--u)); display: flex; align-items: center;
  padding-left: calc(24.5 * var(--u)); padding-right: calc(50.7 * var(--u)); }
.snav .logo { display: block; line-height: 0; }
.snav .logo img { height: calc(30 * var(--u)); width: auto; display: block; }
.snav-links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center;
  gap: calc(28 * var(--u)); white-space: nowrap; }
.snav-links a { color: var(--soft); text-decoration: none; font-size: calc(12.5 * var(--u)); font-weight: 500;
  letter-spacing: calc(-.1 * var(--u)); line-height: 1; transition: color .18s ease; }
.snav-links a:hover, .snav-links a[aria-current] { color: var(--ink); }
.snav-actions { margin-left: auto; display: flex; align-items: center; gap: calc(7 * var(--u)); }

/* pills */
.pill { display: inline-flex; align-items: center; justify-content: center; font-family: inherit; text-decoration: none;
  white-space: nowrap; border: 0; cursor: pointer; touch-action: manipulation; }
.pill .arw { flex: 0 0 auto; display: block; }
.pill-sm { height: calc(30 * var(--u)); padding: 0 calc(14 * var(--u)); border-radius: calc(15 * var(--u));
  font-size: calc(12 * var(--u)); font-weight: 500; gap: calc(7 * var(--u)); }
.pill-sm .arw { width: calc(11.5 * var(--u)); height: calc(9.6 * var(--u)); }
.pill-gold { background: var(--gold); color: var(--on-gold); transition: background .18s ease; }
.pill-gold:hover { background: var(--logo-gold-light); }
.pill-ghost { background: var(--glass-fill); color: var(--ink); box-shadow: inset 0 0 0 1px var(--glass-line);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .18s ease, box-shadow .18s ease; }
.pill-ghost:hover { background: rgba(6, 32, 61, .85); box-shadow: inset 0 0 0 1px rgba(241, 245, 249, .26); }
.pill-lg { height: calc(42 * var(--u)); padding: 0 calc(20 * var(--u)); border-radius: calc(21 * var(--u));
  font-size: calc(14 * var(--u)); font-weight: 500; letter-spacing: calc(-.2 * var(--u)); gap: calc(9 * var(--u)); }
.pill-lg .arw { width: calc(13 * var(--u)); height: calc(10.8 * var(--u)); }

.burger { display: none; margin-left: auto; width: calc(40 * var(--u)); height: calc(28 * var(--u)); align-items: center;
  justify-content: center; background: var(--glass-fill); box-shadow: inset 0 0 0 1px var(--glass-line);
  border-radius: calc(14 * var(--u)); border: 0; cursor: pointer; padding: 0; }
.burger span, .burger span::before, .burger span::after { display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }

.stage a:focus-visible, .stage button:focus-visible, .smenu a:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 99px; }

/* content */
.stage-inner { position: relative; z-index: 2; flex: 1; display: grid; place-items: start center; padding: max(48px, 11dvh) 0 calc(40 * var(--u)); }
.stage-copy { text-align: center; max-width: calc(1120 * var(--u)); }
.stage h1 { margin: 0; font-weight: 500; font-size: calc(54 * var(--u)); line-height: 1.12; letter-spacing: calc(-1.2 * var(--u)); color: var(--ink); text-wrap: balance; }
.stage h1 .ln { display: block; }
.stage h1 .ln-i { display: block; }
.stage h1 .ln:first-child .ln-i { color: var(--logo-gold); background: var(--logo-gold-sheen); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; } /* logo gold, metallic like the mark */
.stage-sub { margin: calc(18 * var(--u)) auto 0; max-width: calc(640 * var(--u)); font-weight: 400; font-size: calc(17.4 * var(--u));
  line-height: 1.6; color: var(--soft); text-wrap: pretty; } 
.stage-sub .sub-line { display: block; margin-top: .35em; color: var(--ink); }
.stage.short { min-height: 0; }
.stage.short .stage-inner { padding-bottom: max(150px, 22dvh); }
.stage.short h1 { font-size: calc(46 * var(--u)); }
.stage.short .stage-sub + .stage-sub { margin-top: calc(10 * var(--u)); }
/* Buttons below the hero follow the pill shape too */
.btn { border-radius: 999px; padding-inline: 1.4rem; }
/* Home: the facts row and compliance calendar, right under the hero */
.year { padding-block: 3rem 4rem; }
.year-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: center; }
.year .facts { margin-top: 0; padding-top: 0; border-top: 0; flex-direction: column; gap: 1.25rem; }
@media (max-width: 860px) { .year-grid { grid-template-columns: 1fr; gap: 2rem; } .year .facts { flex-direction: row; } }
.stage-ctas { margin-top: calc(26 * var(--u)); display: flex; align-items: center; justify-content: center; gap: calc(9 * var(--u)); }

.smenu { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }

/* tablet: nav folds into the burger */
@media (max-width: 1160px) {
  :root { --u: min(max(.9px, min(calc(100vw / 1280), calc(100dvh / 760))), calc((100vw - 72px) / 575), calc(100dvh / 620)); }
  .snav { height: max(58px, calc(67 * var(--u))); padding-left: max(24px, calc(28 * var(--u))); padding-right: max(24px, calc(28 * var(--u))); }
  .snav .logo img { height: max(28px, calc(30 * var(--u))); }
  .snav-links, .snav-actions { display: none; }
  .burger { display: flex; width: max(46px, calc(48 * var(--u))); height: max(38px, calc(34 * var(--u))); border-radius: 999px; }
  .stage-copy { max-width: calc(100vw - 48px); }
  .stage-inner { padding-top: max(40px, 7dvh); }
  .stage h1 { font-size: max(34px, calc(54 * var(--u))); }
  .stage.short h1 { font-size: max(30px, calc(46 * var(--u))); }
  .stage-sub { font-size: max(16px, calc(17.4 * var(--u))); max-width: 36rem; }
  .stage-ctas { margin-top: max(26px, calc(26 * var(--u))); gap: 10px; }
  .pill-lg { height: max(46px, calc(42 * var(--u))); border-radius: 999px; font-size: max(15px, calc(14 * var(--u)));
    padding: 0 max(21px, calc(20 * var(--u))); gap: 10px; }
  .pill-lg .arw { width: 14px; height: 11.6px; }
  .smenu { position: absolute; top: calc(max(58px, calc(67 * var(--u))) + var(--banner-h, 30px) - 6px); right: max(24px, calc(28 * var(--u)));
    width: min(320px, calc(100vw - 48px)); background: rgba(3, 19, 42, .9); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
    box-shadow: inset 0 0 0 1px var(--glass-line), 0 24px 60px rgba(0, 0, 0, .55); border-radius: 20px; padding: 10px 8px 12px;
    flex-direction: column; transform-origin: top right; z-index: 5; }
  .smenu.open { display: flex; animation: menuIn .18s ease both; }
  .smenu a { color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 500; padding: 12px 14px; border-radius: 12px;
    min-height: 44px; display: flex; align-items: center; transition: background .18s ease, color .18s ease; }
  .smenu a:hover, .smenu a[aria-current] { background: rgba(241, 245, 249, .06); color: var(--ink); }
  .smenu .divider { height: 1px; background: var(--glass-line); margin: 8px 14px; }
  .smenu .m-start { justify-content: center; gap: 9px; background: var(--gold); color: var(--on-gold); margin: 6px 8px 0; padding: 13px 16px;
    border-radius: 14px; font-weight: 600; }
  .smenu .m-start:hover { background: var(--logo-gold-light); color: var(--on-gold); }
  .smenu .m-start .arw { width: 13px; height: 11px; }
}

/* phone */
@media (max-width: 552px) {
  :root { --u: 1px; --banner-h: 50px; }
  .snav { height: 56px; padding: 0 20px; }
  .snav .logo img { height: 26px; }
  .burger { width: 42px; height: 36px; }
  .stage-inner { padding: max(32px, 6dvh) 20px 40px; }
  .stage-copy { max-width: none; }
  .stage h1, .stage.short h1 { font-size: clamp(30px, 8.4vw, 40px); line-height: 1.12; letter-spacing: -.02em; }
  .stage-sub { margin-top: 16px; font-size: clamp(15.5px, 4vw, 16.5px); line-height: 1.6; max-width: 42ch; }
  .stage-ctas { margin-top: 24px; gap: 10px; flex-wrap: wrap; }
  .pill-lg { height: 46px; font-size: 15px; padding: 0 20px; }
  .smenu { top: calc(50px + var(--banner-h)); left: 16px; right: 16px; width: auto; }
}
@media (max-width: 353px) {
  .stage-ctas { flex-direction: column; align-items: center; }
  .pill-lg { width: min(100%, 272px); }
}
@media (max-width: 552px) and (max-height: 460px) {
  .stage h1 { font-size: 26px; }
  .stage-sub { margin-top: 12px; font-size: 15px; line-height: 1.5; }
  .stage-ctas { margin-top: 18px; }
  .stage-inner { padding-top: 16px; }
}

/* entrance: runs once, then hero.js removes html.anim and html.go */
html.anim .stage h1 .ln { overflow: hidden; padding-top: .26em; margin-top: -.26em; }
html.anim .stage h1 .ln-i { transform: translateY(100%); }
html.anim .snav .logo, html.anim .snav-links a, html.anim .snav-actions .pill, html.anim .burger,
html.anim .stage-sub, html.anim .stage-ctas .pill { opacity: 0; }
html.anim .stage h1 .ln-i, html.anim .snav .logo, html.anim .snav-links a, html.anim .snav-actions .pill,
html.anim .stage-sub, html.anim .stage-ctas .pill { will-change: transform, opacity; }

@keyframes lineRise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes subIn { from { opacity: 0; transform: translateY(calc(14 * var(--u))); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes subInFlat { from { opacity: 0; transform: translateY(calc(12 * var(--u))); } to { opacity: 1; transform: none; } }
@keyframes pillIn { from { opacity: 0; transform: translateY(calc(8 * var(--u))) scale(.972); } to { opacity: 1; transform: none; } }
@keyframes liftIn { from { opacity: 0; transform: translateY(calc(9 * var(--u))); } to { opacity: 1; transform: none; } }

html.anim.go .stage h1 .ln-i { animation: lineRise 1.05s var(--e-reveal) both; }
html.anim.go .stage h1 .ln:nth-child(1) .ln-i { animation-delay: .12s; }
html.anim.go .stage h1 .ln:nth-child(2) .ln-i { animation-delay: .22s; }
html.anim.go .snav .logo { animation: liftIn .62s var(--e-soft) .46s both; }
html.anim.go .snav-links a { animation: liftIn .55s var(--e-soft) both; }
html.anim.go .snav-links a:nth-child(1) { animation-delay: .54s; }
html.anim.go .snav-links a:nth-child(2) { animation-delay: .585s; }
html.anim.go .snav-links a:nth-child(3) { animation-delay: .63s; }
html.anim.go .stage-sub { animation: subIn .85s var(--e-reveal) .58s both; }
html.anim.go .snav-actions .pill:nth-child(1), html.anim.go .burger { animation: pillIn .55s var(--e-soft) .68s both; }
html.anim.go .snav-actions .pill:nth-child(2) { animation: pillIn .55s var(--e-soft) .73s both; }
html.anim.go .stage-ctas .pill:nth-child(1) { animation: pillIn .7s var(--e-reveal) .9s both; }
html.anim.go .stage-ctas .pill:nth-child(2) { animation: pillIn .7s var(--e-reveal) .97s both; }

@media (max-width: 552px) {
  html.anim.go .stage-sub { animation-name: subInFlat; }
  html.anim.go .stage h1 .ln-i { animation-duration: .92s; }
  html.anim.go .stage-ctas .pill:nth-child(1) { animation-delay: .84s; }
  html.anim.go .stage-ctas .pill:nth-child(2) { animation-delay: .9s; }
}
@media (prefers-reduced-motion: reduce) {
  html.anim .stage h1 .ln { overflow: visible; padding-top: 0; margin-top: 0; }
  html.anim .stage h1 .ln-i { transform: none; }
  html.anim .snav .logo, html.anim .snav-links a, html.anim .snav-actions .pill, html.anim .burger,
  html.anim .stage-sub, html.anim .stage-ctas .pill { opacity: 1; }
  .stage *, .smenu { transition: none !important; animation: none !important; }
}
