/* ==========================================================
   Omar's Org — Lightning-themed portfolio
   ========================================================== */
:root {
  --brand: #0176d3;
  --brand-dark: #014486;
  --navy: #032d60;
  --sky: #1b96ff;
  --cloud: #aacbff;
  --bg: #eef4ff;
  --card: #ffffff;
  --card-2: #f7f9fc;
  --text: #181818;
  --text-2: #3e3e3c;
  --muted: #706e6b;
  --border: #e3e7ee;
  --success: #2e844a;
  --warning: #dd7a01;
  --error: #ba0517;
  --shadow: 0 2px 4px rgba(3, 45, 96, .06), 0 12px 32px -12px rgba(3, 45, 96, .18);
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #1b96ff; --brand-dark: #78b0fd; --bg: #0a1424; --card: #111f35; --card-2: #0d1a2e;
    --text: #f2f5fa; --text-2: #c8d0dc; --muted: #93a0b4; --border: #22344f;
    --shadow: 0 2px 4px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #1b96ff; --brand-dark: #78b0fd; --bg: #0a1424; --card: #111f35; --card-2: #0d1a2e;
  --text: #f2f5fa; --text-2: #c8d0dc; --muted: #93a0b4; --border: #22344f;
  --shadow: 0 2px 4px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { margin-left: auto; }
.center { text-align: center; }
.light { color: rgba(255,255,255,.85); }
.link { color: var(--brand); }

/* utility icon via mask so it takes currentColor */
.u {
  display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
/* standard icon tile */
.sicon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: var(--c); flex: none; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08);
}
.sicon img { width: 78%; height: 78%; }
.sicon.sm { width: 30px; height: 30px; border-radius: 8px; }
.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .02em; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 18px;
  font-weight: 600; font-size: 14px; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -6px rgba(1,118,211,.7); }
