/* =========================================================
   Nanoverse Sdn Bhd — Design System
   Palette: deep teal-navy + mint + gold  (from brand)
   Type:    Space Grotesk (display) · Inter (body)
   Structure: dark hero + technology story → light body →
              dark partner/contact/footer
   ========================================================= */

:root {
  /* Brand — dark ground */
  --deep:      #061824;
  --deep-2:    #04202B;
  --deep-3:    #0A2A38;

  /* Accents */
  --mint:      #5BDCCA;
  --mint-soft: #8FEADD;
  --mint-deep: #1E9C88;   /* passes AA with white text */
  --gold:      #D9B166;
  --gold-soft: #EBD09A;

  /* Light zone */
  --paper:     #F5F8F7;
  --paper-2:   #EAF3F1;
  --surface:   #FFFFFF;
  --ink:       #102C36;
  --ink-soft:  #3B5964;
  --muted:     #6B838C;

  /* Dark-zone text */
  --on-deep:      #E8F4F2;
  --on-deep-soft: #A9C4C8;
  --on-deep-mute: #7C9AA2;

  --border:    rgba(255,255,255,.12);
  --border-2:  rgba(255,255,255,.22);
  --ring:      rgba(91,220,202,.45);

  --f-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --f-body:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(3,18,26,.28);
  --shadow:    0 18px 46px -18px rgba(3,18,26,.5);
  --shadow-lg: 0 34px 78px -30px rgba(3,18,26,.62);
  --maxw: 1200px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  background: var(--deep);
  color: var(--on-deep);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, figure { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--mint); color: var(--deep); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display); font-weight: 600;
  line-height: 1.1; letter-spacing: -.02em; color: inherit;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

.grad-text {
  background: linear-gradient(100deg, var(--mint), var(--mint-soft) 45%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-display); font-weight: 500; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mint);
  margin-bottom: 16px;
}
.eyebrow-center { display: flex; justify-content: center; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(91,220,202,.5); animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(91,220,202,.45); }
  70%  { box-shadow: 0 0 0 10px rgba(91,220,202,0); }
  100% { box-shadow: 0 0 0 0 rgba(91,220,202,0); }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 12px; z-index: 300;
  background: var(--mint); color: var(--deep); padding: 10px 18px;
  border-radius: 10px; font-weight: 600;
}
.skip-link:focus { left: 16px; }

/* ---------- Image placeholders ---------- */
.img-ph {
  display: grid; place-items: center; text-align: center;
  width: 100%; aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(45deg, rgba(91,220,202,.05) 0 10px, transparent 10px 20px),
    rgba(91,220,202,.07);
  border: 1px dashed rgba(91,220,202,.34);
  border-radius: var(--radius);
  color: rgba(143,234,221,.85);
  font-family: var(--f-display); font-size: .8rem; letter-spacing: .05em;
  padding: 10px;
}
.img-ph--lg { aspect-ratio: 16/11; }
.img-ph--portrait { aspect-ratio: 1/1; border-radius: 50%; max-width: 150px; margin: 0 auto 20px; }
.zone-light .img-ph {
  background:
    repeating-linear-gradient(45deg, rgba(16,44,54,.045) 0 10px, transparent 10px 20px),
    rgba(16,44,54,.05);
  border-color: rgba(16,44,54,.2);
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border: none; border-radius: 999px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background .22s var(--ease), color .22s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-mint {
  background: linear-gradient(100deg, var(--mint), var(--mint-soft));
  color: #04222B;
  box-shadow: 0 10px 28px -12px rgba(91,220,202,.65);
}
.btn-mint:hover { box-shadow: 0 16px 36px -12px rgba(91,220,202,.8); }
.btn-ghost {
  background: rgba(255,255,255,.05); color: var(--on-deep);
  border: 1.5px solid var(--border-2);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--mint); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,24,36,.72);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(6,24,36,.94);
  border-color: var(--border); box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: .12em; color: #fff;
}
.brand-mark { color: var(--mint); display: inline-flex; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-alt { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--f-display); font-weight: 500; font-size: .95rem;
  color: var(--on-deep-soft); padding: 9px 14px; border-radius: 9px;
  transition: color .2s, background .2s;
}
.nav-links a:not(.nav-cta):hover { color: var(--mint); background: rgba(91,220,202,.09); }
.nav-links a:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.nav-cta { color: #04222B !important; margin-left: 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.2px; background: var(--on-deep); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.2px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.2px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 22px; border-top: 1px solid var(--border);
  background: rgba(6,24,36,.98);
}
.mobile-menu a { font-family: var(--f-display); font-weight: 500; padding: 13px 12px; border-radius: 10px; color: var(--on-deep); }
.mobile-menu a:hover { background: rgba(91,220,202,.1); }
.mobile-menu .btn { margin-top: 8px; color: #04222B; }

/* ---------- Nano field + centre stage ---------- */
#nanoField {
  position: fixed; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none; opacity: 0;
  transition: opacity 1s var(--ease);
}
#nanoField.is-on { opacity: 1; }
#nanoField.is-done { opacity: 0; }

.stage {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -44%);
  width: min(58vh, 470px); aspect-ratio: 1;
  z-index: 2; pointer-events: none; opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.stage.is-ready { opacity: 1; }
.stage.is-done { opacity: 0; transform: translate(-50%, -44%) scale(.85); }

