/* ═══════════════════════════════════════════
   AAL Company Profile — Corporate Design System
   Inspired by: KBMDSI UB (clean, structured)
   Target: HR · Kampus · Perusahaan Nasional/Internasional
   ═══════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0b1e3d;
  --navy-soft: #1e3a5f;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --sky: #38bdf8;
  --amber: #fbbf24;
  --emerald: #34d399;

  --bg: #060a12;
  --bg-alt: rgba(10, 18, 32, 0.55);
  --surface: rgba(15, 25, 45, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Syne = kreatif & idealis · DM Sans = profesional · JetBrains = IT */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font: var(--font-body);
  --mono: var(--font-mono);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
  --radius-lg: 24px;

  /* iOS 26 Liquid Glass — dark mode */
  --glass-bg: rgba(14, 24, 44, 0.52);
  --glass-bg-hover: rgba(20, 36, 64, 0.72);
  --glass-blur: blur(56px) saturate(210%) brightness(1.04);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.38), 0 2px 12px rgba(0, 0, 0, 0.22);
  --glass-specular: radial-gradient(ellipse 80% 50% at var(--shine-x, 50%) var(--shine-y, 0%), rgba(255,255,255,0.14), transparent 65%);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);

  --shadow-sm: var(--glass-shadow);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --header-h: 80px;
  --container: 1140px;
}

html { scroll-behavior: smooth; }

/* ── Matrix background ── */
.matrix-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

body.loaded .matrix-bg { opacity: 1; }

.bg-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 25% 15%, rgba(29, 78, 216, 0.1), transparent 55%),
    radial-gradient(ellipse 55% 45% at 80% 75%, rgba(56, 189, 248, 0.07), transparent 50%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.35) 0%, rgba(6, 10, 18, 0.55) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.72;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body > *:not(.matrix-bg):not(.bg-veil):not(.grain):not(.loader):not(.header):not(.scroll-progress):not(.scroll-top):not(.page-flash) {
  position: relative;
  z-index: 2;
}

/* ── Liquid Glass system ── */
.glass-card,
.glass-panel,
.glass-nav,
.glass-pill,
.glass-fab,
.glass-footer,
.glass-ticker,
.glass-photo {
  position: relative;
  isolation: isolate;
}

.glass-card,
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
}

.glass-card::before,
.glass-panel::before,
.glass-page::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 38%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.glass-card::after,
.glass-panel::after,
.glass-page::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-specular);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s var(--ease);
}

.glass-card:hover::after,
.glass-panel:hover::after,
.glass-page:hover::after {
  opacity: 0.85;
}

.glass-nav {
  background: rgba(12, 22, 42, 0.65);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: var(--glass-shadow), var(--glass-inset);
}

.glass-pill {
  background: rgba(15, 28, 52, 0.55) !important;
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: var(--glass-inset);
}

.glass-dark {
  background: rgba(6, 12, 24, 0.82) !important;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-color: rgba(56, 189, 248, 0.2) !important;
}

.glass-footer {
  background: rgba(11, 30, 61, 0.82) !important;
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-ticker {
  background: rgba(11, 30, 61, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-fab {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
}

.glass-photo {
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(59, 130, 246, 0.12), var(--glass-inset) !important;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* ── Scroll progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--sky), var(--amber));
  z-index: 10001;
  transition: width 0.1s linear;
}

/* ── Scroll top ── */
.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 490;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
}

/* ── KBMDSI-style splash loader ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(160deg, #0a1020 0%, #060a12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.loader.exiting .loader-inner {
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.5s;
}

.loader-inner {
  text-align: center;
  width: min(320px, 85vw);
  z-index: 2;
  transition: transform 0.6s var(--ease), opacity 0.5s;
}

.loader-step {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.loader-step.show { opacity: 1; transform: translateY(0); }
.loader-step--logo { margin-bottom: 1.25rem; }
.loader-step--text { margin-bottom: 1.5rem; }

.loader-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 40px rgba(29, 78, 216, 0.25);
  animation: logoPop 0.7s var(--ease) both;
}

@keyframes logoPop {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.loader-line {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.loader-line.sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-family: var(--mono);
}

.loader-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--sky), var(--amber));
  border-radius: 99px;
  transition: width 0.1s linear;
}

.loader-pct {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.06em;
}

.loader-curtain {
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform: translateY(100%);
  z-index: 3;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-curtain.up { transform: translateY(0); }

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 0.55rem clamp(0.75rem, 3vw, 1.25rem);
  background: transparent;
  pointer-events: none;
  transform: none;
  will-change: auto;
}

.header.scrolled .header-inner {
  background: rgba(12, 22, 42, 0.78);
  box-shadow: var(--shadow-md), var(--glass-inset);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--container), 100%);
  margin-inline: auto;
  min-height: calc(var(--header-h) - 12px);
  padding: 0.4rem 0.65rem 0.4rem 0.85rem;
  pointer-events: auto;
  transition: box-shadow 0.35s var(--ease);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 0.2s;
}

.logo:hover { opacity: 0.8; }

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.logo-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.logo-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.nav { display: flex; align-items: center; gap: 0.15rem; }

.nav a {
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover { color: var(--text); background: var(--bg-alt); }

.nav a.active {
  color: var(--blue);
  background: rgba(29, 78, 216, 0.08);
  font-weight: 600;
}

.nav-cta {
  margin-left: 0.35rem;
  background: var(--blue) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--navy) !important;
  color: #fff !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s;
}

.burger.open span:first-child { transform: translateY(7px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Nav hide animations (JS compat) */
.header-inner.nav-anim-hide { animation: navHide 0.4s ease forwards; pointer-events: none; }
.header-inner.nav-anim-show { animation: navShow 0.5s var(--ease) forwards; }
.header-inner.nav-is-hidden { transform: translateY(-110%); opacity: 0; pointer-events: none; }