.btn-brand:hover { background: #0b5cab; }
.btn-neutral { background: var(--card); color: var(--brand); border-color: var(--border); }
.btn-neutral:hover { background: var(--card-2); }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.24); }
.btn-xs { padding: 5px 12px; font-size: 12px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- Boot ---------------- */
.boot {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(900px 500px at 50% 50%, #0a2550 0%, #041737 60%, #020c20 100%); color: #fff;
  transition: transform .75s cubic-bezier(.76,0,.24,1);
}
.boot.out { transform: translateY(-100%); }
.boot.done { display: none; }
.boot-lockup { display: flex; align-items: center; gap: 18px; transition: opacity .35s, transform .5s cubic-bezier(.6,0,.4,1); }
.boot.out .boot-lockup { opacity: 0; transform: translateY(-24px); }
.boot-mark { width: 64px; height: 64px; flex: none; overflow: visible; }
.boot-mark .mk-hex { fill: none; stroke: #9fd6ff; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 280; stroke-dashoffset: 280; animation: draw .7s cubic-bezier(.6,0,.2,1) forwards; }
.boot-mark .mk-fill { fill: url(#mkG2); opacity: 0; animation: fade .35s .55s forwards; }
.boot-mark .mk-bolt { fill: #fff; opacity: 0; transform-origin: 50% 50%; transform: scale(.4); animation: boltSnap .4s .7s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes boltSnap { to { opacity: 1; transform: none; } }
.boot-mark .mk-sheen { fill: rgba(255,255,255,.35); transform: skewX(-20deg); animation: sheen .7s 1s ease-in-out forwards; }
@keyframes sheen { to { transform: translateX(150px) skewX(-20deg); } }
.boot-words { overflow: hidden; }
.boot-name { font-size: 30px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; transform: translateX(-110%); animation: bootNameIn .6s .75s cubic-bezier(.2,.9,.3,1) forwards; }
.boot-name b { font-weight: 800; background: linear-gradient(90deg, #7fd0ff, #a28bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes bootNameIn { to { transform: none; } }
.boot-sub { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 4px; white-space: nowrap; opacity: 0; animation: subIn .7s 1.05s ease-out forwards; }
@keyframes subIn { from { opacity: 0; letter-spacing: .5em; } to { opacity: 1; letter-spacing: .18em; } }
.boot-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.06); }
.boot-line span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1b96ff, #a28bff); box-shadow: 0 0 12px #1b96ff; animation: line 1.7s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes line { to { width: 100%; } }
@media (max-width: 640px) {
  .boot-mark { width: 48px; height: 48px; }
  .boot-name { font-size: 24px; }
  .boot-sub { font-size: 10px; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------------- Global header ---------------- */
.gh {
  position: sticky; top: 0; z-index: 60; height: 52px; display: flex; align-items: center; gap: 16px;
  padding: 0 16px; background: var(--card); border-bottom: 1px solid var(--border);
}
.gh-logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; white-space: nowrap; }
.mark { width: 34px; height: 34px; flex: none; }
.gh-logo .mk-hex { fill: url(#mkG); }
.gh-logo .mk-bolt { fill: #fff; transform-origin: 50% 50%; transition: transform .3s; }
.gh-logo:hover .mk-bolt { transform: scale(1.12) rotate(-8deg); }
.gh-logo:hover .mark { filter: drop-shadow(0 0 8px rgba(27,150,255,.6)); }
.gh-word { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.gh-word b { font-weight: 800; background: linear-gradient(90deg, #1b96ff, #7f5cf5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gh-search { position: relative; flex: 1; max-width: 520px; margin: 0 auto; }
.gh-search .u { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 15px; height: 15px; }
.gh-search input {
  width: 100%; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--card-2);
  padding: 0 12px 0 34px; font: inherit; font-size: 14px; color: var(--text); outline: none; transition: border .2s, box-shadow .2s;
}
.gh-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(1,118,211,.2); }
.gs-results {
  position: absolute; top: 40px; left: 0; right: 0; background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden; display: none; max-height: 60vh; overflow-y: auto;
}
.gs-results.open { display: block; }
.gs-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; font-size: 14px; }
.gs-item:hover, .gs-item.sel { background: var(--card-2); }
.gs-item small { color: var(--muted); margin-left: auto; font-size: 12px; }
.gs-empty { padding: 14px; color: var(--muted); font-size: 13px; }
.gh-actions { display: flex; align-items: center; gap: 4px; position: relative; }
.gh-btn { position: relative; width: 34px; height: 34px; border-radius: 8px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.gh-btn:hover { background: var(--card-2); color: var(--brand); }
.badge-dot { position: absolute; top: 2px; right: 1px; background: var(--error); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; border-radius: 10px; padding: 0 5px; line-height: 16px; }
.gh-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; margin-left: 6px; border: 2px solid var(--border); }
.notif-pop {
  position: absolute; right: 0; top: 44px; width: 320px; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); display: none; overflow: hidden;
}
.notif-pop.open { display: block; animation: pop .2s ease; }
.np-head { padding: 12px 14px; font-weight: 700; border-bottom: 1px solid var(--border); }
.notif-pop ul { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.notif-pop li { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.notif-pop li img { width: 34px; height: 34px; object-fit: contain; }
.notif-pop li small { display: block; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky; top: 52px; z-index: 55; height: 44px; display: flex; align-items: center; gap: 12px;
  background: var(--card); border-bottom: 3px solid var(--brand); padding: 0 12px; box-shadow: 0 4px 10px -8px rgba(0,0,0,.3);
}
.waffle { width: 32px; height: 32px; border: 0; background: none; color: var(--muted); border-radius: 8px; display: grid; place-items: center; }
.waffle:hover { color: var(--brand); background: var(--card-2); }
.waffle .u { width: 20px; height: 20px; }
.app-name { font-weight: 700; font-size: 17px; white-space: nowrap; padding-right: 10px; }
.tabs { display: flex; height: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: flex; align-items: center; padding: 0 14px; color: var(--text-2); font-size: 14px; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -3px; text-decoration: none !important; transition: color .2s, border .2s, background .2s;
}
.tab:hover { background: var(--card-2); color: var(--brand); }
.tab.active { border-bottom-color: var(--brand); color: var(--text); font-weight: 600; background: rgba(1,118,211,.06); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: min(calc(100vh - 96px), 920px); min-height: min(calc(100svh - 96px), 920px); overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #021f47 0%, #032d60 30%, #0b5cab 65%, #1b96ff 100%);
  display: flex; align-items: center; padding: 60px 24px 220px;
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.stars { position: absolute; inset: 0 0 40% 0; background-image:
  radial-gradient(1.5px 1.5px at 12% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 8%, #fff 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 55% 15%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 30%, #fff 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 88% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 42% 34%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 6% 40%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 94% 44%, #fff 50%, transparent 51%);
  opacity: .7; animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .3; } }
.cloud {
  position: absolute; width: 220px; height: 70px; background: #fff; border-radius: 70px; opacity: .9;
  filter: drop-shadow(0 10px 20px rgba(3,45,96,.25)); animation: drift linear infinite;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 100px; height: 100px; top: -50px; left: 30px; }
.cloud::after { width: 130px; height: 130px; top: -70px; right: 22px; }
.c1 { top: 18%; transform: scale(.55); animation-duration: 70s; animation-delay: -10s; opacity: .55; }
.c2 { top: 38%; transform: scale(.9); animation-duration: 55s; animation-delay: -30s; opacity: .85; }
.c3 { top: 8%; transform: scale(.4); animation-duration: 90s; animation-delay: -60s; opacity: .4; }
.c4 { top: 55%; transform: scale(.7); animation-duration: 60s; animation-delay: -5s; opacity: .7; }
.c5 { top: 28%; transform: scale(.35); animation-duration: 100s; animation-delay: -45s; opacity: .35; }
@keyframes drift { from { left: -300px; } to { left: 110%; } }
.mountains { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: clamp(160px, 30vw, 300px); object-fit: cover; object-position: 50% 0; pointer-events: none; z-index: 1;
  -webkit-mask: linear-gradient(to bottom, transparent 0, #000 22%); mask: linear-gradient(to bottom, transparent 0, #000 22%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: 2; }
.hero-grid {
  position: relative; z-index: 3; width: 100%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
}
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); font-size: 13px; backdrop-filter: blur(6px); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #45c65a; box-shadow: 0 0 0 0 rgba(69,198,90,.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(69,198,90,0); } 100% { box-shadow: 0 0 0 0 rgba(69,198,90,0); } }
.hero h1 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.02em; margin: 20px 0 14px; filter: drop-shadow(0 2px 14px rgba(3,45,96,.7)); }
.grad { background: linear-gradient(90deg, #fff, #aacbff 60%, #7fd0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad2 { background: linear-gradient(90deg, #7fd0ff, #b1f1ff, #fff, #7fd0ff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }
.hero-role { font-family: var(--mono); font-size: clamp(15px, 1.8vw, 19px); color: #cfe6ff; min-height: 30px; margin: 0 0 26px; }
.caret { animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn { padding: 12px 22px; font-size: 15px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; margin-top: 38px; justify-content: start; }
.hero-stats { text-shadow: 0 2px 12px rgba(3,45,96,.6); }
.hero-stats b { display: block; font-size: 34px; font-weight: 800; }
.hero-stats span { font-size: 12px; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }

.hero-art { display: grid; place-items: center; }
.orbit { position: relative; width: min(440px, 80vw); aspect-ratio: 1; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.35); }
.orbit-ring.r2 { inset: 16%; border-style: solid; border-color: rgba(255,255,255,.12); }
.photo-cloud {
  position: absolute; inset: 22%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 6px rgba(255,255,255,.9), 0 0 0 14px rgba(27,150,255,.35), 0 30px 60px rgba(0,0,0,.35);
}
.photo-cloud img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
@keyframes float { 50% { transform: translateY(-10px); } }
.orb-badge {
  position: absolute; width: 74px; height: 74px; left: 50%; top: 50%; margin: -37px 0 0 -37px;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); transition: transform .3s; cursor: pointer;
}
.orb-badge img { width: 100%; height: 100%; object-fit: contain; }
.orb-badge:hover img { transform: scale(1.18); transition: transform .2s; }

.einstein-peek { position: absolute; right: 3%; bottom: 60px; z-index: 4; width: 150px; cursor: pointer; transform: translateY(140%); transition: transform .8s cubic-bezier(.2,1.4,.4,1); }
.einstein-peek.show { transform: translateY(0); }
.einstein-peek img { width: 100%; animation: wave 3s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes wave { 0%,100% { transform: rotate(0); } 10% { transform: rotate(-6deg); } 20% { transform: rotate(4deg); } 30% { transform: rotate(0); } }
.bubble { position: absolute; bottom: 100%; right: 40%; width: 200px; background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-size: 13px; box-shadow: var(--shadow); margin-bottom: -8px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 4; width: 26px; height: 42px; border: 2px solid rgba(24,24,24,.35); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: rgba(24,24,24,.5); animation: sh 1.6s infinite; }
@keyframes sh { to { transform: translateY(14px); opacity: 0; } }

/* hero entrance after the intro */
.photo-cloud { opacity: 0; transform: scale(.3); }
.hero.live .photo-cloud { opacity: 1; transform: none; animation: photoIn .9s .35s cubic-bezier(.2,1.4,.4,1) backwards, float 6s ease-in-out 1.3s infinite; }
@keyframes photoIn { from { opacity: 0; transform: scale(.3) rotate(-12deg); } to { opacity: 1; transform: none; } }
.orbit-ring { opacity: 0; transform: scale(.6) rotate(-90deg); }
.hero.live .orbit-ring { opacity: 1; transform: none; transition: opacity .8s .3s, transform 1.2s .3s cubic-bezier(.2,.9,.3,1); }
.hero.live .orbit-ring.r2 { transition-delay: .45s; }
.orbit::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 3px solid #7fd0ff; opacity: 0; pointer-events: none; }
.hero.live .orbit::after { animation: ripple 1.3s .55s ease-out; }
@keyframes ripple { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.9); } }
.orb-badge img { opacity: 0; transform: scale(0); }
.hero.live .orb-badge img { opacity: 1; transform: none; transition: transform .2s; animation: orbPop .6s var(--d) cubic-bezier(.2,1.6,.4,1) backwards; }
.hero.live .orb-badge:hover img { transform: scale(1.18); }
@keyframes orbPop { from { opacity: 0; transform: scale(0) rotate(-120deg); } to { opacity: 1; transform: none; } }
.hero h1.reveal { transform: translateY(40px) scale(.97); filter: blur(8px); transition: opacity .9s, transform .9s cubic-bezier(.2,.8,.2,1), filter .9s; }
.hero h1.reveal.in { filter: none; transform: none; }

/* ---------------- Canvas + cards ---------------- */
.canvas { max-width: 1200px; margin: 0 auto; padding: 0 16px 120px; position: relative; z-index: 3; }
.section { padding-top: 56px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; }
.card-h h3 { font-size: 16px; font-weight: 700; }
.card-b { padding: 14px 20px 20px; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.01em; }
.sub-h { margin: 34px 0 14px; font-size: 18px; }

.highlights { padding: 20px 22px; margin-top: -40px; position: relative; overflow: hidden; }
.highlights::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--brand), #7fd0ff, #a094ed); }
.hl-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hl-id { display: flex; align-items: center; gap: 14px; }
.hl-name { font-size: 26px; font-weight: 800; }
.verified { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; vertical-align: middle; }
.hl-fields { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.hl-fields label, .field-grid label, .lbl { display: block; font-size: 12px; color: var(--muted); }
.hl-fields span { font-size: 14px; font-weight: 500; }
.rec-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-top: 20px; }
.about p { margin: 0 0 12px; color: var(--text-2); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.chipset h4 { font-size: 12px; color: var(--muted); font-weight: 600; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .06em; }
.chipset h4:first-child { margin-top: 0; }
.chip { display: inline-block; padding: 4px 11px; margin: 0 6px 6px 0; border-radius: 999px; font-size: 13px; background: var(--card-2); border: 1px solid var(--border); transition: all .2s; }
.chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }

/* ---------------- Path ---------------- */
.path { display: flex; gap: 4px; padding: 20px 20px 0; overflow-x: auto; scrollbar-width: thin; }
.path-step {
  flex: 1 0 130px; position: relative; height: 38px; display: grid; place-items: center; font-size: 13px; font-weight: 600;
  background: var(--card-2); color: var(--text-2); border: 0; padding: 0 22px; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
  transition: background .35s, color .35s;
}
.path-step:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); border-radius: 19px 0 0 19px; }
.path-step:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%); border-radius: 0 19px 19px 0; }
.path-step.done { background: #45c65a; color: #fff; }
.path-step.done.won { background: var(--success); }
.path-step.current { background: var(--navy); color: #fff; }
.path-step:hover:not(.current) { filter: brightness(.95); }
.path-detail { padding: 22px 24px 8px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; min-height: 150px; }
.path-detail h3 { font-size: 20px; }
.path-detail .meta { color: var(--brand); font-weight: 600; font-size: 14px; margin: 4px 0 8px; }
.path-detail p { margin: 0; color: var(--text-2); }
.path-detail.anim { animation: slideIn .4s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(14px); } }
.path-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px 20px; flex-wrap: wrap; }

/* ---------------- Timeline ---------------- */
.timeline { list-style: none; margin: 0; padding: 14px 20px 20px; }
.tl-item { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding-bottom: 18px; }
.tl-item::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--c, var(--border)); opacity: .5; }
.tl-item:last-child::before { display: none; }
.tl-item .sicon { width: 32px; height: 32px; border-radius: 8px; }
.tl-card { cursor: pointer; }
.tl-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tl-row b { font-size: 15px; }
.tl-row time { font-size: 12px; color: var(--muted); }
.tl-sub { font-size: 13px; color: var(--muted); }
.tl-more { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.tl-item.open .tl-more { max-height: 300px; }
.tl-more-in { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.tl-chev { display: inline-block; transition: transform .3s; color: var(--muted); margin-right: 6px; }
.tl-item.open .tl-chev { transform: rotate(90deg); }

/* ---------------- Projects showcase ---------------- */
.pgroup-h { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 14px; flex-wrap: wrap; }
.pgroup-h h3 { font-size: 18px; }
.pgroup-h span { font-size: 13px; color: var(--muted); }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 34px; }
.case { overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.case:hover, .case:focus-visible { transform: translateY(-6px); border-color: var(--brand); box-shadow: 0 24px 50px -20px rgba(1,118,211,.45); outline: none; }
.case .kcover { height: 150px; }
.case:hover .kicon { transform: translateY(-3px) rotate(-4deg) scale(1.08); }
.case-b { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.case-b h4 { font-size: 18px; margin: 4px 0 6px; }
.case-b > p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.case-b ul { list-style: none; margin: 0 0 14px; padding: 0; }
.case-b li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--text-2); margin-bottom: 6px; }
.case-b li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.case-more { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; color: var(--brand); transition: letter-spacing .2s; }
.case:hover .case-more { letter-spacing: .02em; }
.sides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.side { display: flex; gap: 14px; align-items: flex-start; padding: 16px; cursor: pointer; transition: transform .2s, border-color .2s; }
.side:hover, .side:focus-visible { transform: translateY(-3px); border-color: var(--brand); outline: none; }
.side-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 8px 18px -8px rgba(0,0,0,.4); }
.side-ic img { width: 70%; } .side-ic em { font-style: normal; font-size: 24px; }
.side h4 { font-size: 15px; margin-bottom: 3px; }
.side p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.side-arrow { margin-left: auto; font-size: 22px; color: var(--muted); transition: transform .2s, color .2s; }
.side:hover .side-arrow { transform: translateX(3px); color: var(--brand); }
.ktags { display: flex; flex-wrap: wrap; gap: 4px; }
.ktags i { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--border); color: var(--text-2); }
.kcover {
  height: 120px; position: relative; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.25), transparent 40%), linear-gradient(135deg, var(--g1), var(--g2));
}
/* soft cloud shapes behind the icon */
.kcover::before, .kcover::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.kcover::before { width: 180px; height: 180px; right: -50px; bottom: -110px; }
.kcover::after { width: 110px; height: 110px; left: -30px; top: -60px; }
.kicon {
  position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); transition: transform .3s;
}
.kicon img { width: 72%; }
.kicon em { font-style: normal; font-size: 30px; line-height: 1; }
.kcover.big .kicon em { font-size: 46px; }
.kflag {
  position: absolute; top: 10px; left: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.25); padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(4px);
}
.kflag .u { width: 11px; height: 11px; }
.kcover.big { height: 200px; border-radius: 14px; }
.kcover.big .kicon { width: 92px; height: 92px; border-radius: 22px; }

/* ---------------- Trailhead ---------------- */
.th-banner {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 32px 28px 60px; color: #fff;
  background: linear-gradient(135deg, #032d60, #0b5cab 60%, #1b96ff); box-shadow: var(--shadow);
}
.th-mtn { position: absolute; left: 0; right: 0; bottom: -10px; width: 100%; opacity: .55; pointer-events: none; }
.th-left { position: relative; display: flex; align-items: center; gap: 22px; }
.th-left h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; margin: 2px 0 10px; }
.th-rank { width: 96px; height: 96px; animation: spin3d 6s ease-in-out infinite; }
@keyframes spin3d { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(360deg); } }
.eyebrow.light { color: rgba(255,255,255,.75); }
.th-progress { height: 10px; width: min(420px, 60vw); background: rgba(255,255,255,.2); border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.th-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd35c, #fff2a8); border-radius: 6px; transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.badges { display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; margin-top: -30px; position: relative; padding: 0 12px; }
.badge {
  perspective: 800px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 14px 16px;
  text-align: center; box-shadow: var(--shadow); cursor: pointer; transform-style: preserve-3d; transition: transform .15s ease-out;
  position: relative; overflow: hidden;
}
.badge::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.55), transparent 45%); opacity: 0; transition: opacity .2s; pointer-events: none; mix-blend-mode: overlay; }
.badge:hover::after { opacity: 1; }
.badge img { width: 100%; max-width: 104px; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.2)); transition: transform .3s; transform: translateZ(30px); }
.badge:hover img { transform: translateZ(40px) scale(1.06); }
.badge b { display: block; font-size: 14px; margin-top: 10px; line-height: 1.3; }
.badge small { color: var(--muted); font-size: 12px; }
.badge .new { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 700; background: var(--success); color: #fff; padding: 2px 7px; border-radius: 999px; }
.other-certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ocert { display: flex; gap: 12px; align-items: center; padding: 12px; }
.ocert img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--card-2); }
.ocert b { display: block; font-size: 14px; }
.ocert small { color: var(--muted); }