/* Fractal bloom tree — canvas fills the stage; glow sits behind it */
#bloomCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bloom-glow {
  position: absolute; left: 50%; bottom: 6%;
  width: 62%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(91,220,202,.22), transparent 68%);
  filter: blur(26px);
  animation: bloomGlow 6s ease-in-out infinite;
}
@keyframes bloomGlow {
  0%, 100% { opacity: .75; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 6; min-height: 100vh; min-height: 100dvh; display: flex; }
.hero-inner {
  position: relative; display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
  padding-top: 90px; padding-bottom: 24px;
}
.hero-top { text-align: center; }
.hero-gap { position: relative; flex: 1; min-height: 40vh; pointer-events: none; }
.hero-bottom { text-align: center; }
.lede {
  color: var(--on-deep-soft); font-size: clamp(1rem, 1.4vw, 1.13rem);
  max-width: 60ch; margin: 0 auto 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 18px; }
.scroll-hint {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--on-deep-mute); font-family: var(--f-display); font-size: .85rem;
}
.scroll-hint svg { animation: hintBounce 1.9s ease-in-out infinite; }
@keyframes hintBounce { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* Floating chips */
.chip {
  position: absolute; z-index: 7;
  font-family: var(--f-display); font-weight: 500; font-size: .9rem;
  color: var(--on-deep); background: rgba(255,255,255,.05);
  border: 1px solid var(--border-2); border-radius: 999px;
  padding: 9px 18px; backdrop-filter: blur(8px); box-shadow: var(--shadow-sm);
}
.chip-1 { left: 5%;  top: 20%; animation: chipFloat 6s ease-in-out infinite; }
.chip-2 { right: 4%; top: 30%; animation: chipFloat 7s ease-in-out .8s infinite; }
.chip-3 { left: 9%;  bottom: 16%; animation: chipFloat 6.5s ease-in-out .4s infinite; }
.chip-4 { right: 7%; bottom: 9%;  animation: chipFloat 7.5s ease-in-out 1.2s infinite; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 6;
  border-block: 1px solid var(--border);
  background: rgba(255,255,255,.03); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 30px; white-space: nowrap;
  padding: 15px 0; width: max-content; animation: scrollX 34s linear infinite;
}
.marquee-track span {
  font-family: var(--f-display); font-weight: 500; font-size: .98rem;
  letter-spacing: .06em; color: var(--on-deep-soft);
}
.marquee-track .sep { color: var(--gold); font-size: .7rem; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- Technology story ---------- */
.story { position: relative; z-index: 6; }
.story-step {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: space-between;
  padding: 4vh 0;
}

@property --gradient-angle {
  syntax: '<angle>'; inherits: false; initial-value: 0deg;
}
@keyframes gradient-rotate { to { --gradient-angle: 360deg; } }

.story-panel {
  width: min(440px, 92vw);
  border: 1.5px solid transparent; border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 38px);
  backdrop-filter: blur(16px);
  background-image:
    linear-gradient(rgba(6,26,36,.74), rgba(6,26,36,.74)),
    conic-gradient(from var(--gradient-angle, 0deg),
      rgba(91,220,202,.15) 0%, var(--mint) 37%, var(--gold) 30%,
      var(--mint) 33%, rgba(91,220,202,.15) 40%, rgba(91,220,202,.15) 50%,
      var(--mint) 77%, var(--gold) 80%, var(--mint) 83%, rgba(91,220,202,.15) 90%);
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  animation: gradient-rotate 7s linear infinite;
  box-shadow: var(--shadow-lg), 0 0 46px -10px rgba(91,220,202,.28);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.story-panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 66px -8px rgba(91,220,202,.5);
}
.story-panel--right { margin-left: auto; margin-right: 5vw; }
.story-panel--left  { margin-right: auto; margin-left: 5vw; }
.story-panel h2 { margin: 4px 0 12px; }
.story-panel > p { color: var(--on-deep-soft); margin-bottom: 18px; }
.story-list { list-style: none; padding: 0; display: grid; gap: 10px; margin-bottom: 22px; }
.story-list li { display: flex; gap: 12px; align-items: baseline; }
.story-list li::before {
  content: ""; flex: none; width: 14px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--mint), var(--gold));
  transform: translateY(-4px);
}

/* Mini strips flanking the stage */
.mini-strip {
  display: flex; gap: 8px;
  width: min(23vw, 320px); height: min(42vh, 330px);
  position: relative; z-index: 6;
}
.mini-strip--left  { margin-right: auto; margin-left: 5vw; }
.mini-strip--right { margin-left: auto; margin-right: 5vw; }
.ms-item {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  border-radius: var(--radius); cursor: pointer;
  transition: flex-grow .5s var(--ease);
}
.ms-item .img-ph { height: 100%; aspect-ratio: auto; border-radius: var(--radius); font-size: .68rem; }
.ms-item.is-on { flex-grow: 3.6; }

/* ---------- Light zone ---------- */
.zone-light {
  position: relative; z-index: 6;
  background: var(--paper);
  color: var(--ink);
}
.zone-light .eyebrow { color: var(--mint-deep); }
.zone-light .grad-text {
  background: linear-gradient(100deg, var(--mint-deep), #17786C 50%, #A8802E);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(38px, 5vw, 60px); }
.section-head h2 { margin-bottom: 14px; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }
.section-sub-left { max-width: 52ch; }

/* About */
.about-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.04rem; }

.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  background: var(--surface); border: 1px solid rgba(16,44,54,.1);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pillar:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px -22px rgba(16,44,54,.4);
  border-color: rgba(30,156,136,.4);
}
.pillar-icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 13px; margin-bottom: 16px;
  background: rgba(30,156,136,.1); color: var(--mint-deep);
  transition: transform .3s var(--ease);
}
.pillar:hover .pillar-icon { transform: rotate(-8deg) scale(1.06); }
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--ink-soft); font-size: .95rem; }