@keyframes navHide {
  to { transform: translateY(-110%); opacity: 0; }
}
@keyframes navShow {
  from { transform: translateY(-110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

body.nav-hidden .scroll-progress { opacity: 0; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 1.5rem) 0 1rem;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hero-blob--1 {
  width: 420px;
  height: 420px;
  background: rgba(59, 130, 246, 0.18);
  top: -10%;
  right: -5%;
}

.hero-blob--2 {
  width: 300px;
  height: 300px;
  background: rgba(56, 189, 248, 0.12);
  bottom: 5%;
  left: -8%;
}

.hero-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-content.glass-panel {
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
}

.photo-card.glass-panel {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  border: 1px solid var(--border);
}

.badge--open {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fcd34d;
}

.badge--live {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}

/* Code widget — Gen Z IT touch */
.code-live {
  margin-bottom: 1.25rem;
  max-width: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--navy-soft);
  box-shadow: var(--shadow-md);
}

.code-live-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cl-dot { width: 8px; height: 8px; border-radius: 50%; }
.cl-dot.r { background: #ff5f57; }
.cl-dot.y { background: #febc2e; }
.cl-dot.g { background: #28c840; }

.cl-file {
  margin-left: 0.4rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
}

.code-live-body {
  margin: 0;
  padding: 0.75rem 0.9rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.6);
}

.cl-prefix .kw { color: #c084fc; font-weight: 600; }
.cl-prefix .var { color: #f8fafc; }
.cl-prefix .op { color: rgba(255, 255, 255, 0.5); }
.cl-str { color: #38bdf8; font-weight: 600; }
.cl-str.typing { color: #7dd3fc; }
.cl-str.glitch { animation: glitch 0.3s ease; }
.cl-suffix { color: rgba(255, 255, 255, 0.5); }
.cl-cursor { color: #38bdf8; animation: blink 1s step-end infinite; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes glitch {
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
}

.code-live-note {
  display: block;
  padding: 0 0.9rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: #86efac;
  opacity: 0.8;
}

.code-live-note.pulse { animation: notePulse 0.5s ease; }
@keyframes notePulse { 50% { opacity: 1; } }

.code-live.success { border-color: rgba(16, 185, 129, 0.4); }

.hero-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.5rem;
}

.hero-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 1.25rem 0 1.75rem;
  font-weight: 400;
}

.hero-desc strong { color: var(--sky); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(29, 78, 216, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--navy-soft), var(--blue));
  box-shadow: 0 8px 28px rgba(11, 30, 61, 0.2);
}

.btn-outline {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inset);
}

.btn-outline:hover {
  border-color: var(--blue-light);
  color: var(--blue);
  background: var(--glass-bg-hover);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.trust-item strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.trust-item span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero-socials {
  display: flex;
  gap: 1.25rem;
}

.hero-socials a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.hero-socials a:hover { color: var(--blue); }

/* Photo */
.photo-card { position: relative; max-width: 360px; margin-inline: auto; }

.photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  background: var(--bg-alt);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.photo-meta span {
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--mono);
  padding: 0.35rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
}

/* ── Ticker ── */
.ticker {
  overflow: hidden;
  background: var(--navy);
  padding: 0.85rem 0;
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: ticker 30s linear infinite;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ticker-track span:nth-child(odd) { color: var(--sky); }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Stats ── */
.stats { padding: 0.5rem 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s;
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: var(--glass-bg-hover);
  box-shadow: var(--shadow-md), var(--glass-inset);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Sections ── */
.section { padding: clamp(0.5rem, 2vw, 1rem) 0; }
.section-alt {
  background: rgba(8, 14, 28, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.section-head { margin-bottom: 2.5rem; max-width: 600px; }

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
}

.accent {
  font-family: inherit;
  color: var(--sky);
}

.section-lead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── About ── */
.about-quote {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.5vw, 1.38rem);
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.01em;
  padding: 1.75rem 1.5rem 1.75rem 2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
}

.quote-mark {
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  font-size: 2rem;
  color: var(--blue);
  opacity: 0.2;
  font-style: normal;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.about-cell {
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s;
}

.about-cell:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
}

.cell-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.about-cell p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.about-cell p em {
  color: var(--sky);
  font-style: normal;
  font-weight: 600;
}

.minimal-list { list-style: none; }

.minimal-list li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.minimal-list li:last-child { border-bottom: none; }

.minimal-list li::before {
  content: '→ ';
  color: var(--blue);
  font-weight: 600;
}

/* ── Skills ── */
.skills-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skills-card-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.1rem;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-soft);
}

.t-dot { width: 9px; height: 9px; border-radius: 50%; }
.t-dot.r { background: #ff5f57; }
.t-dot.y { background: #febc2e; }
.t-dot.g { background: #28c840; }

.t-title {
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

.skills-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 1.75rem;
}

.skill-group h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
}

.skill-group h4.sub { margin-top: 1.75rem; }

.skill-bar { margin-bottom: 1rem; }

.skill-bar .label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.skill-bar .label-row span:first-child {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.skill-bar .label-row span:last-child {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.skill-bar .track {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 99px;
  overflow: hidden;
}

.skill-bar .track .fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  border-radius: 99px;
  transition: width 1.2s var(--ease);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.tag-row span {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: rgba(15, 28, 52, 0.5);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.tag-row span:hover {
  border-color: var(--blue-light);
  color: var(--blue);
}

/* ── Timeline ── */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
}

.timeline-track {
  position: absolute;
  left: 88px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--blue), var(--sky));
  transition: height 0.05s linear;
}

.tl-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.5rem;
  padding: 0.85rem 0;
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: 83px;
  top: 1.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  z-index: 1;
  transition: border-color 0.3s, background 0.3s;
}

.tl-item.visible::before {
  border-color: var(--blue);
  background: rgba(29, 78, 216, 0.15);
}

.tl-item.tl-featured::before {
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.15);
  width: 12px;
  height: 12px;
  left: 82px;
}

.tl-item time {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  text-align: right;
  padding-top: 0.2rem;
}

.tl-body {
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s;
}

.tl-item:hover .tl-body {
  transform: translateX(6px);
  background: var(--glass-bg-hover);
}

.tl-body h3 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.15rem;
}

.tl-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tl-featured .tl-body {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(12, 22, 42, 0.6));
}

/* ── Education ── */
.edu-block { margin-top: 3rem; }

.edu-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

.edu-item {
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: transform 0.35s var(--ease), background 0.35s;
}

.edu-item:hover { transform: translateY(-3px); }

.edu-item span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--blue);
  font-weight: 600;
}

