/* =========================================================
   SATTANATHAN CHANDRAN · PORTFOLIO 2026
   Supply Chain × Automation · Dubai, UAE
   ========================================================= */

:root {
  --bg-0: #05070c;
  --bg-1: #0a1220;
  --bg-2: #0f1a2e;
  --bg-3: #13213b;

  --line: rgba(148, 163, 184, 0.12);
  --line-strong: rgba(148, 163, 184, 0.22);

  --text: #e5ecf5;
  --text-dim: #94a3b8;
  --text-faint: #64748b;

  --brand: #00d4ff;
  --brand-2: #5eead4;
  --brand-3: #7c9fff;
  --accent: #fbbf24;
  --accent-warm: #fb7185;
  --ok: #34d399;

  --glass: rgba(15, 26, 46, 0.55);
  --glass-strong: rgba(10, 18, 32, 0.82);

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad-x: clamp(24px, 5vw, 80px);
  --section-gap: clamp(100px, 14vh, 180px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--brand); color: var(--bg-0); }

html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html { scroll-behavior: auto; }
body { min-height: 100vh; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }

/* =========================================================
   BACKGROUND CANVAS + NOISE
   ========================================================= */
.bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: .6;
  pointer-events: none;
}
.noise {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .25 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
}

/* Side rails */
.rail {
  position: fixed; top: 0; bottom: 0;
  width: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 110px 0 28px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .25em;
  color: var(--text-faint);
  z-index: 40;
  pointer-events: none;
}
.rail a, .rail-rotate { pointer-events: auto; }
.rail-left { left: 0; }
.rail-right { right: 0; }
.rail-line {
  flex: 1; width: 1px;
  margin: 18px 0;
  background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
}
.rail-rotate {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: .35em;
}
.rail-left > span:first-child { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .35em; }
.rail-right > span:first-child { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .35em; }
.rail-left .rail-rotate { transform: none; writing-mode: horizontal-tb; }

@media (max-width: 960px) { .rail { display: none; } }

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-dot {
  position: absolute; top: 0; left: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: width .2s ease, height .2s ease;
}
.cursor-ring {
  position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  transform: translate(-50%, -50%);
  transition: width .25s cubic-bezier(.2,.7,.2,1), height .25s cubic-bezier(.2,.7,.2,1), border-color .2s;
}
body.link-hover .cursor-ring { width: 56px; height: 56px; border-color: var(--brand); }
body.link-hover .cursor-dot { width: 10px; height: 10px; background: var(--brand); }
@media (hover: none) { .cursor { display: none; } }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0;
  z-index: 10000;
  background: radial-gradient(ellipse at center, #0a1527 0%, #05070c 70%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.loader-stack {
  position: relative;
  text-align: center;
  width: min(520px, 88vw);
}
.loader-logo {
  width: 96px; height: 96px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, .35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: .05em;
  color: var(--brand);
  position: relative;
}
.loader-pulse {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, .3);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.85); opacity: .8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.loader-tag {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.loader-tag .dots i {
  font-style: normal; animation: blink 1.4s infinite;
}
.loader-tag .dots i:nth-child(2) { animation-delay: .2s; }
.loader-tag .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,100% { opacity: .2; } 50% { opacity: 1; } }

.loader-bar {
  width: 100%; height: 2px;
  background: rgba(148, 163, 184, .15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 22px;
}
.loader-bar span {
  display: block; height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent));
  animation: load 2.1s cubic-bezier(.65,.05,.36,1) forwards;
}
@keyframes load { to { width: 100%; } }

.loader-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .2em; color: var(--text-faint);
}
.loader-arrow { color: var(--brand); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 22px; left: 52px; right: 52px;
  z-index: 100;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 28px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform .35s ease, opacity .35s ease;
}
.nav.hidden { transform: translateY(-140%); opacity: 0; }
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
}
.nav-mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 50%;
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .05em;
}
.nav-name {
  font-size: 14px; font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.1;
}
.nav-name span { display: block; color: var(--text-dim); font-size: 11px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; }