/* Leadership */
.leader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.leader-card {
  background: var(--surface); border: 1px solid rgba(16,44,54,.1);
  border-radius: var(--radius-lg); padding: 32px 26px; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.leader-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px -22px rgba(16,44,54,.4); }
.leader-card h3 { font-size: 1.08rem; margin-bottom: 4px; }
.leader-role {
  font-family: var(--f-display); font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mint-deep); margin-bottom: 12px;
}
.leader-card > p:last-child { color: var(--ink-soft); font-size: .93rem; }

/* Hub + sustainability */
.hub-grid, .sustain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hub-card, .sustain-card {
  background: var(--surface); border: 1px solid rgba(16,44,54,.1);
  border-radius: var(--radius-lg); padding: 28px 24px;
  border-top: 3px solid var(--mint-deep);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sustain-card { border-top-color: var(--gold); }
.hub-card:hover, .sustain-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px -22px rgba(16,44,54,.4); }
.hub-card h3, .sustain-card h3 { margin-bottom: 8px; }
.hub-card p, .sustain-card p { color: var(--ink-soft); font-size: .95rem; }

/* Campus */
.campus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.campus-card {
  background: var(--surface); border: 1px solid rgba(16,44,54,.1);
  border-radius: var(--radius-lg); padding: 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.campus-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px -22px rgba(16,44,54,.4); }
.campus-card h3 { margin: 18px 0 8px; }
.campus-card p { color: var(--ink-soft); font-size: .95rem; }

/* Process */
.process {
  list-style: none; padding: 0; display: grid;
  grid-template-columns: repeat(6, 1fr); gap: 12px; position: relative;
}
.process::before {
  content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 2px;
  background: linear-gradient(90deg, var(--mint-deep), var(--gold));
  opacity: .3;
}
.process-step { position: relative; text-align: center; }
.process-num {
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--surface);
  border: 2px solid var(--mint-deep); color: var(--mint-deep);
  font-family: var(--f-display); font-weight: 600; font-size: 1rem;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.process-step:hover .process-num { transform: scale(1.1); background: var(--mint-deep); color: #fff; }
.process-label { font-family: var(--f-display); font-weight: 500; font-size: .92rem; color: var(--ink); }

/* Gallery */
.section-gallery { background: var(--paper-2); }
.gallery-scroll { height: 300vh; }
.gallery-sticky {
  position: sticky; top: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; overflow: hidden; padding: 24px 0;
}
.gallery-head { margin-bottom: clamp(26px, 4vh, 42px); }
.gallery-strip { display: flex; gap: 10px; width: 100%; height: min(54vh, 440px); }
.gs-item {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  border-radius: var(--radius-lg); cursor: pointer;
  transition: flex-grow .55s var(--ease);
}
.gs-item .img-ph { height: 100%; aspect-ratio: auto; border-radius: var(--radius-lg); }
.gs-item.is-open { flex-grow: 8; }
.hint-mobile { display: none; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--surface); border: 1px solid rgba(16,44,54,.1);
  border-radius: var(--radius-lg); padding: 22px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px -22px rgba(16,44,54,.4); }
.news-tag {
  font-family: var(--f-display); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mint-deep); margin: 18px 0 8px;
}
.news-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.news-card > p:last-child { color: var(--ink-soft); font-size: .93rem; }

/* ---------- Partner ---------- */
.section-partner {
  position: relative; z-index: 6;
  background: linear-gradient(160deg, var(--deep-2), var(--deep) 60%, #041B26);
  color: var(--on-deep);
}
.partner-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 64px); align-items: center;
}
.partner-copy h2 { margin-bottom: 16px; }
.section-partner .section-sub { color: var(--on-deep-soft); }
.partner-list { list-style: none; padding: 0; display: grid; gap: 13px; margin-top: 26px; }
.partner-list li {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-weight: 500; color: var(--on-deep);
}
.tick { flex: none; width: 24px; height: 24px; border-radius: 7px; background: rgba(91,220,202,.14); position: relative; }
.tick::after {
  content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 11px;
  border: solid var(--mint); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg);
}

