/* ==========================================================================
   Merald Ayson | Personal Website
   Themes: light (default) and dark (immersive)
   ========================================================================== */

:root {
  --blue-700: #1A45C2;
  --blue-600: #1F56E0;
  --blue-500: #3B74F5;
  --sky-400: #6FA8FF;
  --sky-200: #BFD6FF;

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Light theme ---------- */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FB;
  --bg-deep: #0A1F44;
  --bg-deeper: #061430;
  --surface: #FFFFFF;
  --surface-2: #F5F7FB;
  --text: #0E1A2F;
  --text-2: #44526B;
  --text-3: #6B7890;
  --line: rgba(14, 26, 47, 0.1);
  --line-strong: rgba(14, 26, 47, 0.18);
  --accent: var(--blue-600);
  --accent-hover: var(--blue-700);
  --accent-soft: #EDF3FF;
  --accent-text: var(--blue-700);
  --grid: rgba(16, 42, 92, .05);
  --glow: rgba(111, 168, 255, .22);
  --nav-bg: rgba(255, 255, 255, .82);
  --shadow: 0 1px 2px rgba(10, 31, 68, .06), 0 16px 40px -16px rgba(10, 31, 68, .22);
  --outline: rgba(14, 26, 47, .55);
  --spot: rgba(31, 86, 224, .08);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050B18;
  --bg-alt: #081226;
  --bg-deep: #0A1A38;
  --bg-deeper: #030814;
  --surface: rgba(255, 255, 255, .03);
  --surface-2: rgba(255, 255, 255, .05);
  --text: #E8EEFA;
  --text-2: #A7B3CC;
  --text-3: #6F7C96;
  --line: rgba(148, 178, 255, .13);
  --line-strong: rgba(148, 178, 255, .24);
  --accent: var(--blue-500);
  --accent-hover: #5A8BFF;
  --accent-soft: rgba(59, 116, 245, .14);
  --accent-text: var(--sky-400);
  --grid: rgba(148, 178, 255, .05);
  --glow: rgba(59, 116, 245, .28);
  --nav-bg: rgba(5, 11, 24, .72);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 60px -24px rgba(0, 0, 0, .7);
  --outline: rgba(191, 214, 255, .6);
  --spot: rgba(111, 168, 255, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
[data-theme="dark"] body {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
}
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; }
.mono { font-family: var(--font-mono); letter-spacing: .04em; }
.accent {
  background: linear-gradient(90deg, var(--blue-500), var(--sky-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.outline { color: transparent; -webkit-text-stroke: 1.4px var(--outline); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200; padding: .6rem 1rem; border-radius: 8px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--sky-400); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 10px 30px -10px var(--accent); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn--light { background: #fff; color: #0A1F44; }
.btn--light:hover { background: #EDF3FF; }
.btn--sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }

/* ---------- Custom cursor ---------- */
.cursor { display: none; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; border-radius: 50%;
  transform: translate3d(-100px, -100px, 0);
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--sky-400); }
.cursor__ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid var(--sky-400); opacity: .55;
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .25s, background .25s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; opacity: .9; background: rgba(111, 168, 255, .08); }
.cursor.is-down .cursor__ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

/* ---------- Scroll progress + HUD frame ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress__bar { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue-600), var(--sky-400)); }
.hud-frame { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.hud-frame__side {
  position: absolute; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .2em;
  color: var(--text-3); white-space: nowrap; opacity: .8;
}
.hud-frame__side--l { left: 22px; top: 62%; transform: rotate(-90deg); transform-origin: 0 0; }
.hud-frame__side--r { right: 22px; top: 38%; transform: rotate(90deg); transform-origin: 100% 0; }
.hud-frame__pct { color: var(--accent-text); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .5s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.nav__logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav__mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), #0A1F44); color: #fff;
  box-shadow: 0 0 0 1px rgba(111, 168, 255, .25), 0 8px 24px -10px var(--accent);
}
.nav__mark svg { width: 30px; height: 30px; }
.nav__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav__links a:not(.btn) {
  text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--text-2);
  position: relative; padding: .25rem 0; display: inline-flex; align-items: baseline; gap: .35rem;
}
.nav__num { font-family: var(--font-mono); font-size: .66rem; color: var(--accent-text); opacity: .8; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__tools { display: flex; align-items: center; gap: .5rem; }
.tool {
  display: inline-flex; align-items: center; gap: .5rem; height: 38px; padding: 0 .8rem;
  border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--text-2);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.tool:hover { border-color: var(--accent); color: var(--text); }
.tool--icon { width: 38px; padding: 0; justify-content: center; }
.tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .2s; }
.tool[aria-pressed="true"] { color: var(--accent-text); border-color: var(--accent); }
.tool[aria-pressed="true"] .eq i { animation: eq 1s ease-in-out infinite; }
.tool[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: .2s; }
.tool[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: .4s; }
.tool[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: transform .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 120px; position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
[data-theme="light"] .hero__bg {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero__glow {
  position: absolute; width: 780px; height: 780px; border-radius: 50%;
  left: calc(var(--gx, 70) * 1%); top: calc(var(--gy, 30) * 1%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow), transparent 62%);
  transition: left 1.2s var(--ease-out), top 1.2s var(--ease-out);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  font-size: .74rem; font-weight: 500; color: var(--text-2); text-transform: uppercase;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem;
  margin-bottom: 1.8rem;
}
.eyebrow__sep { color: var(--text-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); } 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }
.hero__title { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 1.6rem; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line__in { display: inline-block; }
.js .hero__title .line__in { transform: translateY(110%); animation: rise 1s var(--ease-out) forwards; }
.js .hero__title .line:nth-child(3) .line__in { animation-delay: .1s; }
.js .hero__title .line:nth-child(4) .line__in { animation-delay: .2s; }
.js .hero__title .line:nth-child(5) .line__in { animation-delay: .3s; }
@keyframes rise { to { transform: none; } }
.hero__title .outline { -webkit-text-stroke-width: 1.6px; }
.js .hero__lede, .js .hero__roles, .js .hero__cta, .js .eyebrow { opacity: 0; animation: fadeUp .9s var(--ease-out) forwards; }
.js .eyebrow { animation-delay: .05s; }
.js .hero__lede { animation-delay: .45s; }
.js .hero__roles { animation-delay: .55s; }
.js .hero__cta { animation-delay: .65s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__lede { font-size: 1.13rem; color: var(--text-2); max-width: 36em; }
.hero__lede strong { color: var(--text); }
.hero__roles { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; }
.hero__roles span {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text);
  background: var(--accent-soft); border: 1px solid var(--line); padding: .4rem .8rem; border-radius: 8px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__media { position: relative; perspective: 1200px; }
.js .hero__media { opacity: 0; animation: fadeIn 1.2s .3s var(--ease-out) forwards; }
@keyframes fadeIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.hero__photo {
  aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; position: relative;
  box-shadow: var(--shadow); background: var(--bg-alt);
  transition: transform .6s var(--ease-out);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transform-origin: 48% 52%; }
.hero__media::before {
  content: ""; position: absolute; inset: 28px -20px -20px 28px; z-index: -1;
  border-radius: 22px; border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(31, 86, 224, .35), transparent 70%);
}
.scan {
  position: absolute; left: 0; right: 0; top: 0; height: 30%; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(111, 168, 255, .16), transparent);
  animation: scan 5s linear infinite; mix-blend-mode: screen;
}
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(400%); } }
.corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--sky-400); pointer-events: none; }
.corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.corner--tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.corner--bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.hero__tag {
  position: absolute; left: 44px; bottom: 16px; font-size: .64rem; letter-spacing: .16em; color: #fff;
  background: rgba(5, 11, 24, .6); padding: .3rem .6rem; border-radius: 6px; backdrop-filter: blur(6px);
}
.hero__tag b { color: #F87171; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); text-decoration: none;
}
.scroll-cue span { width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg-alt); }
.marquee__track {
  display: flex; align-items: center; gap: 1.6rem; width: max-content; padding: 1rem 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text-2);
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track i { font-style: normal; color: var(--accent-text); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { background: var(--bg-deep); color: #fff; padding: 48px 0; }
[data-theme="dark"] .stats { background: transparent; border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: .4rem; padding-left: 20px; border-left: 2px solid rgba(111, 168, 255, .35); }
.stat__num { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.03em; }
[data-theme="dark"] .stat__num { color: var(--text); }
.stat__label { font-size: .86rem; color: rgba(255, 255, 255, .7); line-height: 1.4; }
[data-theme="dark"] .stat__label { color: var(--text-2); }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-mono); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 1.1rem;
}
.kicker__num {
  display: inline-grid; place-items: center; min-width: 2.2rem; height: 1.6rem; padding: 0 .4rem;
  border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text-2); font-size: .7rem;
}
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head h2 { margin-bottom: 1rem; }
.section__sub { font-size: 1.08rem; color: var(--text-2); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.about__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); position: relative; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__copy h2 { margin-bottom: 1.5rem; }
.about__copy p { color: var(--text-2); }
.about__copy strong { color: var(--text); }
.about__facts {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem;
  border-top: 1px solid var(--line); padding-top: 1.75rem;
}
.about__facts li { font-weight: 500; font-size: .95rem; line-height: 1.4; }
.about__facts span { display: block; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: .3rem; }

/* ---------- Spotlight surfaces ---------- */
[data-spotlight] { position: relative; isolation: isolate; }
[data-spotlight]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 60%);
  transition: opacity .3s;
}
[data-spotlight]:hover::before { opacity: 1; }

/* ---------- Expertise ---------- */
.expertise { background: var(--bg-alt); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; display: flex; flex-direction: column;
  transition: transform .4s var(--ease-out), box-shadow .3s, border-color .3s, opacity .9s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__idx { position: absolute; top: 22px; right: 22px; font-size: .7rem; color: var(--text-3); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 1.5rem; transition: background .3s, transform .4s var(--ease-out);
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.card:hover .card__icon { background: var(--accent); transform: rotate(-6deg) scale(1.05); }
.card:hover .card__icon svg { stroke: #fff; }
.card h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.card p { color: var(--text-2); font-size: .95rem; flex: 1; }
.tags { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em; padding: .25rem .55rem; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }

/* ---------- Experience ---------- */
.timeline { display: flex; flex-direction: column; position: relative; }
.timeline__rail { position: absolute; left: 248px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline__fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--p, 0)); background: linear-gradient(var(--blue-500), var(--sky-400)); box-shadow: 0 0 12px var(--accent); }
.role {
  display: grid; grid-template-columns: 220px 1fr; gap: 56px;
  padding: 40px 0; border-top: 1px solid var(--line);
}
.role:last-of-type { border-bottom: 1px solid var(--line); }
.role__meta { display: flex; flex-direction: column; gap: .3rem; }
.role__dates { font-family: var(--font-mono); font-size: 1rem; font-weight: 500; color: var(--accent-text); letter-spacing: .02em; }
.role__place { font-size: .86rem; color: var(--text-3); }
.role__body h3 { font-size: 1.55rem; margin-bottom: .25rem; }
.role__desc { color: var(--text-3); font-size: .95rem; margin-bottom: 1.25rem; }
.role__steps { display: flex; flex-direction: column; gap: 1.25rem; }
.step { position: relative; padding-left: 24px; }
.step::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--blue-500);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 4px; top: 1.3em; bottom: -1.3rem; width: 1px; background: var(--line);
}
.step h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: .35rem; letter-spacing: -0.01em; }
.step h4 span { font-family: var(--font-mono); font-weight: 400; color: var(--text-3); font-size: .78rem; margin-left: .5rem; letter-spacing: .02em; }
.step p { color: var(--text-2); font-size: .97rem; margin: 0; }
.step strong { color: var(--text); }

