/* ============================================================
   APS Design Lab — base.css
   Structure + components. All colors via CSS variables so the
   theme files (theme-a/b/c.css) only need to set tokens.
   ============================================================ */

/* ---------- Shared tokens (non-themeable) ---------- */
:root {
  --nav-h: 72px;
  --maxw: 1200px;
  --r-xs: 6px; --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 100px;
  --t: 200ms cubic-bezier(.4,0,.2,1);
  --t-slow: 420ms cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --shadow-sm: 0 1px 2px rgba(8,12,24,.06), 0 1px 3px rgba(8,12,24,.05);
  --shadow: 0 6px 24px rgba(8,12,24,.09);
  --shadow-lg: 0 24px 60px rgba(8,12,24,.16);
  --space-section: clamp(4rem, 9vw, 7.5rem);

  /* Default (theme A-ish) tokens — overridden per theme. */
  --bg: #F7F9FC; --bg-alt: #FFFFFF; --surface: #FFFFFF; --surface-2: #F2F6FB;
  --text: #0E1726; --text-2: #33405A; --muted: #64748B; --subtle: #94A3B8;
  --border: #E4EAF2; --border-2: #CDD7E6;
  --brand: #0369A1; --brand-2: #38BDF8; --accent: #C9962E; --accent-2: #E8C66B; --danger: #DC2626;
  --on-accent: #2A1B05;

  --hero-from: #0F172A; --hero-to: #0D1E3D;
  --hero-text: #FFFFFF; --hero-text-2: rgba(255,255,255,.66);
  --hero-eyebrow: rgba(255,255,255,.7);
  --hero-glow-1: rgba(56,138,221,.34); --hero-glow-2: rgba(220,38,38,.16);
  --hero-grid: rgba(255,255,255,.045);
  --hero-accent: #60A5FA;

  --font-display: 'EB Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --display-weight: 700; --display-spacing: -.01em; --display-style: normal;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); background: var(--bg); color: var(--text);
  line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

/* ---------- A11y helpers ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -120%; left: 1rem; z-index: 2000; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 700; font-size: .9rem; }
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--space-section); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--surface-2); }

/* ---------- Display type / section headers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; opacity: .6; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-title {
  font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style);
  letter-spacing: var(--display-spacing); line-height: 1.08; color: var(--text);
  font-size: clamp(1.9rem, 4.2vw, 3rem); margin-top: .7rem;
}
.section-desc { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-sm); font-weight: 700; font-size: .95rem;
  min-height: 48px; transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  border: 1.5px solid transparent; touch-action: manipulation; will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 22px -8px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--accent); }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--border-2); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-on-dark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.btn-on-dark:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
#navbar {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000;
  background: color-mix(in srgb, var(--bg-alt) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
#navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { height: 100%; width: min(100% - 2rem, calc(var(--maxw) + 80px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.nav-logo img { width: 42px; height: 42px; object-fit: contain; }
.nav-logo .abbr { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .16em; color: var(--text); line-height: 1; }
.nav-logo .full { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }
.nav-links > li > a { display: flex; align-items: center; gap: 5px; padding: 9px 14px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: color var(--t), background var(--t); }
.nav-links > li > a:hover { color: var(--text); background: var(--surface-2); }
.nav-links > li > a.active { color: var(--brand); }
.nav-links a svg { width: 13px; height: 13px; transition: transform var(--t); }
.nav-links > li:hover > a svg, .nav-links > li:focus-within > a svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 7px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transition: all var(--t); }
.nav-links > li:hover .dropdown, .nav-links > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: var(--r-xs); font-size: .87rem; color: var(--text-2); transition: all var(--t); }
.dropdown a:hover { background: var(--surface-2); color: var(--brand); }
.dropdown a svg { width: 15px; height: 15px; color: var(--brand); }
.nav-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* language pill */
.lang-toggle { display: inline-flex; border: 1px solid var(--border-2); border-radius: var(--r-pill); overflow: hidden; }
.lang-toggle button { padding: 6px 11px; font-size: .76rem; font-weight: 700; color: var(--muted); transition: all var(--t); }
.lang-toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }

.hamburger { display: none; width: 46px; height: 46px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border-radius: var(--r-sm); }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--t-slow); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO (theme-agnostic skeleton) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: var(--nav-h); background: var(--hero-from); isolation: isolate; }
.hero-layers { position: absolute; inset: 0; z-index: 0; }
.hero-layer { position: absolute; inset: -8%; will-change: transform; }
.hero-base { background: linear-gradient(135deg, var(--hero-from), var(--hero-to) 55%, var(--hero-from)); inset: 0; }
.hero-img { background-size: cover; background-position: center right; opacity: 0; transition: opacity .8s ease; }
.hero-img.loaded { opacity: 1; }
[data-motion="balanced"] .hero-img.loaded, [data-motion="maximal"] .hero-img.loaded { opacity: .42; }
.hero-grid { background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px); background-size: 46px 46px; }
.hero-glow { background: radial-gradient(ellipse 55% 60% at 20% 32%, var(--hero-glow-1), transparent 70%), radial-gradient(ellipse 45% 55% at 82% 78%, var(--hero-glow-2), transparent 70%); }
.hero-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: none; }
.hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 3; width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; padding-block: 5rem 6rem; max-width: 880px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 15px; border-radius: var(--r-pill); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--hero-eyebrow); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.hero-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hero-accent); }
.hero-title { font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); letter-spacing: var(--display-spacing); line-height: 1.02; color: var(--hero-text); font-size: clamp(2.8rem, 8.5vw, 6rem); margin: 1.4rem 0 0; }
.hero-title .l2 { color: var(--hero-accent); }
.hero-sub { margin-top: 1.4rem; max-width: 600px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--hero-text-2); line-height: 1.7; }
.hero-visi { margin-top: 1.8rem; max-width: 640px; padding: 1.2rem 1.4rem 1.2rem 1.7rem; position: relative; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); }
.hero-visi::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: linear-gradient(var(--hero-accent), var(--accent)); }
.hero-visi-lbl { font-size: .66rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--hero-accent); }
.hero-visi-txt { margin-top: .5rem; font-family: var(--font-display); font-style: italic; font-size: 1.12rem; line-height: 1.6; color: rgba(255,255,255,.9); }
.hero-stats { margin-top: 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 660px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: var(--r); overflow: hidden; }
.hero-stat { padding: 1.1rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.hero-stat:last-child { border-right: 0; }
.hero-stat .n { font-family: var(--font-display); font-weight: 700; font-size: 1.85rem; color: #fff; line-height: 1; }
.hero-stat .l { display: block; margin-top: 5px; font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.55); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,.4); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.hero-scroll svg { width: 20px; height: 20px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Icon chip ---------- */
.iconchip { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); flex-shrink: 0; }
.iconchip svg { width: 22px; height: 22px; }
.iconchip.accent { background: color-mix(in srgb, var(--accent) 18%, transparent); color: color-mix(in srgb, var(--accent) 78%, #000); }
.iconchip.danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }

/* ---------- Generic card ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow), border-color var(--t); will-change: transform; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-2); }
.card-title { font-weight: 800; font-size: 1.05rem; color: var(--text); margin: .9rem 0 .4rem; letter-spacing: -.01em; }
.card-text { font-size: .92rem; color: var(--muted); line-height: 1.6; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-grid p { color: var(--text-2); margin-top: 1rem; line-height: 1.75; }
.about-lead { font-size: 1.1rem; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.6rem; }
.principle { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--r-sm); padding: 1rem 1.1rem; font-size: .9rem; color: var(--text-2); font-style: italic; }
.laus { margin-top: 1.6rem; padding: 1.3rem 1.5rem; border-radius: var(--r); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); }
.laus-lbl { font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 78%, #000); }
.laus p { margin-top: .5rem; color: var(--text-2); font-size: .94rem; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-media .m { border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.about-media .m img { width: 100%; height: 100%; object-fit: cover; }
.about-media .tall { grid-row: span 2; aspect-ratio: 3/4; }
.about-media .wide { aspect-ratio: 3/2; }

/* Grids */
.grid-auto { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }

/* Sasaran (numbered) */
.sasaran-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); counter-reset: s; }
.sasaran { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.1rem; transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t); }
.sasaran:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sasaran .num { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: var(--accent); min-width: 26px; }
.sasaran .ic { color: var(--brand); }
.sasaran .ic svg { width: 18px; height: 18px; }
.sasaran p { font-size: .9rem; color: var(--text-2); line-height: 1.5; }