.partner-card {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow-lg);
}
.partner-card h3 { margin-bottom: 4px; }
.partner-card-sub { color: var(--muted); font-size: .94rem; margin-bottom: 22px; }
.field { margin-bottom: 15px; }
.field label {
  display: block; font-family: var(--f-display); font-weight: 500;
  font-size: .9rem; margin-bottom: 6px; color: var(--ink);
}
.req { color: #C2410C; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; min-height: 46px; background: var(--paper);
  border: 1.5px solid rgba(16,44,54,.18); border-radius: 11px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 86px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--mint-deep); background: #fff;
  box-shadow: 0 0 0 4px rgba(30,156,136,.16);
}
.field input.invalid, .field select.invalid { border-color: #C2410C; box-shadow: 0 0 0 4px rgba(194,65,12,.13); }
.error { color: #9A3412; font-size: .85rem; margin-top: 6px; display: none; }
.error.show { display: block; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 13px; text-align: center; }
.form-success {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  color: #12705F; font-family: var(--f-display); font-weight: 600;
  background: rgba(30,156,136,.1); border: 1px solid rgba(30,156,136,.32);
  padding: 14px; border-radius: 11px; margin-top: 16px;
}
.spinner {
  width: 18px; height: 18px; border: 2.4px solid rgba(4,34,43,.35);
  border-top-color: #04222B; border-radius: 50%; display: none;
  animation: spin .7s linear infinite;
}
.btn.loading .btn-label { opacity: .6; }
.btn.loading .spinner { display: inline-block; }
.btn.loading { pointer-events: none; }

/* ---------- Contact ---------- */
.section-contact { position: relative; z-index: 6; background: var(--deep); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 26px;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.contact-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.09); border-color: rgba(91,220,202,.4); }
.contact-icon {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; background: rgba(91,220,202,.13); color: var(--mint);
  margin-bottom: 16px;
}
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { color: var(--on-deep-soft); font-size: .95rem; }
.contact-card a { color: var(--mint); transition: color .2s; }
.contact-card a:hover { color: var(--mint-soft); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 6; background: #041018; color: var(--on-deep-soft); padding-top: clamp(50px, 7vw, 78px); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; font-size: .94rem; color: var(--on-deep-mute); }
.footer-col h4 { font-family: var(--f-display); color: #fff; font-size: .95rem; margin-bottom: 15px; }
.footer-col a, .footer-col p { display: block; color: var(--on-deep-mute); padding: 4px 0; font-size: .94rem; transition: color .2s, transform .2s; }
.footer-col a:hover { color: var(--mint); transform: translateX(3px); }
.footer-fine { font-size: .85rem !important; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 22px 24px; border-top: 1px solid rgba(255,255,255,.08);
  color: var(--on-deep-mute); font-size: .85rem;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pillar-grid, .hub-grid, .sustain-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-strip { width: 21vw; }
  .process { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .process::before { display: none; }
}

@media (max-width: 940px) {
  .chip { display: none; }
  .stage { width: min(56vw, 280px); }
  .story-step { justify-content: center; }
  .story-panel--right, .story-panel--left { margin-left: auto; margin-right: auto; }
  .mini-strip { display: none; }
  .about-grid, .partner-inner { grid-template-columns: 1fr; }
  .leader-grid, .campus-grid, .news-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .gallery-scroll { height: auto; }
  .gallery-sticky { position: static; min-height: 0; padding: clamp(64px,10vw,116px) 0; overflow: visible; }
  .gallery-strip {
    height: auto; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none;
  }
  .gallery-strip::-webkit-scrollbar { display: none; }
  .gs-item { flex: 0 0 78vw; max-width: 420px; height: 56vw; max-height: 320px; scroll-snap-align: center; }
  .gs-item.is-open { flex-grow: 0; }
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .mobile-menu { display: flex; }
  body { font-size: 16px; }
}

@media (max-width: 520px) {
  .container { padding-inline: 18px; }
  .pillar-grid, .hub-grid, .sustain-grid, .process { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .bloom-glow, .chip, .marquee-track, .pulse-dot, .scroll-hint svg { animation: none !important; }
  .story-panel { animation: none; }
  .story-panel:hover { transform: none; }
}

/* =========================================================
   V3 — BRAND ALIGNMENT
   Accents move from mint/gold to the logo's own colours:
   green #1E4D2B, amber #F2B21C, red #D7262E.
   The approved deep ground is kept; the logo's forest green
   is too dark to read on it, so --green-bright is the on-dark
   accent and --green-deep is reserved for light surfaces.
   ========================================================= */

:root {
  --brand-green: #1E4D2B;   /* logo wordmark — light surfaces only */
  --brand-amber: #F2B21C;   /* logo dot */
  --brand-red:   #D7262E;   /* logo dot — emphasis only, used sparingly */

  --mint:      #4FD37E;     /* on-dark green accent */
  --mint-soft: #8CE8AC;     /* brighter green highlight */
  --mint-deep: #1B7A42;     /* on-light green: 4.8:1 with white */

  --gold:      #F2B21C;
  --gold-soft: #F8CE68;

  --ring:      rgba(79,211,126,.45);
}

/* logo lockup */
.brand-logo { display: block; height: 30px; width: auto; }
.brand { gap: 0; }
.footer-brand .brand-logo { height: 26px; }
@media (max-width: 520px) { .brand-logo { height: 24px; } }

/* red is reserved for genuine emphasis, not decoration */
.accent-red { color: var(--brand-red); }

/* amber keeps its contrast on the dark ground */
.dot-amber { color: var(--brand-amber); }

/* =========================================================
   V3 — new components: Divisions, Triple Green Standard,
   Sarawak strengths, technology kickers, two-up contact
   ========================================================= */

.section-divisions { position: relative; z-index: 6; background: var(--deep-2); }

.division-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-bottom: clamp(34px, 4vw, 52px);
}
.division-card {
  position: relative; display: flex; flex-direction: column;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--border);
  border-top: 3px solid var(--mint);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 38px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.division-card:nth-child(2) { border-top-color: var(--brand-amber); }
.division-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 34px -10px rgba(79,211,126,.4);
  border-color: var(--border-2);
}
.division-card:nth-child(2):hover { box-shadow: 0 0 34px -10px rgba(242,178,28,.4); }
.division-tag {
  font-family: var(--f-display); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.division-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 12px; }
.division-card > p { color: var(--on-deep-soft); margin-bottom: 20px; }
.division-link {
  margin-top: auto; align-self: flex-start;
  font-family: var(--f-display); font-weight: 600; font-size: .92rem;
  color: var(--mint); border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.division-link::after { content: " →"; }
.division-link:hover { color: var(--mint-soft); border-color: currentColor; }
.division-card:nth-child(2) .division-link { color: var(--brand-amber); }
.division-card:nth-child(2) .division-link:hover { color: var(--gold-soft); }

/* Triple Green Standard */
.standard {
  display: grid; grid-template-columns: minmax(200px, .8fr) 2fr;
  gap: clamp(20px, 3vw, 44px); align-items: center;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: rgba(79,211,126,.05);
}
.standard-head .eyebrow { margin-bottom: 6px; }
.standard-sub { color: var(--muted); font-size: .92rem; }
.standard-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.standard-list li {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--f-display); font-weight: 500; color: var(--on-deep);
}
.std-num { color: var(--mint); font-size: .78rem; letter-spacing: .1em; }

.division-closer {
  margin-top: clamp(30px, 4vw, 44px); text-align: center;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.1rem, 2.1vw, 1.5rem); color: var(--on-deep);
  max-width: 44ch; margin-inline: auto;
}

/* technology panel kicker (the brochure's sub-label) */
.panel-kicker {
  font-family: var(--f-display); font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-amber);
  margin: -6px 0 18px !important;
}

/* Sarawak strengths — brochure lists headings only */
.strengths-label {
  font-family: var(--f-display); font-weight: 600; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--mint);
  text-align: center; margin-bottom: 20px;
}
.strength-card { text-align: center; padding: 30px 20px; }
.strength-card h3 { margin: 0; font-size: clamp(1rem, 1.8vw, 1.2rem); }