.edu-item strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.edu-item em {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: normal;
}

.edu-active {
  border-color: rgba(96, 165, 250, 0.4) !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(12, 22, 42, 0.65)) !important;
  box-shadow: var(--shadow-md), 0 0 24px rgba(59, 130, 246, 0.1) !important;
}

/* ── Certs ── */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cert-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, padding-left 0.35s, background 0.35s;
}

.cert-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  padding-left: 1.4rem;
}

.cr-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cr-body h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.cr-body p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.cr-year {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
}

.cert-row.c-award .cr-num { color: #fcd34d; }
.cert-row.c-award .cr-body h3 { color: #fcd34d; }

/* ── Contact ── */
.contact-section { padding-bottom: 5rem; }

.contact-card {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0.75rem 0 1rem;
}

.contact-lead {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-inline: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 2rem;
  text-align: left;
}

.contact-item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), background 0.3s;
}

.contact-item:hover {
  border-color: var(--blue-light);
  transform: translateY(-2px);
}

.contact-static { cursor: default; pointer-events: none; }
.contact-static:hover { transform: none; border-color: var(--border); }

.ci-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.ci-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.contact-actions { justify-content: center; }

/* ── Footer ── */
.footer {
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 0;
  margin-top: 1rem;
}

.footer-inner { text-align: center; }

.footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  color: #fff;
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
}