/* Forum cards */
.forum { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--brand); border-radius: var(--r); padding: 1.4rem; transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t); }
.forum:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.forum .fnum { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.forum h3 { font-size: 1.02rem; color: var(--text); margin: .5rem 0; line-height: 1.25; }
.forum p { font-size: .88rem; color: var(--muted); line-height: 1.55; }
.forum .focus { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--border-2); font-size: .8rem; color: var(--text-2); }
.forum .focus b { color: var(--brand); }

/* Conferences */
.conf-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.conf { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t); }
.conf:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.conf-img { aspect-ratio: 16/10; overflow: hidden; background: var(--hero-from); }
.conf-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.conf:hover .conf-img img { transform: scale(1.05); }
.conf-body { padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.conf-lbl { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.conf h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--text); }
.conf-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: var(--muted); }
.conf-meta span { display: inline-flex; align-items: center; gap: 5px; }
.conf-meta svg { width: 14px; height: 14px; }
.conf-theme { font-family: var(--font-display); font-style: italic; font-size: .95rem; color: var(--text-2); border-left: 2px solid var(--accent); padding-left: .7rem; }
.conf p { font-size: .87rem; color: var(--muted); line-height: 1.55; }

/* Network */
.net-label { display: flex; align-items: baseline; gap: 10px; margin: 2rem 0 1rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.net-label span.sub { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--subtle); font-size: .78rem; }
.prov-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.prov { display: flex; gap: 11px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1rem 1.1rem; transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t); }
.prov:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prov h4 { font-size: .95rem; color: var(--text); }
.prov p { font-size: .78rem; color: var(--muted); }
.unit-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; margin-top: 1.25rem; }
.unit { background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.6rem; }
.unit h4 { display: flex; align-items: center; gap: 9px; font-size: 1.05rem; color: var(--text); }
.unit h4 svg { width: 18px; height: 18px; color: var(--brand); }
.unit p { margin-top: .7rem; font-size: .9rem; color: var(--muted); line-height: 1.6; }
.unit .scope { margin-top: .8rem; font-size: .8rem; color: var(--text-2); }
.unit .scope b { color: var(--brand); }