/* ---------------- Dashboard ---------------- */
.dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric { padding: 18px 20px; }
.metric label { font-size: 13px; color: var(--muted); }
.metric b { display: block; font-size: 42px; font-weight: 800; color: var(--text); line-height: 1.1; margin: 6px 0 4px; }
.trend.up { color: var(--success); font-size: 13px; font-weight: 600; }
.matrix-card { grid-column: 1 / -1; overflow: hidden; }
.sk-matrix { padding: 10px 8px 12px; }
.sk-row { display: grid; grid-template-columns: 1.1fr 1.5fr 1.2fr 1.1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; transition: background .2s; }
.sk-row + .sk-row { border-top: 1px solid var(--border); }
.sk-row:not(.sk-head):hover { background: var(--card-2); }
.sk-head { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 6px; }
.sk-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.sk-dots { display: inline-flex; gap: 3px; margin-left: auto; }
.sk-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.sk-dots i.on { background: var(--brand); }
.sk-cell { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-none { color: var(--muted); }
.pchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; font-size: 12.5px;
  border: 1px solid var(--border); background: var(--card); color: var(--text-2); transition: border-color .2s, transform .2s, color .2s;
}
.pchip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.pchip.cert img { width: 20px; height: 20px; object-fit: contain; }
.pchip.proj { padding-left: 6px; }
.pchip.proj i { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.badge.pulse { animation: badgePulse 1.2s ease-out .4s; }
@keyframes badgePulse { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 4px var(--brand), 0 20px 40px -10px rgba(1,118,211,.6); } }