/* contact drops to two cards */
.contact-grid--two { grid-template-columns: 1fr 1fr; max-width: 900px; margin-inline: auto; }

@media (max-width: 940px) {
  .division-grid, .contact-grid--two { grid-template-columns: 1fr; }
  .standard { grid-template-columns: 1fr; }
  .standard-list { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 520px) {
  .strengths-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   V3 — LOGO-ALIGNED PALETTE + BROCHURE COMPONENTS
   Dark ground retained; accents moved onto the logo family:
   forest green #1E4D2B, amber #F2B21B, red #D7262E.
   Canvas animations already draw in this palette.
   ========================================================= */

:root {
  /* dark ground, nudged a touch greener to sit with the logo */
  --deep:      #06191B;
  --deep-2:    #04221F;
  --deep-3:    #0A2E29;

  /* accents from the logo */
  --mint:      #4FC97E;   /* primary accent on dark */
  --mint-soft: #8FE8AE;   /* highlight */
  --mint-deep: #1E4D2B;   /* logo green — 9.9:1 with white text */
  --gold:      #F2B21B;   /* logo amber */
  --gold-soft: #FFD369;
  --brand-red: #D7262E;   /* logo red — sparing emphasis only */

  /* light zone */
  --paper:     #F4F8F5;
  --paper-2:   #E8F2EB;
  --surface:   #FFFFFF;
  --ink:       #12291D;
  --ink-soft:  #3A5847;
  --muted:     #6D8578;

  /* dark-zone type */
  --on-deep:      #EAF5F0;
  --on-deep-soft: #AECCC0;
  --on-deep-mute: #7FA396;

  --ring: rgba(79,201,126,.45);
}

/* ---------- Logo lockup ---------- */
.brand-logo-tile {
  display: inline-flex; align-items: center;
  transition: transform .3s var(--ease), filter .3s var(--ease);
}
.brand-logo-tile img { width: 152px; height: auto; display: block; }
.brand:hover .brand-logo-tile {
  transform: translateY(-1px);
  filter: drop-shadow(0 6px 18px rgba(79,201,126,.45));
}
@media (max-width: 520px) {
  .brand-logo-tile img { width: 118px; }
}

/* ---------- Strategic units ---------- */
.unit-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.unit-card {
  background: var(--surface); border: 1px solid rgba(18,41,29,.1);
  border-left: 3px solid var(--mint-deep);
  border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 36px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.unit-card:nth-child(2) { border-left-color: var(--gold); }
.unit-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px -24px rgba(18,41,29,.42); }
.unit-tag {
  font-family: var(--f-display); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.unit-card h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 10px; }
.unit-card p { color: var(--ink-soft); }

/* ---------- Triple Green Standard ---------- */
.tgs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tgs-card {
  position: relative; background: var(--surface);
  border: 1px solid rgba(18,41,29,.1); border-radius: var(--radius-lg);
  padding: 32px 26px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tgs-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--mint-deep), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.tgs-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px -24px rgba(18,41,29,.42); }
.tgs-card:hover::after { transform: scaleX(1); }
.tgs-num {
  display: block; font-family: var(--f-display); font-weight: 700;
  font-size: 2.1rem; line-height: 1; color: var(--mint-deep);
  opacity: .32; margin-bottom: 14px;
}
.tgs-card h3 { font-size: 1.15rem; }

/* ---------- Sarawak strengths (brochure lists names only) ---------- */
.strength-label {
  font-family: var(--f-display); font-weight: 600; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mint-deep);
  text-align: center; margin-bottom: 22px;
}
.strength-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strength-card {
  display: grid; place-items: center; text-align: center;
  background: var(--surface); border: 1px solid rgba(18,41,29,.1);
  border-top: 3px solid var(--mint-deep);
  border-radius: var(--radius-lg); padding: 30px 20px; min-height: 108px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-top-color .3s var(--ease);
}
.strength-card:nth-child(2n) { border-top-color: var(--gold); }
.strength-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px -22px rgba(18,41,29,.4); }
.strength-card h3 { font-size: 1.02rem; }

/* ---------- Commitment: three up ---------- */
.sustain-grid--three { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1100px) {
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .tgs-grid, .sustain-grid--three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 940px) {
  .unit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .tgs-grid, .sustain-grid--three, .strength-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   V3b — CREAM HERO ZONE
   Everything before #about (header, hero, marquee, technology
   story) moves onto a warm cream ground with dark forest-green
   type, for much stronger contrast. The partner / contact /
   footer sections keep their dark treatment untouched.
   Canvas colours are darkened to match in main.js.
   ========================================================= */