/* Priorities */
.prio-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.prio { text-align: center; padding: 1.8rem 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t); }
.prio:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.prio .iconchip { margin: 0 auto 1rem; width: 54px; height: 54px; }
.prio h3 { font-size: 1.02rem; color: var(--text); margin-bottom: .5rem; }
.prio p { font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* CTA band */
.cta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; border-radius: var(--r-xl); padding: clamp(2.5rem, 6vw, 5rem); text-align: center; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 70% at 30% 20%, var(--hero-glow-1), transparent 70%), radial-gradient(ellipse 50% 70% at 80% 90%, var(--hero-glow-2), transparent 70%); }
.cta .eyebrow { color: var(--hero-accent); justify-content: center; }
.cta h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.08; margin: .8rem 0 1rem; }
.cta p { max-width: 620px; margin: 0 auto 1.8rem; color: rgba(255,255,255,.72); font-size: 1.05rem; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer { background: var(--hero-from); color: rgba(255,255,255,.7); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: .12em; color: #fff; }
.footer-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--hero-accent); margin-top: 3px; }
.footer-tagline { margin-top: 1rem; font-size: .9rem; line-height: 1.7; max-width: 340px; color: rgba(255,255,255,.6); }
.footer-contact { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 8px; font-size: .85rem; }
.footer-contact div { display: flex; align-items: center; gap: 9px; }
.footer-contact svg { width: 16px; height: 16px; color: var(--hero-accent); }
footer h4 { color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
footer ul li { margin-bottom: .6rem; }
footer ul a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color var(--t); }
footer ul a:hover { color: #fff; }
.footer-bottom { width: min(100% - 2.5rem, var(--maxw)); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-bottom .laus { background: none; border: none; padding: 0; font-family: var(--font-display); font-style: italic; color: var(--accent-2); }

/* ---------- Back to top ---------- */
.btt { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 900; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: all var(--t); }
.btt.show { opacity: 1; transform: none; pointer-events: auto; }
.btt:hover { transform: translateY(-3px); }

/* ---------- Design Lab control dock ---------- */
.lab-dock { position: fixed; right: 1.4rem; bottom: 5rem; z-index: 950; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.lab-dock-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); background: var(--text); color: var(--bg-alt); font-weight: 700; font-size: .82rem; box-shadow: var(--shadow-lg); }
.lab-dock-toggle svg { width: 16px; height: 16px; }
.lab-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 1rem; width: 250px; display: none; }
.lab-panel.open { display: block; animation: pop .26s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.lab-row { margin-bottom: .9rem; }
.lab-row:last-child { margin-bottom: 0; }
.lab-row > .k { font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.seg { display: flex; gap: 4px; background: var(--surface-2); border-radius: var(--r-sm); padding: 4px; }
.seg button { flex: 1; padding: 7px 4px; border-radius: var(--r-xs); font-size: .76rem; font-weight: 700; color: var(--text-2); transition: all var(--t); }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.lab-back { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; color: var(--brand); margin-top: .2rem; }
.lab-back svg { width: 15px; height: 15px; }

/* ---------- Motion primitives ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.tilt { transition: transform .25s var(--ease-out); transform-style: preserve-3d; }
[data-depth] { transition: transform .12s linear; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .grid-3, .conf-grid, .prio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: .5rem; box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform var(--t-slow); max-height: calc(100svh - var(--nav-h)); overflow-y: auto; }
  .nav-links.open { transform: none; }
  .nav-links > li > a { padding: 13px 14px; font-size: 1rem; }
  .nav-links .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-left: 2px solid var(--border); margin: 0 0 .4rem 1rem; padding-left: .5rem; min-width: 0; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; }
  .hero-stats { max-width: none; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2, .conf-grid, .prio-grid, .unit-grid, .principles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:nth-child(2) { border-right: 0; }
  .hero-stat:nth-child(1), .hero-stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-logo .full { display: none; }
  .lang-toggle button { padding: 10px 14px; font-size: .8rem; }
  .btt { left: 1.2rem; right: auto; }
  .lab-panel { width: min(250px, 86vw); }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-scroll svg { animation: none; }
}

/* ============================================================
   INNER-PAGE COMPONENTS
   ============================================================ */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(3rem,7vw,5rem)) 0 clamp(2.5rem,5vw,3.5rem); background: var(--hero-from); isolation: isolate; }
.page-hero-inner { position: relative; z-index: 3; width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; max-width: 760px; text-align: center; }
.page-hero .eyebrow { color: var(--hero-eyebrow); justify-content: center; }
.page-hero h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); letter-spacing: var(--display-spacing); color: var(--hero-text); font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.06; margin-top: .7rem; }
.page-hero p { margin-top: 1rem; color: var(--hero-text-2); font-size: 1.05rem; line-height: 1.7; }

.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.breadcrumb ol { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; display: flex; gap: 8px; align-items: center; padding: .8rem 0; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: '/'; color: var(--border-2); }
.breadcrumb a { color: var(--brand); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text-2); font-weight: 700; }

.timeline { position: relative; max-width: 880px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--accent)); transform: translateX(-50%); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; margin-bottom: 1.6rem; }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.3rem; }
.tl-item:nth-child(odd) .tl-card { grid-column: 1; }
.tl-item:nth-child(even) .tl-card { grid-column: 2; }
.tl-dot { position: absolute; left: 50%; top: 16px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg-alt); transform: translateX(-50%); }
.tl-year { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.tl-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin: .4rem 0; color: var(--text); }
.tl-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

.vm-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 1.25rem; }
.vm-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.8rem; }
.vm-card.visi { border-top: 3px solid var(--brand); }
.vm-card.misi { border-top: 3px solid var(--accent); }
.vm-card h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--text); margin-bottom: .8rem; }
.vm-card.visi p { font-size: 1.08rem; color: var(--text-2); line-height: 1.7; font-style: italic; font-family: var(--font-display); }
.vm-card.misi li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.vm-card.misi li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tujuan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.tujuan { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 1.4rem; }
.tujuan h4 { color: var(--brand); font-size: 1rem; margin-bottom: .4rem; }
.tujuan p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

.act-list { display: flex; flex-direction: column; gap: 1rem; max-width: 880px; margin-inline: auto; }
.act { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.3rem; transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t); }
.act:hover { transform: translateX(5px); box-shadow: var(--shadow); }
.act .iconchip { width: 52px; height: 52px; }
.act h3 { font-size: 1.05rem; color: var(--text); margin-bottom: .3rem; }
.act p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