.nav-links {
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s, background .2s;
}
.nav-links a span {
  font-family: var(--font-mono); font-size: 10px; color: var(--brand); opacity: .6;
}
.nav-links a:hover { color: var(--text); background: rgba(148,163,184,.08); }
.nav-links a.active { color: var(--text); background: rgba(0,212,255,.08); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-size: 13px; font-weight: 500;
  color: var(--bg-0);
  background: var(--brand);
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--brand-2); transform: translateX(2px); }
.nav-cta svg { width: 14px; height: 14px; }

@media (max-width: 1100px) {
  .nav { left: 20px; right: 20px; padding: 10px 14px; gap: 14px; }
  .nav-links { display: none; }
  .nav-name span { display: none; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  font-size: 14px; font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s, color .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--brand);
  color: var(--bg-0);
}
.btn-primary:hover { background: var(--brand-2); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 18px 28px; font-size: 15px; }
.btn-inline { padding: 10px 18px; }
.btn-icon { display: inline-flex; }
.btn-icon svg { width: 16px; height: 16px; }
.btn-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
  animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.8); }
}

/* =========================================================
   SECTION HEAD / COMMON
   ========================================================= */
main { position: relative; z-index: 2; }

section { padding: var(--section-gap) var(--pad-x); position: relative; }
.section-head { max-width: 900px; margin: 0 auto 72px; }
.section-num {
  display: inline-block;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .3em;
  color: var(--brand);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.section-title span { display: block; }
.section-sub {
  margin-top: 22px;
  max-width: 640px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
}

.reveal { overflow: hidden; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center;
  padding-top: 140px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 85%);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 3;
  max-width: 1100px;
  width: 100%;
}
.hero-stamp {
  position: absolute; right: 10px; top: -60px;
  width: 150px; height: 150px;
  color: var(--brand);
  opacity: .9;
}
.stamp-ring {
  width: 100%; height: 100%;
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.stamp-core {
  position: absolute; inset: 34px;
  border: 1px solid var(--brand);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display);
  background: rgba(0, 212, 255, .04);
}
.stamp-yr { font-size: 22px; font-weight: 600; color: var(--brand); letter-spacing: .02em; }
.stamp-sub { font-size: 8px; letter-spacing: .3em; color: var(--text-dim); margin-top: 2px; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
}
.kicker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
  animation: dotPulse 1.6s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: 32px;
}
.title-row { display: block; }
.title-row .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(229, 236, 245, .55);
  font-style: italic;
  font-weight: 400;
}
.title-row .fill {
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, #8fb6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 640px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  margin-bottom: 42px;
}
.hero-sub strong { color: var(--text); font-weight: 500; }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 72px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 40px);
  padding: 24px 0;
  border-top: 1px solid var(--line);
  max-width: 820px;
}
.hstat {
  display: flex; flex-direction: column;
}
.hstat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hstat-suffix {
  display: inline; color: var(--brand-2); font-size: .5em; margin-left: 2px;
}
.hstat-label {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.manifest {
  position: absolute;
  right: 4vw; bottom: 20vh;
  width: 300px;
  padding: 22px 22px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  font-family: var(--font-mono);
  z-index: 4;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.manifest-top {
  display: flex; justify-content: space-between;
  font-size: 10px; letter-spacing: .2em;
  color: var(--text-faint);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.manifest-badge {
  color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px;
}
.manifest-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 10px var(--ok);
  animation: dotPulse 1.6s infinite;
}
.manifest-rows {
  display: grid; gap: 10px;
  margin-bottom: 18px;
}
.manifest-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.manifest-row:last-child { border-bottom: 0; }
.manifest-row span { color: var(--text-faint); letter-spacing: .15em; }
.manifest-row b { color: var(--text); letter-spacing: .08em; font-weight: 500; font-size: 11px; }
.manifest-row .ok { color: var(--ok); }
.manifest-progress {
  height: 2px; background: rgba(148,163,184,.12); border-radius: 2px; overflow: hidden;
}
.manifest-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  animation: progress 4s ease-in-out infinite;
}
@keyframes progress {
  0% { width: 0; }
  50% { width: 72%; }
  100% { width: 100%; opacity: .4; }
}

@media (max-width: 1100px) { .manifest { display: none; } .hero-stamp { display: none; } }
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

.hero-scroll {
  position: absolute; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-dim);
  z-index: 3;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--brand), transparent);
  animation: scroll 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .03) 50%, transparent);
  display: flex;
  gap: 32px;
}
.marquee-track {
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  animation: scrollMarquee 40s linear infinite;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .02em;
  flex-shrink: 0;
}
.marquee-track i {
  color: var(--brand);
  font-style: normal;
  font-size: 18px;
}
@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } }

.about-avatar {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 212, 255, .1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(94, 234, 212, .08) 0%, transparent 50%),
    var(--bg-1);
  overflow: hidden;
}
.avatar-canvas { width: 100%; height: 100%; display: block; }
.avatar-frame span {
  position: absolute; width: 22px; height: 22px;
  border-color: var(--brand);
}
.avatar-frame span:nth-child(1) { top: 14px; left: 14px; border-top: 1px solid; border-left: 1px solid; }
.avatar-frame span:nth-child(2) { top: 14px; right: 14px; border-top: 1px solid; border-right: 1px solid; }
.avatar-frame span:nth-child(3) { bottom: 14px; left: 14px; border-bottom: 1px solid; border-left: 1px solid; }
.avatar-frame span:nth-child(4) { bottom: 14px; right: 14px; border-bottom: 1px solid; border-right: 1px solid; }

.avatar-labels {
  position: absolute; inset: 0; pointer-events: none;
}
.alabel {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
  backdrop-filter: blur(8px);
  animation: float 5s ease-in-out infinite;
}
.alabel i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}
.alabel-1 { top: 14%; left: 6%; animation-delay: 0s; }
.alabel-2 { top: 32%; right: 4%; animation-delay: .8s; }
.alabel-3 { bottom: 26%; left: 4%; animation-delay: 1.6s; }
.alabel-4 { bottom: 10%; right: 8%; animation-delay: 2.4s; }

.about-copy { max-width: 620px; }
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.about-lead em { color: var(--brand); font-style: normal; }
.about-copy p {
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 26px 0;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255,255,255,.01);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); }

/* =========================================================
   EXPERTISE / ORBIT
   ========================================================= */
.expertise-stage {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 26, 46, .5), rgba(10, 18, 32, .5));
  overflow: hidden;
  padding: 56px;
}
@media (max-width: 960px) { .expertise-stage { padding: 32px 20px; } }

.orbit-canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  min-height: 420px;
}

.orbit-tooltip {
  position: absolute;
  pointer-events: none;
  padding: 10px 14px;
  background: var(--glass-strong);
  border: 1px solid var(--brand);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0;
  transition: opacity .2s;
  backdrop-filter: blur(10px);
  transform: translate(-50%, -130%);
  min-width: 180px;
  z-index: 5;
}
.orbit-tooltip.show { opacity: 1; }
.tip-kicker { display: block; color: var(--brand); letter-spacing: .2em; font-size: 9px; margin-bottom: 4px; text-transform: uppercase; }
.tip-title { display: block; color: var(--text); font-size: 13px; font-weight: 500; }
.tip-meta { display: block; color: var(--text-dim); font-size: 10px; margin-top: 3px; }

.orbit-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
@media (max-width: 860px) { .orbit-legend { grid-template-columns: 1fr; } }