/* ---------------- Chatter ---------------- */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.post { overflow: hidden; }
.post-h { display: flex; gap: 10px; align-items: center; padding: 14px 16px 8px; }
.post-h img.av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.post-h b { font-size: 14px; }
.post-h small { display: block; color: var(--muted); font-size: 12px; }
.post-t { padding: 0 16px 10px; font-size: 14px; color: var(--text-2); }
.post-img { width: 100%; height: 200px; object-fit: cover; display: block; background: var(--card-2); }
.post-f { display: flex; gap: 4px; padding: 8px 10px; border-top: 1px solid var(--border); }
.post-f button { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 6px 10px; border-radius: 8px; display: flex; gap: 6px; align-items: center; }
.post-f button:hover { background: var(--card-2); color: var(--brand); }
.post-f button.liked { color: var(--brand); font-weight: 600; }
.post-f button.liked .u { animation: likepop .4s; }
@keyframes likepop { 50% { transform: scale(1.5) rotate(-12deg); } }
/* CTF cover, built in code */
.ctf-art { position: relative; height: 200px; overflow: hidden; background: radial-gradient(circle at 30% 50%, #0b2a1c, #020806 70%); display: flex; align-items: center; gap: 18px; padding: 0 18px; font-family: var(--mono); color: #7dffb0; }
.ctf-rain { position: absolute; inset: -20px; display: flex; flex-direction: column; font-size: 11px; line-height: 15px; color: rgba(69,255,150,.13); word-break: break-all; animation: rain 14s linear infinite; pointer-events: none; }
@keyframes rain { to { transform: translateY(-50%); } }
.ctf-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 3px); pointer-events: none; }
.ctf-scan::after { content: ""; position: absolute; left: 0; right: 0; height: 40px; background: linear-gradient(transparent, rgba(125,255,176,.08), transparent); animation: sweep 3.5s linear infinite; }
@keyframes sweep { from { top: -40px; } to { top: 100%; } }
.ctf-photo { position: relative; flex: none; width: 112px; height: 112px; border-radius: 50%; padding: 3px; background: conic-gradient(#45ff96, #1b96ff, #a28bff, #45ff96); animation: spinRing 4s linear infinite; box-shadow: 0 0 24px rgba(69,255,150,.45); }
.ctf-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 3px solid #020806; animation: spinRing 4s linear infinite reverse; }
@keyframes spinRing { to { transform: rotate(360deg); } }
.ctf-term { position: relative; min-width: 0; }
.ctf-google { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: #3c4043; font-family: var(--font); font-size: 12px; font-weight: 600; padding: 4px 10px 4px 5px; border-radius: 999px; margin-bottom: 8px; box-shadow: 0 0 18px rgba(255,255,255,.18); }
.ctf-google svg { width: 18px; height: 18px; }
.ctf-title { position: relative; font-size: 26px; font-weight: 800; color: #eafff2; letter-spacing: .06em; margin-bottom: 6px; text-shadow: 0 0 12px rgba(69,255,150,.6); }
.ctf-title::before, .ctf-title::after { content: attr(data-text); position: absolute; inset: 0; opacity: .8; }
.ctf-title::before { color: #ff3df2; animation: glitch 2.6s steps(1) infinite; clip-path: inset(0 0 55% 0); }
.ctf-title::after { color: #1bd5ff; animation: glitch 2.6s steps(1) infinite reverse; clip-path: inset(55% 0 0 0); }
@keyframes glitch { 0%, 86%, 100% { transform: none; opacity: 0; } 88% { transform: translate(-3px, 1px); opacity: .8; } 92% { transform: translate(3px, -1px); opacity: .8; } 96% { transform: translate(-1px, 0); opacity: .8; } }
.ctf-rank { margin-top: 8px; display: inline-block; padding: 3px 10px; border: 1px solid rgba(125,255,176,.5); border-radius: 6px; font-size: 13px; opacity: 0; transform: scale(.6); }
.post.in .ctf-rank { animation: rankIn .5s .6s cubic-bezier(.2,1.6,.4,1) forwards; }
.ctf-rank b { color: #ffd35c; font-size: 16px; }
@keyframes rankIn { to { opacity: 1; transform: none; box-shadow: 0 0 18px rgba(255,211,92,.35); } }

.award { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fff2cc; color: #8c4b02; margin-left: 4px; }

/* ---------------- Events ---------------- */
.events { display: grid; grid-template-columns: 1fr; gap: 20px; }
.event { display: grid; grid-template-columns: 340px 1fr; position: relative; overflow: hidden; transition: transform .25s, border-color .25s; }
.event::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--g1), var(--g2)); z-index: 2; }
.event:hover { transform: translateY(-4px); border-color: var(--g1); }
.ev-media { position: relative; min-height: 340px; overflow: hidden; cursor: zoom-in; background: #0b1628; }
.ev-media img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 6s ease; }
.ev-media img.on { opacity: 1; transform: scale(1); }
.event:hover .ev-media img.on { transform: scale(1.04); }
.ev-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; z-index: 1; }
.ev-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.2); cursor: pointer; transition: width .3s, background .3s; }
.ev-dots i.on { width: 22px; border-radius: 4px; background: #fff; }
.ev-zoom { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-size: 15px; opacity: 0; transition: opacity .2s; }
.ev-media:hover .ev-zoom { opacity: 1; }
.ev-main { display: grid; grid-template-columns: 92px 1fr; gap: 18px; padding: 22px; align-content: start; }
.lightbox { position: fixed; inset: 0; z-index: 140; background: rgba(4,12,26,.92); display: grid; place-items: center; padding: 24px; animation: fade .2s both; opacity: 0; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); cursor: default; }
.lightbox figcaption { color: rgba(255,255,255,.75); font-size: 13px; margin-top: 12px; }
.lb-btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-x { top: 18px; right: 18px; } .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); } .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.ev-date { align-self: start; border-radius: 16px; overflow: hidden; text-align: center; background: var(--card-2); border: 1px solid var(--border); box-shadow: 0 10px 20px -12px rgba(0,0,0,.4); transition: transform .3s; }
.event:hover .ev-date { transform: rotate(-4deg) scale(1.05); }
.ev-date span { display: block; padding: 4px 0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.ev-date b { display: block; font-size: 32px; font-weight: 900; line-height: 1.1; padding-top: 6px; }
.ev-date small { display: block; font-size: 12px; color: var(--muted); padding-bottom: 8px; }
.ev-top { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.ev-role { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.ev-kind { font-size: 12px; color: var(--muted); }
.event h3 { font-size: 18px; margin-bottom: 6px; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.event p { margin: 0 0 14px; font-size: 14px; color: var(--text-2); }
.ev-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------------- Lead ---------------- */
.lead-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; align-items: center; }
.lead-side { position: relative; }
.lead-side h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.lead-side p { color: var(--text-2); }
.lead-ein { width: 120px; animation: float 5s ease-in-out infinite; }
.lead-contacts { list-style: none; padding: 0; margin: 16px 0 0; }
.lead-contacts li { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; color: var(--text-2); }
.lead-contacts .u { color: var(--brand); }
.lead-form { overflow: hidden; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-h h3 { font-size: 18px; flex: 1; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; background: var(--card-2); border-top: 1px solid var(--border); }
.lf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 18px 20px; }
.fi.full { grid-column: 1 / -1; }
.fi label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.fi abbr { color: var(--error); text-decoration: none; }
.fi input, .fi textarea {
  width: 100%; border: 1px solid #c9c9c9; border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 14px;
  background: var(--card); color: var(--text); outline: none; transition: border .2s, box-shadow .2s; resize: vertical;
}
.fi input:focus, .fi textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(1,118,211,.2); }
.fi.err input, .fi.err textarea { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.fi .errmsg { color: var(--error); font-size: 12px; margin-top: 4px; }
.flow-run[hidden] { display: none; }
.joke { font-style: italic; opacity: .7; }
.flow-run { display: flex; align-items: center; gap: 10px; padding: 0 20px 14px; color: var(--brand); font-weight: 600; font-size: 14px; }
.flow-run img { width: 28px; height: 28px; }

/* ---------------- Footer ---------------- */
.foot { margin-top: 70px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-2); display: grid; gap: 8px; }
.foot .legal { font-size: 12px; color: var(--muted); max-width: 860px; }

/* ---------------- Utility bar ---------------- */
.utility-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: 40px; display: flex; gap: 2px; padding: 0 8px;
  background: var(--card); border-top: 1px solid var(--border); box-shadow: 0 -4px 12px -8px rgba(0,0,0,.2);
}
.utility-bar button, .utility-bar a {
  display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 0; background: none; color: var(--text-2);
  font-size: 13px; text-decoration: none !important; border-top: 3px solid transparent;
}
.utility-bar button:hover, .utility-bar a:hover { background: var(--card-2); border-top-color: var(--brand); color: var(--brand); }
.utility-bar .u { width: 15px; height: 15px; }

/* ---------------- Agentforce ---------------- */
.agent {
  position: fixed; right: 16px; bottom: 52px; z-index: 90; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 130px));
  background: var(--card); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(3,45,96,.5);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(20px) scale(.96); opacity: 0; visibility: hidden; transition: all .3s cubic-bezier(.2,1,.3,1);
}
.agent.open { transform: none; opacity: 1; visibility: visible; }
.agent-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: #fff; background: linear-gradient(135deg, #032d60, #0176d3 60%, #7f5cf5); }
.agent-h img { width: 44px; height: 44px; background: rgba(255,255,255,.15); border-radius: 12px; padding: 2px; }
.agent-h b { display: block; } .agent-h span { font-size: 12px; opacity: .8; }
.agent-h .icon-x { margin-left: auto; color: #fff; }
.agent-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--card-2); }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: 14px; animation: pop .25s ease; }
.msg.bot { background: var(--card); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { font-weight: 600; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin: 0 2px; animation: tdot 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 50% { transform: translateY(-5px); opacity: .5; } }
.agent-sugg { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; scrollbar-width: none; background: var(--card); }
.agent-sugg button { flex: none; border: 1px solid var(--border); background: var(--card); color: var(--brand); border-radius: 999px; padding: 5px 12px; font-size: 12px; }
.agent-sugg button:hover { background: var(--brand); color: #fff; }
.agent-in { display: flex; gap: 8px; padding: 10px 12px 12px; background: var(--card); }
.agent-in input { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 14px; background: var(--card-2); color: var(--text); outline: none; }
.agent-in input:focus { border-color: var(--brand); }
.agent-in button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; }
.icon-x { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); width: 32px; height: 32px; border-radius: 8px; }
.icon-x:hover { background: rgba(0,0,0,.08); }

