/* =========================================================
   Fhillip G. Castillo — Personal Site
   Design system: deep navy base, blue→sky accent, emerald signal
   Type: Space Grotesk (display) · Manrope (body) · JetBrains Mono
   ========================================================= */

:root {
  /* Base / surfaces */
  --bg: #070b16;
  --bg-2: #0a0f1f;
  --surface: #0e1426;
  --surface-2: #121a30;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.26);

  /* Text */
  --text: #eef2fb;
  --text-soft: #b4c0d6;
  --text-mute: #7c89a3;

  /* Accents */
  --blue: #3b82f6;
  --blue-600: #2563eb;
  --sky: #38bdf8;
  --cyan: #22d3ee;
  --emerald: #34d399;
  --emerald-glow: rgba(52, 211, 153, 0.55);

  --accent-grad: linear-gradient(115deg, #2563eb 0%, #38bdf8 55%, #22d3ee 100%);
  --accent-soft: rgba(56, 189, 248, 0.14);

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Geometry */
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --shadow: 0 24px 60px -28px rgba(2, 8, 23, 0.9);
  --shadow-glow: 0 0 0 1px rgba(56, 189, 248, 0.18), 0 30px 80px -40px rgba(37, 99, 235, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(56, 189, 248, 0.3); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2742; border-radius: 20px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #28365a; }

/* =========================================================
   Layout helpers
   ========================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { position: relative; padding: 120px 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--sky); opacity: 0.7; }
.section-title { font-size: clamp(30px, 4.4vw, 52px); margin: 18px 0 0; }
.section-lead { color: var(--text-soft); max-width: 620px; margin-top: 18px; font-size: 18px; }

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-grad); color: #04101f; box-shadow: 0 12px 30px -12px rgba(56, 189, 248, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(56, 189, 248, 0.75); }
.btn-ghost { background: rgba(255,255,255,0.02); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--sky); color: #fff; background: rgba(56,189,248,0.07); transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }

/* =========================================================
   Looping ambient background — aurora + grid
   ========================================================= */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.grid-mesh {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(148,163,184,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  animation: gridDrift 28s linear infinite;
}
@keyframes gridDrift { to { background-position: 54px 54px, 54px 54px; } }

.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; mix-blend-mode: screen; }
.orb-1 { width: 540px; height: 540px; background: radial-gradient(circle, #2563eb, transparent 65%); top: -160px; left: -120px; animation: drift1 22s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; background: radial-gradient(circle, #22d3ee, transparent 65%); top: 18%; right: -140px; animation: drift2 26s ease-in-out infinite; }
.orb-3 { width: 420px; height: 420px; background: radial-gradient(circle, #34d399, transparent 68%); bottom: -160px; left: 30%; opacity: 0.4; animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(120px,80px)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-100px,120px)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(80px,-70px)} }

.noise { position: absolute; inset: 0; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

main { position: relative; z-index: 1; }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7,11,22,0.72); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-grad); color: #04101f; font-size: 15px; letter-spacing: -0.03em;
  box-shadow: 0 8px 22px -10px rgba(56,189,248,0.7);
}
.brand-mark img { width: 38px; height: 38px; padding: 2px; border-radius: 12px; object-fit: cover; }
.brand-name { font-size: 16px; }
.brand-name span { color: var(--text-mute); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--text-soft); position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0; background: var(--sky); transition: width .25s; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 150px 0 90px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.28); color: #aef3d4;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); position: relative; }
.status-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--emerald); animation: ping 1.8s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes ping { 0%{transform:scale(.6);opacity:.9} 80%,100%{transform:scale(1.9);opacity:0} }

.hero h1 { font-size: clamp(44px, 7vw, 86px); margin: 26px 0 0; letter-spacing: -0.035em; }
.hero-role { font-size: clamp(22px, 3.4vw, 36px); font-family: var(--font-display); font-weight: 500; margin-top: 8px; color: var(--text-soft); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.role-rotator { color: transparent; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; position: relative; }
.role-rotator::after { content: ""; display: inline-block; width: 3px; height: 0.95em; background: var(--sky); margin-left: 3px; transform: translateY(3px); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.hero-tag { color: var(--text-soft); font-size: 19px; max-width: 540px; margin-top: 28px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-mute); }
.hero-meta-item svg { width: 16px; height: 16px; color: var(--sky); }

/* Hero code window */
.code-window {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-glow); overflow: hidden;
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.cw-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.cw-dot { width: 11px; height: 11px; border-radius: 50%; }
.cw-dot.r { background: #ff5f57; } .cw-dot.y { background: #febc2e; } .cw-dot.g { background: #28c840; }
.cw-file { margin-left: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-mute); }
.cw-body { padding: 22px 24px 26px; font-family: var(--font-mono); font-size: 14px; line-height: 1.9; min-height: 320px; }
.cw-line { white-space: pre-wrap; }
.tok-key { color: #c084fc; } .tok-fn { color: var(--sky); } .tok-str { color: var(--emerald); }
.tok-prop { color: #f0abfc; } .tok-com { color: var(--text-mute); font-style: italic; } .tok-punc { color: var(--text-soft); }
.cw-caret { display: inline-block; width: 8px; height: 1.05em; background: var(--sky); transform: translateY(2px); animation: caret 1s steps(1) infinite; }

/* Floating chips around code window */
.float-chip {
  position: absolute; z-index: 3; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  padding: 8px 13px; border-radius: 11px; background: rgba(14,20,38,0.9); border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px); box-shadow: var(--shadow); color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.float-chip .fc-dot { width: 7px; height: 7px; border-radius: 50%; }
.fc-1 { top: -22px; right: 38px; animation: floatChip 6s ease-in-out infinite; }
.fc-2 { bottom: 44px; left: -34px; animation: floatChip 7.5s ease-in-out .6s infinite; }
.fc-3 { bottom: -20px; right: 70px; animation: floatChip 6.8s ease-in-out 1.2s infinite; }
@keyframes floatChip { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { order: -1; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; background: rgba(10,15,31,0.5); position: relative; overflow: hidden; }
.marquee-band::before, .marquee-band::after { content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none; }
.marquee-band::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-band::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track { display: flex; gap: 50px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-band:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--text-mute); display: flex; align-items: center; gap: 50px; transition: color .2s; }
.marquee-item::after { content: "✦"; color: var(--sky); font-size: 13px; opacity: 0.5; }
.marquee-item:hover { color: var(--text); }

/* =========================================================
   About + stats
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.avatar-stack { position: relative; }
.avatar {
  width: 100%; aspect-ratio: 4/5; border-radius: 22px; overflow: hidden; position: relative;
  background:
    radial-gradient(120% 90% at 30% 10%, rgba(56,189,248,0.28), transparent 55%),
    radial-gradient(120% 90% at 80% 90%, rgba(52,211,153,0.22), transparent 55%),
    linear-gradient(160deg, #142036, #0b1124);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.avatar-mono { font-family: var(--font-display); font-size: 120px; font-weight: 600; color: rgba(238,242,251,0.12); letter-spacing: -0.04em; }
.avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.avatar-ring { position: absolute; inset: 0; border-radius: 22px; background: conic-gradient(from 0deg, transparent, rgba(56,189,248,0.5), transparent 40%); animation: spin 9s linear infinite; opacity: 0.6; -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-tag { position: absolute; bottom: 16px; left: 16px; right: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(7,11,22,0.78); backdrop-filter: blur(10px); border: 1px solid var(--line); }
.avatar-tag .at-mono { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-grad); color:#04101f; display:grid; place-items:center; font-family: var(--font-display); font-weight: 600; }
.avatar-tag .at-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.avatar-tag .at-role { font-size: 12.5px; color: var(--text-mute); }

.about-copy p { color: var(--text-soft); margin-bottom: 18px; }
.about-copy p:first-child { color: var(--text); font-size: 19px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 38px; }
.stat { padding: 22px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat::before { content:""; position:absolute; top:0; left:0; width:100%; height:2px; background: var(--accent-grad); opacity:.6; }
.stat-num { font-family: var(--font-display); font-size: 38px; font-weight: 600; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.03em; }
.stat-label { font-size: 13px; color: var(--text-mute); margin-top: 6px; line-height: 1.4; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .avatar-stack { max-width: 360px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Experience timeline
   ========================================================= */
.timeline { margin-top: 60px; position: relative; }
.tl-line { position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-progress { position: absolute; left: 19px; top: 8px; width: 2px; background: var(--accent-grad); transform-origin: top; box-shadow: 0 0 14px rgba(56,189,248,0.6); }
.exp { position: relative; padding-left: 64px; padding-bottom: 46px; }
.exp:last-child { padding-bottom: 0; }
.exp-node { position: absolute; left: 9px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-strong); display: grid; place-items: center; z-index: 2; transition: border-color .3s, box-shadow .3s; }
.exp-node::after { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-mute); transition: background .3s; }
.exp.is-current .exp-node { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(52,211,153,0.12); }
.exp.is-current .exp-node::after { background: var(--emerald); }
.exp.in .exp-node { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(56,189,248,0.1); }

.exp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; transition: border-color .3s, transform .3s, box-shadow .3s; }
.exp-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.exp-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.exp-company { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.exp-role { color: var(--sky); font-size: 15px; font-weight: 600; margin-top: 3px; }
.exp-sub { color: var(--text-mute); font-size: 13.5px; margin-top: 2px; }
.exp-period { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-soft); white-space: nowrap; text-align: right; }
.exp-loc { font-size: 12px; color: var(--text-mute); margin-top: 4px; }
.badge-now { display:inline-flex; align-items:center; gap:6px; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color:#aef3d4; background: rgba(52,211,153,0.1); border:1px solid rgba(52,211,153,0.3); padding: 3px 9px; border-radius: 999px; margin-left: 10px; vertical-align: middle; }
.exp-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.exp-points li { position: relative; padding-left: 22px; color: var(--text-soft); font-size: 15px; }
.exp-points li::before { content:""; position:absolute; left:2px; top:9px; width:7px; height:7px; border-radius:2px; background: var(--accent-grad); transform: rotate(45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { font-family: var(--font-mono); font-size: 12px; padding: 5px 11px; border-radius: 8px; background: rgba(56,189,248,0.06); border: 1px solid rgba(56,189,248,0.16); color: var(--text-soft); transition: background .2s, color .2s, border-color .2s; }
.chip:hover { background: rgba(56,189,248,0.14); color: #fff; border-color: rgba(56,189,248,0.4); }

@media (max-width: 600px) { .exp { padding-left: 52px; } .exp-card { padding: 20px; } }

/* =========================================================
   Skills
   ========================================================= */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.skill-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; transition: border-color .3s, transform .3s; }
.skill-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.skill-card::after { content:""; position:absolute; right:-40px; top:-40px; width:140px; height:140px; border-radius:50%; background: radial-gradient(circle, rgba(56,189,248,0.12), transparent 70%); }
.skill-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.skill-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(56,189,248,0.22); color: var(--sky); }
.skill-ico svg { width: 20px; height: 20px; }
.skill-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.skill-items { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-pill { font-size: 13.5px; padding: 7px 13px; border-radius: 9px; background: rgba(255,255,255,0.025); border: 1px solid var(--line); color: var(--text-soft); transition: all .2s; cursor: default; }
.skill-pill:hover { color: #fff; border-color: var(--sky); background: rgba(56,189,248,0.08); transform: translateY(-2px); }
@media (max-width: 760px) { .skills-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Education / Certs
   ========================================================= */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 50px; }
.edu-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .3s, transform .3s; }
.edu-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.edu-ico { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(56,189,248,0.2); color: var(--sky); }
.edu-ico svg { width: 21px; height: 21px; }
.edu-ico.cert { background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.25); color: var(--emerald); }
.edu-title { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; }
.edu-org { color: var(--text-soft); font-size: 14px; margin-top: 3px; }
.edu-period { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); margin-top: 6px; }
@media (max-width: 700px) { .edu-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Agentic AI highlight
   ========================================================= */
.agentic-panel {
  position: relative; overflow: hidden; border-radius: 28px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(37,99,235,0.14), transparent 50%),
    radial-gradient(120% 120% at 100% 100%, rgba(52,211,153,0.10), transparent 50%),
    linear-gradient(160deg, #0c1428, #0a1020);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  padding: 48px; margin-top: 52px;
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 44px; align-items: center;
}
.agentic-panel .ag-orb { position: absolute; width: 320px; height: 320px; border-radius: 50%; filter: blur(70px); opacity: .4; pointer-events: none; }
.agentic-panel .ag-orb-1 { background: radial-gradient(circle, #2563eb, transparent 65%); top: -140px; right: 10%; animation: drift2 24s ease-in-out infinite; }
.ag-left { position: relative; z-index: 2; }
.ag-badge { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: #cfe0ff; background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.28); padding: 7px 14px; border-radius: 999px; margin-top: 16px; }
.ag-badge .spark { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 0 rgba(56,189,248,0.6); animation: agPulse 1.8s ease-out infinite; }
@keyframes agPulse { 0%{box-shadow:0 0 0 0 rgba(56,189,248,0.55)} 70%,100%{box-shadow:0 0 0 9px rgba(56,189,248,0)} }
.ag-title { font-size: clamp(26px, 3.2vw, 40px); margin-top: 18px; }
.ag-lead { color: var(--text-soft); font-size: 17.5px; margin-top: 16px; max-width: 520px; }
.ag-caps { display: grid; gap: 14px; margin-top: 28px; }
.ag-cap { display: flex; gap: 14px; align-items: flex-start; }
.ag-cap-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--sky); background: var(--accent-soft); border: 1px solid rgba(56,189,248,0.22); }
.ag-cap-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.ag-cap-text { color: var(--text-soft); font-size: 14.5px; margin-top: 2px; }
.ag-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ag-tool { display: flex; flex-direction: column; padding: 11px 16px; border-radius: 12px; background: rgba(255,255,255,0.025); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.ag-tool:hover { border-color: var(--sky); transform: translateY(-2px); }
.ag-tool b { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; }
.ag-tool span { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); margin-top: 2px; }

/* Agent log terminal */
.ag-term { position: relative; z-index: 2; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); background: linear-gradient(180deg, #0b1222, #080d1a); box-shadow: var(--shadow); }
.ag-term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.ag-term-bar .cw-dot { width: 10px; height: 10px; }
.ag-term-title { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); display: flex; align-items: center; gap: 7px; }
.ag-term-title .live { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); animation: agPulse2 1.6s ease-out infinite; }
@keyframes agPulse2 { 0%{box-shadow:0 0 0 0 rgba(52,211,153,0.6)} 70%,100%{box-shadow:0 0 0 7px rgba(52,211,153,0)} }
.ag-term-body { padding: 18px 18px 20px; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; min-height: 244px; display: flex; flex-direction: column; gap: 9px; justify-content: flex-end; }
.ag-log-line { display: flex; align-items: baseline; gap: 9px; opacity: 0; transform: translateY(6px); animation: agLineIn .35s ease forwards; }
@keyframes agLineIn { to { opacity: 1; transform: none; } }
.ag-tag { flex-shrink: 0; font-size: 11px; padding: 1px 7px; border-radius: 5px; font-weight: 600; }
.ag-tag.plan { color: #c4b5fd; background: rgba(139,92,246,0.14); }
.ag-tag.claude { color: #fbbf24; background: rgba(251,191,36,0.13); }
.ag-tag.augment { color: var(--sky); background: rgba(56,189,248,0.13); }
.ag-tag.codex { color: #f0abfc; background: rgba(240,171,252,0.13); }
.ag-tag.test, .ag-tag.patch { color: #93c5fd; background: rgba(147,197,253,0.12); }
.ag-tag.review { color: var(--emerald); background: rgba(52,211,153,0.13); }
.ag-log-text { color: var(--text-soft); }
.ag-log-ok { color: var(--emerald); margin-left: auto; flex-shrink: 0; }
.ag-cursor-line { display: flex; align-items: center; gap: 8px; color: var(--text-mute); }
.ag-cursor { display: inline-block; width: 8px; height: 1em; background: var(--sky); animation: caret 1s steps(1) infinite; }

@media (max-width: 920px) {
  .agentic-panel { grid-template-columns: 1fr; gap: 34px; padding: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-orb, .ag-badge .spark, .ag-term-title .live { animation: none !important; }
  .ag-log-line { opacity: 1; transform: none; animation: none; }
}

/* =========================================================
   Contact CTA
   ========================================================= */
.contact { position: relative; }
.contact-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px 56px;
  background: linear-gradient(150deg, #0c1730 0%, #0a1124 60%);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  text-align: center;
}
.contact-card .c-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.contact-card .c-orb-1 { width: 300px; height: 300px; background: radial-gradient(circle, #2563eb, transparent 65%); top: -120px; left: -60px; animation: drift1 20s ease-in-out infinite; }
.contact-card .c-orb-2 { width: 280px; height: 280px; background: radial-gradient(circle, #34d399, transparent 65%); bottom: -120px; right: -40px; animation: drift3 24s ease-in-out infinite; }
.contact-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.contact h2 { font-size: clamp(32px, 5vw, 56px); }
.contact-lead { color: var(--text-soft); font-size: 19px; max-width: 540px; margin: 20px auto 0; }
.contact-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }
.contact-links { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }
.contact-link { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--text-soft); transition: color .2s; }
.contact-link svg { width: 17px; height: 17px; }
.contact-link:hover { color: var(--sky); }

/* =========================================================
   Footer
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; }
.footer small { color: var(--text-mute); font-size: 13px; }
.footer-socials { display: flex; gap: 14px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text-soft); transition: all .2s; }
.footer-socials a:hover { border-color: var(--sky); color: var(--sky); transform: translateY(-2px); }
.footer-socials svg { width: 18px; height: 18px; }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .orb, .grid-mesh, .marquee-track, .code-window, .float-chip, .avatar-ring, .status-dot::after, .c-orb { animation: none !important; }
}

/* Back-to-top scroll progress */
.scroll-prog { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent-grad); z-index: 60; width: 0%; box-shadow: 0 0 12px rgba(56,189,248,0.7); }