:root {
  --cream:      #F7F2E6;
  --cream-2:    #F1EADA;
  --cream-line: rgba(30,77,43,.16);
}

/* The hero and story are transparent, so they take the body ground.
   .zone-light, .section-partner, .section-contact and .site-footer
   all set their own backgrounds, so they are unaffected. */
body { background: var(--cream); }

/* ---------- Header (sticky across the whole page) ---------- */
.site-header { background: rgba(247,242,230,.76); border-bottom: 1px solid transparent; }
.site-header.scrolled {
  background: rgba(247,242,230,.95);
  border-color: var(--cream-line);
  box-shadow: 0 10px 30px -22px rgba(18,41,29,.5);
}
.nav-links a { color: var(--ink-soft); }
.nav-links a:not(.nav-cta):hover { color: var(--mint-deep); background: rgba(30,77,43,.07); }
.mobile-menu { background: rgba(247,242,230,.98); border-top-color: var(--cream-line); }
.mobile-menu a { color: var(--ink); }
.mobile-menu a:hover { background: rgba(30,77,43,.07); }
.nav-toggle span { background: var(--ink); }
/* white wordmark would vanish on cream — use the green variant up top */
.site-header .brand-logo-tile img { content: url("brand/nanoverse-logo-green.png"); }
.brand:hover .brand-logo-tile { filter: drop-shadow(0 6px 16px rgba(30,77,43,.3)); }

/* ---------- Hero type ---------- */
.hero-top h1 { color: var(--ink); text-shadow: none; }
.hero .eyebrow { color: var(--mint-deep); }
.pulse-dot { background: var(--mint-deep); }
.lede { color: var(--ink-soft); }
.scroll-hint { color: var(--muted); }

.chip {
  color: var(--ink); background: rgba(255,255,255,.72);
  border: 1px solid var(--cream-line);
  box-shadow: 0 6px 18px -10px rgba(18,41,29,.35);
}

/* ---------- Buttons on cream ---------- */
.btn-mint {
  background: var(--mint-deep); color: #FFFFFF;
  box-shadow: 0 10px 26px -12px rgba(30,77,43,.6);
}
.btn-mint:hover { background: #17401F; box-shadow: 0 16px 34px -12px rgba(30,77,43,.7); }
.btn-ghost {
  background: rgba(255,255,255,.6); color: var(--ink);
  border: 1.5px solid var(--cream-line);
}
.btn-ghost:hover { background: #FFFFFF; border-color: var(--mint-deep); color: var(--mint-deep); }

/* ---------- Marquee ---------- */
.marquee { background: rgba(30,77,43,.045); border-block-color: var(--cream-line); }
.marquee-track span { color: var(--ink-soft); }
.marquee-track .sep { color: var(--gold); }

/* ---------- Story panels become light cards ---------- */
.story-panel {
  background-image:
    linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)),
    conic-gradient(from var(--gradient-angle, 0deg),
      rgba(30,77,43,.14) 0%, var(--mint-deep) 37%, var(--gold) 30%,
      var(--mint-deep) 33%, rgba(30,77,43,.14) 40%, rgba(30,77,43,.14) 50%,
      var(--mint-deep) 77%, var(--gold) 80%, var(--mint-deep) 83%, rgba(30,77,43,.14) 90%);
  box-shadow: 0 22px 54px -24px rgba(18,41,29,.34);
}
.story-panel:hover { box-shadow: 0 30px 66px -24px rgba(18,41,29,.44); }
.story-panel h2 { color: var(--ink); }
.story-panel .eyebrow { color: var(--mint-deep); }
.story-panel > p { color: var(--ink-soft); }
.story-list li { color: var(--ink); }
.story-list li::before { background: linear-gradient(90deg, var(--mint-deep), var(--gold)); }

/* ---------- Placeholders inside the story strips ---------- */
.story .img-ph {
  background:
    repeating-linear-gradient(45deg, rgba(30,77,43,.05) 0 10px, transparent 10px 20px),
    rgba(30,77,43,.045);
  border: 1px dashed rgba(30,77,43,.26);
  color: var(--muted);
}

/* ---------- Tree halo reads as a soft shadow on cream ---------- */
.bloom-glow {
  background: radial-gradient(circle, rgba(30,77,43,.13), transparent 70%);
  filter: blur(30px);
}

/* Gradient headline text needs a dark ramp on cream — the light
   mint/amber sweep washes out. Large display text, so the amber
   end sits comfortably above the 3:1 large-text threshold. */
