:root {
  --bg0: #050816;
  --bg1: #08111f;
  --bg2: #0d1730;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --text: rgba(247, 250, 255, 0.96);
  --muted: rgba(247, 250, 255, 0.68);
  --muted-strong: rgba(247, 250, 255, 0.82);
  --accent: #9c7cff;
  --accent-2: #62f1c0;
  --accent-3: #ffcc6a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 16px 50px rgba(0, 0, 0, 0.28);
  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 760px at 12% 10%, rgba(156, 124, 255, 0.22), transparent 58%),
    radial-gradient(840px 620px at 88% 16%, rgba(98, 241, 192, 0.14), transparent 55%),
    radial-gradient(900px 620px at 52% 115%, rgba(255, 204, 106, 0.1), transparent 56%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 46%, #040713 100%);
  overflow-x: hidden;
}

html.is-loading,
html.is-loading body {
  overflow: hidden;
}

html.is-loading .loading-screen {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html.is-loading .topbar,
html.is-loading .page,
html.is-loading .ambient,
html.is-loading .bg {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.995);
}

html.is-ready .topbar,
html.is-ready .page,
html.is-ready .ambient,
html.is-ready .bg {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.topbar,
.page,
.ambient,
.bg {
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    visibility 0s linear 0s;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 2px) 0 0 / 100% 9px,
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 50%);
  opacity: 0.08;
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 96px 96px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 92%);
  opacity: 0.28;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 520px at 20% 18%, rgba(156, 124, 255, 0.34), transparent 55%),
    radial-gradient(760px 440px at 80% 20%, rgba(98, 241, 192, 0.22), transparent 56%),
    linear-gradient(180deg, #040713 0%, #050816 52%, #02040b 100%);
  overflow: hidden;
  transition:
    opacity 0.65s ease,
    visibility 0s linear 0.65s;
}

html.is-ready .loading-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-orb {
  position: absolute;
  inset: auto;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.72;
  animation: loaderFloat 7s ease-in-out infinite;
  pointer-events: none;
}

.loading-orb-a {
  left: -8vw;
  top: -10vw;
  background: radial-gradient(circle, rgba(156, 124, 255, 0.54), transparent 62%);
}

.loading-orb-b {
  right: -10vw;
  bottom: -12vw;
  background: radial-gradient(circle, rgba(98, 241, 192, 0.36), transparent 62%);
  animation-delay: -2.2s;
}

.loading-card {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)),
    rgba(9, 14, 28, 0.82);
  backdrop-filter: blur(24px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.loading-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(520px 220px at 20% 20%, rgba(156, 124, 255, 0.2), transparent 55%),
    radial-gradient(420px 180px at 88% 18%, rgba(98, 241, 192, 0.16), transparent 50%);
  pointer-events: none;
}

.loading-card > * {
  position: relative;
}

.loading-mark {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 40%),
    linear-gradient(135deg, rgba(156, 124, 255, 0.9), rgba(98, 241, 192, 0.72));
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.32),
    0 0 0 10px rgba(156, 124, 255, 0.1);
}

.loading-mark span {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  animation: loaderPulse 1.3s ease-in-out infinite;
}

.loading-mark span:nth-child(2) {
  animation-delay: 0.15s;
}

.loading-mark span:nth-child(3) {
  animation-delay: 0.3s;
}

.loading-copy {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.loading-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.loading-copy h1 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.loading-copy p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  line-height: 1.65;
}

.loading-track {
  position: relative;
  margin-top: 22px;
  height: 14px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.loading-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 20px rgba(98, 241, 192, 0.32);
  transition: width 0.12s linear;
}

.loading-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: rgba(247, 250, 255, 0.74);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

a {
  color: inherit;
}

img,
svg,
canvas {
  display: block;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
  pointer-events: none;
  z-index: -3;
}

.ambient-a {
  top: -12vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(156, 124, 255, 0.52), transparent 62%);
}