/* ---------- Ventures (horizontal) ---------- */
.ventures { background: var(--bg-deeper); color: #fff; position: relative; }
.ventures .hz__sticky { position: relative; padding: 120px 0; overflow: hidden; }
.ventures .hz__sticky::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 116, 245, .28), transparent 65%); pointer-events: none;
}
.ventures .kicker { color: var(--sky-400); }
.ventures .kicker__num { color: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .2); }
.ventures .outline { -webkit-text-stroke-color: rgba(191, 214, 255, .7); }
.section__head--light .section__sub { color: rgba(255, 255, 255, .7); }
.hz__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; position: relative; }
.hz__head .section__head { margin-bottom: 48px; }
.hz__meta { display: none; flex-direction: column; align-items: flex-end; gap: .7rem; font-size: .7rem; letter-spacing: .14em; color: rgba(255, 255, 255, .6); text-transform: uppercase; flex: none; }
.hz__count b { color: #fff; font-weight: 500; }
.hz__bar { width: 180px; height: 2px; background: rgba(255, 255, 255, .15); position: relative; overflow: hidden; }
.hz__barfill { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--hp, .25)); background: var(--sky-400); }
.ventures__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; position: relative; }
.hz__viewport { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.venture {
  display: flex; flex-direction: column; text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius); padding: 40px 36px 36px;
  transition: transform .5s var(--ease-out), background .3s, border-color .3s;
  --spot: rgba(111, 168, 255, .16);
}
.venture:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .06); border-color: rgba(111, 168, 255, .5); }
.venture__idx { position: absolute; top: 24px; right: 26px; font-size: .7rem; color: rgba(255, 255, 255, .45); }
.venture__logo {
  width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 1.5rem; overflow: hidden; transition: transform .5s var(--ease-out);
}
.venture:hover .venture__logo { transform: scale(1.08) rotate(-4deg); }
.venture__logo svg { width: 36px; height: 36px; }
.venture__logo--cyber { background: linear-gradient(135deg, var(--blue-500), #102A5C); color: #fff; }
.venture__logo--tim { background: #fff; color: var(--blue-700); }
.venture__logo--img img { width: 100%; height: 100%; object-fit: cover; }
.venture__logo--light { background: #fff; }
.venture__logo--light img { object-fit: contain; transform: scale(1.2); }
.venture__type { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-400); margin-bottom: .5rem; }
.venture h3 { font-size: 1.8rem; margin-bottom: .4rem; }
.venture__tagline { font-weight: 500; color: var(--sky-200); font-size: 1rem; margin-bottom: 1rem; }
.venture p:not(.venture__type):not(.venture__tagline) { color: rgba(255, 255, 255, .7); font-size: .97rem; flex: 1; }
.venture__link { margin-top: .75rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; color: #fff; display: inline-flex; gap: .5rem; }
.venture__link span { transition: transform .25s var(--ease); }
.venture:hover .venture__link span { transform: translate(3px, -3px); }

/* Horizontal mode (enabled by JS on wide screens) */
.hz.is-hz .hz__sticky { position: sticky; top: 0; height: 100vh; padding: 72px 0 0; display: flex; flex-direction: column; justify-content: center; }
.hz.is-hz .hz__head .section__head { margin-bottom: 36px; }
.hz.is-hz .hz__meta { display: flex; margin-bottom: 44px; }
.hz.is-hz .hz__viewport { max-width: none; padding: 0; }
.hz.is-hz .hz__track {
  display: flex; gap: 24px; width: max-content; will-change: transform;
  padding: 0 max(24px, calc((100vw - var(--container)) / 2 + 24px));
}
.hz.is-hz .venture { width: min(460px, 38vw); min-height: 420px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote {
  margin: 0; padding: 36px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); border-top: 3px solid var(--accent);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  transition: transform .4s var(--ease-out), border-color .3s, opacity .9s var(--ease-out);
}
.quote:hover { transform: translateY(-4px); border-color: var(--line-strong); border-top-color: var(--sky-400); }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.6; color: var(--text); }
.quote figcaption { display: flex; flex-direction: column; font-size: .92rem; }
.quote figcaption strong { font-family: var(--font-display); }
.quote figcaption span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Beyond / Gallery ---------- */
.beyond { background: var(--bg-alt); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 16px; }
.gallery__item {
  margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2);
  transition: box-shadow .4s, opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.gallery__item:hover { box-shadow: var(--shadow); }
.gallery__item--tall { grid-row: span 2; grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .5s; }
[data-theme="dark"] .gallery__item img { filter: saturate(.85) brightness(.9); }
.gallery__item:hover img { transform: scale(1.06); filter: none; }
.gallery__item figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(5, 11, 24, .72); color: #fff; backdrop-filter: blur(6px);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 6px;
}

/* ---------- Contact ---------- */
.contact { padding-top: 100px; }
.contact__box {
  background: linear-gradient(135deg, var(--blue-600), #0A1F44 75%);
  color: #fff; border-radius: 28px; padding: 72px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end;
  overflow: hidden; border: 1px solid rgba(111, 168, 255, .25);
  --spot: rgba(255, 255, 255, .1);
}
.contact__box::after {
  content: ""; position: absolute; width: 360px; height: 360px; right: -80px; bottom: -160px; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 2px, transparent 2px);
  background-size: 18px 18px; border-radius: 50%;
}
.contact .kicker { color: var(--sky-200); }
.contact .kicker__num { color: #fff; border-color: rgba(255, 255, 255, .3); }
.contact h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.contact__sub { color: rgba(255, 255, 255, .78); font-size: 1.05rem; margin: 0; }
.contact__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; position: relative; z-index: 1; }
.email { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.copy {
  height: 46px; padding: 0 1rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3); background: transparent;
  color: #fff; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.copy:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.copy.is-done { background: #34D399; border-color: #34D399; color: #062A1C; }
.socials { display: flex; gap: .6rem; }
.socials a {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .3); transition: background .2s, border-color .2s;
}
.socials a:hover { background: #fff; border-color: #fff; }
.socials a:hover svg { fill: #0A1F44; }
.socials svg { width: 20px; height: 20px; fill: #fff; transition: fill .2s, stroke .2s; }
.socials svg.icon-stroke { fill: none; stroke: #fff; stroke-width: 1.9; }
.socials svg.icon-stroke .icon-dot { fill: #fff; stroke: none; transition: fill .2s; }
.socials a:hover svg.icon-stroke { fill: none; stroke: #0A1F44; }
.socials a:hover svg.icon-stroke .icon-dot { fill: #0A1F44; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .86rem; color: var(--text-3); }
.footer p { margin: 0; }
.footer__sys { display: inline-flex; align-items: center; gap: .6rem; font-size: .68rem; text-transform: uppercase; }
.footer a { color: var(--accent-text); font-weight: 500; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-visible, .no-io .reveal { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(2), .js .quotes .reveal:nth-child(2), .js .gallery .reveal:nth-child(2) { transition-delay: .08s; }
.js .cards .reveal:nth-child(3), .js .quotes .reveal:nth-child(3), .js .gallery .reveal:nth-child(3) { transition-delay: .16s; }
.js .cards .reveal:nth-child(4), .js .quotes .reveal:nth-child(4), .js .gallery .reveal:nth-child(4) { transition-delay: .24s; }
.js .gallery .reveal:nth-child(5) { transition-delay: .32s; }
.js .reveal.is-visible:hover { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero__title .line__in, .js .hero__lede, .js .hero__roles, .js .hero__cta, .js .eyebrow, .js .hero__media {
    opacity: 1; transform: none; transition: none; animation: none;
  }
  .scan, .marquee__track, .scroll-cue span, .dot, .hero__tag b { animation: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .hud-frame { display: none; }
}
@media (max-width: 1180px) {
  .nav__links { gap: 1.1rem; }
  .nav__num { display: none; }
}
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .tool__label { display: none; }
  .tool { width: 38px; padding: 0; justify-content: center; }
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__num { display: inline; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 16px; }

  .hero { padding: 40px 0 110px; }
  .hero__grid, .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { max-width: 420px; margin: 0 auto; width: 100%; }
  .about__media { max-width: 480px; }
  .section { padding: 88px 0; }
  .role { grid-template-columns: 1fr; gap: 16px; padding-left: 24px; }
  .timeline__rail { left: 0; }
  .ventures .hz__sticky { padding: 88px 0; }
  .ventures__grid, .quotes { grid-template-columns: 1fr; }
  .contact__box { grid-template-columns: 1fr; padding: 48px 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container, .hz__viewport { padding: 0 16px; }
  .nav__name { font-size: 1rem; }
  .nav__tools { gap: .35rem; }
  .cards { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: span 2; }
  .about__facts { grid-template-columns: 1fr; }
  .venture, .quote { padding: 32px 24px 28px; }
  .hero__media::before { inset: 16px -10px -12px 16px; }
  .contact__box { padding: 40px 24px; border-radius: 22px; }
  .btn--lg { font-size: .95rem; padding: .95rem 1.3rem; }
  .gallery { grid-auto-rows: 180px; gap: 10px; }
  .gallery__item figcaption { font-size: .6rem; }
  .eyebrow { font-size: .64rem; gap: .45rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .nav__name { display: none; }
}