.hero .grad-text,
.story-panel .grad-text,
.marquee .grad-text {
  background: linear-gradient(100deg, var(--mint-deep), #2F7D45 45%, #A8761A);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* the light zone's ramp still carried a teal stop from the old palette */
.zone-light .grad-text {
  background: linear-gradient(100deg, var(--mint-deep), #2F7D45 50%, #A8761A);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* =========================================================
   V3c — TOP BAR
   The sticky header reads as a clean near-white bar sitting
   above the warmer cream ground, with a hairline rule under it.
   ========================================================= */
.site-header {
  background: rgba(253,250,243,.92);
  border-bottom: 1px solid var(--cream-line);
}
.site-header.scrolled {
  background: #FDFAF3;
  border-color: var(--cream-line);
  box-shadow: 0 10px 30px -22px rgba(18,41,29,.45);
}
.mobile-menu { background: rgba(253,250,243,.98); }

/* The base sheet pins the header CTA to a dark navy with !important,
   which left dark text on the dark-green button (1.7:1). */
.nav-cta { color: #FFFFFF !important; }

/* ---------- Sarawak globe ---------- */
.globe-wrap {
  margin: 0 auto clamp(42px, 6vw, 70px);
  width: min(400px, 78vw);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
#sarawakGlobe { width: 100%; aspect-ratio: 1; display: block; }
.globe-caption {
  font-family: var(--f-display); font-size: .76rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 9px;
}
.globe-caption::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: 0 0 0 4px rgba(30,77,43,.16);
}
@media (max-width: 520px) { .globe-wrap { width: min(300px, 82vw); } }

/* =========================================================
   V3c — BROCHURE PASS
   Green chips, sunrise backdrop, real photography.
   ========================================================= */

/* ---------- Chips: solid brand green, white type (matches Partner With Us) ---------- */
.chip {
  background: var(--mint-deep);
  color: #FFFFFF;
  border: 1px solid var(--mint-deep);
  box-shadow: 0 10px 26px -12px rgba(30,77,43,.55);
  font-weight: 600;
}
.chip-1 { left: 6%;  top: 19%; }
.chip-2 { right: 5%; top: 27%; }
.chip-3 { left: 10%; bottom: 17%; }

/* ---------- Sunrise backdrop ---------- */
#sunrise {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden;
  pointer-events: none; opacity: 0;   /* JS drives this; no transition, or the
                                         scroll fade would lag the scrollbar */
  /* feather the bottom edge into the cream ground so there is no hard seam */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0,0,0,.55) 82%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0,0,0,.55) 82%, rgba(0,0,0,0) 100%);
}
#sunrise img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 44% 48%;   /* V4: keeps the sun on the viewport centre */
  transform: scale(1.06);          /* headroom for the parallax drift */
  will-change: transform;
}

/* the hero sits above the sunrise; a scrim keeps the dark type readable */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(247,242,230,.72) 0%, rgba(247,242,230,.46) 40%, rgba(247,242,230,.86) 100%);
}
.hero { position: relative; isolation: isolate; }
.hero-top h1 { text-shadow: 0 2px 22px rgba(247,242,230,.9), 0 1px 3px rgba(247,242,230,.95); }

/* ---------- Real imagery ---------- */
.card-img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); object-fit: cover; aspect-ratio: 16/9;
  background: var(--paper-2);
}
.campus-card .card-img { margin-bottom: 2px; }

/* ---------- Gallery: photographs with captions ---------- */
.gallery-strip { align-items: stretch; }
.gs-item {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius-lg); background: #0C2117;
}
.gs-item img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 32%;
  transition: transform .6s var(--ease), filter .4s var(--ease);
  filter: saturate(.92);
}
.gs-item.is-open img { filter: saturate(1); }
.gs-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 44px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(6,20,12,.88) 58%);
  color: #FFFFFF; font-size: .82rem; line-height: 1.45;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gs-item.is-open .gs-cap { opacity: 1; transform: none; }
.gs-tag {
  display: block; font-family: var(--f-display); font-size: .64rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--mint-soft);
  margin-bottom: 5px;
}
.gs-date { display: block; margin-top: 5px; color: rgba(255,255,255,.72); font-size: .76rem; }

@media (max-width: 940px) {
  /* on the swipe carousel every card is "open", so captions always show */
  .gs-cap { opacity: 1; transform: none; }
  .chip { display: none; }
}

/* The hero h1 carries a cream text-shadow for legibility over the sunrise,
   but a gradient-clipped span has `color: transparent`, so that shadow shows
   through the glyphs and washes the gradient out. Drop it on the span and
   deepen the warm end, which now sits over a gold sky rather than cream. */