.legend-item {
  display: flex; gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .012);
  transition: border-color .3s;
  cursor: default;
}
.legend-item:hover { border-color: var(--line-strong); }
.legend-ring {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.legend-ring::before, .legend-ring::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid;
}
.legend-ring-1 { color: var(--brand); }
.legend-ring-1::after { inset: 8px; border-color: var(--brand); opacity: .6; }
.legend-ring-2 { color: var(--brand-2); }
.legend-ring-2::after { inset: 8px; border-color: var(--brand-2); opacity: .6; }
.legend-ring-3 { color: var(--accent); }
.legend-ring-3::after { inset: 8px; border-color: var(--accent); opacity: .6; }
.legend-item h4 { font-size: 14px; font-weight: 500; margin-bottom: 6px; font-family: var(--font-display); }
.legend-item p { font-size: 12.5px; color: var(--text-dim); line-height: 1.55; }

.skills-strip {
  display: flex; flex-wrap: wrap; gap: 10px;
  max-width: 1320px; margin: 32px auto 0;
}
.skill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 18, 32, .5);
  font-size: 12px;
  color: var(--text-dim);
  transition: border-color .3s, color .3s, transform .3s;
}
.skill:hover {
  border-color: var(--brand);
  color: var(--text);
  transform: translateY(-2px);
}
.skill-ico {
  width: 22px; height: 22px;
  color: var(--brand);
}

/* =========================================================
   JOURNEY / TIMELINE
   ========================================================= */
.track-wrap {
  position: relative;
  max-width: 1320px;
  margin: 0 auto 48px;
  height: 140px;
}
.track { width: 100%; height: 100%; }
.track-dashes { animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }

.track-container {
  position: absolute;
  top: 50%; left: 0;
  transform: translate(-50%, -50%);
  width: 80px; height: 60px;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, .4));
  transition: none;
}

.timeline {
  max-width: 1100px;
  margin: 0 auto;
  list-style: none;
  position: relative;
}
.timeline::before {
  content: ''; position: absolute;
  left: 250px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2), var(--accent), transparent);
}
@media (max-width: 800px) { .timeline::before { left: 12px; } }

.tl-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  position: relative;
  padding: 24px 0 56px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: 244px; top: 40px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background: var(--bg-0);
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(0, 212, 255, .1), 0 0 24px rgba(0, 212, 255, .5);
}
@media (max-width: 800px) {
  .tl-item { grid-template-columns: 1fr; gap: 14px; padding-left: 40px; }
  .tl-item::before { left: 6px; top: 28px; }
}

.tl-stamp { text-align: right; padding-top: 34px; }
@media (max-width: 800px) { .tl-stamp { text-align: left; padding-top: 0; } }
.tl-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.tl-flag {
  display: inline-block;
  font-size: 13px;
  color: var(--text-dim);
}

.tl-card {
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 26, 46, .6), rgba(10, 18, 32, .4));
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.tl-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(0, 212, 255, .2);
}

.tl-header { margin-bottom: 14px; }
.tl-card h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.tl-company {
  font-size: 13px;
  color: var(--brand-2);
  letter-spacing: .02em;
}

.tl-context {
  font-style: italic;
  color: var(--text-dim);
  font-size: 14px;
  padding: 12px 16px;
  border-left: 2px solid var(--brand);
  margin-bottom: 18px;
  line-height: 1.6;
  background: rgba(0, 212, 255, .03);
  border-radius: 0 6px 6px 0;
}

.tl-points {
  list-style: none;
  display: grid; gap: 10px;
  margin-bottom: 18px;
}
.tl-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}
.tl-points li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 10px; height: 1px;
  background: var(--brand);
}
.tl-points b { color: var(--text); font-weight: 500; }

.tl-stack {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tl-stack span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* =========================================================
   IMPACT
   ========================================================= */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
}
.metric-wide { grid-column: span 2; }
@media (max-width: 1100px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } .metric-wide { grid-column: span 1; } }
@media (max-width: 600px) { .impact-grid { grid-template-columns: 1fr; } }

