/* Portal Visi PRISMA · Hala Tuju Produktiviti Negara 2035 */
/* VOICE occasion, a national vision portal
   IDEA the government vision site: photo hero slides, document band, goals, figures over a red-tinted photo, pillar cards, phase timeline, media band
   PICTURE full-bleed Malaysian industry photographs with a dark scrim; the trajectory chart in the goals section
   COLOUR white ground, MPC charcoal bands, MPC red as overlay and signal
   TYPE Barlow 300 for display, 400/500 for text
   LAYOUT centred section heads, full-bleed bands; one column on a phone */
:root { color-scheme: light; --red: #ed1c24; --red-d: #c4141b; --ink: #23262b; --ink-2: #4a4f57; --mute: #6b7079; --char: #22252b; --char-2: #2d3138; --bg: #ffffff; --bg-2: #f5f6f7; --line: #e6e8eb; --f: "Barlow", system-ui, sans-serif; }
* { box-sizing: border-box; min-width: 0; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f); }
a { color: inherit; }
img { display: block; max-width: 100%; }
.in { max-width: 1240px; margin-inline: auto; padding-left: max(5vw, 16px, env(safe-area-inset-left, 0px)); padding-right: max(5vw, 16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-weight: 300; letter-spacing: .01em; margin: 0; line-height: 1.15; text-wrap: balance; }
.sh { text-align: center; font-size: clamp(30px, 3.4vw, 46px); color: var(--ink-2); }
.sp { text-align: center; color: var(--mute); max-width: 70ch; margin: 14px auto 0; font-size: 16px; }
.sec { padding-block: clamp(56px, 7vw, 88px); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* nav over the hero */
.nav { position: absolute; left: 0; right: 0; top: 0; z-index: 20; color: #fff; }
.nav .in { display: flex; align-items: center; gap: 28px; height: 84px; }
.mark { display: grid; text-decoration: none; line-height: 1.1; }
.mark b { font-weight: 600; font-size: 20px; letter-spacing: .04em; }
.mark span { font-size: 12px; opacity: .8; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: 15px; }
.nav ul a { text-decoration: none; opacity: .92; white-space: nowrap; }
.nav ul a::after { content: "\2304"; font-size: 11px; margin-left: 4px; position: relative; top: -3px; }
.nav ul a.plain::after { content: none; }
.nav ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.menu { display: none; background: none; border: 1px solid rgba(255,255,255,.6); color: #fff; font: inherit; padding: 8px 14px; border-radius: 4px; margin-left: auto; }

/* hero slider (native scroller) */
.hero { position: relative; height: min(88svh, 820px); min-height: 560px; background: var(--char); color: #fff; }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; display: grid; place-items: center; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: rgba(28, 31, 36, .55); }
.cap { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; padding-inline: 16px; text-align: center; }
.slide h1 { font-size: clamp(32px, 4.2vw, 58px); max-width: 18ch; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.chip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; text-align: left; background: rgba(20, 22, 26, .62); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 16px 22px; max-width: 760px; width: 100%; backdrop-filter: blur(6px); }
.chip .cv b { display: block; font-size: clamp(30px, 3vw, 42px); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.chip .cv span { font-size: 14px; opacity: .85; }
.chip .cm { display: grid; gap: 8px; font-size: 15px; opacity: .95; }
.chip .mt { height: 10px; background: rgba(255,255,255,.18); border-radius: 99px; overflow: hidden; }
.chip .mt i { display: block; height: 100%; background: var(--red); border-radius: 99px 0 0 99px; transform-origin: left; }
.chip a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.6); border-radius: 4px; padding: 10px 16px; white-space: nowrap; font-weight: 500; }
.chip a:hover { background: #fff; color: var(--ink); }
.src { font-size: 12px; opacity: .7; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 34px; width: auto; }
.brand .bt { display: grid; line-height: 1.1; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.35); }
.foot .brand img { height: 46px; }
@media (max-width: 760px) { .chip { grid-template-columns: minmax(0, 1fr); gap: 12px; } .brand .bt span { display: none; } .brand img { height: 26px; } }
.hctl { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 5; display: flex; justify-content: center; align-items: center; gap: 18px; }
.hctl button { background: none; border: 1px solid rgba(255,255,255,.55); color: #fff; width: 40px; height: 40px; border-radius: 50%; font: inherit; font-size: 18px; cursor: pointer; }
.hctl button:hover { background: rgba(255,255,255,.12); }
.count { font-size: 26px; font-weight: 300; letter-spacing: .06em; min-width: 3.5ch; text-align: center; }

/* documents band */
.docs { background: var(--char); color: #fff; padding-block: 48px 56px; }
.docs .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.doc { display: grid; gap: 18px; align-content: space-between; text-align: center; }
.doc h3 { font-size: 21px; font-weight: 400; }
.doc small { display: block; font-size: 13px; opacity: .7; margin-top: 4px; }
.dl { display: inline-flex; justify-content: center; align-items: center; gap: 10px; background: #fff; color: var(--ink); text-decoration: none; padding: 14px 18px; border-radius: 4px; font-size: 18px; transition: transform .16s cubic-bezier(.2,0,0,1), background-color .16s; }
.dl:hover { background: #eef0f2; }
.dl:active, .btn:active, .card:active { transform: scale(.97); }

/* goals */
.goals { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; margin-top: 44px; align-items: center; }
.glist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.glist li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px; background: var(--bg-2); border-radius: 6px; }
.glist svg { color: var(--red); }
.glist b { display: block; font-weight: 500; font-size: 22px; color: var(--ink); line-height: 1.2; }
.glist span { color: var(--mute); font-size: 15px; }
.chartbox { background: var(--bg-2); border-radius: 6px; padding: 18px 18px 8px; }
.chartbox p { margin: 0 0 6px; color: var(--ink-2); font-weight: 500; }
.chart { width: 100%; height: auto; }
.chart .grid line { stroke: #dfe2e6; }
.chart .ax { fill: var(--mute); font: 15px var(--f); }
.chart .actual { stroke: var(--ink); stroke-width: 4; fill: none; stroke-linecap: round; }
.chart .target { stroke: var(--red); stroke-width: 4; fill: none; stroke-dasharray: 2 10; stroke-linecap: round; }
.chart .bau { stroke: #9aa0a8; stroke-width: 2; fill: none; stroke-dasharray: 6 8; }
.chart .dot { fill: #fff; stroke: var(--ink); stroke-width: 4; } .chart .dot-t { fill: var(--red); stroke: var(--red); }
.chart .lbl { fill: var(--ink); font: 600 22px var(--f); } .chart .lbl-s { fill: var(--mute); font: 15px var(--f); }
.chart text { paint-order: stroke; stroke: var(--bg-2); stroke-width: 4px; }
.more { display: flex; justify-content: center; margin-top: 30px; }
.more a { color: var(--ink-2); text-decoration: none; font-size: 17px; }
.more a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* figures over a red-tinted photograph */
.figband { position: relative; color: #fff; padding-block: 64px; overflow: hidden; }
.figband img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.figband::before { content: ""; position: absolute; inset: 0; background: rgba(120, 10, 16, .55); }
.figband::after { content: ""; position: absolute; inset: 0; background: rgba(196, 20, 27, .62); }
.figs { position: relative; z-index: 2; display: flex; justify-content: center; gap: clamp(36px, 8vw, 110px); flex-wrap: wrap; text-align: center; }
.figs b { display: block; font-weight: 300; font-size: clamp(48px, 5.4vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; }
.figs span { font-size: 18px; }

/* pillar cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none; transition: transform .2s cubic-bezier(.2,0,0,1); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,0,0,1); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,26,.05) 35%, rgba(20,22,26,.88) 100%); }
.card .t { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2; display: grid; gap: 6px; }
.card small { font-size: 14px; opacity: .85; }
.card h3 { font-size: 27px; font-weight: 400; }
.card .go { position: absolute; right: 22px; top: 22px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center; font-size: 20px; transition: background-color .2s; }
@media (hover: hover) and (pointer: fine) { .card:hover img { transform: scale(1.04); } .card:hover .go { background: var(--red); border-color: var(--red); } }

/* timeline */
.tl { position: relative; margin-top: 52px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 4px; background: var(--line); border-radius: 4px; }
.tl .prog { position: absolute; left: 0; top: 11px; height: 4px; width: 12%; background: var(--red); border-radius: 4px; transform-origin: left; }
.ph { position: relative; padding-top: 40px; }
.ph::before { content: ""; position: absolute; top: 4px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--line); }
.ph.now::before { border-color: var(--red); }
.ph time { color: var(--red); font-weight: 600; font-size: 15px; }
.ph h3 { font-size: 26px; font-weight: 400; margin: 4px 0 8px; }
.ph p { margin: 0; color: var(--ink-2); font-size: 16px; }
.ph .tag { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--red-d); font-weight: 600; }

/* media band */
.media { position: relative; color: #fff; padding-block: 72px; overflow: hidden; }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,26,31,.88) 0%, rgba(24,26,31,.62) 55%, rgba(24,26,31,.45) 100%); }
.media .in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: center; }
.media .lab { font-size: 17px; opacity: .85; }
.media h2 { font-size: clamp(32px, 3.6vw, 50px); margin: 10px 0 24px; max-width: 20ch; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); text-decoration: none; padding: 13px 26px; border-radius: 4px; font-weight: 500; transition: transform .16s cubic-bezier(.2,0,0,1); }
.nlist { display: grid; gap: 16px; }
.nlist a { display: block; padding: 22px 24px; background: rgba(255,255,255,.1); border-radius: 6px; text-decoration: none; font-size: 18px; line-height: 1.45; transition: background-color .2s; }
.nlist a:hover { background: rgba(255,255,255,.18); }
.nlist small { display: block; font-size: 13px; opacity: .7; margin-top: 6px; }

/* footer */
.foot { background: var(--char); color: #c9ccd1; padding-block: 64px 32px; }
.foot .in { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot .mark b { color: #fff; font-size: 24px; }
.soc { display: flex; gap: 12px; margin-top: 22px; }
.soc a { width: 42px; height: 42px; border: 1px solid #5a5f67; border-radius: 4px; display: grid; place-items: center; color: #e5e7ea; }
.soc a:hover { border-color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 16px; }
.foot ul a { text-decoration: none; } .foot ul a:hover { color: #fff; }
.legal { grid-column: 1 / -1; font-size: 13px; color: #8d929a; margin-top: 24px; }
.legal a { color: inherit; }

@media (max-width: 960px) {
  .nav ul { display: none; } .menu { display: inline-flex; }
  .docs .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goals, .media .in { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot .in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .docs .grid, .cards, .tl, .foot .in { grid-template-columns: minmax(0, 1fr); }
  .card { aspect-ratio: 16 / 11; }
  .tl::before, .tl .prog { display: none; }
  .hero { min-height: 480px; height: 72svh; }
}
@media (prefers-reduced-motion: reduce) { .slides { scroll-behavior: auto; } .card img, .card, .dl, .btn { transition: none; } }

/* negeri */
.neg { list-style: none; margin: 40px auto 0; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 2px; }
.neg li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 6.5rem; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 4px; font-size: 16px; }
.neg li:nth-child(4n+1), .neg li:nth-child(4n+2) { background: var(--bg-2); }
.neg .bar { position: relative; height: 10px; background: #e7e9ec; border-radius: 99px; }
.neg .bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink); border-radius: inherit; transform-origin: left; }
.neg .lo .bar i { background: var(--red); }
.neg .bar::after { content: ""; position: absolute; top: -5px; bottom: -5px; left: var(--n); width: 2px; background: var(--ink-2); }
.neg b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .neg { grid-template-columns: minmax(0, 1fr); } .neg li:nth-child(n) { background: none; } .neg li:nth-child(odd) { background: var(--bg-2); } .neg li { grid-template-columns: 7.5rem minmax(0, 1fr) 5.5rem; } }