.hero-top h1 .grad-text {
  text-shadow: none;
  background: linear-gradient(100deg, #1A4526, #2B7340 45%, #7A5410);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* a touch more scrim directly behind the headline band */
.hero::before {
  background:
    radial-gradient(120% 52% at 50% 26%, rgba(247,242,230,.86), rgba(247,242,230,0) 70%),
    linear-gradient(180deg, rgba(247,242,230,.6) 0%, rgba(247,242,230,.26) 44%, rgba(247,242,230,.8) 100%);
}

/* Four chips, mirrored left/right so the hero reads symmetrically.
   The float delays differ, so they still drift independently. */
.chip-1 { left: 6%;   top: 19%;    bottom: auto; }
.chip-2 { right: 6%;  top: 19%;    bottom: auto; }
.chip-3 { left: 9%;   bottom: 16%; top: auto; }
.chip-4 { right: 9%;  bottom: 16%; top: auto; }

/* Attribution for the placeholder technology imagery (CC-licensed).
   Remove this along with the images once Nanoverse photography is supplied. */
.img-credits {
  flex-basis: 100%; margin-top: 10px; max-width: 100%;
  font-size: .68rem; line-height: 1.5; color: var(--on-deep-mute); opacity: .72;
}

/* =========================================================
   Mini-strip photos
   The strip was written for the placeholder <span>s, which had
   height:100%. Real <img> elements need an explicit fill rule or
   they render at natural size at the top of a much taller box.
   Also enlarged so the strip reads as a peer of the info panel
   rather than a row of slivers.
   ========================================================= */
.mini-strip {
  width: min(27vw, 370px);
  height: min(50vh, 400px);
  gap: 10px;
}
.ms-item {
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 0 10px 28px -18px rgba(18,41,29,.5);
}
.ms-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border-radius: inherit;
  filter: saturate(.94);
  transition: filter .4s var(--ease);
}
.ms-item.is-on { flex-grow: 4.2; }
.ms-item.is-on img { filter: saturate(1); }

/* the seed shot is tightly cropped and sits on white — keep its pale ground
   rather than letting the card colour show through the edges */
.ms-item img[src*="health-1"] { background: #FFFFFF; }

@media (max-width: 1100px) { .mini-strip { width: 24vw; } }

/* ======================================================================
   V3d — real photography pass
   The SketchUp facility renders and the dashed "team photograph" slot
   are gone; what replaces them is a chemical structure on a paper card
   and three Kuching / Sama Jaya location photographs.
   ====================================================================== */

/* ---------- About: mycochemical structure ---------- */
.about-media--chem {
  margin: 0;
  background: #FFFFFF;
  border: 1px solid rgba(30,77,43,.14);
  border-radius: var(--radius);
  padding: 22px 22px 16px;
  box-shadow: 0 18px 40px -28px rgba(18,41,29,.45);
}
.about-media--chem img {
  display: block; width: 100%; height: auto;
  /* line art on white — mix it to the brand green rather than leaving it
     a flat black screenshot */
  filter: saturate(0) contrast(1.06);
  mix-blend-mode: multiply;   /* drops the source's white ground onto the card */
}
.about-media--chem figcaption {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(30,77,43,.12);
  font-size: .82rem; line-height: 1.45; color: rgba(18,41,29,.72);
}

/* ---------- Location photographs: aerials need a lower focal point ---------- */
.card-img--low { object-position: center 72%; }
.card-img--br  { object-position: 78% 94%; }
.gs-item img[src*="sj-kuching-industrial"] { object-position: center 74%; }
.gs-item img[src*="sj-demak-laut"] { object-position: 78% 94%; }

/* the extract shot shares the seed shot's white studio ground */
.ms-item img[src*="health-3"] { background: #FFFFFF; }

/* ======================================================================
   V4b — BOARD AND LEADERSHIP
   Six substantial biographies replace the three portrait cards, so the
   section becomes a reading layout: name and role hold a narrow left
   column, the prose runs in a measured column beside it. No photographs.
   ====================================================================== */

.board-list { display: grid; }
.board-member {
  display: grid;
  grid-template-columns: minmax(200px, 0.78fr) minmax(0, 2fr);
  gap: 26px 56px;
  padding: 38px 0;
  border-top: 1px solid rgba(30, 77, 43, .14);
}
.board-member:last-child { border-bottom: 1px solid rgba(30, 77, 43, .14); }

.board-id h3 {
  font-size: 1.14rem; line-height: 1.32;
  margin-bottom: 7px; color: var(--ink);
}
/* the role sits directly under the name here, not above a body block */
.board-id .leader-role { margin-bottom: 0; }

.board-bio p {
  color: var(--ink-soft);
  font-size: .96rem; line-height: 1.72;
  max-width: 68ch;
}
.board-bio p + p { margin-top: 15px; }

/* the name column can ride along on desktop, where the bios are tall */
@media (min-width: 1000px) {
  .board-id { position: sticky; top: 104px; align-self: start; }
}

@media (max-width: 860px) {
  .board-member {
    grid-template-columns: 1fr;
    gap: 14px; padding: 30px 0;
  }
  .board-bio p { font-size: .93rem; }
}

/* ---------- News: no article images, so the tag leads the card ---------- */
.news-card > .news-tag:first-child { margin-top: 0; }

/* ---------- Bios: lede visible, the rest behind a toggle ----------
   Authored open, so a reader without JS gets the whole biography; the
   script collapses it on load and wires the button. */
.bio-rest {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .42s var(--ease);
}
.bio-rest-inner { overflow: hidden; min-height: 0; }
/* the wrapper breaks the p + p adjacency that normally spaces the stack */
.bio-rest-inner > p { margin-top: 15px; }
.board-bio.is-collapsed .bio-rest { grid-template-rows: 0fr; }

/* Collapsed, the opening paragraph is clamped to three lines, so every
   teaser is the same height whatever the length of the lede. */
.board-bio.is-collapsed > p:first-child {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bio-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 8px; padding: 10px 0;   /* padding, not margin: it is the tap target */
  background: none; border: 0; cursor: pointer;
  font-family: var(--f-display); font-size: .82rem; letter-spacing: .02em;
  color: var(--mint-deep);
}
/* the rule sits on the label so the padding above does not push it down */
.bio-toggle-label {
  border-bottom: 1px solid rgba(30, 77, 43, .28);
  transition: border-color .2s var(--ease);
}
.bio-toggle:hover .bio-toggle-label { border-bottom-color: var(--mint-deep); }
.bio-toggle:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 3px; border-radius: 3px; }
.bio-toggle-chev {
  width: 13px; height: 13px;
  transition: transform .3s var(--ease);
}
.bio-toggle[aria-expanded="true"] .bio-toggle-chev { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .bio-rest, .bio-toggle-chev, .bio-toggle-label { transition: none; }
}

/* ---------- Enquiry form: delivery failed ---------- */
.form-error {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  color: #8A2B1F; font-family: var(--f-display); font-weight: 600;
  background: rgba(176, 58, 40, .09); border: 1px solid rgba(176, 58, 40, .3);
  padding: 14px; border-radius: 11px; margin-top: 16px;
  font-size: .92rem; line-height: 1.5; text-align: center;
}
.form-error svg { flex: none; }
.form-error a { color: inherit; text-decoration: underline; }

/* display:flex on these two beats the hidden attribute's display:none, so
   the thank-you panel sat there on page load before anyone had submitted.
   Spell the hidden case out. */
.form-success[hidden], .form-error[hidden] { display: none; }

/* ---------- Enquiry form: JotForm plumbing ---------- */
/* honeypot — off-screen rather than display:none, which some bots skip */
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
#jotformSink { display: none; }