.metric {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 26, 46, .55), rgba(10, 18, 32, .35));
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.metric:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
}
.metric::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: .4;
}
.metric-ring {
  width: 100px; height: 100px;
  margin-bottom: 18px;
  transform: rotate(-90deg);
}
.ring-bg { fill: none; stroke: var(--line); stroke-width: 3; }
.ring-fg {
  fill: none; stroke: url(#ringGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 327; /* 2*pi*52 */
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.2,1);
  stroke: var(--brand);
}
.metric-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.metric-suffix {
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  margin-left: 4px;
}
.metric h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  margin: 14px 0 8px;
}
.metric p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* =========================================================
   PROJECTS
   ========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
}
.project-feature { grid-column: span 2; }
@media (max-width: 1000px) { .projects-grid { grid-template-columns: 1fr; } .project-feature { grid-column: span 1; } }

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 26, 46, .55), rgba(10, 18, 32, .4));
  transition: border-color .3s, transform .3s;
}
.project:hover { border-color: var(--brand); }
.project-feature { grid-template-columns: 1.05fr 1fr; }
@media (max-width: 720px) { .project { grid-template-columns: 1fr; } .project-feature { grid-template-columns: 1fr; } }

.project-vis {
  position: relative;
  min-height: 320px;
  padding: 32px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 212, 255, .08), transparent 60%),
    linear-gradient(135deg, rgba(15, 26, 46, .5), rgba(10, 18, 32, .5));
  border-right: 1px solid var(--line);
  overflow: hidden;
}
@media (max-width: 720px) { .project-vis { border-right: 0; border-bottom: 1px solid var(--line); } }

.project-body {
  padding: 32px;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
  display: inline-block;
}
.project h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.project p { font-size: 14px; color: var(--text-dim); line-height: 1.65; margin-bottom: 18px; }

.project-impact {
  list-style: none;
  margin-bottom: 20px;
}
.project-impact li {
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--text-dim);
}
.project-impact li:last-child { border-bottom: 0; }
.project-impact b { color: var(--brand); font-weight: 500; }

.project-stack {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.project-stack span {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ===== Billing viz ===== */
.vis-panel {
  width: 100%; max-width: 420px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-0);
  font-family: var(--font-mono);
  font-size: 11px;
  overflow: hidden;
}
.vis-head {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.vis-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-faint);
}
.vis-dot:nth-child(1) { background: #ef4444; }
.vis-dot:nth-child(2) { background: #f59e0b; }
.vis-dot:nth-child(3) { background: #34d399; }
.vis-title {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: .1em;
}
.vis-rows { padding: 12px; }
.vis-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.vis-row span { color: var(--text-dim); }
.vis-row b { color: var(--text); }
.vis-row-total { border-top: 1px solid var(--brand); margin-top: 4px; padding-top: 10px; }
.vis-row-total span { color: var(--brand); font-weight: 500; }
.vis-row-total b { color: var(--brand); font-size: 13px; }
.vis-bars {
  display: flex; align-items: flex-end; gap: 6px;
  padding: 0 12px 14px;
  height: 58px;
}
.vis-bars span {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(180deg, var(--brand), rgba(0, 212, 255, .1));
  border-radius: 2px 2px 0 0;
  animation: barGrow 3s ease-in-out infinite;
  transform-origin: bottom;
}
.vis-bars span:nth-child(2) { animation-delay: .2s; }
.vis-bars span:nth-child(3) { animation-delay: .4s; }
.vis-bars span:nth-child(4) { animation-delay: .6s; }
.vis-bars span:nth-child(5) { animation-delay: .8s; }
.vis-bars span:nth-child(6) { animation-delay: 1s; }
.vis-bars span:nth-child(7) { animation-delay: 1.2s; }
@keyframes barGrow {
  0%, 100% { transform: scaleY(.6); opacity: .7; }
  50%      { transform: scaleY(1);  opacity: 1; }
}

/* ===== VBA code viz ===== */
.vis-code {
  width: 100%; max-width: 420px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-0);
  overflow: hidden;
}
.code-head {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  font-family: var(--font-mono); font-size: 10px;
}
.code-title { margin-left: auto; color: var(--text-dim); }
.vis-code pre {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text);
  overflow-x: auto;
}
.c-comment { color: var(--text-faint); font-style: italic; }
.c-kw { color: var(--brand); }
.c-fn { color: var(--accent); }
.c-str { color: var(--brand-2); }
.c-num { color: #fb7185; }

/* ===== Packing doc viz ===== */
.vis-packing {
  width: 100%; display: flex; justify-content: center;
}
.vis-doc {
  width: 100%; max-width: 340px;
  background: #f4ede0;
  color: #1a2132;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  border-radius: 4px;
  position: relative;
  transform: rotate(-2deg);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.5);
}
.doc-head {
  font-weight: 700;
  letter-spacing: .2em;
  text-align: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid #1a2132;
  font-size: 10px;
}
.doc-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr .6fr 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(26, 33, 50, .3);
}
.doc-row:first-of-type { font-weight: 700; font-size: 10px; }
.doc-stamp {
  position: absolute;
  top: 10px; right: -10px;
  padding: 4px 12px;
  background: var(--ok);
  color: #05070c;
  font-weight: 700;
  letter-spacing: .2em;
  font-size: 10px;
  transform: rotate(8deg);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* ===== Reconciliation viz ===== */
.vis-recon {
  width: 100%; max-width: 420px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-0);
}
.recon-stream {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: .1em;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.recon-stream i { color: var(--brand); font-style: normal; }
.recon-stream span:last-child { color: var(--brand); }
.recon-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  height: 110px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.recon-bar {
  display: grid; grid-template-columns: 1fr 1fr 6px 6px;
  gap: 2px;
  align-items: flex-end;
  height: 100%;
}
.recon-bar span {
  background: var(--brand);
  border-radius: 2px 2px 0 0;
  height: var(--h, 50%);
}
.recon-bar span:nth-child(2) { background: var(--brand-2); }
.recon-bar .gap { background: transparent; height: 100%; }
.recon-bar .delta { background: var(--accent); }
.recon-bar .delta.ok { background: var(--ok); }
.recon-legend {
  display: flex; gap: 14px; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-dim);
}
.recon-legend i {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px;
}