.org-chart { position: relative; max-width: 940px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; --oc: var(--border-2); }
.org-chart::before { content: ""; position: absolute; top: 134px; bottom: 138px; left: 50%; width: 2px; background: linear-gradient(var(--accent), var(--brand)); transform: translateX(-50%); z-index: 0; }
.org-tier { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; width: 100%; padding: 1.45rem 0; }
.org-tier-lbl { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 8px; background: var(--bg-alt); padding: 3px .9rem; font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.org-tier-lbl::before, .org-tier-lbl::after { content: ""; width: 16px; height: 1px; background: currentColor; opacity: .4; }
.org-nodes { position: relative; z-index: 1; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; max-width: 920px; }
.org-nodes::before { content: ""; position: absolute; top: -16px; left: 9%; right: 9%; height: 2px; background: var(--oc); }
.org-nodes::after { content: ""; position: absolute; bottom: -16px; left: 9%; right: 9%; height: 2px; background: var(--oc); }
.org-node { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: .75rem 1.3rem; font-weight: 700; font-size: .88rem; color: var(--text); text-align: center; box-shadow: var(--shadow-sm); }
.org-node::after { content: ""; position: absolute; top: -16px; left: 50%; width: 2px; height: 16px; background: var(--oc); transform: translateX(-50%); }
.org-node::before { content: ""; position: absolute; bottom: -16px; left: 50%; width: 2px; height: 16px; background: var(--oc); transform: translateX(-50%); }
.org-tier:first-child .org-nodes::before, .org-tier:first-child .org-node::after { display: none; }
.org-tier:last-child .org-nodes::after, .org-tier:last-child .org-node::before { display: none; }
.org-nodes:has(> .org-node:only-child)::before, .org-nodes:has(> .org-node:only-child)::after { display: none; }
.org-node.primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 8px 22px -10px var(--brand); }
.org-node.pillar { display: flex; flex-direction: column; gap: 5px; min-width: 170px; max-width: 210px; padding: 1rem; font-size: .82rem; font-weight: 600; color: var(--text-2); box-shadow: none; }
.org-node.pillar .plbl { font-weight: 800; color: var(--brand); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 760px) { .org-chart::before, .org-nodes::before, .org-nodes::after, .org-node::before, .org-node::after { display: none; } .org-tier { padding: .55rem 0; gap: .8rem; } .org-node.pillar { min-width: 0; max-width: 100%; width: 100%; } }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 2.5rem auto 1.5rem; max-width: 820px; }
.tab { padding: 8px 16px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 700; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); transition: all var(--t); }
.tab[aria-selected="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.tabpanel { display: none; }
.tabpanel.active { display: block; animation: fadeUp .3s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.mtable { width: 100%; border-collapse: collapse; max-width: 960px; margin-inline: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.mtable th, .mtable td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
.mtable th { background: var(--surface-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mtable tr:last-child td { border-bottom: none; }
.mtable td .nm { font-weight: 700; color: var(--text); }
.role { font-size: .82rem; color: var(--text-2); }
.role.lead { color: var(--brand); font-weight: 700; }

.kontak-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.kontak { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.7rem; text-align: center; }
.kontak .iconchip { margin: 0 auto 1rem; width: 54px; height: 54px; }
.kontak h3 { font-size: 1rem; color: var(--text); margin-bottom: .4rem; }
.kontak p { font-size: .88rem; color: var(--muted); line-height: 1.55; }
.kontak a { color: var(--brand); }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.quick { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.1rem 1.3rem; transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t), border-color var(--t); }
.quick:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.quick .iconchip { width: 42px; height: 42px; }
.quick > span { flex: 1; font-weight: 700; color: var(--text); font-size: .92rem; }
.quick .arr { width: 18px; height: 18px; color: var(--brand); transition: transform var(--t); }
.quick:hover .arr { transform: translateX(4px); }

@media (max-width: 760px) {
  .timeline::before { left: 17px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 44px; }
  .tl-item .tl-card { grid-column: 1 !important; }
  .tl-dot { left: 17px; }
  .vm-grid, .tujuan-grid, .kontak-grid { grid-template-columns: 1fr; }
  .mtable { display: block; overflow-x: auto; white-space: nowrap; }
}