.ambient-b {
  right: -12vw;
  top: 8vw;
  background: radial-gradient(circle, rgba(98, 241, 192, 0.32), transparent 62%);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

#scene {
  width: 100%;
  height: 100%;
  filter: saturate(1.12) contrast(1.04);
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0;
  transform:
    translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0)
    translate(-50%, -50%)
    scale(var(--cursor-scale, 1));
  transition:
    opacity 0.18s ease,
    transform 0.08s linear;
  mix-blend-mode: screen;
}

.cursor-dot,
.cursor-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.cursor-dot {
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 18px rgba(98, 241, 192, 0.5),
    0 0 40px rgba(156, 124, 255, 0.28);
}

.cursor-ring {
  inset: -18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  opacity: 0.8;
  transform: scale(var(--cursor-ring-scale, 1));
  box-shadow: 0 0 0 0 rgba(98, 241, 192, 0.12);
  animation: cursorPulse 1.9s ease-in-out infinite;
}

@media (pointer: fine) {
  .cursor {
    opacity: 1;
  }
}

@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}

.page {
  position: relative;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 50;
  width: min(var(--max), calc(100% - 24px));
  margin: 16px auto 0;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 0 0 5px rgba(156, 124, 255, 0.12),
    0 10px 28px rgba(98, 241, 192, 0.2);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-role {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 13px;
  border-radius: 999px;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.cta {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  padding: 11px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background:
    linear-gradient(135deg, rgba(156, 124, 255, 0.24), rgba(98, 241, 192, 0.18)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(156, 124, 255, 0.16);
}

.cta-glow {
  position: absolute;
  inset: -1px;
  opacity: 0;
  background: radial-gradient(300px 110px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.18), transparent 55%);
  transition: opacity 0.2s ease;
}

.cta:hover .cta-glow {
  opacity: 1;
}

.hero,
.section,
.footer {
  width: min(var(--max), calc(100% - 24px));
  margin-left: auto;
  margin-right: auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  align-items: stretch;
  padding: 42px 0 28px;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.subtle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.headline {
  display: block;
  max-width: 12ch;
  font-weight: 700;
}

.name {
  display: block;
  margin-top: 8px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.82) 34%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.sub {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.role-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.role-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.role-pill,
.pill,
.skill-pill,
.tag,
.result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 250, 255, 0.9);
  font-weight: 700;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.primary,
.secondary {
  text-decoration: none;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.primary {
  color: #0a0d16;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(98, 241, 192, 0.8));
  box-shadow: 0 18px 34px rgba(98, 241, 192, 0.18);
}

.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.primary:hover,
.secondary:hover,
.feature-link:hover,
.card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric {
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
}

.metric-value {
  display: block;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.metric-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.signal-panel,
.glass,
.featured-project,
.project-card,
.capability-card,
.timeline-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.signal-panel::before,
.featured-project::before,
.project-card::before,
.capability-card::before,
.timeline-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(520px 220px at var(--px, 25%) var(--py, 18%), var(--accent-a, rgba(156, 124, 255, 0.2)), transparent 55%),
    radial-gradient(420px 180px at 80% 0%, var(--accent-b, rgba(98, 241, 192, 0.12)), transparent 48%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.signal-panel:hover::before,
.featured-project:hover::before,
.project-card:hover::before,
.capability-card:hover::before,
.timeline-card:hover::before {
  opacity: 1;
}

.signal-panel > *,
.featured-project > *,
.project-card > *,
.capability-card > *,
.timeline-card > * {
  position: relative;
}

.signal-panel {
  padding: 22px;
  display: grid;
  gap: 22px;
}

.portrait-card {
  margin: 0;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.portrait-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: rgba(247, 250, 255, 0.74);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-top,
.signal-stack,
.info-stack div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #061018;
  background: linear-gradient(135deg, rgba(98, 241, 192, 0.98), rgba(255, 255, 255, 0.88));
  font-size: 12px;
  font-weight: 800;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(247, 250, 255, 0.68);
  font-size: 12px;
}

.signal-label,
.signal-stack-label,
.link-k,
.info-stack span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-title {
  margin: 10px 0 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.signal-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.signal-stack {
  padding-top: 2px;
  flex-direction: column;
}

.signal-stack p {
  margin: 0;
  color: rgba(247, 250, 255, 0.9);
  line-height: 1.6;
}

.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.socials a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  color: rgba(247, 250, 255, 0.92);
}

.section {
  padding: 42px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 10px 0 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: 14ch;
}

.section-head p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.7;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.glass {
  padding: 22px;
}

.glass-title,
.featured-project h3,
.project-card h3,
.capability-card h3 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.glass-body {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(247, 250, 255, 0.88);
  line-height: 1.55;
}

.checklist li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 4px rgba(98, 241, 192, 0.12);
  flex: none;
}

.featured-layout {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 14px;
  align-items: start;
}

.featured-project {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.86fr;
  gap: 22px;
  min-height: 100%;
}

.featured-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.featured-project p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.result-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-card strong {
  display: block;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.result-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.featured-result {
  padding-top: 4px;
}

.feature-link,
.card-link {
  width: fit-content;
}

.featured-preview {
  display: grid;
  min-height: 100%;
}

.preview-shell {
  min-height: 100%;
  padding: 14px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top, var(--accent-a, rgba(156, 124, 255, 0.18)), transparent 52%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.preview-bar {
  display: flex;
  gap: 8px;
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.preview-stage {
  position: relative;
  margin-top: 14px;
  min-height: 360px;
  border-radius: 22px;
  background:
    radial-gradient(220px 220px at 20% 20%, var(--accent-b, rgba(98, 241, 192, 0.4)), transparent 60%),
    radial-gradient(260px 260px at 80% 30%, var(--accent-a, rgba(156, 124, 255, 0.4)), transparent 62%),
    linear-gradient(180deg, rgba(8, 16, 31, 0.95), rgba(10, 14, 28, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
  filter: saturate(1.08) contrast(1.04);
}

.preview-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 72px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 72px 100%;
  opacity: 0.22;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 96%);
}

.preview-orb {
  position: absolute;
  inset: auto auto 18% 12%;
  width: 150px;
  height: 150px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9), transparent 38%),
    linear-gradient(135deg, rgba(156, 124, 255, 0.9), rgba(98, 241, 192, 0.72));
  filter: blur(0.2px);
  box-shadow:
    0 26px 40px rgba(0, 0, 0, 0.35),
    0 0 0 18px rgba(156, 124, 255, 0.08);
  transform: rotate(10deg);
}

.preview-metrics {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  width: min(210px, calc(100% - 32px));
}

.preview-metrics div {
  padding: 12px 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.preview-metrics strong {
  display: block;
  font-size: 22px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.04em;
}

.preview-metrics span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.project-stack {
  display: grid;
  gap: 14px;
}

.project-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.project-thumb {
  margin: -18px -18px 4px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(156, 124, 255, 0.16), rgba(98, 241, 192, 0.1)),
    rgba(255, 255, 255, 0.04);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-card .tag-row {
  margin-top: 2px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(247, 250, 255, 0.94);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.82);
  border-top: 2px solid rgba(255, 255, 255, 0.82);
  transform: rotate(45deg);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.capability-card {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.certification-card {
  align-content: start;
}

.certification-thumb {
  margin: -20px -20px 4px;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(156, 124, 255, 0.12), rgba(98, 241, 192, 0.08)),
    rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.certification-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.capability-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.capability-points {
  display: grid;
  gap: 10px;
}

.capability-points span {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(247, 250, 255, 0.9);
  line-height: 1.5;
}

.capability-points span::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  flex: none;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 20px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(98, 241, 192, 0.55), rgba(156, 124, 255, 0.3), rgba(255, 255, 255, 0.08));
  opacity: 0.9;
}

.timeline-item {
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: -18px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #07111d;
  border: 2px solid rgba(98, 241, 192, 0.86);
  box-shadow:
    0 0 0 4px rgba(156, 124, 255, 0.12),
    0 0 20px rgba(98, 241, 192, 0.22);
}

.timeline-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.045);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.timeline-item:hover .timeline-card {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
}

.timeline-icon {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #09111a;
  background: linear-gradient(135deg, var(--accent-a, var(--accent)), var(--accent-b, var(--accent-2)));
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    0 0 0 10px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.timeline-icon-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.timeline-icon-fallback {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(9, 17, 26, 0.9);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
}

.timeline-content {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.timeline-overline {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-head h3 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.timeline-dates {
  color: rgba(247, 250, 255, 0.8);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  white-space: nowrap;
}

.timeline-subtitle {
  color: rgba(247, 250, 255, 0.94);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.timeline-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 16px;
}

.timeline-meta {
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.5;
}

.timeline-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.timeline-tags .skill-pill {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 12px;
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.skill-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 9px 14px 9px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.skill-badge::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(120px 64px at var(--px, 24%) var(--py, 22%), rgba(255, 255, 255, 0.14), transparent 60%),
    radial-gradient(120px 64px at 100% 0%, var(--accent-b, rgba(98, 241, 192, 0.16)), transparent 60%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.skill-badge:hover::before {
  opacity: 1;
}

.skill-badge-mark {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-a, var(--accent)), var(--accent-b, var(--accent-2)));
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.skill-badge-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  padding: 4px;
}

.skill-badge-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

.skill-badge-icon + .skill-badge-icon {
  margin-left: -5px;
}

.skill-badge-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(9, 17, 26, 0.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
}

.skill-badge-label {
  color: rgba(247, 250, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.info-stack {
  display: grid;
  gap: 16px;
}

.info-stack div {
  flex-direction: column;
}

.info-stack strong {
  color: rgba(247, 250, 255, 0.92);
  line-height: 1.6;
  font-weight: 600;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
  font: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(247, 250, 255, 0.38);
}

input:focus,
textarea:focus {
  border-color: rgba(156, 124, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(156, 124, 255, 0.14);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.link-grid {
  display: grid;
  gap: 12px;
}

.link-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.link-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(156, 124, 255, 0.18), rgba(98, 241, 192, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  flex: none;
}

.link-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.link-v {
  margin-top: 0;
  font-weight: 800;
  color: rgba(247, 250, 255, 0.94);
  word-break: break-word;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 2px 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px 0 42px;
  color: rgba(247, 250, 255, 0.76);
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.footer-left {
  display: grid;
  gap: 10px;
}

.footer a {
  color: rgba(247, 250, 255, 0.88);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.72s ease,
    transform 0.72s ease;
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 980px) {
  .contact-panel {
    min-height: 100%;
  }
}

@media (max-width: 1100px) {
  .hero,
  .featured-layout {
    grid-template-columns: 1fr;
  }

  .featured-project {
    grid-template-columns: 1fr;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: auto auto;
    border-radius: 26px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 2px;
  }

  .hero {
    padding-top: 30px;
  }

  .grid-2,
  .hero-metrics,
  .project-results,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    width: calc(100% - 16px);
    margin-top: 8px;
    padding: 12px;
  }

  .hero,
  .section,
  .footer {
    width: calc(100% - 16px);
  }

  .section {
    padding: 34px 0;
  }

  .signal-panel,
  .glass,
  .featured-project,
  .project-card,
  .capability-card,
  .timeline-card {
    border-radius: 24px;
  }

  .timeline-list {
    padding-left: 16px;
  }

  .timeline-list::before {
    left: 7px;
  }

  .timeline-marker {
    left: -15px;
    top: 18px;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .timeline-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    font-size: 16px;
  }

  .timeline-head {
    align-items: flex-start;
  }

  .timeline-dates {
    white-space: normal;
  }

  .preview-stage {
    min-height: 260px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .loading-orb,
  .loading-mark span {
    animation: none;
  }
}

@keyframes loaderFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 18px, 0) scale(1.05);
  }
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scaleY(0.7);
    opacity: 0.72;
  }
  50% {
    transform: scaleY(1.15);
    opacity: 1;
  }
}

@keyframes cursorPulse {
  0%,
  100% {
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(98, 241, 192, 0.12);
  }
  50% {
    opacity: 0.95;
    box-shadow: 0 0 0 12px rgba(98, 241, 192, 0);
  }
}
