:root {
  --bg: #0a0d14;
  --bg-2: #0f131c;
  --panel: #141821;
  --panel-2: #1b2030;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f4f5f7;
  --ink-2: #c9cdd6;
  --muted: #8a909e;
  --accent: #ff6b35;
  --accent-2: #ff8a5c;
  --c-teal: #2dd4bf;
  --c-yellow: #fbbf24;
  --c-pink: #ec4899;
  --c-blue: #3b82f6;
  --c-lime: #84cc16;
  --c-violet: #a78bfa;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

html[data-theme="light"] {
  --bg: #faf9f6;
  --bg-2: #f1efe9;
  --panel: #ffffff;
  --panel-2: #f6f4ef;
  --line: rgba(10, 13, 20, 0.08);
  --line-2: rgba(10, 13, 20, 0.16);
  --ink: #0a0d14;
  --ink-2: #2a2f3a;
  --muted: #5b6271;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* utilities */
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; text-transform: uppercase; font-size: 11px; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }
.section { padding: 120px 0; position: relative; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 6vw, 88px); line-height: 1.02; letter-spacing: -0.025em; margin: 0; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 1px solid transparent; transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #1a1207; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--panel); border-color: var(--ink-2); }
.btn-sm { padding: 9px 14px; font-size: 13px; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); }
.chip-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #d24814); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 0.02em; box-shadow: 0 6px 22px -8px rgba(255, 107, 53, 0.6); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-icon-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); display: grid; place-items: center; }
.nav-icon-btn:hover { color: var(--ink); border-color: var(--line-2); }

@media (max-width: 920px) { .nav-links { display: none; } .nav-actions .btn-primary span { display: none; } .nav-hamburger { display: grid; } }
.nav-hamburger { display: none; }
.mobile-menu { position: fixed; top: 72px; left: 0; right: 0; z-index: 59; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; padding: 12px 0; }
.mobile-menu a { padding: 14px 32px; font-size: 16px; color: var(--ink-2); border-bottom: 1px solid var(--line); display: block; }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { color: var(--ink); background: var(--panel); }

/* hero */
.hero { position: relative; padding-top: 152px; padding-bottom: 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-title .grad { background: linear-gradient(120deg, var(--c-teal), var(--c-blue) 40%, var(--c-pink) 75%, var(--c-yellow)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; font-weight: 500; }
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 32px; margin-top: 56px; flex-wrap: wrap; }
.hero-meta .num { font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -0.02em; }
.hero-meta .lbl { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }

.hero-viz { position: relative; aspect-ratio: 1 / 1; }
.hero-viz svg { width: 100%; height: 100%; }
.viz-tag { position: absolute; padding: 8px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); }
.viz-tag .d { width: 7px; height: 7px; border-radius: 999px; }

@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero-viz { max-width: 460px; margin: 0 auto; } }