/* ---------------- Modals ---------------- */
.modal-bg { position: fixed; inset: 0; z-index: 120; background: rgba(8,24,48,.55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: fade .2s both; opacity: 0; }
.modal-bg[hidden] { display: none; }
.modal { background: var(--card); border-radius: 22px; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 40px 100px -20px rgba(0,0,0,.5); animation: pop .3s ease; }
.modal.wide { width: min(960px, 100%); }
.launch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 18px 20px 22px; }
.launch-app { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 14px; border: 1px solid var(--border); color: var(--text); text-decoration: none !important; font-size: 14px; font-weight: 600; transition: all .2s; text-align: center; }
.launch-app:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.launch-app .sicon { width: 52px; height: 52px; border-radius: 14px; }
.pm-body { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; padding: 20px; }
.pm-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 16px 0 0; font-size: 14px; }
.pm-facts dt { color: var(--muted); font-size: 12px; padding-top: 2px; }
.pm-facts dd { margin: 0; color: var(--text-2); }
.pm-high { margin: 6px 0 16px; padding: 0; list-style: none; }
.pm-high li { position: relative; padding: 0 0 8px 24px; color: var(--text-2); font-size: 14px; }
.pm-high li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; background: var(--success); color: #fff; font-size: 10px; display: grid; place-items: center; font-weight: 700; }
.pm-info p { color: var(--text-2); margin-top: 4px; }
.pm-info .lbl { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 4px; }
.pm-info .chipset { margin: 6px 0 18px; }