.footer p { font-size: 0.82rem; }
.footer strong { color: #fff; }
.footer-sub { font-size: 0.72rem !important; opacity: 0.6; margin-top: 0.3rem; }

/* ── iOS 26 Glass Pages (symmetric sections) ── */
main {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding-block: clamp(0.5rem, 2vw, 1rem);
}

.panel {
  padding-block: clamp(0.75rem, 2vw, 1.25rem);
}

.glass-page {
  --enter-x: 0px;
  --enter-y: 0px;
  --enter-scale: 1;
  --shift-x: 0px;
  position: relative;
  isolation: isolate;
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  opacity: 0;
  transform: translate3d(
    calc(var(--enter-x) + var(--shift-x)),
    var(--enter-y),
    0
  ) scale(var(--enter-scale));
  transition:
    opacity 0.75s var(--ease),
    transform 0.85s var(--spring),
    box-shadow 0.5s var(--ease);
  overflow: hidden;
}

.glass-page > .container {
  width: 100%;
  margin-inline: 0;
  position: relative;
  z-index: 1;
}

.glass-page.slide-visible {
  opacity: 1;
}

.glass-page--hero {
  padding: clamp(2rem, 5vw, 3rem);
  margin-top: 0.5rem;
}

.glass-page--compact {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.glass-page--contact {
  padding: clamp(2rem, 4.5vw, 3rem);
}

.glass-page--hero .hero-content.glass-panel,
.glass-page--hero .photo-card.glass-panel {
  background: rgba(10, 18, 34, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), var(--glass-inset);
}

.section-alt .glass-page {
  background: rgba(16, 28, 52, 0.58);
}

/* Page transition flash */
.page-flash {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 50% 45%, rgba(96, 165, 250, 0.14), transparent 70%);
  opacity: 0;
}

.page-flash.active {
  animation: pageFlash 0.55s var(--ease) forwards;
}

@keyframes pageFlash {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}

.page-entering .glass-page {
  animation: pageEnter 0.65s var(--spring);
}

@keyframes pageEnter {
  0% { filter: brightness(1.15); }
  50% { filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2), var(--glass-shadow), var(--glass-inset); }
  100% { filter: brightness(1); }
}

@keyframes glassPulse {
  0%, 100% { transform: translate3d(var(--shift-x), 0, 0) scale(1); }
  35% { transform: translate3d(var(--shift-x), 0, 0) scale(1.012); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22), var(--glass-shadow), var(--glass-inset); }
  70% { transform: translate3d(var(--shift-x), 0, 0) scale(1.004); }
}

.glass-pulse {
  animation: glassPulse 0.65s var(--spring);
}

/* Click ripple */
.ripple-host {
  position: relative;
  overflow: hidden;
}

.ripple-host > * {
  position: relative;
  z-index: 1;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(96, 165, 250, 0.15) 45%, transparent 70%);
  transform: scale(0);
  animation: rippleExpand 0.65s var(--ease) forwards;
  pointer-events: none;
  z-index: 2;
}

@keyframes rippleExpand {
  to { transform: scale(1); opacity: 0; }
}

.ripple-host:active:not(.glass-page) {
  transform: scale(0.985);
  transition: transform 0.15s var(--spring);
}

.btn.ripple-host:active,
.nav a.ripple-host:active {
  transform: scale(0.96);
}

/* Nav re-click */
.nav a.nav-reclick {
  animation: navReclick 0.5s var(--spring);
}

@keyframes navReclick {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(0.92); background: rgba(59, 130, 246, 0.25); }
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal[data-reveal="up"] { transform: translateY(28px); }
.reveal[data-reveal="left"] { transform: translateX(-28px); }
.reveal[data-reveal="right"] { transform: translateX(28px); }
.reveal[data-reveal="scale"] { transform: scale(0.96); }

.reveal.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; text-align: center; }
  .code-live { margin-inline: auto; }
  .hero-desc { margin-inline: auto; }
  .hero-actions, .hero-socials, .hero-badge-row { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
  .photo-card { max-width: 280px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .skills-body { grid-template-columns: 1fr; gap: 2rem; }
  .edu-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .burger { display: flex; }

  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(12, 22, 42, 0.85);
    backdrop-filter: blur(32px) saturate(190%);
    -webkit-backdrop-filter: blur(32px) saturate(190%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg), var(--glass-inset);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.3s, visibility 0.3s;
    pointer-events: none;
  }

  .header-inner { position: relative; flex-wrap: wrap; }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a { width: 100%; text-align: center; padding: 0.7rem; }
  .nav-cta { margin: 0.25rem 0 0; }

  .timeline-track { display: none; }
  .tl-item { grid-template-columns: 1fr; gap: 0.35rem; }
  .tl-item::before { display: none; }
  .tl-item time { text-align: left; }

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

  .logo { max-width: calc(100% - 48px); }
  .logo-name { font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .edu-row { grid-template-columns: 1fr; }
  .cert-row { grid-template-columns: 36px 1fr; }
  .cr-year { grid-column: 2; justify-self: start; margin-top: -0.2rem; }
  .hero-trust { flex-direction: column; gap: 0.75rem; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .glass-page {
    opacity: 1;
    transform: none;
  }
  .ticker-track { animation: none; }
  .matrix-bg { display: none; }

  .header-inner.nav-anim-hide,
  .header-inner.nav-anim-show { animation: none; }
}