/* marquee strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; }
.strip-track { display: flex; gap: 64px; white-space: nowrap; animation: scroll 38s linear infinite; }
.strip-item { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 14px; }
.strip-item::after { content: "◆"; color: var(--accent); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* products */
.products-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.products-tabs { display: flex; gap: 6px; background: var(--panel); padding: 5px; border-radius: 999px; border: 1px solid var(--line); }
.products-tab { padding: 9px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: transparent; border: 0; border-radius: 999px; }
.products-tab.active { color: #1a1207; background: var(--accent); }
.products-track-wrap { position: relative; }
.products-track { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 24px; scroll-behavior: auto; }
.products-track::-webkit-scrollbar { height: 6px; }
.products-track::-webkit-scrollbar-track { background: var(--panel); border-radius: 999px; }
.products-track::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.product-card { flex: 0 0 calc(33.333% - 16px); min-width: 320px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: relative; transition: border-color 0.2s ease, transform 0.2s ease; cursor: pointer; display: flex; flex-direction: column; min-height: 380px; }
.product-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.product-card .pc-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.product-card .pc-glyph { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #0a0d14; letter-spacing: -0.02em; }
.product-card .pc-ver { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.product-card h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px 0; }
.product-card .pc-sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.product-card .pc-desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin: 20px 0; flex: 1; }
.product-card .pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.product-card .pc-tag { font-family: var(--font-mono); font-size: 10px; padding: 3px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line); }
.product-card .pc-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.product-card .pc-stat { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.product-card .pc-stat b { color: var(--ink); font-weight: 600; }
.product-card .pc-arrow { width: 32px; height: 32px; border-radius: 999px; background: var(--bg-2); display: grid; place-items: center; color: var(--ink-2); transition: background 0.2s ease, color 0.2s ease; }
.product-card:hover .pc-arrow { background: var(--accent); color: #1a1207; }
.track-nav { display: flex; gap: 10px; margin-top: 8px; }
.track-nav button { width: 44px; height: 44px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; }
.track-nav button:hover { border-color: var(--line-2); background: var(--panel-2); }

@media (max-width: 920px) { .product-card { flex-basis: calc(100% - 16px); } }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(5, 7, 12, 0.7); backdrop-filter: blur(8px); z-index: 80; display: grid; place-items: center; padding: 24px; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; max-width: 760px; width: 100%; max-height: 85vh; overflow: auto; box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7); animation: rise 0.25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-head { padding: 28px 32px 0; display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.modal-glyph { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #0a0d14; letter-spacing: -0.02em; }
.modal-close { width: 36px; height: 36px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; }
.modal-body { padding: 24px 32px 32px; }
.modal h3 { font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -0.02em; margin: 18px 0 6px; }
.modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.modal-stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.modal-stat .v { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.modal-stat .l { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.modal-features { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 24px; }
.modal-features li { display: flex; gap: 12px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; list-style: none; }
.modal-features li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 999px; background: var(--accent); flex-shrink: 0; }
.modal-foot { display: flex; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #0a0d14; font-weight: 700; }
.about-card h4 { font-family: var(--font-display); font-size: 16px; margin: 0; font-weight: 600; }
.about-card p { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; margin: 0; }
@media (max-width: 920px) { .about-grid { grid-template-columns: 1fr; } }

/* results / stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden; }
.stat .stat-num { font-family: var(--font-display); font-size: 54px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat .stat-lbl { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 12px; }
.stat .stat-bar { height: 2px; background: var(--line); margin-top: 18px; border-radius: 999px; overflow: hidden; }
.stat .stat-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; }
@media (max-width: 920px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* programs */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; transition: border-color 0.2s ease, transform 0.2s ease; }
.program:hover { border-color: var(--line-2); transform: translateY(-3px); }
.program-head { display: flex; justify-content: space-between; align-items: start; }
.program-cat { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.program-dur { font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); }
.program h4 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.program p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.program-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.program-foot .price { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.program-foot .price small { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-left: 6px; }
@media (max-width: 920px) { .programs-grid { grid-template-columns: 1fr; } }

/* faculty */
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.face { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.face-img { aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--bg-2); margin-bottom: 16px; position: relative; }
.face-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.face-role { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin: 4px 0 0; }
.face-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
@media (max-width: 920px) { .faculty-grid { grid-template-columns: repeat(2, 1fr); } }

/* testimonials */
.testimonials-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scroll-behavior: smooth; }
.testimonial { flex: 0 0 calc(50% - 12px); min-width: 320px; scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.testimonial blockquote { font-family: var(--font-display); font-size: 20px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 24px; color: var(--ink); }
.testimonial blockquote::before { content: "“"; color: var(--accent); font-family: var(--font-display); font-size: 56px; line-height: 0.5; vertical-align: -0.3em; margin-right: 6px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .who .av { width: 44px; height: 44px; border-radius: 999px; background: var(--bg-2); display: grid; place-items: center; font-weight: 600; font-family: var(--font-display); color: var(--ink); }
.testimonial .who .nm { font-weight: 600; font-size: 14px; }
.testimonial .who .ro { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 920px) { .testimonial { flex-basis: 90%; } }

/* blog */
.blog-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.blog-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.blog-card .img { aspect-ratio: 16 / 9; background: var(--bg-2); position: relative; }
.blog-card.featured .img { aspect-ratio: 4 / 3; }
.blog-card .meta { padding: 22px 22px 0; display: flex; gap: 12px; align-items: center; }
.blog-card h4 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin: 14px 22px 8px; }
.blog-card.featured h4 { font-size: 28px; }
.blog-card .exc { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; margin: 0 22px 22px; }
@media (max-width: 920px) { .blog-grid { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-meta { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.contact-meta-row { display: flex; gap: 16px; align-items: start; }
.contact-meta-row .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.contact-meta-row .lbl { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.contact-meta-row .val { font-size: 15px; }

.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.field input, .field textarea, .field select { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink); font: inherit; font-size: 14.5px; transition: border-color 0.15s ease, background 0.15s ease; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field .err { color: #ff8a5c; font-size: 12px; font-family: var(--font-mono); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.success { padding: 16px; background: rgba(45, 212, 191, 0.08); border: 1px solid rgba(45, 212, 191, 0.3); border-radius: 12px; color: var(--c-teal); font-size: 14px; display: flex; gap: 10px; align-items: center; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* footer */
.footer { padding: 80px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer h5 { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 18px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--ink-2); transition: color 0.15s ease; }
.footer ul a:hover { color: var(--ink); }
.footer-tag { display: flex; flex-direction: column; gap: 18px; max-width: 280px; }
.footer-tag p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0; }
.footer-bot { display: flex; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* dashboard view */
.dash { padding-top: 110px; min-height: 100vh; }
.dash-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.dash-side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.dash-side .user { display: flex; gap: 12px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.dash-side .user .av { width: 44px; height: 44px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), #d24814); display: grid; place-items: center; font-weight: 600; color: #fff; font-family: var(--font-display); }
.dash-side .user .nm { font-weight: 600; font-size: 14px; }
.dash-side .user .em { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.dash-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.dash-nav button { text-align: left; padding: 10px 14px; border-radius: 10px; background: transparent; border: 0; color: var(--ink-2); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.dash-nav button.active { background: var(--bg-2); color: var(--ink); }
.dash-main { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.dash-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.dash-card .v { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.dash-card .l { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.dash-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
@media (max-width: 920px) { .dash-grid { grid-template-columns: 1fr; } .dash-cards { grid-template-columns: 1fr; } }

/* dashboard — polished */
.dash-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--panel)), var(--panel) 60%); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; gap: 22px; align-items: center; margin-bottom: 24px; position: relative; overflow: hidden; }
.dash-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 999px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); pointer-events: none; }
.dash-hero .av-lg { width: 72px; height: 72px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), #d24814); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 28px; flex-shrink: 0; box-shadow: 0 8px 24px -8px rgba(255,107,53,0.5); }
.dash-hero .meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dash-hero .nm { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.dash-hero .em { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.dash-hero .role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); width: max-content; }
.dash-hero .role-chip i { width: 6px; height: 6px; border-radius: 999px; background: var(--c-teal); }

.dash-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.dash-stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.2s ease, transform 0.2s ease; }
.dash-stat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.dash-stat .ico { width: 32px; height: 32px; border-radius: 8px; background: var(--panel); display: grid; place-items: center; color: var(--accent); }
.dash-stat .v { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.dash-stat .l { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 920px) { .dash-stat-row { grid-template-columns: repeat(2, 1fr); } .dash-hero { flex-direction: column; align-items: flex-start; text-align: left; } }

/* dashboard — grant card / material viewer */
.grant-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color 0.2s ease; }
.grant-card:hover { border-color: var(--line-2); }
.grant-card .gc-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; gap: 14px; }
.grant-card .gc-head:hover { background: color-mix(in srgb, var(--panel) 30%, transparent); }
.grant-card .gc-glyph { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #0a0d14; font-weight: 700; font-family: var(--font-display); font-size: 16px; flex-shrink: 0; }
.grant-card .gc-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.grant-card .gc-title { font-weight: 600; font-size: 14.5px; }
.grant-card .gc-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grant-card .gc-meta .kind { font-family: var(--font-mono); font-size: 10px; padding: 2px 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.grant-card .gc-meta .date { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.grant-card .gc-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.grant-card .gc-count { font-family: var(--font-mono); font-size: 10.5px; padding: 4px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase; }
.grant-card .gc-chev { color: var(--muted); transition: transform 0.2s ease; }
.grant-card.open .gc-chev { transform: rotate(180deg); }
.grant-card .gc-body { border-top: 1px solid var(--line); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; background: color-mix(in srgb, var(--panel) 50%, transparent); }
.material { display: flex; gap: 12px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; transition: border-color 0.15s ease; }
.material:hover { border-color: var(--line-2); }
.material .mat-ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.material .mat-ico.text { background: color-mix(in srgb, var(--c-teal) 18%, var(--bg-2)); color: var(--c-teal); }
.material .mat-ico.file { background: color-mix(in srgb, var(--c-yellow) 18%, var(--bg-2)); color: var(--c-yellow); }
.material .mat-ico.link { background: color-mix(in srgb, var(--c-blue) 18%, var(--bg-2)); color: var(--c-blue); }
.material .mat-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.material .mat-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.material .mat-title { font-weight: 600; font-size: 14px; }
.material .mat-badge { font-family: var(--font-mono); font-size: 9.5px; padding: 2px 8px; border-radius: 999px; letter-spacing: 0.1em; text-transform: uppercase; }
.material .mat-badge.text { background: color-mix(in srgb, var(--c-teal) 14%, transparent); color: var(--c-teal); border: 1px solid color-mix(in srgb, var(--c-teal) 28%, transparent); }
.material .mat-badge.file { background: color-mix(in srgb, var(--c-yellow) 14%, transparent); color: var(--c-yellow); border: 1px solid color-mix(in srgb, var(--c-yellow) 28%, transparent); }
.material .mat-badge.link { background: color-mix(in srgb, var(--c-blue) 14%, transparent); color: var(--c-blue); border: 1px solid color-mix(in srgb, var(--c-blue) 28%, transparent); }
.material .mat-text { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; margin: 0; }
.material .mat-action { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); font-size: 12.5px; font-weight: 500; }
.material .mat-action:hover { background: var(--accent); color: #1a1207; border-color: var(--accent); }

.dash-empty { padding: 32px 24px; border: 1px dashed var(--line-2); border-radius: 14px; text-align: center; background: var(--bg-2); }
.dash-empty .em-ico { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.dash-empty h4 { font-family: var(--font-display); font-size: 18px; margin: 0 0 6px; font-weight: 600; }
.dash-empty p { color: var(--ink-2); font-size: 13.5px; margin: 0 0 14px; }

/* edit-profile form */
.dash-edit { display: flex; flex-direction: column; gap: 14px; }
.dash-edit .field input[type="text"], .dash-edit .field input[type="email"] { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink); font: inherit; font-size: 14.5px; }
.dash-edit .field input:focus { outline: none; border-color: var(--accent); }
.dash-edit .field input:disabled { color: var(--muted); }
.dash-edit .opt-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.dash-edit .opt-row input { accent-color: var(--accent); width: 18px; height: 18px; }
.dash-edit .save-row { display: flex; gap: 10px; align-items: center; }
.dash-edit .save-ok { color: var(--c-teal); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; }

/* programs — module count badge */
.program-modules { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; color: var(--c-teal); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c-teal) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c-teal) 28%, transparent); }
.program-view { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #1a1207; font-size: 12.5px; font-weight: 600; border: 1px solid var(--accent); }
.program-view:hover { background: var(--accent-2); border-color: var(--accent-2); }

/* mobile bottom nav (Instagram-style) */
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 920px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 70;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
  }
  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    transition: color 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav a.active {
    color: var(--accent);
  }
  .mobile-bottom-nav a .mbn-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
  }
  /* push page content above the bar */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* hide hamburger since bottom nav handles mobile navigation */
  .nav-hamburger { display: none !important; }
}

/* placeholder image with stripes */
.placeholder { background: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 8px, rgba(255,255,255,0.02) 8px 16px); display: grid; place-items: center; color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.placeholder .mark { font-family: var(--font-display); font-size: 28px; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; opacity: 0.6; }

/* ambient glow */
.glow { position: absolute; pointer-events: none; filter: blur(60px); opacity: 0.5; border-radius: 999px; }
.glow.a { width: 380px; height: 380px; background: radial-gradient(circle, var(--accent), transparent 70%); top: -100px; right: -120px; }
.glow.b { width: 320px; height: 320px; background: radial-gradient(circle, var(--c-blue), transparent 70%); bottom: -80px; left: -100px; opacity: 0.25; }

/* ── Mobile (≤600px) ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }

  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-primary { padding: 8px 14px; font-size: 12px; }

  .hero { padding-top: 100px; padding-bottom: 48px; }
  .hero-viz { display: none; }
  .hero-meta { gap: 20px; }
  .hero-meta .num { font-size: 28px; }

  .products-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .products-tab  { white-space: nowrap; flex-shrink: 0; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat .stat-num { font-size: 36px; }

  .faculty-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bot  { flex-direction: column; gap: 8px; text-align: center; }

  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { border-radius: 22px 22px 0 0; max-height: 90vh; }

  .dash-grid { gap: 12px; }
  .dash-side { padding: 16px; }
  .dash-nav  { flex-direction: row; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
  .dash-nav button { padding: 7px 10px; font-size: 12px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
  .dash-main { padding: 20px 16px; }
  .dash-cards { grid-template-columns: 1fr 1fr; }
}