/* =========================================================
   AWARDS & CERTS
   ========================================================= */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto 64px;
}
@media (max-width: 860px) { .awards-grid { grid-template-columns: 1fr; } }

.award {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 26, 46, .6), rgba(10, 18, 32, .4));
  color: var(--brand);
  transition: transform .3s, border-color .3s;
  text-align: center;
}
.award:hover { transform: translateY(-6px); }
.award-gold { color: var(--accent); border-color: rgba(251, 191, 36, .3); }
.award-medal { width: 72px; margin: 0 auto 18px; animation: float 5s ease-in-out infinite; }
.award h4 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 10px;
}
.award p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.award-org {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.certs {
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  background: rgba(10, 18, 32, .3);
}
.certs-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 500;
}
.certs-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (max-width: 720px) { .certs-list { grid-template-columns: 1fr; } }
.certs-list li {
  padding: 12px 16px;
  background: rgba(0, 0, 0, .2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.certs-list b { color: var(--text); font-weight: 500; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative;
  overflow: hidden;
}
.contact-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: .6;
  pointer-events: none;
}
.contact-inner {
  position: relative; z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 18px 0 24px;
}
.contact-title span { display: block; }
.contact-title span:nth-child(2) {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.contact-sub {
  color: var(--text-dim);
  font-size: clamp(15px, 1.2vw, 18px);
  max-width: 580px;
  margin: 0 auto 42px;
  line-height: 1.65;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.contact-channels {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: var(--text-dim);
}
.contact-channels a, .contact-channels span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: border-color .2s, color .2s;
}
.contact-channels a:hover { border-color: var(--brand); color: var(--brand); }
.contact-channels svg { width: 18px; height: 18px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 24px var(--pad-x);
  border-top: 1px solid var(--line);
  position: relative; z-index: 2;
  background: rgba(5, 7, 12, .5);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  max-width: 1320px; margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--text-faint);
  text-transform: uppercase;
}

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