/* ---------------- Toasts ---------------- */
.toasts { position: fixed; top: 106px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(520px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; color: #fff; background: var(--success); box-shadow: 0 12px 30px -8px rgba(0,0,0,.35); font-size: 14px; animation: toastIn .35s cubic-bezier(.2,1.3,.4,1); }
.toast.info { background: #444; } .toast.brand { background: var(--brand); } .toast.error { background: var(--error); }
.toast .u { width: 20px; height: 20px; }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

.rain { position: fixed; inset: 0; pointer-events: none; z-index: 150; display: none; }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; padding: 40px 0 10px; }
  .orbit { width: min(340px, 78vw); }
  .hl-fields { grid-template-columns: repeat(3, 1fr); }
  .rec-grid, .lead-wrap, .pm-body { grid-template-columns: 1fr; }
  .event { grid-template-columns: 260px 1fr; }
  .dash { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(4, 1fr); }
  .cases { grid-template-columns: 1fr 1fr; }
  .sides { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gh { gap: 8px; padding: 0 10px; }
  .gh-word { display: none; }
  .mark { width: 30px; height: 30px; }
  .gh-search input { font-size: 13px; }
  #btnAgent, .gh-avatar { display: none; }
  .app-name { display: none; }
  .hero { padding: 36px 16px 170px; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 18px 30px; }
  .hero-stats b { font-size: 28px; }
  .einstein-peek { width: 96px; right: 8px; bottom: 40px; }
  .bubble { width: 150px; font-size: 12px; }
  .hl-fields { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none; }
  .sk-head { display: none; }
  .sk-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 10px; }
  .sk-cell::before { content: attr(data-label); width: 100%; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  .sk-cell:has(.sk-none) { display: none; }
  .lf-grid { grid-template-columns: 1fr; }
  .utility-bar span { display: none; }
  .utility-bar button, .utility-bar a { padding: 0 16px; }
  .badges { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 6px; }
  .feed { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; }
  .ev-media { min-height: 0; aspect-ratio: 4 / 3; }
  .ev-main { grid-template-columns: 1fr; padding: 18px; }
  .ev-date { display: flex; align-items: baseline; gap: 8px; padding: 0 12px 0 0; justify-self: start; }
  .ev-date span { padding: 6px 10px; }
  .ev-date b { font-size: 18px; padding: 0; }
  .ev-date small { padding: 0; }
  .cases { grid-template-columns: 1fr; }
  .notif-pop { width: calc(100vw - 20px); right: -6px; }
  .g-recaptcha { transform: scale(.9); transform-origin: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
